[Demonstration 1]

[Buggy Method]
public void goResult(View view) {
    final String title = etTitle.getText().toString();
    final String comment = etComment.getText().toString();
    final String keyWords = etKeyWord.getText().toString();
    final String date = etDate.getText().toString();
    final String location = etTitle.getText().toString();
    Collectionable object = new Collectionable(title, date, location, comment, keyWords, path);
    CollectionableDAO objectDao = new CollectionableDAO(this);
    objectDao.open();
    int id = objectDao.ajouter(object);
    objectDao.close();
    Toast.makeText(getApplicationContext(), title + " has been saved", Toast.LENGTH_LONG).show();
    Intent intent = new Intent(this, PhotoGrandEcranACtivity.class);
    intent.putExtra(MESSAGE_KEY, id);
    startActivity(intent);
}

[Buggy Hunk]
final String location = etTitle.getText().toString();

[Patch]
final String location = etLocation.getText().toString();

[Demonstration 2]

[Buggy Method]
public File call(File file) throws Exception {
    String newFileName = Utils.removeExtenstion(file.getPath(), "sam") + ".bam";
    File outputSamFile = new File(newFileName);
    ArrayList<String> sorterArgs = new ArrayList<String>();
    sorterArgs.add("INPUT=");
    sorterArgs.add(file.getPath());
    sorterArgs.add("OUTPUT=");
    sorterArgs.add(outputSamFile.getPath());
    sorterArgs.add("SORT_ORDER=coordinate");
    SortSam samSorter = new SortSam();
    samSorter.instanceMain(sorterArgs.toArray(new String[0]));
    return outputSamFile;
}

[Buggy Hunk]
String newFileName = Utils.removeExtenstion(file.getPath(), "sam") + ".bam";

[Patch]
String newFileName = Utils.removeExtenstion(file.getName(), "sam") + ".bam";

[Demonstration 3]

[Buggy Method]
@Override
protected IStatus run(IProgressMonitor monitor) {
    monitor.beginTask("GET_DISK_LIMIT", 100);
    try {
        TaskStatusNotification taskStatus = (TaskStatusNotification) event.getProperty("org.eclipse.e4.data");
        byte[] data = taskStatus.getResult().getResponseData();
        final Map<String, Object> responseData = new ObjectMapper().readValue(data, 0, data.length, new TypeReference<HashMap<String, Object>>() {
        });
        Display.getDefault().asyncExec(new Runnable() {

            @Override
            public void run() {
                String result = (String) responseData.get("Result");
                System.out.println(result);
            }
        });
    } catch (Exception e) {
        logger.error(e.getMessage(), e);
        Notifier.error("", Messages.getString("UNEXPECTED_ERROR_ACCESSING_RESOURCE_USAGE"));
    }
    monitor.worked(100);
    monitor.done();
    return Status.OK_STATUS;
}

[Buggy Hunk]
Notifier.error("", Messages.getString("UNEXPECTED_ERROR_ACCESSING_RESOURCE_USAGE"));

[Patch]
Notifier.error("","Hata Oluştu");