[Demonstration 1]

[Buggy Method]
private void Pound() {
    PositionID attacker = this.card.getCurrentPosition().getPositionID();
    PositionID defender = this.gameModel.getDefendingPosition(this.card.getCurrentPosition().getColor());
    Element attackerElement = ((PokemonCard) this.card).getElement();
    PokemonCard attackingPokemon = (PokemonCard) gameModel.getPosition(attacker).getTopCard();
    if (attackingPokemon.getHitpoints() == 80)
        this.gameModel.getAttackAction().inflictDamageToPosition(attackerElement, attacker, defender, 30, true);
    else
        this.gameModel.getAttackAction().inflictDamageToPosition(attackerElement, attacker, defender, 10, true);
}

[Buggy Hunk]
PokemonCard attackingPokemon = (PokemonCard) gameModel.getPosition(attacker).getTopCard();

[Patch]
PokemonCard attackingPokemon = (PokemonCard) this.card;

[Demonstration 2]

[Buggy Method]
@Override
public boolean onTouchEvent(MotionEvent event) {
    if (event.getAction() == MotionEvent.ACTION_UP && drawableEnd != null) {
        bounds = drawableEnd.getBounds();
        final int x = (int) event.getX();
        //check if the touch is within bounds of drawableEnd icon
        if ((leftToRight && (x >= (this.getRight() - bounds.width()))) || (!leftToRight && (x <= (this.getLeft() + bounds.width())))) {
            togglePasswordVisibility();
            //use this to prevent the keyboard from coming up
            event.setAction(MotionEvent.ACTION_CANCEL);
        }
    }
    return super.onTouchEvent(event);
}

[Buggy Hunk]
final int x = (int) event.getX();

[Patch]
final int x = (int) event.getX() + getPaddingRight();

[Demonstration 3]

[Buggy Method]
public Object readResolve() {
    if (graphConfiguration == null) {
        graphConfiguration = new ArrayList<>();
    }
    if (getParserUniqueName() == null || getParserUniqueName() == null) {
        logger.log(Level.FINE, "Entering 1.x compatibility block, assigning name: Default");
        setParserUniqueName("Default");
    }
    return this;
}

[Buggy Hunk]
if (getParserUniqueName() == null || getParserUniqueName() == null) {

[Patch]
if (getParserUniqueName() == null) {