[Demonstration 1]

[Buggy Method]
T call(Object... params) {
    return (T) DeferrableReflectionHelper.callMethod(this, "call", null, params);
}

[Buggy Hunk]
T call(Object... params) {

[Patch]
default T call(Object... params) throws Exception {

[Demonstration 2]

[Buggy Method]
@RequestMapping(value = "/new", method = RequestMethod.POST)
@ResponseBody
public ResponseEntity<JsonNode> addScoreForChallenge(@RequestParam("token") String token, @RequestParam("team_domain") String teamId, @RequestParam("user_id") String challengeManagerFinaxysProfileId, @RequestParam("text") String arguments) {
    if (propertiesAreNotEqual("verification_token", token)) {
        Message message = new Message("Wrong verification token !");
        return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
    }
    ;
    if (propertiesAreNotEqual("finaxys_team_name", teamId)) {
        Message message = new Message("Only for FinaxysTM members !");
        return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
    }
    ;
    if (userIsNotChallengeManager(challengeManagerFinaxysProfileId)) {
        Message message = new Message("You don't have challenge manager authorization !");
        return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
    }
    ;
    AddChallengeScoreArgumentsMatcher addChallengeScoreArgumentsMatcher = new AddChallengeScoreArgumentsMatcher();
    if (!addChallengeScoreArgumentsMatcher.isCorrectAddChallengeScoreArguments(arguments)) {
        Message message = new Message("Arguments should suit ' .... @Username ... 20 ..... <challengeName> challenge ..' Pattern !");
        return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
    }
    ;
    String extractFinaxysProfileId = extractFinaxysProfileId(arguments);
    String challengeName = addChallengeScoreArgumentsMatcher.getChallengeName(arguments);
    Challenge challenge = challengeRepository.getByCriterion("name", challengeName).get(0);
    int score = Integer.parseInt(addChallengeScoreArgumentsMatcher.getScore(arguments));
    FinaxysProfile_Challenge finaxysProfile_challenge = new FinaxysProfile_Challenge(score, challenge.getId(), extractFinaxysProfileId);
    if (finaxysProfileChallengeRepository.addEntity(finaxysProfile_challenge) == null) {
        Message message = new Message("A problem has occured! The user may have a score for this challengs already !");
        return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
    }
    Message message = new Message("Score has been added !");
    return new ResponseEntity(objectMapper.convertValue(message, JsonNode.class), HttpStatus.OK);
}

[Buggy Hunk]
String extractFinaxysProfileId = extractFinaxysProfileId(arguments);

[Patch]
String extractFinaxysProfileId = addChallengeScoreArgumentsMatcher.getFinaxysProfileId(arguments);

[Demonstration 3]

[Buggy Method]
public static Result service(String ownerName, String projectName, String service, boolean isAdvertise) throws IOException, UnsupportedOperationException, ServletException {
    if (!isSupportedService(service)) {
        return forbidden(String.format("Unsupported service: '%s'", service));
    }
    Project project = Project.findByOwnerAndProjectName(ownerName, projectName);
    if (project == null) {
        return notFound();
    }
    models.User user = UserApp.currentUser();
    if (!isAllowed(project, service)) {
        if (user.isAnonymous()) {
            return BasicAuthAction.unauthorized(response());
        } else {
            // If you want the Git client showing your custom message to
            // the user, the Content-Type should be exact "text/plain"
            // without any parameter. For more details, see the code at
            // https://github.com/git/git/commit/426e70d4a11ce3b4f70636d57c6a0ab16ae08a00#diff-eea0ad565ec5903a11b6023755d491cfR154
            response().setHeader("Content-Type", "text/plain");
            return forbidden(String.format("'%s' has no permission to '%s/%s'.", user.name, ownerName, projectName));
        }
    }
    if (isAdvertise) {
        return ok(RepositoryService.gitAdvertise(project, service, response()));
    } else {
        if (request().body().isMaxSizeExceeded()) {
            return status(REQUEST_ENTITY_TOO_LARGE);
        } else {
            user.visits(project);
            return ok(RepositoryService.gitRpc(project, service, request(), response()));
        }
    }
}

[Buggy Hunk]
user.name, ownerName, projectName));

[Patch]
user.loginId, ownerName, projectName));