[Demonstration 1]

[Buggy Method]
@Override
protected void onPostExecute(Context context) {
    Log.d(AnkiDroidApp.TAG, "WidgetStatus.UpdateDeckStatusAsyncTask.onPostExecute()");
    MetaDB.storeWidgetStatus(context, mDecks);
    if (mediumWidget) {
        Intent intent;
        intent = new Intent(context, AnkiDroidWidgetMedium.UpdateService.class);
        intent.setAction(AnkiDroidWidgetMedium.UpdateService.ACTION_UPDATE);
        context.startService(intent);
    }
    if (smallWidget) {
        Intent intent;
        intent = new Intent(context, AnkiDroidWidgetSmall.UpdateService.class);
        context.startService(intent);
    }
    if (bigWidget) {
        Intent intent;
        intent = new Intent(context, AnkiDroidWidgetSmall.UpdateService.class);
        intent.setAction(AnkiDroidWidgetBig.UpdateService.ACTION_UPDATE);
        context.startService(intent);
    }
    if (notification) {
        Intent intent;
        intent = new Intent(context, NotificationService.class);
        context.startService(intent);
    }
}

[Buggy Hunk]
intent = new Intent(context, AnkiDroidWidgetSmall.UpdateService.class);

[Patch]
intent = new Intent(context, AnkiDroidWidgetBig.UpdateService.class);

[Demonstration 2]

[Buggy Method]
@Get("json")
public Student loginStudent() {
    if (!RestApp.getInstance().authenticate(getRequest(), getResponse())) {
        throw new NotAuthorizedException();
    }
    String email = "";
    try {
        email = getAttribute("email");
    } catch (Exception e) {
        throw new GenericException("Please provide an email!");
    }
    return ss.getStudent(email);
}

[Buggy Hunk]
email = getAttribute("email");

[Patch]
email = getQueryValue("email");

[Demonstration 3]

[Buggy Method]
public static Intent makeNotificationIntent(Context context, String msg) {
    Intent intent = new Intent(context, MapsActivity.class);
    intent.putExtra(NOTIFICATION_MSG, msg);
    return intent;
}

[Buggy Hunk]
Intent intent = new Intent( context, MapsActivity.class );

[Patch]
Intent intent = new Intent( context, ProfileActivity.class );