[Demonstration 1]

[Buggy Method]
private void turnEverythingOffIfCorrectTime(String offTimeAsString) {
    Calendar offTime = TimeUtils.parseTime(offTimeAsString);
    Calendar timeNow = Calendar.getInstance();
    if (offTime.get(Calendar.MINUTE) == timeNow.get(Calendar.MINUTE) && offTime.get(Calendar.HOUR_OF_DAY) == timeNow.get(Calendar.HOUR_OF_DAY)) {
        for (ScheduledItem item : itemsToSchedule) {
            lightwaveUtils.deactivate(item);
        }
        everythingOffRemeber.put(offTimeAsString, Calendar.getInstance());
    }
}

[Buggy Hunk]
Calendar offTime = TimeUtils.parseTime(offTimeAsString);

[Patch]
Calendar offTime = TimeUtils.parseTimeWithTodaysDate(offTimeAsString);

[Demonstration 2]

[Buggy Method]
@Test
public void relationTestUsingTextAndDisambiguate() {
    String text = "Angular.js has been out there for a while now and is definitely a popular option to take into" + " consideration when selecting a front end technology.";
    SAORelations relations = getConnector().relations(buildTestRequest(3));
    assertNotNull(relations);
    assertEquals("english", relations.getLanguage());
    assertEquals(text + "\n", relations.getText());
    assertEquals(3, relations.getRelations().size());
    assertEquals("Angular.js", relations.getRelations().get(0).getSubject().getText());
    assertTrue(relations.getUrl().isEmpty());
}

[Buggy Hunk]
SAORelations relations = getConnector().relations(buildTestRequest(3));

[Patch]
SAORelations relations = getConnector().relations(buildTestRequestForDisambiguateText(10, true));

[Demonstration 3]

[Buggy Method]
public void updateChildenOrientations() {
    Iterator<Limb> itr = attachedChildren.iterator();
    while (itr.hasNext()) {
        itr.next().updateWorldOrientation();
    }
}

[Buggy Hunk]
itr.next().updateWorldOrientation();

[Patch]
itr.next().parentRotated();