[Demonstration 1]

[Buggy Method]
private List<GeneratedTweet> getTweetList() {
    return (List<GeneratedTweet>) btTweetRepo.findAll();
}

[Buggy Hunk]
return (List<GeneratedTweet>) btTweetRepo.findAll();

[Patch]
return (List<GeneratedTweet>) btTweetRepo.getByConfig(config);

[Demonstration 2]

[Buggy Method]
@Override
public Issue addIssue(Issue issue) {
    if (issue.getIssueId() == null) {
        issue = new Issue(idGenerator.getNextId(), issue.getTitle(), issue.getDescription());
        issueRepository.save(issue);
    }
    throw new BadRequestException("Issue already added, use update instead");
}

[Buggy Hunk]
issueRepository.save(issue);

[Patch]
return issueRepository.save(issue);

[Demonstration 3]

[Buggy Method]
@Override
public void postIssueCreation(Issue issue) {
    postToChannel(channelMapper.getChannel(issue), issue);
}

[Buggy Hunk]
postToChannel(channelMapper.getChannel(issue), issue);

[Patch]
postToChannel(channelMapper.getChannel(issue), buildNewIssueMessage(issue));