[Demonstration 1]

[Buggy Method]
public void initialize() {
    try {
        // set ViewStatus for Server
        serverConnection.updateViewStatus(ViewStatus.Game);
    } catch (IOException e) {
        this.view.alert(e.getMessage(), Alert.AlertType.ERROR);
    }
    view.btnChatSend.setOnAction(event -> {
        sendMessage();
    });
    view.btnSendText.setOnAction(event -> {
        sendButtonText();
    });
}

[Buggy Hunk]
serverConnection.updateViewStatus(ViewStatus.Game); // set ViewStatus for Server

[Patch]
serverConnectionService.updateViewStatus(ViewStatus.Game); // set ViewStatus for Server

[Demonstration 2]

[Buggy Method]
@Override
public int execute(CLIDelegate delegate) {
    val file = new File(sci.getContext().get(OPTION).toString());
    if (!file.exists()) {
        app.error(app.tr("error.input.notExists", file.getPath()));
        return -1;
    }
    val result = detectScriptEngine();
    if (result == null) {
        return -1;
    }
    try (val reader = new FileReader(file)) {
        val engine = (ScriptEngine) result;
        engine.put("app", app);
        engine.put("sci", sci);
        engine.put("config", config);
        engine.eval(reader);
    } catch (Exception e) {
        app.error(M.tr("runScript.error"), e);
        return -1;
    }
    return 0;
}

[Buggy Hunk]
app.error(M.tr("runScript.error"), e);

[Patch]
app.error(M._("runScript.error"), e);

[Demonstration 3]

[Buggy Method]
public void saveProduct(View view) {
    if (!isOnline()) {
        Toast.makeText(this, "Para cadastrar/editar um produto é necessário está conectado a internet!", Toast.LENGTH_LONG).show();
        return;
    }
    offer = fillOfferByData();
    final Activity currentActivity = this;
    new StartupApp(this, "", false) {

        @Override
        protected void onPostExecute(Boolean result) {
            if (result) {
                Toast.makeText(currentActivity, String.format("Sucesso ao editar o produto '%s' com código de barra: %s!", offer.getName(), offer.getCodeProduct()), Toast.LENGTH_LONG).show();
                startActivity(new Intent(currentActivity, MainActivity.class));
            } else {
                Toast.makeText(currentActivity, String.format("Error ao editar o produco com código de barra :%s! " + "Favor verificar sua conexão com a internet!", offer.getCodeProduct()), Toast.LENGTH_LONG).show();
            }
            getProgress().dismiss();
        }

        @Override
        protected Boolean doInBackground(Void... params) {
            try {
                OfferController offerController = new OfferController();
                offer = offerController.createNewOfferInServerAndDatabase(offer);
                return offer.getId() != null;
            } catch (Exception e) {
                android.util.Log.e(TAG_CLASSNAME, e.getLocalizedMessage(), e);
                return false;
            }
        }
    }.execute();
}

[Buggy Hunk]
new StartupApp(this, "", false) {

[Patch]
new StartupApp(this, String.format("Editando o produto: '%s'...", offer.getName()), false) {