[Demonstration 1]

[Buggy Method]
@Override
public boolean execute(String sql, Map<String, String> info) throws EngineExecutionException {
    String command = String.format("echo \"%s\" | bin/spark_sql_engine.sh %s %s >logs/jobs/%s.log 2>&1", sql, jobId, jobId, getSparkExecutorNum(info));
    ProcessBuilder builder = new ProcessBuilder("bin/runner.py", command);
    Process process = null;
    try {
        process = builder.start();
        int ret = process.waitFor();
        return ret == 0;
    } catch (IOException | InterruptedException e) {
        if (process != null) {
            process.destroy();
        }
        throw new EngineExecutionException(e);
    }
}

[Buggy Hunk]
sql, jobId, jobId, getSparkExecutorNum(info));

[Patch]
sql, jobId, getSparkExecutorNum(info), jobId);

[Demonstration 2]

[Buggy Method]
private void setConnections(ObservableList<ReadOnlyPerson> personList) {
    ObservableList<GroupCard> mappedList = EasyBind.map(personList, (person) -> new GroupCard(person, personList.indexOf(person) + 1));
    groupListView.setItems(mappedList);
    groupListView.setCellFactory(listView -> new groupListViewCell());
    setEventHandlerForSelectionChangeEvent();
}

[Buggy Hunk]
groupListView.setCellFactory(listView -> new groupListViewCell());

[Patch]
groupListView.setCellFactory(listView -> new GroupListViewCell());