[Demonstration 1]

[Buggy Method]
public AbstractSyntaxTree convert(JSONObject ast) {
    JSONObject variables = ast.getJSONObject("variableMap");
    constructVariableMap(variables);
    List<ProcessNode> processes = new ArrayList<ProcessNode>();
    JSONArray jsonProcesses = ast.getJSONArray("processes");
    for (int i = 0; i < jsonProcesses.length(); i++) {
        ProcessNode process = convertProcessNode(jsonProcesses.getJSONObject(i));
        processes.add(process);
    }
    List<OperationNode> operations = new ArrayList<OperationNode>();
    JSONArray jsonOperations = ast.getJSONArray("operations");
    for (int i = 0; i < jsonOperations.length(); i++) {
        OperationNode operation = convertOperationNode(jsonOperations.getJSONObject(i));
        operations.add(operation);
    }
    return new AbstractSyntaxTree(processes, operations);
}

[Buggy Hunk]
return new AbstractSyntaxTree(processes, operations);

[Patch]
return new AbstractSyntaxTree(processes, operations, variableMap);

[Demonstration 2]

[Buggy Method]
protected List<? extends Object> getPageElementsByXPath(HtmlPage page, String xPath) {
    setTestInfo("Getting page: " + page.getUrl().toString() + " ,elements by xPath: " + xPath);
    return page.getByXPath(xPath);
}

[Buggy Hunk]
protected List<? extends Object> getPageElementsByXPath(HtmlPage page, String xPath) {

[Patch]
protected List<?> getPageElementsByXPath(HtmlPage page, String xPath) {

[Demonstration 3]

[Buggy Method]
public void notifyChanged(Notification notification) {
    super.notifyChanged(notification);
    if (notification.getFeature() instanceof EAttributeImpl) {
        if (notification.getNotifier() instanceof BoundsImpl) {
            reposition(((BoundsImpl) notification.getNotifier()).getX(), ((BoundsImpl) notification.getNotifier()).getY(), ((BoundsImpl) notification.getNotifier()).getWidth(), getTreeHeight());
            FigureCanvas canvas = (FigureCanvas) getViewer().getControl();
            canvas.getViewport().repaint();
        }
    }
}

[Buggy Hunk]
getTreeHeight());

[Patch]
TreeNodeUtils.getTreeHeight(inputRootTreeNode, LEAF_HEIGHT));