[Demonstration 1]

[Buggy Method]
private void createLabelStyle() {
    labelStyle = new LabelStyle();
    labelStyle.font = font;
    labelStyle.fontColor = Color.BLACK;
}

[Buggy Hunk]
labelStyle.font = font;

[Patch]
labelStyle.font = font();

[Demonstration 2]

[Buggy Method]
private void openResponseSetSelectDialog() {
    final Dialog alert = new Dialog(this);
    alert.setContentView(R.layout.response_set_dialog);
    alert.setCancelable(true);
    alert.getWindow().setBackgroundDrawableResource(android.R.color.transparent);
    alert.getWindow().setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
    ArrayList<QuestionSet> sets = new ArrayList<QuestionSet>();
    if (interviewType.equals("household"))
        sets = CRUDFlinger.getQuestionSets("HOUSEHOLD");
    else if (interviewType.equals("area"))
        sets = CRUDFlinger.getQuestionSets("AREA");
    // final sets are the result of either household or area sets
    final ArrayList<QuestionSet> finalSets = sets;
    QuestionSetSelectionAdapter adapter = new QuestionSetSelectionAdapter(this, sets);
    final ListView list = (ListView) alert.findViewById(R.id.list_view);
    list.setAdapter(adapter);
    list.setOnItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> adapterView, View viewa, int i, long l) {
            //clones the questions set selected
            QuestionSet clonedSet = addResponseSet(finalSets.get(i));
            alert.dismiss();
            goToDataCollect(responseSets.indexOf(clonedSet));
        }
    });
    Button cancel = (Button) alert.findViewById(R.id.cancel_button);
    cancel.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            alert.dismiss();
        }
    });
    alert.show();
}

[Buggy Hunk]
QuestionSetSelectionAdapter adapter = new QuestionSetSelectionAdapter(this, sets);

[Patch]
QuestionSetSelectionAdapter adapter = new QuestionSetSelectionAdapter(this, finalSets);

[Demonstration 3]

[Buggy Method]
public int getRandomColor() {
    return Color.argb(255, 0, 0, 255);
    //will make this random
}

[Buggy Hunk]
return Color.argb(255, 0, 0, 255);

[Patch]
return Color.argb(255, 255, 0, 0);