[Demonstration 1]

[Buggy Method]
public void drawHighways(GraphicsContext grid, ArrayList<ArrayList<Node>> graph, double cellSize) {
    Node ptr = null, neighbor = null;
    grid.setStroke(Color.MAROON);
    grid.setLineWidth(7);
    for (int y = 0; y < graph.size(); y++) {
        for (//for every node in the graph
        int x = 0; //for every node in the graph
        x < graph.get(y).size(); //for every node in the graph
        x++) {
            ptr = graph.get(y).get(x);
            if (//if they are a highway
            ptr.type == 'a' || ptr.type == 'b') {
                for (//connect them to their highway neighbors
                int i = 0; //connect them to their highway neighbors
                i < ptr.neighbors.size(); //connect them to their highway neighbors
                i++) {
                    neighbor = ptr.neighbors.get(i);
                    if (search.isnDiagonal(ptr, neighbor) && (neighbor.type == 'a' || neighbor.type == 'b'))
                        grid.strokeLine(ptr.x * cellSize + cellSize / 2 + ptr.x, ptr.y * cellSize + cellSize / 2 + ptr.y, neighbor.x * cellSize + cellSize / 2 + neighbor.x, neighbor.y * cellSize + cellSize / 2 + neighbor.y);
                }
            }
        }
    }
}

[Buggy Hunk]
grid.setLineWidth(7);

[Patch]
grid.setLineWidth(cellSize/2);

[Demonstration 2]

[Buggy Method]
public String printProductNames() {
    String out = "";
    for (Product a : findAll()) {
        out += "Product: " + a.getName() + ", Sold by: " + a.getSeller() + ", for: " + a.getCurrentPrice() + "." + "<br/><br/>";
    }
    return out;
}

[Buggy Hunk]
", for: " + a.getCurrentPrice() + "." + "<br/><br/>"  ;

[Patch]
", for: " + a.getStartingPrice() + "." + "<br/><br/>"  ;

[Demonstration 3]

[Buggy Method]
private void stopScanning() {
    mScanning = false;
    if (mScanMenuItem != null)
        mScanMenuItem.setTitle(R.string.start_scan);
    if (mScanProgressItem != null)
        mScanProgressItem.setActionView(null);
    // If we're already discovering, stop it
    if (mBluetoothAdapter.isDiscovering()) {
        mBluetoothAdapter.cancelDiscovery();
    }
}

[Buggy Hunk]
private void stopScanning() {

[Patch]
private synchronized void stopScanning() {