[Demonstration 1]

[Buggy Method]
public void createNewRAVESettings() throws InterruptedException {
    homePage.openAdmin();
    adminPage.manageModules();
    modulesPage.openEbodacSettings();
    Long startTime = Long.valueOf(System.currentTimeMillis());
    while (System.currentTimeMillis() - startTime.longValue() < START_TIME_LONG_VALUE) {
        try {
            ebodacSettingsPage.enableRAVE();
            ebodacSettingsPage.setHostName();
            ebodacSettingsPage.setPort();
            ebodacSettingsPage.setRemoteFolder();
            ebodacSettingsPage.setUsername();
            ebodacSettingsPage.setPassword();
            ebodacSettingsPage.setEmail();
        } catch (Exception e) {
            Log.info("createNewRAVESettings exception");
        }
    }
    ebodacSettingsPage.saveValues();
}

[Buggy Hunk]
Log.info("createNewRAVESettings exception");

[Patch]
LOGGER.info("CreateNewRAVESettings exception");

[Demonstration 2]

[Buggy Method]
public void ProductDetailsAddButtonOnClick(View view) {
    Intent intent = new Intent();
    EditText Amount = (EditText) this.findViewById(R.id.Amount_To_Add_Box);
    String query = Amount.getText().toString();
    intent.putExtra(this.getResources().getString(R.string.search_details_transaction_extras_key), this.transaction, query);
    this.finish();
}

[Buggy Hunk]
intent.putExtra(this.getResources().getString(R.string.search_details_transaction_extras_key),this.transaction, query);

[Patch]
intent.putExtra(this.getResources().getString(R.string.search_details_transaction_extras_key), query);

[Demonstration 3]

[Buggy Method]
@Override
public View getView(int position, View convertView, ViewGroup parent) {
    View grid;
    if (convertView == null) {
        grid = new View(mContext);
        LayoutInflater inflater = getLayoutInflater();
        grid = inflater.inflate(R.layout.grid_item, parent, false);
    } else {
        grid = (View) convertView;
    }
    //sets ImageButton (with id "imageButton" in grid_item.xml) to the image at mThumbIds[position]
    ImageButton imageButton = (ImageButton) grid.findViewById(R.id.imageButton);
    imageButton.setImageResource(mThumbIds[position]);
    if (position == 0) {
        imageButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                Intent intent = new Intent(mContext, ReportIncidentActivity.class);
                startActivity(intent);
            }
        });
    }
    if (position == 1) {
        imageButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                Intent intent = new Intent(mContext, TrackingActivity.class);
                startActivity(intent);
            }
        });
    }
    if (position == 2) {
        imageButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                Intent intent = new Intent(mContext, CaptureActivity.class);
                startActivity(intent);
            }
        });
    }
    if (position == 3) {
        imageButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                Intent intent = new Intent(mContext, InfoActivity.class);
                startActivity(intent);
            }
        });
    }
    if (position == 4) {
        imageButton.setOnClickListener(new View.OnClickListener() {

            @Override
            public void onClick(View arg0) {
                Intent i = new Intent(MainActivity.this, UploadActivity.class);
                i.putExtra("filePath", imageUri);
                i.putExtra("isImage", true);
                startActivity(i);
            }
        });
    }
    return grid;
}

[Buggy Hunk]
Intent intent = new Intent(mContext, TrackingActivity.class);

[Patch]
Intent intent = new Intent(mContext, TrackingChoice.class);