[Demonstration 1]

[Buggy Method]
private void generateTWave() {
    createWave(T_WAVE_SPEED, EVERAGE_TWave);
}

[Buggy Hunk]
createWave(T_WAVE_SPEED, EVERAGE_TWave);

[Patch]
createWave(T_WAVE_SPEED, EVERAGE_T_WAVE);

[Demonstration 2]

[Buggy Method]
public boolean regConsumer(Consumer consumer) {
    if (this.consumerMap.containsKey(consumer.getName())) {
        logger.warn("consumer '{}' has reg", consumer.getName());
        return false;
    } else {
        this.consumerMap.put(consumer.getUuid(), consumer);
        logger.info("reg consumer : {}", consumer);
        consumer.start();
        return true;
    }
}

[Buggy Hunk]
this.consumerMap.put(consumer.getUuid(), consumer);

[Patch]
this.consumerMap.put(consumer.getName(), consumer);

[Demonstration 3]

[Buggy Method]
private static Bitmap rotateBitmap(Bitmap bitmap, int angle) {
    // If the rotate angle is 0, then return the original image, else return the rotated image
    if (angle != 0) {
        Matrix matrix = new Matrix();
        matrix.postRotate(angle);
        return Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true);
    } else {
        return bitmap;
    }
}

[Buggy Hunk]
private static Bitmap rotateBitmap(Bitmap bitmap, int angle) {

[Patch]
public static Bitmap rotateBitmap(Bitmap bitmap, int angle) {