[Demonstration 1]

[Buggy Method]
private void setFrogGenerationAlgorithm() {
    int probWorldLeftBound = 0;
    Array<RangeMap> rangeMaps = new Array<RangeMap>();
    for (FrogMetaData frogMetaData : this.levelMetaData.levelRelatedFrogs) {
        float spawnProb = frogMetaData.spawnProb;
        RangeMap rangeMap = new RangeMap();
        rangeMap.minBound = probWorldLeftBound;
        rangeMap.maxBound = (int) Math.ceil(spawnProb * 100) + probWorldLeftBound;
        rangeMap.frogClass = frogMetaData.frogClass;
        rangeMaps.add(rangeMap);
        probWorldLeftBound += rangeMap.maxBound + 1;
    }
    this.randomFrogClassGenerator = new RandomFrogClassGenerator(rangeMaps, 0, probWorldLeftBound);
}

[Buggy Hunk]
probWorldLeftBound += rangeMap.maxBound + 1;

[Patch]
probWorldLeftBound = rangeMap.maxBound + 1;

[Demonstration 2]

[Buggy Method]
@Override
public void presentResults(GetIssuesParmeter parameter, Stream<GetIssueResultItem> resultStream) {
    // Print to Console
    resultStream.forEach(item -> System.out.println(item.getDateTime().format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)) + "\t" + item.key + "\t" + item.changeAction + "\t" + item.summary + "\t" + parameter.jiraRootUrl + "/browse/" + item.key));
}

[Buggy Hunk]
.println(item.getDateTime().format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)) + "\t"

[Patch]
.println(item.created.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT)) + "\t"

[Demonstration 3]

[Buggy Method]
private SinkFieldConverter getConverter(Schema schema) {
    SinkFieldConverter converter;
    if (isSupportedLogicalType(schema)) {
        converter = logicalConverters.get(schema.type());
    } else {
        converter = converters.get(schema.type());
    }
    if (converter == null) {
        throw new ConnectException("error no registered converter found for " + schema.type().getName());
    }
    return converter;
}

[Buggy Hunk]
converter = logicalConverters.get(schema.type());

[Patch]
converter = logicalConverters.get(schema.name());