[Demonstration 1]

[Buggy Method]
public void putId(String id) {
    add("inviteId", id);
    saveInBackground(new SaveCallback() {

        @Override
        public void done(ParseException e) {
            if (e != null) {
                Log.d(TAG, "Error adding id to Invitation id: " + e);
            }
        }
    });
}

[Buggy Hunk]
add("inviteId", id);

[Patch]
put("inviteId", id);

[Demonstration 2]

[Buggy Method]
@Before
public void setUp() {
    folder = new File(getClass().getResource(".").getFile());
    given(activity.getHandler()).willReturn(handler);
    given(activity.getResource(anyInt())).willReturn(TEST);
    given(cameraController.getPreview()).willReturn(preview);
    given(camera.getParameters()).willReturn(params);
    updater = new ParameterUpdater(params);
    shotParams = new ShotParams(preview, activity, updater) {

        @Override
        Context getContext() {
            return context;
        }
    };
    shotParams.setShots(new Shot[] { new Shot("a", 0), new Shot("b", 1) });
    testData = TEST.getBytes();
}

[Buggy Hunk]
shotParams.setShots(new Shot[]{new Shot("a", 0), new Shot("b", 1)});

[Patch]
shotParams.setShots(new Shot[]{new Shot("a"), new Shot("b")});

[Demonstration 3]

[Buggy Method]
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
    super.onActivityCreated(savedInstanceState);
    profileData = databaseHandler.getHandler().getData(DatabaseHandler.getHandler().getCurrUser().getName());
    initAccuracy();
    initReaction();
}

[Buggy Hunk]
profileData = databaseHandler.getHandler().getData(DatabaseHandler.getHandler().getCurrUser().getName());

[Patch]
profileData = DatabaseHandler.getHandler().getCurrUser();