[Demonstration 1]

[Buggy Method]
@Override
public void onReceive(Context context, Intent intent) {
    long oilIdAsLong = intent.getLongExtra(VEHICLE_OIL_ID_TEXT, DEFAULT_PASSED_VALUE);
    String oilIdAsString = String.valueOf(oilIdAsLong);
    int requestCode = UNIQUE_VALUE + Integer.parseInt(oilIdAsString);
    NotificationManager notificationManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
    Intent repeatingIntent = new Intent(context, ManageVehicle.class);
    repeatingIntent.putExtra(PASSED_VARIABLE_NAME, Integer.parseInt(oilIdAsString));
    repeatingIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
    PendingIntent pendingIntent = PendingIntent.getActivity(context, requestCode, repeatingIntent, PendingIntent.FLAG_UPDATE_CURRENT);
    Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    String notificationTitle = Vehicle.findById(Vehicle.class, oilIdAsLong).getManufacturer() + Vehicle.findById(Vehicle.class, oilIdAsLong).getModel();
    NotificationCompat.Builder builder = new NotificationCompat.Builder(context).setContentIntent(pendingIntent).setSmallIcon(R.drawable.oil_change_icon).setContentTitle(notificationTitle).setContentText("Oil needs changing").setSound(alarmSound).setAutoCancel(true);
    notificationManager.notify(requestCode, builder.build());
}

[Buggy Hunk]
String notificationTitle = Vehicle.findById(Vehicle.class, oilIdAsLong).getManufacturer() + Vehicle.findById(Vehicle.class, oilIdAsLong).getModel();

[Patch]
String notificationTitle = Vehicle.findById(Vehicle.class, oilIdAsLong).getManufacturer() + " " + Vehicle.findById(Vehicle.class, oilIdAsLong).getModel();

[Demonstration 2]

[Buggy Method]
private void initFixedLocParcels() {
    for (ExpressCentre s : expressCentres) {
        // if the station is not isolated
        if (s.reachableByGarage()) {
            addFixedLocParcel(s);
        }
    }
}

[Buggy Hunk]
addFixedLocParcel(s);

[Patch]
new Parcel(this).addFixedLocParcel(s);

[Demonstration 3]

[Buggy Method]
@Test
public void testHeightRecklessCar() {
    System.out.println("Height of a reckless car");
    Lane lane = new Lane(Lane.Direction.IDENTICAL);
    Vehicle recklessCar = new RecklessCar(lane, new Point(0, 0));
    Size expResult = new Size(14, 8);
    Size result = recklessCar.getSize();
    assertEquals(expResult.height, result.height, 0.001);
}

[Buggy Hunk]
Vehicle recklessCar = new RecklessCar(lane, new Point(0,0));

[Patch]
Vehicle recklessCar = new RecklessCar();