[Demonstration 1]

[Buggy Method]
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
    super.onScrolled(recyclerView, dx, dy);
    if (sohbetList == null)
        return;
    try {
        int LAST_POSITION_COMP_VISIBLE = linearLayoutManager.findLastVisibleItemPosition();
        int LIST_SIZE = sohbetList.size();
        String lastid = sohbetList.get(LIST_SIZE - 1).id;
        if (LAST_POSITION_COMP_VISIBLE == (LIST_SIZE - 10))
            new loadMore(lastid, LIST_SIZE).executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
        if (LAST_POSITION_COMP_VISIBLE > 100) {
            scrollTop.show();
            if (getActivity() != null) {
                toolbar.setSubtitle(getTimeAgo(sohbetList.get(LAST_POSITION_COMP_VISIBLE).zaman, getActivity().getApplicationContext()));
            }
        } else if (LAST_POSITION_COMP_VISIBLE < 20) {
            if (scrollTop.getVisibility() == View.VISIBLE)
                scrollTop.hide();
            if (getActivity() != null && toolbar != null) {
                trackonlineusersDB sql = new trackonlineusersDB(getActivity().getApplicationContext(), null, null, 1);
                final int count = sql.getOnlineUserCount();
                if (count > 0 && toolbar != null) {
                    if (count == 1)
                        toolbar.setSubtitle(R.string.toolbar_online_subtitle_one);
                    else
                        toolbar.setSubtitle(String.format(getActivity().getApplicationContext().getString(R.string.toolbar_online_subtitle), count));
                } else
                    toolbar.setSubtitle("");
            }
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
if(LAST_POSITION_COMP_VISIBLE == (LIST_SIZE - 10) )

[Patch]
if(LAST_POSITION_COMP_VISIBLE > (LIST_SIZE - 5) )

[Demonstration 2]

[Buggy Method]
@Override
public void init() {
    /*
		 * Use the hardwareMap to get the dc motors and servos by name. Note
		 * that the names of the devices must match the names used when you
		 * configured your robot and created the configuration file.
		 */
    //motor hardware map assignments
    rightDrive = hardwareMap.dcMotor.get("motor_1");
    leftDrive = hardwareMap.dcMotor.get("motor_2");
    winch = hardwareMap.dcMotor.get("motor_3");
    armOne = hardwareMap.dcMotor.get("motor_4");
    armTwo = hardwareMap.dcMotor.get("motor_5");
    rightDrive.setDirection(DcMotor.Direction.REVERSE);
    //servo hardware map assignments
    armThree = hardwareMap.servo.get("servo_1");
    armFour = hardwareMap.servo.get("servo_2");
    wingCatchLeft = hardwareMap.servo.get("servo_3");
    wingCatchRight = hardwareMap.servo.get("servo_4");
    //Initial servo position values
    armThree.setPosition(0.5);
    armFour.setPosition(0.5);
    wingCatchLeft.setPosition(0);
    wingCatchRight.setPosition(0);
}

[Buggy Hunk]
wingCatchRight.setPosition(0);

[Patch]
wingCatchRight.setPosition(1);

[Demonstration 3]

[Buggy Method]
@GET
@Produces(MediaType.APPLICATION_JSON)
@Path("/get/pm/{pm}")
public //Retrieves information on an individual user
String getPM(@PathParam("pm") String pm) throws IOException {
    JSONObject responseObject = new JSONObject();
    String fileString = new String(Files.readAllBytes(Paths.get("config.txt")), StandardCharsets.UTF_8);
    if (fileString.toLowerCase().contains(pm.toLowerCase())) {
        int startIndex = fileString.indexOf(pm);
        int length = fileString.substring(startIndex).indexOf(";");
        int finalIndex = startIndex + length;
        String pmString = fileString.substring(startIndex, finalIndex);
        String[] pmData = pmString.split(",");
        responseObject.put("pm", pm);
        responseObject.put("email", pmData[2]);
    }
    return responseObject.toString();
}

[Buggy Hunk]
responseObject.put("email", pmData[2]);

[Patch]
responseObject.put("email", pmData[1]);