[Demonstration 1]

[Buggy Method]
public void setMarkerAtLocation(Location userCurrentLocation, int icon, String title) {
    if (userCurrentLocation != null) {
        GeoPoint userCurrentPoint = new GeoPoint(userCurrentLocation.getLatitude(), userCurrentLocation.getLongitude());
        //            mIMapController.setCenter(userCurrentPoint);
        //            mIMapController.zoomTo(mMapView.getMaxZoomLevel());
        Marker hereMarker = new Marker(mMapView);
        hereMarker.setPosition(userCurrentPoint);
        //            hereMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM);
        hereMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_CENTER);
        hereMarker.setIcon(ContextCompat.getDrawable(getApplication(), icon));
        final String instructionNeedRemove = "" + Html.fromHtml(title);
        // remove a part of string
        String instruction = instructionNeedRemove;
        if (instruction.indexOf("\n\n") != -1) {
            // it contains world
            instruction = instructionNeedRemove.substring(0, instructionNeedRemove.indexOf("\n\n"));
        }
        final String instructionKhongDau = new AccentRemover().toUrlFriendly(instruction);
        Log.i(TAG, "setMarkerAtLocation: co dau " + instruction);
        Log.i(TAG, "setMarkerAtLocation: khong dau " + instructionKhongDau);
        //            Log.i(TAG, "setMarkerAtLocation: " + Html.toHtml(Html.fromHtml(title)));
        hereMarker.setTitle(instruction);
        // when click marker, speak instruction
        hereMarker.setOnMarkerClickListener(new Marker.OnMarkerClickListener() {

            @Override
            public boolean onMarkerClick(Marker marker, MapView mapView) {
                marker.showInfoWindow();
                mapView.getController().animateTo(marker.getPosition());
                new VIetnameseSpeak(getApplicationContext(), instructionKhongDau).speak();
                return true;
            }
        });
        mMapView.getOverlays().add(hereMarker);
        mMapView.invalidate();
    } else {
        Log.i(TAG, "onClick: Not determine your current location");
    }
}

[Buggy Hunk]
hereMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_CENTER);

[Patch]
hereMarker.setAnchor(Marker.ANCHOR_CENTER, Marker.ANCHOR_BOTTOM);

[Demonstration 2]

[Buggy Method]
public static Result service(String ownerName, String projectName, String service, boolean isAdvertise) throws IOException, UnsupportedOperationException, ServletException {
    if (!isSupportedService(service)) {
        return forbidden(String.format("Unsupported service: '%s'", service));
    }
    Project project = Project.findByOwnerAndProjectName(ownerName, projectName);
    if (project == null) {
        return notFound();
    }
    models.User user = UserApp.currentUser();
    if (!isAllowed(project, service)) {
        if (user.isAnonymous()) {
            return BasicAuthAction.unauthorized(response());
        } else {
            // If you want the Git client showing your custom message to
            // the user, the Content-Type should be exact "text/plain"
            // without any parameter. For more details, see the code at
            // https://github.com/git/git/commit/426e70d4a11ce3b4f70636d57c6a0ab16ae08a00#diff-eea0ad565ec5903a11b6023755d491cfR154
            response().setHeader("Content-Type", "text/plain");
            return forbidden(String.format("'%s' has no permission to '%s/%s'.", user.name, ownerName, projectName));
        }
    }
    if (isAdvertise) {
        return ok(RepositoryService.gitAdvertise(project, service, response()));
    } else {
        if (request().body().isMaxSizeExceeded()) {
            return status(REQUEST_ENTITY_TOO_LARGE);
        } else {
            user.visits(project);
            return ok(RepositoryService.gitRpc(project, service, request(), response()));
        }
    }
}

[Buggy Hunk]
user.name, ownerName, projectName));

[Patch]
user.loginId, ownerName, projectName));

[Demonstration 3]

[Buggy Method]
private void setUpMapView() {
    mMapView.setClickable(true);
    mMapView.getController().setZoom(17);
    mMapView.setUseDataConnection(true);
    mMapView.setUserLocationEnabled(true);
    findViewById(R.id.acitivity_map_my_location).setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            if (getLocation() == null)
                return;
            mMapView.getController().animateTo(new LatLng(getLocation().getLatitude(), getLocation().getLongitude()));
        }
    });
    if (sLocation != null)
        mMapView.getController().setCenter(new LatLng(getLocation().getLatitude(), getLocation().getLongitude()));
    else
        mMapView.getController().setZoom(3);
    hideBottomPanel();
    mMapView.setMapViewListener(new MapViewListener() {

        @Override
        public void onShowMarker(MapView mapView, Marker marker) {
        }

        @Override
        public void onHidemarker(MapView mapView, Marker marker) {
        }

        @Override
        public void onTapMarker(MapView mapView, Marker marker) {
            setCurrentSelectedMarker(marker);
            marker.getToolTip(mapView).getView().setVisibility(View.GONE);
            Point point = (Point) marker.getRelatedObject();
            Log.d(Const.TAG, "Marker clicked: " + point.name);
            // TODO: description
            setBottomPanelData(point);
        }

        @Override
        public void onLongPressMarker(MapView mapView, Marker marker) {
        }

        @Override
        public void onTapMap(MapView mapView, ILatLng iLatLng) {
            clearBottomPanelData();
        }

        @Override
        public void onLongPressMap(MapView mapView, ILatLng iLatLng) {
        }
    });
}

[Buggy Hunk]
public void onHidemarker(MapView mapView, Marker marker) {

[Patch]
public void onHideMarker(MapView mapView, Marker marker) {