[Demonstration 1]

[Buggy Method]
@SuppressWarnings("rawtypes")
public Logger getLogger(Class sClass) {
    LinkedList<Target> t;
    ErrorLevel errLv;
    Formator f;
    if (this.targets.containsKey(sClass)) {
        t = this.targets.get(sClass);
    } else {
        t = new LinkedList<Target>();
        t.add(new TargetConsole());
    }
    errLv = this.errLevels.containsKey(sClass) ? this.errLevels.get(sClass) : ErrorLevel.ERROR;
    f = this.layouts.containsKey(sClass) ? this.layouts.get(sClass) : new DefaultFormator(sClass.getName());
    ;
    return (new Logger(f, t, errLv));
}

[Buggy Hunk]
f = this.layouts.containsKey(sClass) ? this.layouts.get(sClass) : new DefaultFormator(sClass.getName());;

[Patch]
f = this.layouts.containsKey(sClass) ? this.layouts.get(sClass) : new DefaultFormator(sClass.getName());

[Demonstration 2]

[Buggy Method]
private SpeechletResponse getThanksForPlayingResponse(final String word, Session session) {
    String lastGuess = (String) session.getAttribute("lastWordGuessed");
    int numTries = (int) session.getAttribute("numGuesses");
    String tryText = numTries == 1 ? "try" : "tries";
    //final String responseText = "Hooray! I win! I guessed your word! The word you were thinking of was: " + lastGuess + "!";
    final String responseText = "Hooray! I win! I guessed your word, and it only took me " + numTries + " " + tryText + "! The word you were thinking of was: " + lastGuess + "!";
    //sfinal String responseText = "Hooray! I win! I guessed your word, and it only took me " + numTries + tryText + "! ";
    PlainTextOutputSpeech plainTextOutputSpeech = new PlainTextOutputSpeech();
    plainTextOutputSpeech.setText(responseText);
    return SpeechletResponse.newTellResponse(plainTextOutputSpeech);
}

[Buggy Hunk]
private SpeechletResponse getThanksForPlayingResponse(final String word, Session session) {

[Patch]
protected SpeechletResponse getThanksForPlayingResponse(final String word, Session session) {

[Demonstration 3]

[Buggy Method]
@DefaultValue("all")
@QueryParam("chordInversions")
public // only the "all" String, then all chord inversions are selected.
void setChordInversions(String[] chordInversions) {
    // Checking to see if this method has already been called.
    if (!chordInversionsEnums.isEmpty()) {
        return;
    }
    if (chordInversions.length == 1 && chordInversions[0].equals("all")) {
        List<ChordInversion> allEnums = Arrays.asList(ChordInversion.values());
        chordInversionsEnums = new HashSet<ChordInversion>(allEnums);
        return;
    }
    for (int i = 0; i < chordInversions.length; i++) {
        ChordInversion chordInversion = ChordInversion.getChordInversionEnum(chordInversions[i]);
        // Checking if the enum value is valid.
        if (chordInversion != null) {
            chordInversionsEnums.add(chordInversion);
        }
    }
}

[Buggy Hunk]
chordInversionsEnums = new HashSet<ChordInversion>(allEnums);

[Patch]
chordInversionsEnums = new LinkedHashSet<ChordInversion>(allEnums);