[Demonstration 1]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_create_task);
    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    taskCreateButton = (Button) findViewById(R.id.finalizeTask);
    taskCreateButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent intent = new Intent(CreateTask.this, Tasks.class);
            startActivity(intent);
        }
    });
    Butt_Home = (Button) findViewById(R.id.Home_Button);
    Butt_Home.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent intent = new Intent(CreateTask.this, HomeScreen.class);
            startActivity(intent);
        }
    });
}

[Buggy Hunk]
taskCreateButton = (Button) findViewById(R.id.finalizeTask);

[Patch]
taskCreateButton = (Button) findViewById(R.id.taskCreate);

[Demonstration 2]

[Buggy Method]
@Override
public void onClick(View v) {
    Vibrator vibrate = (Vibrator) getSystemService(VIBRATOR_SERVICE);
    if (vibrate.hasVibrator()) {
        vibrate.vibrate(50);
    }
    Intent intent = new Intent();
    intent.setAction(Intent.ACTION_VIEW);
    intent.setDataAndType(Uri.parse(imgPhotoPath), "image/*");
    startActivity(intent);
}

[Buggy Hunk]
intent.setDataAndType(Uri.parse(imgPhotoPath), "image/*");

[Patch]
intent.setDataAndType(Uri.parse(photoPath), "image/*");

[Demonstration 3]

[Buggy Method]
public void setTop(int position) {
    System.out.println(position);
    top.setImageResource(images[position]);
}

[Buggy Hunk]
System.out.println(position);

[Patch]
page.setText(position + 1 + "");