[Demonstration 1]

[Buggy Method]
private void showNotification() {
    //Call this again to update an existing notification as well.
    Intent notificationIntent = new Intent(this, PlayActivity.class);
    notificationIntent.setAction(Config.ACTION.MAIN_ACTION);
    notificationIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
    PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);
    Intent previousIntent = new Intent(this, MusicService.class);
    previousIntent.setAction(Config.ACTION.PREV_ACTION);
    PendingIntent ppreviousIntent = PendingIntent.getService(this, 0, previousIntent, 0);
    Intent nextIntent = new Intent(this, MusicService.class);
    nextIntent.setAction(Config.ACTION.NEXT_ACTION);
    PendingIntent pnextIntent = PendingIntent.getService(this, 0, nextIntent, 0);
    Bitmap icon = BitmapFactory.decodeResource(getResources(), R.drawable.ic_music_note_black_24dp);
    Intent playIntent = new Intent(this, MusicService.class);
    ;
    int playButtonId;
    String playButtonString;
    if (player.isPlaying()) {
        playButtonId = R.drawable.ic_pause_white_24dp;
        playButtonString = "Pause";
        playIntent.setAction(Config.ACTION.PAUSE_ACTION);
    } else {
        playButtonId = R.drawable.ic_play_arrow_white_24dp;
        playButtonString = "Play";
        playIntent.setAction(Config.ACTION.PLAY_ACTION);
    }
    PendingIntent pplayIntent = PendingIntent.getService(this, 0, playIntent, 0);
    Notification notification = new NotificationCompat.Builder(this).setContentTitle("BeatPulse").setTicker("BeatPulse").setContentText(song.getName()).setSmallIcon(R.drawable.ic_music_note_black_24dp).setLargeIcon(Bitmap.createScaledBitmap(icon, 128, 128, false)).setContentIntent(pendingIntent).setOngoing(true).addAction(android.R.drawable.ic_media_previous, "Previous", ppreviousIntent).addAction(playButtonId, playButtonString, pplayIntent).addAction(android.R.drawable.ic_media_next, "Next", pnextIntent).setPriority(PRIORITY_MAX).setWhen(0).build();
    startForeground(Config.NOTIFICATION_ID.MUSIC_SERVICE, notification);
}

[Buggy Hunk]
Intent playIntent = new Intent(this, MusicService.class);;

[Patch]
Intent playIntent = new Intent(this, MusicService.class);

[Demonstration 2]

[Buggy Method]
@Override
public void handleActionMove(int index, Pointer pos) {
    super.handleActionMove(index, pos);
    if (null != selectedButton && selectedButton.isPressed() && !(selectedButton instanceof ToggleButton && ((ToggleButton) selectedButton).isChecked()) && Math.abs(y - pos.downY) > LABEL_HEIGHT / 2) {
        // scrolling, release the pressed button
        selectedButton.release();
        shouldPropagateTouchEvents = false;
    }
}

[Buggy Hunk]
.isChecked()) && Math.abs(y - pos.downY) > LABEL_HEIGHT / 2) {

[Patch]
.isChecked()) && Math.abs(pos.y - pos.downY) > LABEL_HEIGHT / 2) {

[Demonstration 3]

[Buggy Method]
@Override
public void run() {
    this._logger.info("The system is going to shutdown...");
    semaphore.release();
}

[Buggy Hunk]
semaphore.release();

[Patch]
Launcher.this._semaphore.release();