[Demonstration 1]

[Buggy Method]
public void setInitialState(List<Cell> lifeCells) {
    if (!lifeCells.containsAll(lifeCells)) {
        throw new IllegalArgumentException();
    }
    lifeCells.stream().forEach((cell) -> board.changeStateOfCell(cell, State.ALIVE));
}

[Buggy Hunk]
if(!lifeCells.containsAll(lifeCells)){

[Patch]
if(!board.getAllCellsWithState().keySet().containsAll(lifeCells)){

[Demonstration 2]

[Buggy Method]
private void ensureTarget() {
    if (mTarget == null) {
        for (int i = 0; i < getChildCount(); i++) {
            View child = getChildAt(i);
            if (!child.equals(mRefreshView) && !child.equals(mRefreshStateView)) {
                mTarget = child;
                break;
            }
        }
    }
}

[Buggy Hunk]
if (!child.equals(mRefreshView) && !child.equals(mRefreshStateView)) {

[Patch]
if (!child.equals(mRefreshView)) {

[Demonstration 3]

[Buggy Method]
@Override
public List<String> buildCommand(Map<String, String> env) throws IOException {
    if (PYSPARK_SHELL.equals(appResource)) {
        return buildPySparkShellCommand(env);
    } else {
        return super.buildSparkSubmitCommand(env);
    }
}

[Buggy Hunk]
return super.buildSparkSubmitCommand(env);

[Patch]
return buildSparkSubmitCommand(env);