[Demonstration 1]

[Buggy Method]
static void invoke(String path, ParamsWrapper params, Object target, Map<String, Object> mapping) throws ValueParseException, InvocationTargetException, IllegalAccessException {
    Method method = (Method) mapping.get(path + _METHOD);
    if (method == null) {
        throw new NotFoundPathException("path not found: " + path);
    }
    String args = (String) mapping.get(path + _ARGS);
    String types = (String) mapping.get(path + _TYPES);
    boolean empty = args == null || args.length() == 0;
    if (!empty) {
        if (args.contains(",")) {
            String[] agrNames = args.split(",");
            String[] typeNames = types.split(",");
            Object[] arr = new Object[agrNames.length];
            for (int i = 0; i < agrNames.length; i++) {
                arr[i] = ValueParser.parse(params.get(agrNames[i]), typeNames[i]);
            }
            method.invoke(target, arr);
            return;
        }
        method.invoke(target, ValueParser.parse(args, types));
        return;
    }
    method.invoke(target);
}

[Buggy Hunk]
method.invoke(target, ValueParser.parse(args, types));

[Patch]
method.invoke(target, ValueParser.parse(params.get(args), types));

[Demonstration 2]

[Buggy Method]
public static void debugTrial(Variables variables, String trial, List<String> correctTrials) {
    String trial_test = "workflow_trial_6.xml";
    List<String> correctTrials_test = new ArrayList<>();
    correctTrials_test.add("workflow_trial_7.xml");
    correctTrials_test.add("workflow_trial_11.xml");
    correctTrials_test.add("workflow_trial_16.xml");
    correctTrials_test.add("workflow_trial_17.xml");
    correctTrials_test.add("workflow_trial_18.xml");
    correctTrials_test.add("workflow_trial_22.xml");
    correctTrials_test.add("workflow_trial_24.xml");
    correctTrials_test.add("workflow_trial_25.xml");
    correctTrials_test.add("workflow_trial_28.xml");
    correctTrials_test.add("workflow_trial_32.xml");
    List<Vertex> reasons = DebugTrials(trial_test, correctTrials_test, variables);
    List<Vertex> alwaysWrong = DebugTrialsAlwaysWrong(correctTrials_test, variables);
    DebugVisualizationScheme graphMode = new DebugVisualizationScheme("Debug_" + trial_test, alwaysWrong, reasons);
    variables.config.vertexModes.put("Debug_" + trial_test, graphMode);
    variables.config.InterfaceStatusFilters();
}

[Buggy Hunk]
List<Vertex> reasons = DebugTrials(trial_test, correctTrials_test, variables);

[Patch]
Map<String, List<Vertex>> reasons = DebugTrials(trial_test, correctTrials_test, variables);