[Demonstration 1]

[Buggy Method]
@Override
public boolean equals(Object obj) {
    if (obj == this) {
        return true;
    }
    if (!(obj instanceof AnnotationAssertion)) {
        return false;
    }
    AnnotationAssertion other = (AnnotationAssertion) obj;
    return this.getProperty().equals(other.getProperty()) && this.getSubject().equals(other.getSubject()) && this.getObject().equals(this.getObject());
}

[Buggy Hunk]
return this.getProperty().equals(other.getProperty()) && this.getSubject().equals(other.getSubject()) && this.getObject().equals(this.getObject());

[Patch]
return this.getProperty().equals(other.getProperty()) && this.getSubject().equals(other.getSubject()) && this.getObject().equals(other.getObject());

[Demonstration 2]

[Buggy Method]
public CSDSchema sniff(CSDSchemaPattern<F> schemaPattern, CSVParser parser, int maxLine) {
    this.result = new CSDValidationResult<F>(logger, schemaPattern);
    Iterator<CSVRecord> it = parser.iterator();
    if (!it.hasNext()) {
        result.noLine();
        return null;
    }
    CSVRecord firstRecord = it.next();
    if (!this.validateHeaderOrFirstRecord(result, schemaPattern, firstRecord))
        return null;
    int i = 1;
    while (it.hasNext() && i < maxLine) this.validatorHelper.validateRecord(result, schemaPattern, it.next(), i++);
    if (this.result.errorCount() > maxLine)
        return null;
    return schemaPattern.newSchema(factory, firstRecord);
}

[Buggy Hunk]
public CSDSchema sniff(CSDSchemaPattern<F> schemaPattern, CSVParser parser, int maxLine) {

[Patch]
public CSDSchema<F> sniff(CSDSchemaPattern<F> schemaPattern, CSVParser parser, int maxLine) {

[Demonstration 3]

[Buggy Method]
protected void fullTableScan(final SSTableReader ssTableReader) throws IOException {
    System.out.println("Step1: Looping over SSTable and searching for key: " + examineKey);
    while (true) {
        try {
            final Tuple tuple = ssTableReader.decodeTuple();
            if (tuple.getKey().equals(examineKey)) {
                System.out.println(tuple);
            }
        } catch (BufferUnderflowException e) {
            // Loop until the buffer is empty
            break;
        }
    }
}

[Buggy Hunk]
final Tuple tuple = ssTableReader.decodeTuple();

[Patch]
final Tuple tuple = TupleHelper.decodeTuple(ssTableReader.getMemory());