[Demonstration 1]

[Buggy Method]
@Override
public void onReceive(Context context, Intent intent) {
    Reminder reminder = (Reminder) intent.getSerializableExtra("reminder");
    NotificationCompat.Builder builder = new android.support.v4.app.NotificationCompat.Builder(context).setSmallIcon(R.drawable.ic_notification).setContentTitle(reminder.getTitle()).setContentText(reminder.getMessage()).setShowWhen(true).setOngoing(false).setPriority(android.support.v4.app.NotificationCompat.PRIORITY_DEFAULT).setDefaults(Notification.DEFAULT_VIBRATE).setColor(App.context.getResources().getColor(R.color.primary)).setLights(0xFFC2185B, 1000, 300).setAutoCancel(true);
    Intent resultIntent = new Intent(context, VocabularyDetailsActivity.class);
    resultIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);
    resultIntent.putExtra(VocabularyDetailsActivity.VOCAB_ID, reminder.getVocabularyId());
    PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT);
    builder.setContentIntent(resultPendingIntent);
    SystemSetting setting = SystemSettings.getCurrentSettings();
    if (setting.getRingingToneUri() == null) {
        builder.setDefaults(Notification.DEFAULT_VIBRATE | Notification.DEFAULT_SOUND);
    }
    Notification notification = builder.build();
    if (setting.getRingingToneUri() != null) {
        notification.sound = Uri.parse(setting.getRingingToneUri());
    }
    //App.notificationManager.notify((int) reminder.getTime().getTime(), builder.build());
    App.notificationManager.notify((int) reminder.getTime().getTime(), notification);
    ReminderManager.setLastReminder(reminder);
    ReminderManager.setImmediateReminder(reminder.getVocabularyId(), reminder.doesTriggersNext());
}

[Buggy Hunk]
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT);

[Patch]
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent, PendingIntent.FLAG_CANCEL_CURRENT);

[Demonstration 2]

[Buggy Method]
public static long monotonicNow() {
    return System.nanoTime() / 1000;
}

[Buggy Hunk]
return System.nanoTime() / 1000;

[Patch]
return System.nanoTime() / 1000 / 1000;

[Demonstration 3]

[Buggy Method]
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);
    if (resultCode == RESULT_OK)
        switch(requestCode) {
            case FROM_ADD_TEXT:
                {
                    content.setText(data.getStringExtra(getString(R.string.content)));
                    break;
                }
            case FROM_CHOOSE_FILE:
                {
                    new AsyncTask<String, Void, String>() {

                        @Override
                        protected String doInBackground(String... file) {
                            BufferedReader bufferedReader = null;
                            try {
                                bufferedReader = new BufferedReader(new FileReader(new File(file[0])));
                                String s = "", temp;
                                while ((temp = bufferedReader.readLine()) != null) s += "\n" + temp;
                                s = s.trim();
                                if (s.charAt(0) > 122 | s.charAt(0) < 48)
                                    return s.substring(1);
                                return s;
                            } catch (IOException e) {
                                Log.d("kk", e.toString());
                            }
                            return null;
                        }

                        @Override
                        protected void onPostExecute(String s) {
                            setList(s);
                        }
                    }.execute(data.getStringExtra("content_add"));
                    break;
                }
        }
}

[Buggy Hunk]
content.setText(data.getStringExtra(getString(R.string.content)));

[Patch]
setList(data.getStringExtra(getString(R.string.content)));