[Demonstration 1]

[Buggy Method]
protected String insertBandDataToString(String resultStr) {
    List<String> parametersToInsert = new ArrayList<String>();
    Matcher matcher = UNIVERSAL_ALIAS_PATTERN.matcher(resultStr);
    while (matcher.find()) {
        parametersToInsert.add(unwrapParameterName(matcher.group()));
    }
    for (String parameterName : parametersToInsert) {
        BandPathAndParameterName bandPathAndParameterName = separateBandNameAndParameterName(parameterName);
        BandData bandData = findBandByPath(bandPathAndParameterName.getBandPath());
        Object value = bandData.getData().get(bandPathAndParameterName.getParameterName());
        String fullParameterName = bandData.getName() + "." + parameterName;
        String valueStr = formatValue(value, parameterName, fullParameterName);
        resultStr = inlineParameterValue(resultStr, parameterName, valueStr);
    }
    return resultStr;
}

[Buggy Hunk]
List<String> parametersToInsert = new ArrayList<String>();

[Patch]
List<String> parametersToInsert = new ArrayList<>();

[Demonstration 2]

[Buggy Method]
public boolean takeAim(float playerShipX, float playerShipLength) {
    // If near the player
    if ((playerShipX + playerShipLength > x && playerShipX + playerShipLength < x + length) || (playerShipX > x && playerShipX < x + length)) {
        if (generator.nextInt(20) == 0) {
            return true;
        }
    } else {
        if (generator.nextInt(1000) == 0) {
            return true;
        }
    }
    return false;
}

[Buggy Hunk]
if(generator.nextInt(20) == 0) {

[Patch]
if(generator.nextInt(chanceOfFire) == 0) {

[Demonstration 3]

[Buggy Method]
private boolean isInsideBounds(int x, int y) {
    return x > 0 && x < fieldWidth && y > 0 && y < fieldHeight;
}

[Buggy Hunk]
return x > 0 && x < fieldWidth && y > 0 && y < fieldHeight;

[Patch]
return x >= 0 && x < fieldWidth && y >= 0 && y < fieldHeight;