[Demonstration 1]

[Buggy Method]
@Override
public boolean isBackgroundPaused() {
    return instance.isPaused || instance.isBackgroundPaused;
}

[Buggy Hunk]
return instance.isPaused || instance.isBackgroundPaused;

[Patch]
return this.isPaused || this.isBackgroundPaused;

[Demonstration 2]

[Buggy Method]
@RequestMapping(value = { "/choose-deposit-{userId}" }, method = RequestMethod.POST)
public String saveUserChoice(@RequestBody String deposit, @RequestParam Double moneySum, ModelMap model, BindingResult result, @PathVariable Long userId) throws ServiceException {
    model.addAttribute("userId", userId);
    if (result.hasErrors()) {
        return "choose-deposit";
    }
    int last = deposit.indexOf("&");
    String depositName = deposit.substring(8, last).replace("+", " ").replace("25", "");
    Deposit mainDeposit = depositService.findByName(depositName);
    User user = userService.findById(userId);
    Bill bill = new Bill("name " + user.getPassportSeries() + user.getPassportNumber(), "number", "code", "active", moneySum, mainDeposit, user);
    billService.saveBill(bill);
    final String DEPOSIT_MONEY_TYPE = mainDeposit.getMoney();
    switch(DEPOSIT_MONEY_TYPE) {
        case "USD":
            {
                BankBillsCreator.dollarsCashBox.setMoneySum(BankBillsCreator.dollarsCashBox.getMoneySum() + moneySum);
            }
            break;
        case "RUB":
            {
                BankBillsCreator.rubelsCashBox.setMoneySum(BankBillsCreator.rubelsCashBox.getMoneySum() + moneySum);
            }
            break;
    }
    return "redirect:/home";
}

[Buggy Hunk]
final String DEPOSIT_MONEY_TYPE = mainDeposit.getMoney();

[Patch]
String DEPOSIT_MONEY_TYPE = mainDeposit.getMoney();

[Demonstration 3]

[Buggy Method]
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    View rootView = inflater.inflate(R.layout.fragment_diet, container, false);
    WebView webView = (WebView) rootView.findViewById(R.id.webView);
    webView.setWebViewClient(new WebViewClient() {

        public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
        }
    });
    webView.setInitialScale(1);
    webView.getSettings().setJavaScriptEnabled(true);
    webView.getSettings().setLoadWithOverviewMode(true);
    webView.getSettings().setUseWideViewPort(true);
    webView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
    webView.setScrollbarFadingEnabled(false);
    webView.loadUrl("file:///android_asset/7.htm");
    return rootView;
}

[Buggy Hunk]
public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {

[Patch]
public void onReceivedHttpError(WebView view, int errorCode, String description, String failingUrl) {