[Demonstration 1]

[Buggy Method]
@Override
public String qnameFor(String uri) {
    int split = Util.splitNamespaceXML(uri);
    String ns = uri.substring(0, split), local = uri.substring(split);
    if (local.equals(""))
        return null;
    String prefix = getNsURIPrefix(uri);
    return prefix == null ? null : prefix + ":" + local;
}

[Buggy Hunk]
String prefix = getNsURIPrefix(uri) ;

[Patch]
String prefix = getNsURIPrefix(ns) ;

[Demonstration 2]

[Buggy Method]
public void submitLocation(final String name, final String latitude, final String longitude) {
    VolleyServiceGateway volleyService = new VolleyServiceGateway(mContext) {

        @Override
        protected Map<String, String> makeHeaders() {
            HashMap<String, String> headers = new HashMap<>();
            return headers;
        }

        @Override
        protected Map<String, String> getParams() {
            HashMap<String, String> params = new HashMap<>();
            params.put(AppConstants.DATA, name + " is now at " + latitude + "/" + longitude);
            return params;
        }

        @Override
        protected void processResponse(String response) {
        }

        @Override
        protected void processResponseCode(int code) {
            final int statusCode = code;
            mContext.runOnUiThread(new Runnable() {

                public void run() {
                    if (statusCode == 201) {
                        Date startTime = new Date();
                        AppUtils.putStringToPref(mContext, AppConstants.TIME, Long.toString(startTime.getTime()));
                        Toast.makeText(mContext, mContext.getString(R.string.success_submit_location), Toast.LENGTH_SHORT).show();
                    } else {
                        Toast.makeText(mContext, mContext.getString(R.string.failure_submit_location), Toast.LENGTH_SHORT).show();
                    }
                }
            });
        }

        @Override
        protected void processError(VolleyError errorResponse) {
            mEventBus.post(errorResponse);
        }

        @Override
        protected void processNetworkError() {
            mEventBus.post(ErrorType.NO_INTERNET);
        }
    };
    volleyService.postData(AppConstants.SUBMIT_LOCATION_URL);
}

[Buggy Hunk]
protected Map<String, String> getParams() {

[Patch]
protected Map<String, String> getParamsData() {

[Demonstration 3]

[Buggy Method]
public static IntervalChunkingQueryRunnerDecorator NoopIntervalChunkingQueryRunnerDecorator() {
    return new IntervalChunkingQueryRunnerDecorator(null, null, null, null) {

        @Override
        public <T> QueryRunner<T> decorate(final QueryRunner<T> delegate, QueryToolChest<T, ? extends Query<T>> toolChest) {
            return new QueryRunner<T>() {

                @Override
                public Sequence<T> run(Query<T> query, Map<String, Object> responseContext) {
                    return delegate.run(query, responseContext);
                }
            };
        }
    };
}

[Buggy Hunk]
return new IntervalChunkingQueryRunnerDecorator(null, null, null, null) {

[Patch]
return new IntervalChunkingQueryRunnerDecorator(null, null, null) {