[Demonstration 1]

[Buggy Method]
public void reset() {
    spel.resetLevens();
    spel.resetScore();
    this.huidigeAantalBolletjes = this.totaalAantalBolletjes;
}

[Buggy Hunk]
this.huidigeAantalBolletjes = this.totaalAantalBolletjes;

[Patch]
this.huidigeAantalBolletjes = 0;

[Demonstration 2]

[Buggy Method]
public void updateIsAbove() {
    if (head.getPosition()[0] == 0) {
        this.isAbove = false;
    } else {
        if (gameboard.getSquares()[head.getPosition()[0] + 1][head.getPosition()[1]] == 1) {
            this.isAbove = true;
        } else {
            this.isAbove = false;
        }
    }
}

[Buggy Hunk]
if(gameboard.getSquares()[head.getPosition()[0] + 1][head.getPosition()[1]] == 1) {

[Patch]
if(gameboard.getSquares()[head.getPosition()[0] + 1][head.getPosition()[1]] > 0) {

[Demonstration 3]

[Buggy Method]
@Override
protected Result doInBackground(String... params) {
    String code = params[0];
    try {
        final AccessToken token = authorizationService.getToken(new TokenRequest(code, BuildConfig.TRAKT_CLIENT_ID, BuildConfig.TRAKT_SECRET, BuildConfig.TRAKT_REDIRECT_URL, GrantType.AUTHORIZATION_CODE));
        final String accessToken = token.getAccessToken();
        final SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(context);
        settings.edit().putString(Settings.TRAKT_TOKEN, accessToken).apply();
        userToken.setToken(accessToken);
        final UserSettings userSettings = usersService.getUserSettings();
        Settings.clearProfile(context);
        Settings.updateProfile(context, userSettings);
        return new Result(accessToken);
    } catch (RetrofitError e) {
        switch(e.getKind()) {
            case NETWORK:
                return new Result(R.string.error_network);
            case HTTP:
                Response response = e.getResponse();
                if (response != null) {
                    int status = response.getStatus();
                    if (status >= 500 && status < 600) {
                        return new Result(R.string.login_error_5xx);
                    }
                }
            case CONVERSION:
            case UNEXPECTED:
        }
        Timber.e(e, "Unable to get token");
        return new Result(R.string.login_error_unknown);
    }
}

[Buggy Hunk]
return new Result(R.string.error_network);

[Patch]
return new Result(R.string.login_error_network);