[Demonstration 1]

[Buggy Method]
@Override
public String toString() {
    return getOperand1().toString() + "=" + getOperand1().toString();
}

[Buggy Hunk]
return getOperand1().toString() + "=" + getOperand1().toString();

[Patch]
return getOperand1().toString() + "=" + getOperand2().toString();

[Demonstration 2]

[Buggy Method]
public static boolean SearchDirectiveDuplicated(String name, String value, ApacheDirectiveStack stack) {
    for (ApacheDirective dir : stack.getStack()) {
        if (dir.getName() == name || dir.getValuesAsString() == value) {
            log.warn("Apache configuration file already conatins the directive " + name + " with the value " + value + " .");
            throw new ApacheParserException("Apache configuration file already conatins the directive " + name + " with the value " + value + " .");
            return true;
        }
    }
    return false;
}

[Buggy Hunk]
for (ApacheDirective dir : stack.getStack()) {

[Patch]
for (ApacheDirective dir : stack.getStack().getChildDirectives()) {

[Demonstration 3]

[Buggy Method]
public static String getPrice(String name) throws Exception {
    CloseableHttpClient httpClient = HttpClients.createDefault();
    name = name.replaceAll(" ", "%20");
    HttpGet httpGet = new HttpGet(prefix + "/prices/" + name);
    ByteArrayOutputStream stream = new ByteArrayOutputStream();
    CloseableHttpResponse response = httpClient.execute(httpGet);
    System.out.println(response.getStatusLine());
    HttpEntity entity1 = response.getEntity();
    entity1.writeTo(stream);
    EntityUtils.consume(entity1);
    response.close();
    return stream.toString();
}

[Buggy Hunk]
name = name.replaceAll(" ", "%20");

[Patch]
name = name.replace(" ", "%20").replace("[", "").replace("]", "").replace("\\", "/").replace("\"", "");