[Demonstration 1]

[Buggy Method]
@Override
public String toString() {
    return "RequirementRecipe[fieldName=" + requirement.getFieldName() + ", role=" + componentDescriptor.getRole() + "]";
}

[Buggy Hunk]
return "RequirementRecipe[fieldName=" + requirement.getFieldName() + ", role=" + componentDescriptor.getRole() + "]";

[Patch]
return "RequirementRecipe[fieldName=" + requirement.getFieldName() + ", role=" + requirement.getRole() + "]";

[Demonstration 2]

[Buggy Method]
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    super.onCreateDialog(savedInstanceState);
    AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
    // Get the layout inflater
    LayoutInflater inflater = getActivity().getLayoutInflater();
    final View view = inflater.inflate(R.layout.dialog_clear_history_confirmation, null);
    builder.setView(view).setPositiveButton(R.string.clear_history_label, new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            bus.post(new Send<Void>() {

                public MessageTag tag() {
                    return MessageTag.CLEAR_HISTORY;
                }

                public Void receive() {
                    return null;
                }
            });
            bus.post(new Send<Void>() {

                public MessageTag tag() {
                    return MessageTag.REMOVE_LAST_FRAGMENT;
                }

                public Void receive() {
                    return null;
                }
            });
        }
    }).setNegativeButton(R.string.save_dialog_cancel_text, new DialogInterface.OnClickListener() {

        @Override
        public void onClick(DialogInterface dialogInterface, int i) {
            ClearHistoryConfirmationDialog.this.getDialog().cancel();
        }
    });
    AlertDialog dialog = builder.create();
    return dialog;
}

[Buggy Hunk]
public MessageTag tag() { return MessageTag.REMOVE_LAST_FRAGMENT; }

[Patch]
public MessageTag tag() { return MessageTag.REMOVE_DETAILED_PANE; }

[Demonstration 3]

[Buggy Method]
private void sendRandomQuote(Messenger messenger, String senderId, String tag) {
    IdMessageRecipient recipient = new IdMessageRecipient(senderId);
    messenger.send().typingOn(recipient);
    String textMessage;
    if (tag != null) {
        List<String> tags = tagsCache.getTags();
        if (tags.contains(tag)) {
            textMessage = tronaldClient.getRandomQuote(tag).getValue();
        } else {
            textMessage = format("I said so many stupid things but there is no tag '%s' yet. Type 'tags' to see available tags.", tag);
        }
    } else {
        textMessage = tronaldClient.getRandomQuote().getValue();
    }
    messenger.send().textMessage(recipient, textMessage);
    messenger.send().typingOff(recipient);
}

[Buggy Hunk]
textMessage = tronaldClient.getRandomQuote(tag).getValue();

[Patch]
textMessage = tronaldClient.getRandomQuote(tagsCache.getTag(tag)).getValue();