[Demonstration 1]

[Buggy Method]
public List<MovieDb> getSearchRes(final String srch, final int page) {
    List<MovieDb> searchRes = search.searchMovie(srch, 0, "en", true, page).getResults();
    return searchRes;
}

[Buggy Hunk]
public List<MovieDb> getSearchRes(final String srch, final int page) {

[Patch]
public final List<MovieDb> getSearchRes(final String srch, final int page) {

[Demonstration 2]

[Buggy Method]
private JSONObject login() throws IOException, JSONException {
    HttpResponse response = loginService.login(context, currentUser.getUserName(), currentUser.getUnauthenticatedPassword(), currentUser.getServerUrl());
    if (response != null && (response.getStatusLine().getStatusCode() == HttpStatus.SC_CREATED || response.getStatusLine().getStatusCode() == HttpStatus.SC_OK))
        return new JSONObject(getResponse(response));
    return null;
}

[Buggy Hunk]
HttpResponse response = loginService.login(context, currentUser.getUserName(), currentUser.getUnauthenticatedPassword(), currentUser.getServerUrl());

[Patch]
HttpResponse response = loginService.login(applicationContext, currentUser.getUserName(), currentUser.getUnauthenticatedPassword(), currentUser.getServerUrl());

[Demonstration 3]

[Buggy Method]
public Scheduler start() {
    executor.scheduleAtFixedRate(this, 0L, 10L, TimeUnit.SECONDS);
    log.info("Scheduler started; pulling dynamic config from " + config.getServerUrl());
    return this;
}

[Buggy Hunk]
executor.scheduleAtFixedRate(this, 0L, 10L, TimeUnit.SECONDS);

[Patch]
executor.scheduleAtFixedRate(this, 10L, 10L, TimeUnit.SECONDS);