[Demonstration 1]

[Buggy Method]
public Observable<Double> getSpeedObservable() {
    return audio.getSubject().asObservable();
}

[Buggy Hunk]
return audio.getSubject().asObservable();

[Patch]
return speedObservable;

[Demonstration 2]

[Buggy Method]
@RxLogObservable
public <T> Observable<T> setupObservable(Observable<T> observable, String callType) {
    return observable.doOnSubscribe(() -> addRunningCall(callType)).doAfterTerminate(() -> removeRunningCall(callType));
}

[Buggy Hunk]
.doAfterTerminate(() -> removeRunningCall(callType));

[Patch]
.doOnUnsubscribe(() -> removeRunningCall(callType));

[Demonstration 3]

[Buggy Method]
@RequestMapping(method = RequestMethod.GET)
@ModelAttribute("customerSearch")
public ModelAndView showPopulatedForm(HttpServletRequest request, HttpServletResponse response, SitePreference sitePreference, @ModelAttribute("customerSearch") CustomerSearchFormBean customerSearchFormBean) throws MifosException {
    MifosUser user = (MifosUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
    ModelAndView modelAndView = new ModelAndView();
    sitePreferenceHelper.resolveSiteType(modelAndView, "home", request);
    modelAndView.addObject("include_page", new IncludePage(request, response));
    Short userId = (short) user.getUserId();
    UserDetailDto userDetails = this.centerServiceFacade.retrieveUsersDetails(userId);
    modelAndView.addObject("customerSearch", customerSearchFormBean);
    boolean isCenterHierarchyExists = Boolean.parseBoolean(configurationServiceFacade.getConfig("ClientRules.CenterHierarchyExists"));
    modelAndView.addObject("isCenterHierarchyExists", isCenterHierarchyExists);
    if (userDetails.isLoanOfficer()) {
        loadLoanOfficerCustomersHierarchyForSelectedDay(userId, modelAndView, customerSearchFormBean);
        modelAndView.addObject("isLoanOfficer", true);
    } else {
        modelAndView.addObject("isLoanOfficer", false);
    }
    return modelAndView;
}

[Buggy Hunk]
modelAndView.addObject("include_page", new IncludePage(request, response));

[Patch]
modelAndView.addObject("Response", response); // handling STANDARD pages with no ftl version