[Demonstration 1]

[Buggy Method]
@Test
public void testSetDirection3() {
    Velocity out = new Velocity(35, 45);
    /* Assert we have a valid object */
    assertNotNull(out);
    Integer s = (Integer) PrivateAccessor.getPrivateField(out, "direction");
    assertEquals(s, 45);
}

[Buggy Hunk]
assertEquals (s, 45);

[Patch]
assertEquals (Double.valueOf(s), Double.valueOf(45));

[Demonstration 2]

[Buggy Method]
private BuildCommand sync(String workingDir, String revision) {
    return exec("p4", "-d", workingDir, "sync", "@" + parseLong(revision)).setCommandEnvVars(envVars());
}

[Buggy Hunk]
return exec("p4", "-d", workingDir, "sync", "@" + parseLong(revision)).setCommandEnvVars(envVars());

[Patch]
return exec("p4", "-d", workingDir, "sync", "-f", "@" + parseLong(revision)).setCommandEnvVars(envVars());

[Demonstration 3]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    TextView view = (TextView) findViewById(R.id.text_one);
    view.setText(Html.fromHtml(getString(R.string.test_html)));
}

[Buggy Hunk]
view.setText(Html.fromHtml(getString(R.string.test_html)));

[Patch]
view.setText(getResources().getString(R.string.lorem_ipsum_extended));