[Demonstration 1]

[Buggy Method]
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_match_info);
    ButterKnife.bind(this);
    setSupportActionBar(toolbar);
    db = new DatabaseAdapter(this);
    db.open();
    Match<?> match = db.getMatch(getMatchId());
    playerName.setText(match.getPlayer().getName());
    opponentName.setText(match.getOpponent().getName());
    setToolbarTitle(match.getGameStatus().gameType);
    infoFragment = (MatchInfoFragment) getSupportFragmentManager().findFragmentByTag(INFO_FRAGMENT_TAG);
    if (infoFragment == null) {
        infoFragment = MatchInfoFragment.createMatchInfoFragment(getMatchId());
        getSupportFragmentManager().beginTransaction().add(R.id.fragment_container, infoFragment, INFO_FRAGMENT_TAG).commit();
    }
}

[Buggy Hunk]
setToolbarTitle(match.getGameStatus().gameType);

[Patch]
setToolbarTitle(match.getGameStatus().gameType.toString());

[Demonstration 2]

[Buggy Method]
private FootballMatchBuilder setWinner() {
    if (!match.getResult().contains(match.getResultDelimiter())) {
        throw new IllegalArgumentException("Result " + match.getResult() + " not contains the delimiter " + match.getResultDelimiter());
    }
    String winner;
    if (match.getResult().equals(ResultMessages.UNKNOWN_RESULT) || !match.getMatchStatus().equals(MatchStatus.FINISHED)) {
        winner = ResultMessages.UNKNOWN_WINNER;
    } else {
        winner = getWinnerFromResult(match, match.getResult());
        setStatus(MatchStatus.FINISHED);
    }
    match.setWinner(winner);
    return this;
}

[Buggy Hunk]
if (match.getResult().equals(ResultMessages.UNKNOWN_RESULT) || !match.getMatchStatus().equals(MatchStatus.FINISHED)) {

[Patch]
if (!match.getMatchStatus().equals(MatchStatus.FINISHED)) {

[Demonstration 3]

[Buggy Method]
@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().antMatchers("/webjars/**").//actuator endpoints
    antMatchers("/refresh").antMatchers("/env").antMatchers("/health").antMatchers("/hystrix.stream").antMatchers("/images/**").antMatchers("/css/**").antMatchers("/js/**");
}

[Buggy Hunk]
.antMatchers("/images/**").antMatchers("/css/**").antMatchers("/js/**");

[Patch]
.antMatchers("/images/**").antMatchers("/css/**").antMatchers("/js/**").antMatchers("/quote/**");