[Demonstration 1]

[Buggy Method]
public void reset() {
    spel.resetLevens();
    spel.resetScore();
    this.huidigeAantalBolletjes = this.totaalAantalBolletjes;
}

[Buggy Hunk]
this.huidigeAantalBolletjes = this.totaalAantalBolletjes;

[Patch]
this.huidigeAantalBolletjes = 0;

[Demonstration 2]

[Buggy Method]
public OrderedElement toElement(ParserRuleContext astNode, Optional<OrderedElement> parent) {
    if (transparentEntities.contains(astNode.getClass())) {
        List<ParseTree> children = relevantChildren(astNode);
        if (children.size() != 1) {
            throw new IllegalArgumentException("Transparent rules are expected to have exactly one child: " + astNode.getClass());
        }
        if (!(children.get(0) instanceof ParserRuleContext)) {
            throw new IllegalArgumentException("A transparent rule only child is expected to be a non-terminal: " + astNode.getClass());
        }
        return toElement((ParserRuleContext) children.get(0), parent);
    }
    return instantiateElement(astNode, parent);
}

[Buggy Hunk]
throw new IllegalArgumentException("Transparent rules are expected to have exactly one child: " + astNode.getClass());

[Patch]
throw new IllegalArgumentException("Transparent rules are expected to have exactly one child: " + astNode.getClass() + " while it has " + children.size());

[Demonstration 3]

[Buggy Method]
public void limit(Integer noOfRows) {
    if (this.query != null) {
        String newQuery = " LIMIT " + noOfRows + " ";
        this.query = this.query + newQuery;
    }
}

[Buggy Hunk]
this.query = this.query + newQuery;

[Patch]
this.limitQuery = newQuery;