[Demonstration 1]

[Buggy Method]
public Group draw(PannableCanvas canvas, NodeGestures nodeGestures) {
    CoordinateDetermination cdm = new CoordinateDetermination(dbm);
    Coordinate[] coords = cdm.calcCoords();
    ArrayList<Integer> from = dbm.getDBReader().getAllFromID();
    ArrayList<Integer> to = dbm.getDBReader().getAllToID();
    int maxX = getMaxX(coords);
    int maxY = getMaxY(coords);
    Group group = new Group();
    for (int i = 0; i < from.size(); i++) {
        int fromID = from.get(i);
        int toID = to.get(i);
        System.out.println(i);
        Path path = drawPath(coords[fromID - 1], coords[toID - 1], maxX, maxY);
        path.addEventFilter(MouseEvent.MOUSE_PRESSED, nodeGestures.getOnMousePressedEventHandler());
        path.addEventFilter(MouseEvent.MOUSE_DRAGGED, nodeGestures.getOnMouseDraggedEventHandler());
        path.setStrokeWidth(dbm.getDBReader().countGenomesInLink(fromID, toID));
        canvas.getChildren().add(path);
    }
    return group;
}

[Buggy Hunk]
path.setStrokeWidth(dbm.getDBReader().countGenomesInLink(fromID, toID));

[Patch]
path.setStrokeWidth(0.01 + 0.003 * dbm.getDBReader().countGenomesInLink(fromID, toID));

[Demonstration 2]

[Buggy Method]
public static String toHexString(ByteBuffer bytes) {
    final int offset = bytes.position();
    final int size = bytes.remaining();
    final char[] hexChars = new char[size * 2];
    for (int i = 0; i < size; i++) {
        final int aByte = bytes.get(i + offset);
        hexChars[i * 2] = s_hexArray[aByte >>> 4];
        hexChars[i * 2 + 1] = s_hexArray[aByte & 0x0F];
    }
    return new String(hexChars);
}

[Buggy Hunk]
hexChars[i * 2] = s_hexArray[aByte >>> 4];

[Patch]
hexChars[i * 2] = s_hexArray[(aByte & 0xF0) >>> 4];

[Demonstration 3]

[Buggy Method]
public static HashCode hashResource(final Path in, final Consumer<IOException> onFailure) {
    return hashcode(new InputStreamIterator(in, onFailure));
}

[Buggy Hunk]
return hashcode(new InputStreamIterator(in, onFailure));

[Patch]
return hashResource(new InputStreamIterator(in, onFailure));