[Demonstration 1]

[Buggy Method]
private void decrementIndices(int index) {
    for (int i = index; i < objectCount; i++) {
        list[i - 1] = list[i];
    }
    list[size()] = null;
}

[Buggy Hunk]
for(int i = index; i < objectCount; i++) {

[Patch]
for(int i = index; i < size(); i++) {

[Demonstration 2]

[Buggy Method]
@Test
public void hasName() {
    assertEquals("Keith", customer.getName());
}

[Buggy Hunk]
assertEquals("Keith", customer.getName());

[Patch]
assertEquals("Keith", customer1.getName());

[Demonstration 3]

[Buggy Method]
public void testYesWorkflowCLI_Extract_InjectedExtractor_SourceOnly() throws Exception {
    String[] args = { "-c", "extract", "-s", "src/test/resources/simpleExample.py" };
    YesWorkflowCLI cli = new YesWorkflowCLI(stdoutStream, stderrStream);
    MockExtractor extractor = new MockExtractor();
    cli.extractor(extractor);
    assertFalse(extractor.extracted);
    int returnValue = cli.runForArgs(args);
    assertEquals(YesWorkflowCLI.YW_CLI_SUCCESS, returnValue);
    assertEquals("", stdoutBuffer.toString());
    assertEquals("", stderrBuffer.toString());
    assertTrue(extractor.extracted);
}

[Buggy Hunk]
String[] args = {"-c", "extract", "-s", "src/test/resources/simpleExample.py"};

[Patch]
String[] args = {"-c", "extract", "-s", TEST_RESOURCE_DIR + "pythonFileLowercase.py"};