[Demonstration 1]

[Buggy Method]
@Override
protected void onResume() {
    super.onResume();
    // create speech playback view if speech is playing
    PlaybackController.createControllerView(WikipediaActivity.this, activityName, WikipediaActivity.class);
    // Google Analytics code
    Log.i(activityName, "Setting screen name: " + activityName);
    mTracker.setScreenName(activityName);
    mTracker.send(new HitBuilders.ScreenViewBuilder().build());
}

[Buggy Hunk]
PlaybackController.createControllerView(WikipediaActivity.this, activityName, WikipediaActivity.class);

[Patch]
PlaybackController.createControllerView(WikipediaActivity.this, WikipediaActivity.class);

[Demonstration 2]

[Buggy Method]
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) {
    try {
        if (!hasAuthenticated) {
            logSecureSocketDetails(ctx);
            if (!handleAuthenticate(ctx.channel().remoteAddress(), ctx))
                return;
        }
        switch(state) {
            case START:
                state = handleStart(ctx, in);
                break;
            case AWAIT_MESSAGING_START_RESPONSE:
                state = handleMessagingStartResponse(ctx, in);
                break;
            case HANDSHAKE_FAIL:
                throw new IllegalStateException("channel should be closed after determining the handshake failed with peer: " + ctx.channel().remoteAddress());
            default:
                logger.error("unhandled state: " + state);
                state = State.HANDSHAKE_FAIL;
                ctx.close();
        }
    } catch (Exception e) {
        logger.error("unexpected error while negotiating internode messaging handshake", e);
        state = State.HANDSHAKE_FAIL;
        ctx.close();
    }
}

[Buggy Hunk]
logger.error("unhandled state: " + state);

[Patch]
logger.error("unhandled state: {}", state);

[Demonstration 3]

[Buggy Method]
public int getHp(boolean isLeader) {
    int hp = 0;
    for (Equipment e : equipments) {
        if (e != null) {
            hp += e.stats[0];
        }
    }
    if (isLeader)
        hp += 5;
    return hp;
}

[Buggy Hunk]
int hp = 0;

[Patch]
int hp = (int)adventurerClass.stats[0];