[Demonstration 1]

[Buggy Method]
@Override
public void initialize(Bootstrap<Configuration> bootstrap) {
    bootstrap.addBundle(new GuiceBundle(new StandardInjectorProvider(module)));
}

[Buggy Hunk]
bootstrap.addBundle(new GuiceBundle(new StandardInjectorProvider(module)));

[Patch]
bootstrap.addBundle(new GuiceBundle<>(new StandardInjectorProvider(module)));

[Demonstration 2]

[Buggy Method]
@Override
public QueryResponse getQueryResults(JobId job, QueryResultsOption... options) throws BigQueryException {
    final Map<BigQueryRpc.Option, ?> optionsMap = optionMap(options);
    return getQueryResults(job, options(), optionsMap);
}

[Buggy Hunk]
final Map<BigQueryRpc.Option, ?> optionsMap = optionMap(options);

[Patch]
Map<BigQueryRpc.Option, ?> optionsMap = optionMap(options);

[Demonstration 3]

[Buggy Method]
public int generateSequences(final boolean keepUnresolvables, final String lib, final String outPath) {
    this.outPath = outPath;
    HashSet<String> jarPaths = new HashSet();
    ArrayList<String> rootPaths = getRootPaths();
    getSourcePaths(new File("F:\\Study\\Research\\Re-implement LiveAPI\\TypeResolution_Oracle\\lib"), jarPaths, ".jar");
    new File(outPath).mkdirs();
    try {
        stLocations = new PrintStream(new FileOutputStream(outPath + "/locations.txt"));
        stSourceSequences = new PrintStream(new FileOutputStream(outPath + "/source.txt"));
        stTargetSequences = new PrintStream(new FileOutputStream(outPath + "/target.txt"));
        stLog = new PrintStream(new FileOutputStream(outPath + "/log.txt"));
    } catch (FileNotFoundException e) {
        if (testing)
            System.err.println(e.getMessage());
        return 0;
    }
    int numOfSequences = 0;
    for (String rootPath : rootPaths) {
        String[] sourcePaths = getSourcePaths(rootPath, new String[] { ".java" });
        @SuppressWarnings("rawtypes")
        Map options = JavaCore.getOptions();
        options.put(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_1_8);
        options.put(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, JavaCore.VERSION_1_8);
        options.put(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_1_8);
        ASTParser parser = ASTParser.newParser(AST.JLS8);
        parser.setCompilerOptions(options);
        parser.setEnvironment(jarPaths.toArray(new String[0]), new String[] {}, new String[] {}, true);
        parser.setResolveBindings(true);
        parser.setBindingsRecovery(false);
        StatTypeFileASTRequestor r = new StatTypeFileASTRequestor(keepUnresolvables, lib);
        try {
            parser.createASTs(sourcePaths, null, new String[0], r, null);
        } catch (Throwable t) {
            t.printStackTrace(stLog);
            if (testing) {
                System.err.println(t.getMessage());
                t.printStackTrace();
            }
        }
        numOfSequences += r.numOfSequences;
    }
    return numOfSequences;
}

[Buggy Hunk]
getSourcePaths(new File("F:\\Study\\Research\\Re-implement LiveAPI\\TypeResolution_Oracle\\lib"), jarPaths, ".jar");

[Patch]
getSourcePaths(new File(jarPath), jarPaths, ".jar");