[Demonstration 1]

[Buggy Method]
@Override
public void onLoadMovieSuccess(List<Movie> movies) {
    if (movies != null && mMainView != null) {
        mData = movies;
        mMainView.setItems(movies);
        mMainView.hideProgress();
        MainPresenterImpl.this.type = this.type;
    }
}

[Buggy Hunk]
MainPresenterImpl.this.type = this.type;

[Patch]
MainPresenterImpl.type = this.type;

[Demonstration 2]

[Buggy Method]
public void setConfig(final String config) {
    if (config.startsWith("http")) {
        this.config = config;
    } else if (Artifact.isArtifact(config)) {
        Artifact temp = new Artifact(config);
        String classifier = temp.getClassifier();
        if (classifier == null || !classifier.equals("deploy")) {
            logger.info("Setting classifier to \"deploy\" for " + temp.getGAV());
            classifier = "deploy";
        }
        String type = temp.getType();
        if (type == null || !type.equals("config")) {
            logger.info("Setting type to \"config\" for " + temp.getGAV());
            type = "config";
        }
        this.config = new Artifact(temp.getGroupId(), temp.getArtifactId(), temp.getVersion(), type, classifier).getGAV();
    } else if (!config.startsWith("/")) {
        this.config = System.getenv("SORCER_HOME") + File.separatorChar + config;
    } else {
        this.config = config;
    }
}

[Buggy Hunk]
} else if(!config.startsWith("/")) {

[Patch]
} else if(!config.startsWith("/") && !config.matches("^([A-Za-z]):.*$")) {

[Demonstration 3]

[Buggy Method]
static public Scope findModuleScope(Scope s) {
    Objects.requireNonNull(s);
    // find module scope up the hierarchy
    Scope currentScope = s;
    while (!isModuleScope(currentScope)) {
        currentScope = currentScope.getEnclosingScope();
        // illegal reference, there is no module to anchor from
        // this should never happen, as all code has an enclosing module
        if (currentScope == null) {
            throw new AssertionError("Cannot find enclosing module");
        }
    }
    return currentScope;
}

[Buggy Hunk]
static public Scope findModuleScope(Scope s){

[Patch]
private static Scope findModuleScope(Scope s){