[Demonstration 1]

[Buggy Method]
@Override
public HerokuProvisionResponse provision(HerokuProvisionRequest request) {
    log.debug("Handling {}", request);
    String licenseKey = customerService.addCustomer(CustomerService.AddCustomerRequest.builder().source("heroku").externalId(request.getUuid()).name(request.getHeroku_id()).plan(request.getPlan()).build());
    Map<String, String> config = new HashMap<>();
    config.put("CODEKVAST_URL", settings.getHerokuCodekvastUrl());
    config.put("CODEKVAST_LICENSE_KEY", licenseKey);
    HerokuProvisionResponse response = HerokuProvisionResponse.builder().id(request.getUuid()).config(config).build();
    log.debug("Returning {}", response);
    return response;
}

[Buggy Hunk]
.source("heroku")

[Patch]
.source(CustomerService.Source.HEROKU)

[Demonstration 2]

[Buggy Method]
private void writeContentFromTemplate(final Writer writer, final String tag) {
    final VelocityContext context = new VelocityContext();
    context.put("strict", overriddenParameters.isStrict());
    context.put("featureFile", featureFileLocation);
    context.put("flagSOutline", config.filterScenarioOutlineByLines());
    context.put("reports", createFormatStrings());
    context.put("tags", "\"" + tag + "\"");
    context.put("monochrome", overriddenParameters.isMonochrome());
    context.put("cucumberOutputDir", config.getCucumberOutputDir());
    if (config.useReRun()) {
        context.put("glue", overriddenParameters.getGlue());
    } else {
        context.put("glue", quoteGlueStrings());
    }
    context.put("className", FilenameUtils.removeExtension(outputFileName));
    context.put("outPutPath", config.getCucumberOutputDir().replace('\\', '/') + "/" + FilenameUtils.removeExtension(outputFileName) + "/" + FilenameUtils.removeExtension(outputFileName));
    context.put("retryCount", overriddenRerunOptionsParameters.getRetryCount());
    context.put("htmlFormat", this.htmlFormat);
    context.put("jsonFormat", this.jsonFormat);
    context.put("rerunFormat", this.rerunFormat);
    velocityTemplate.merge(context, writer);
}

[Buggy Hunk]
context.put("flagSOutline", config.filterScenarioOutlineByLines());

[Patch]
context.put("flagSOutline", config.getFilterScenarioOutlineByLines());

[Demonstration 3]

[Buggy Method]
public void setErrData(int[] err) {
    for (int i = 0; i < err.length; i++) {
        if (0 == err[i]) {
            inthis.set(i);
        }
    }
}

[Buggy Hunk]
if(0 == err[i]){

[Patch]
if(1 == err[i]){