[Demonstration 1]

[Buggy Method]
@Test
public void nonMeta() {
    assertThat(scanner.getNamesOfClassesWithMetaAnnotation(NonMetaAnnotation.class)).containsOnly(MetaAndNonMetaAnnotatedClass.class.getName(), NonMetaClass.class.getName());
}

[Buggy Hunk]
assertThat(scanner.getNamesOfClassesWithMetaAnnotation(NonMetaAnnotation.class)).containsOnly(

[Patch]
assertThat(scanner.getNamesOfClassesWithAnnotation(NonMetaAnnotation.class)).containsOnly(

[Demonstration 2]

[Buggy Method]
public void editPost(String postText, String postEdit) {
    clickActionOnPost("Menu", postText);
    clickPostToEdit();
    setEditTextAreaField(postEdit);
    clickSaveEdition();
}

[Buggy Hunk]
clickActionOnPost("Menu", postText);

[Patch]
clickActionOnPost(ChatterActions.MENU, postText);

[Demonstration 3]

[Buggy Method]
@Override
public Dataset apply(final Dataset dataset) {
    // Copy.
    Map<String, Class<? extends Component>> oldDataStructure = dataset.getDataStructure();
    ImmutableMap.Builder<String, Class<? extends Component>> newDataStructure = ImmutableMap.builder();
    checkArgument(oldDataStructure.keySet().containsAll(names.keySet()), "the dataset %s did not contain components with names %s", dataset, Sets.difference(names.keySet(), oldDataStructure.keySet()));
    for (String oldName : dataset.getDataStructure().keySet()) {
        String newName = names.getOrDefault(oldName, oldName);
        Class<? extends Component> newComponent;
        newComponent = roles.getOrDefault(newName, oldDataStructure.get(oldName));
        newDataStructure.put(newName, newComponent);
    }
    return new Dataset() {

        @Override
        public Set<List<Identifier>> cartesian() {
            return null;
        }

        @Override
        public DataStructure getDataStructure() {
            return new DataStructure(newDataStructure.build());
        }

        @Override
        public Stream<Tuple> get() {
            return dataset.get();
        }
    };
}

[Buggy Hunk]
newComponent = roles.getOrDefault(newName, oldDataStructure.get(oldName));

[Patch]
newComponent = roles.getOrDefault(oldName, oldDataStructure.get(oldName));