[Demonstration 1]

[Buggy Method]
@Override
public Fragment getItem(int position) {
    Fragment f = null;
    if (position == 0) {
        f = new AllMatchDataFragment();
        ((AllMatchDataFragment) f).setTeam(mTeamNumber);
    } else {
        f = new IndividualMatchDataFragment();
        ((IndividualMatchDataFragment) f).setTeamMatch(mTeamNumber, position);
    }
    return f;
}

[Buggy Hunk]
((IndividualMatchDataFragment)f).setTeamMatch(mTeamNumber, position);

[Patch]
((IndividualMatchDataFragment)f).setTeamMatch(mTeamNumber, position - 1);

[Demonstration 2]

[Buggy Method]
@Override
protected Fragment createFragment() {
    UUID uuid = (UUID) getIntent().getSerializableExtra(EXTRA_NOTE_ID_NUM);
    return NoteFragment.newInstance(uuid);
}

[Buggy Hunk]
return NoteFragment.newInstance(uuid);

[Patch]
return NoteFragmentEdit.newInstance(uuid);

[Demonstration 3]

[Buggy Method]
private void updateFragContentTopClearance() {
    mFrag = (ReviewsFragment) getFragmentManager().findFragmentByTag("reviews_fragment");
    if (mFrag == null) {
        return;
    }
    final boolean butterBarVisible = mButterBar != null && mButterBar.getVisibility() == View.VISIBLE;
    int actionBarClearance = UIUtils.calculateActionBarSize(this);
    int butterBarClearance = butterBarVisible ? getResources().getDimensionPixelSize(R.dimen.butter_bar_height) : 0;
    setProgressBarTopWhenActionBarShown(actionBarClearance + butterBarClearance);
    mDrawShadowFrameLayout.setShadowTopOffset(actionBarClearance + butterBarClearance);
    mFrag.setContentTopClearance(actionBarClearance + butterBarClearance, isActionBarShown());
}

[Buggy Hunk]
mFrag = (ReviewsFragment) getFragmentManager().findFragmentByTag("reviews_fragment");

[Patch]
mFrag = (ReviewsFragment) getFragmentManager().findFragmentById(R.id.reviews_fragment);