[Demonstration 1]

[Buggy Method]
public void firstButton(View view) {
    PerceptionDatum pitchDatum = new PerceptionDatum(0, isFirstStimuliLowerPitched, firstStimulus, secondStimulus);
    PerceptionData.pitchData.addDatum(pitchDatum);
    if (continueSelected) {
        setContentView(pitchView);
        initiatePitchSequence();
    } else {
        Intent thingy = new Intent(PitchActivity.this, MainActivity.class);
        startActivity(thingy);
    }
}

[Buggy Hunk]
PerceptionDatum pitchDatum = new PerceptionDatum(0, isFirstStimuliLowerPitched, firstStimulus, secondStimulus);

[Patch]
PerceptionRename pitchDatum = new PerceptionRename(0, isFirstStimuliLowerPitched, firstStimulus, secondStimulus);

[Demonstration 2]

[Buggy Method]
static MapParser<List<List<Character>>> characterMapParser(BoardFactory boardFactory, LevelFactory levelFactory) {
    return new MapParser<List<List<Character>>>() {

        @Override
        public Try<Level> apply(List<List<Character>> chars) {
            return Try.ofCallable(() -> {
                Function1<Character, Square> squareForChar = Function3.of(this::squareForChar).apply(boardFactory).apply(levelFactory);
                List<List<Square>> squares = chars.map(row -> row.map(squareForChar));
                List<Tuple3<Character, Integer, Integer>> indexedChars = chars.map(List::zipWithIndex).zipWithIndex().flatMap(cs -> cs._1.map(c -> new Tuple3<>(c._1, cs._2, c._2)));
                List<Tuple3<NPC, Integer, Integer>> ghosts = indexedChars.filter(c -> c._1 == 'G').map(ghost -> ghost.map1(g -> levelFactory.createGhost()));
                ghosts.forEach(ghost -> ghost._1.occupy(squares.get(ghost._2).get(ghost._3)));
                List<Square> playerPositions = indexedChars.filter(p -> p._1 == 'P').map(p -> squares.get(p._2).get(p._3));
                Board board = boardFactory.createBoard(squares.map(List::toArray).toArray());
                return levelFactory.createLevel(board, ghosts.map(Tuple3::_1), playerPositions);
            });
        }
    };
}

[Buggy Hunk]
List<Tuple3<NPC, Integer, Integer>> ghosts = indexedChars.filter(c -> c._1 == 'G')

[Patch]
List<Tuple3<NPC, Integer, Integer>> ghosts = indexedChars.filter(a -> a._1 == 'G')

[Demonstration 3]

[Buggy Method]
private static void wrire(String fileName, ArrayList<Record> records) {
    File file = new File(fileName);
    if (!file.exists()) {
        try {
            file.createNewFile();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
    try (FileWriter writer = new FileWriter(file, false)) {
        for (Record record : records) {
            String text = record.getId() + ";" + record.getUser().getId() + ";" + record.getLastname() + ";" + record.getName() + ";" + record.getSurname() + ";" + record.getPhone() + ";" + record.getPhoneHome() + ";" + record.getAdress() + ";" + record.getEmail() + ";";
            writer.write(text);
            writer.append('\n');
        }
        writer.flush();
    } catch (IOException ex) {
        ex.printStackTrace();
        ;
    }
}

[Buggy Hunk]
record.getPhoneHome()+";"+record.getAdress()+";"+record.getEmail()+";";

[Patch]
record.getPhoneHome()+";"+record.getAdress().replaceAll(";","")+";"+record.getEmail()+";";