[Demonstration 1]

[Buggy Method]
public void onMapLongClick(LatLng point) {
    GeoArea area = GeoSwitchApp.getPreferences().loadArea();
    if (area != null) {
        area.setLatitude(point.latitude);
        area.setLongitude(point.longitude);
    } else {
        area = new GeoArea(point.latitude, point.longitude, GeoSwitchApp.getPreferences().getDefaultRadius());
    }
    updateMarkerPos(area);
    updateResult();
}

[Buggy Hunk]
area = new GeoArea(point.latitude, point.longitude, GeoSwitchApp.getPreferences().getDefaultRadius());

[Patch]
area = new GeoArea(point.latitude, point.longitude, GeoSwitchApp.getPreferences().getRadius());

[Demonstration 2]

[Buggy Method]
public static Set<Point> horizontalShipLocations(BoardState state, int length) {
    Map<Point, Set<Integer>> horizontalShipMask = new LinkedHashMap<Point, Set<Integer>>();
    if (length > 1) {
        for (int i = 0; i < length; i++) {
            Set<Integer> curSet = new LinkedHashSet<Integer>();
            if (i == 0)
                curSet.add(CELL_LEFT_CAP);
            else if (i == length - 1)
                curSet.add(CELL_RIGHT_CAP);
            else
                curSet.add(CELL_MIDDLE);
            horizontalShipMask.put(new Point(i, 0), curSet);
        }
    } else {
        Set<Integer> submarineSet = new LinkedHashSet<>();
        submarineSet.add(CELL_SUBMARINE);
        horizontalShipMask.put(new Point(0, 0), submarineSet);
    }
    return PointSetAlgorithms.getPositionsForPointSet(state.getBoardCells(), horizontalShipMask);
}

[Buggy Hunk]
Set<Integer> submarineSet = new LinkedHashSet<>();

[Patch]
Set<Integer> submarineSet = new LinkedHashSet<Integer>();

[Demonstration 3]

[Buggy Method]
public static void parseHashtags() {
    try {
        for (HashTag hashTag : hashtags) {
            hashTag.setUsages(RunPython4Twitter.searchTwitter(hashTag.getValue()));
        }
    } catch (Exception e) {
    }
}

[Buggy Hunk]
hashTag.setUsages(RunPython4Twitter.searchTwitter(hashTag.getValue()));

[Patch]
hashTag.setUsages(runPython4Twitter.searchTwitter(hashTag.getValue()));