[Demonstration 1]

[Buggy Method]
@Override
public void onBindViewHolder(ResultsViewHolder resultsViewHolder, int position) {
    final BenchmarkResult item = results.get(position);
    resultsViewHolder.nameText.setText(item.algorithm.name);
    if (!item.success) {
        resultsViewHolder.nameText.setTextColor(context.getResources().getColor(R.color.failed_red));
        resultsViewHolder.timeText.setTextColor(context.getResources().getColor(R.color.failed_red));
        resultsViewHolder.timeText.setText(R.string.failed);
        resultsViewHolder.itemView.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View view) {
                showErrorDialog(item.errorMessage);
            }
        });
    } else {
        resultsViewHolder.nameText.setTextColor(context.getResources().getColor(android.R.color.secondary_text_dark));
        resultsViewHolder.timeText.setTextColor(context.getResources().getColor(android.R.color.secondary_text_dark));
        resultsViewHolder.timeText.setText(String.format(context.getString(R.string.time_taken), item.timeTaken));
        resultsViewHolder.timeText.setOnClickListener(null);
    }
}

[Buggy Hunk]
resultsViewHolder.timeText.setOnClickListener(null);

[Patch]
resultsViewHolder.itemView.setOnClickListener(null);

[Demonstration 2]

[Buggy Method]
private void setTimeOnEditText() {
    String timeFormat = "h:mm a";
    SimpleDateFormat sdf = new SimpleDateFormat(timeFormat, Locale.US);
    time_editText.setText(sdf.format(calendar.getTime()));
}

[Buggy Hunk]
time_editText.setText(sdf.format(calendar.getTime()));

[Patch]
time_editText.setText(sdf.format(meetupTime_calendar.getTime()));

[Demonstration 3]

[Buggy Method]
@Override
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float xOffset, float yOffset, float zOffset) {
    for (int i = 0; i < player.inventory.mainInventory.length; i++) {
        ItemStack torchStack = player.inventory.mainInventory[i];
        if (torchStack == null || !torchStack.getUnlocalizedName().toLowerCase().contains("torch")) {
            continue;
        }
        Item item = torchStack.getItem();
        if (!(item instanceof ItemBlock)) {
            continue;
        }
        int oldMeta = torchStack.getItemDamage();
        int oldSize = torchStack.stackSize;
        boolean result = torchStack.tryPlaceItemIntoWorld(player, world, x, y, z, side, xOffset, yOffset, zOffset);
        if (player.capabilities.isCreativeMode) {
            torchStack.setItemDamage(oldMeta);
            torchStack.stackSize = oldSize;
        } else if (torchStack.stackSize <= 0) {
            ForgeEventFactory.onPlayerDestroyItem(player, torchStack);
            player.inventory.mainInventory[i] = null;
        }
        if (result) {
            return true;
        }
    }
    return super.onItemUse(stack, player, world, x, y, z, side, xOffset, yOffset, zOffset);
}

[Buggy Hunk]
if (torchStack == null || !torchStack.getUnlocalizedName().toLowerCase().contains("torch")) {

[Patch]
if (torchStack == null || !torchStack.getUnlocalizedName().toLowerCase(Locale.US).contains("torch")) {