[Demonstration 1]

[Buggy Method]
@Override
public void action() {
    MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.SUBSCRIBE);
    ACLMessage msg = myAgent.receive(mt);
    if (msg != null) {
        ACLMessage reply = msg.createReply();
        if (Integer.parseInt(msg.getContent()) > 0) {
            Client c = new Client(msg.getSender(), Integer.parseInt(msg.getContent()));
            clients.add(c);
            reply.setPerformative(ACLMessage.AGREE);
        } else {
            reply.setPerformative(ACLMessage.REFUSE);
        }
        myAgent.send(reply);
    } else {
        block();
    }
}

[Buggy Hunk]
Client c = new Client(msg.getSender(), Integer.parseInt(msg.getContent()));

[Patch]
Client c = new Client(msg.getSender(), Integer.parseInt(msg.getContent()) * (1000/PERIOD));

[Demonstration 2]

[Buggy Method]
@Override
public void messageImageWasChanged(Bitmap imageBitmap, IMessageType type) {
    currentReply.setImageBitmap(imageBitmap);
    currentReply.setType(type);
    setMessageInfo(feedItem().getMessage());
    replyFragmentListener.enableEditMode();
    textReplyFragment.setBackground(currentReply.getImageBitmap());
}

[Buggy Hunk]
textReplyFragment.setBackground(currentReply.getImageBitmap());

[Patch]
textReplyFragment.setBackgroundImage(currentReply.getImageBitmap());

[Demonstration 3]

[Buggy Method]
@Override
public void handle(Message<JsonObject> msg) {
    JsonObject m = msg.body();
    JsonArray matchers = jo.getArray("match");
    for (Object o : matchers) {
        JsonObject cand = (JsonObject) o;
        boolean matchCase = cand.getBoolean("case-sensitive", false);
        if (doMatch(cand.getObject("message"), m, matchCase)) {
            matched++;
            msg.reply(cand.getObject("match-reply"));
            return;
        }
    }
    unmatched++;
    msg.reply(jo.getObject("nomatch-reply"));
}

[Buggy Hunk]
msg.reply(jo.getObject("nomatch-reply"));

[Patch]
msg.reply(jo.getObject("nomatch-reply").putObject("offending", m));