[Demonstration 1]

[Buggy Method]
@Test
public void openChord() {
    Instrument openA = new Instrument("Open A", 1, Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[1], Chord.A_MAJOR.notes[2]);
    FretboardModel fretboard = new FretboardModel(openA, Chord.A_MAJOR);
    List<ChordFingering> chords = new RecursiveChordFingeringGenerator().getChordFingerings(fretboard);
    assertEquals("Only one chord found", 1, chords.size());
}

[Buggy Hunk]
Instrument openA = new Instrument("Open A", 1, Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[1], Chord.A_MAJOR.notes[2]);

[Patch]
Instrument openA = new Instrument("Open A", 1, Clef.TREBLE, Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[0], Chord.A_MAJOR.notes[1], Chord.A_MAJOR.notes[2]);

[Demonstration 2]

[Buggy Method]
public String getContent() throws IOException {
    return new String(Base64.getDecoder().decode(getEncodedContent()));
}

[Buggy Hunk]
return new String(Base64.getDecoder().decode(getEncodedContent()));

[Patch]
return new String(Base64.getMimeDecoder().decode(getEncodedContent()));

[Demonstration 3]

[Buggy Method]
public Response writeResource(Path name) {
    String resource = "/META-INF/resources" + Paths.get("/").resolve(name);
    try (InputStream stream = getClass().getResourceAsStream(resource)) {
        if (stream == null) {
            throw new FileNotFoundException("File not found on classpath: " + name);
        }
        if (contentType == null) {
            guessContentType(name);
        }
        return write(stream);
    } catch (IOException e) {
        throw new UncheckedIOException(e);
    }
}

[Buggy Hunk]
String resource = "/META-INF/resources" + Paths.get("/").resolve(name);

[Patch]
String resource = "/META-INF/resources" + Paths.get("/").resolve(name).normalize();