[Demonstration 1]

[Buggy Method]
boolean parseShiftExpression() {
    //            mixin(traceEnterAndExit!(__FUNCTION__));
    final Marker marker = enter_section_(builder);
    final boolean b = parseLeftAssocBinaryExpression("ShiftExpression", "AddExpression", tok("<<"), tok(">>"), tok(">>>"));
    exit_section_(builder, marker, SHIFT_EXPRESSION_, b);
    return b;
}

[Buggy Hunk]
final Marker marker = enter_section_(builder);

[Patch]
final Marker marker = enter_section_modified(builder);

[Demonstration 2]

[Buggy Method]
@ReactMethod
public void showUrl(String url, boolean closeOnLoad, Callback callback) {
    final Activity activity = getCurrentActivity();
    this.callback = callback;
    if (activity != null) {
        CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder();
        CustomTabsIntent customTabsIntent = builder.build();
        customTabsIntent.intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
        customTabsIntent.launchUrl(activity, Uri.parse(url));
    } else {
        final Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.addFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
        intent.setData(Uri.parse(url));
        getReactApplicationContext().startActivity(intent);
    }
}

[Buggy Hunk]
getReactApplicationContext().startActivity(intent);

[Patch]
getReactApplicationContext().startActivityForResult(intent, 666, new Bundle());;

[Demonstration 3]

[Buggy Method]
public void adjustOdds() {
    Arrays.sort(horses, (o1, o2) -> o1.getOdds() - o2.getOdds());
    int oddsDifference = horses[0].getOdds() - 1;
    for (int i = 0; i < horses.length; i++) {
        horses[i].setOdds(horses[i].getOdds() - oddsDifference);
    }
}

[Buggy Hunk]
int oddsDifference = horses[0].getOdds() - 1;

[Patch]
int oddsDifference = horses[0].getOdds() - 2;