[Demonstration 1]

[Buggy Method]
public ArrayList<MarkerOptions> getPharmacyMarkers(ArrayList<Element> elementList) {
    ArrayList<MarkerOptions> markerList = new ArrayList();
    for (Element element : elementList) {
        if (element != null) {
            markerList = fillMarkerList(element, IconsUtils.setPharmacyIcon(element));
        }
    }
    return markerList;
}

[Buggy Hunk]
markerList = fillMarkerList(element, IconsUtils.setPharmacyIcon(element));

[Patch]
markerList = fillMarkerList(markerList, element, IconsUtils.setPharmacyIcon(element));

[Demonstration 2]

[Buggy Method]
@Override
public void onReceive(Context context, Intent intent) {
    Log.d(TAG, "AccessTokenReceiver.onReceive");
    String accessToken = intent.getStringExtra(HttpRequestService.KEY_ACCESS_TOKEN_RESULT);
    User loggedUser = intent.getParcelableExtra(HttpRequestService.KEY_USER_RESULT);
    if (accessToken != null) {
        AuthorizationInfo.setAccessToken(accessToken);
        Intent loggedUserActivityIntent = new Intent(LoginActivity.this, UserActivity.class);
        loggedUserActivityIntent.setAction(LOGGED_USER_ACTION);
        loggedUserActivityIntent.putExtras(UserActivity.getStartExtras(loggedUser));
        startActivity(loggedUserActivityIntent);
    } else {
        Alerts.showConnectionFailedAlert(LoginActivity.this);
    }
}

[Buggy Hunk]
loggedUserActivityIntent.setAction(LOGGED_USER_ACTION);

[Patch]
loggedUserActivityIntent.setAction(UserActivity.LOGGED_USER_ACTION);

[Demonstration 3]

[Buggy Method]
@Override
public void onMessageReceived(String from, Bundle data) {
    notiId = (int) System.currentTimeMillis();
    Log.d("GcmListener Message: ", "Data: " + data.getString("gcm.notification.title"));
    String contentTitle = data.getString("gcm.notification.title");
    String contentText = data.getString("gcm.notification.body");
    Intent yesIn = new Intent("yes_intent");
    yesIn.putExtra("id", notiId);
    Intent noIn = new Intent("no_intent");
    noIn.putExtra("id", notiId);
    Intent yesOrNoIn = new Intent(this, YesOrNoIntent.class);
    yesOrNoIn.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
    PendingIntent yesOrNoPin = PendingIntent.getActivity(getApplicationContext(), 0, yesOrNoIn, PendingIntent.FLAG_UPDATE_CURRENT);
    //PendingIntent pendingIntent = PendingIntent.getActivity(getApplicationContext(), 0, new Intent(getApplicationContext(), MainActivity.class), PendingIntent.FLAG_ONE_SHOT);
    PendingIntent yesIntent = PendingIntent.getBroadcast(this, 0, yesIn, PendingIntent.FLAG_UPDATE_CURRENT);
    PendingIntent noIntent = PendingIntent.getBroadcast(this, 0, noIn, 0);
    Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
    NotificationCompat.Builder noti = (NotificationCompat.Builder) new NotificationCompat.Builder(getApplicationContext()).setSmallIcon(R.drawable.logo).setContentTitle(new Date().toString()).setContentText(contentText).setGroup("GreenHomes").setGroupSummary(true).addAction(new NotificationCompat.Action(R.drawable.thumbpup, "Yes", yesIntent)).addAction(new NotificationCompat.Action(R.drawable.thumbpdown, "No", noIntent)).setAutoCancel(true).setSound(defaultSoundUri).setContentIntent(yesOrNoPin);
    //NotificationManagerCompat notificationManager = NotificationManagerCompat.from(this);
    NotificationManager notificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
    notificationManager.notify(notiId, noti.build());
}

[Buggy Hunk]
PendingIntent noIntent = PendingIntent.getBroadcast(this, 0, noIn, 0);

[Patch]
PendingIntent noIntent = PendingIntent.getBroadcast(this, 0, noIn, PendingIntent.FLAG_UPDATE_CURRENT);