[Demonstration 1]

[Buggy Method]
@Override
public void onClick(DialogInterface dialog, int which) {
    //saving to shared preferances
    SharedPreferences sharedPref = this.getSharedPreferences("PODEMU_PREFS", Context.MODE_PRIVATE);
    SharedPreferences.Editor editor = sharedPref.edit();
    editor.putString("ControlledAppProcessName", appInfos.get(which).processName);
    editor.commit();
    // loading information to the activity
    setCtrlApplicationInfo();
}

[Buggy Hunk]
editor.putString("ControlledAppProcessName", appInfos.get(which).processName);

[Patch]
editor.putString("ControlledAppProcessName", appInfos.get(which).packageName);

[Demonstration 2]

[Buggy Method]
private Iterable<String> getJsonResourceFiles() {
    final List<String> files = new ArrayList<>();
    final String fileNames = readInputStream(Planout4jConfigClasspathBackend.class.getClassLoader().getResourceAsStream(String.format("%s/", getPlanoutSubdirectory())));
    for (String fileName : fileNames.split(System.getProperty("line.separator"))) {
        if (fileName.endsWith(".json")) {
            files.add(fileName);
        }
    }
    return files;
}

[Buggy Hunk]
for (String fileName : fileNames.split(System.getProperty("line.separator"))) {

[Patch]
for (String fileName : fileNames.split("\\n")) {

[Demonstration 3]

[Buggy Method]
public List<String> runMaven(File workingDir, String... arguments) {
    InvocationRequest request = new DefaultInvocationRequest();
    request.setGoals(asList(arguments));
    request.setBaseDirectory(workingDir);
    request.setDebug(false);
    request.setShowErrors(false);
    Invoker invoker = new DefaultInvoker();
    if (mvnHome == null) {
        System.out.println("Maven Home: " + systemMavenHome());
    } else {
        System.out.println("Maven Home: " + mvnHome);
    }
    invoker.setMavenHome(mvnHome);
    CollectingLogOutputStream logOutput = new CollectingLogOutputStream(logToStandardOut);
    invoker.setOutputHandler(new PrintStreamHandler(new PrintStream(logOutput), true));
    //invoker.setErrorHandler(new PrintStreamHandler(new PrintStream(logOutput), true));
    int exitCode;
    try {
        InvocationResult result = invoker.execute(request);
        exitCode = result.getExitCode();
    } catch (Exception e) {
        throw new MavenExecutionException(1, logOutput.getLines());
    }
    List<String> output = logOutput.getLines();
    if (exitCode != 0) {
        throw new MavenExecutionException(exitCode, output);
    }
    return output;
}

[Buggy Hunk]
request.setDebug(false);

[Patch]
request.setDebug(true);