[Demonstration 1]

[Buggy Method]
public void CLFilter(String zh_cl, String en_id_title, String zh_id_title) throws Exception {
    System.out.println("Processing file: " + zh_cl);
    BufferedReader bufferedReader = new BufferedReader(new FileReader(new File(zh_cl)));
    BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new File(zh_cl.replace("result.", "result.new."))));
    String[] filter_words = { "Wikipedia:", "Category:", "Template:", "Portal:", "WikiProjects", "File:", "User:", "Help:", "Image:", "Module:", "list", "mediawiki", "categories", " articles" };
    String line = new String();
    while (true) {
        line = bufferedReader.readLine();
        if (line == null) {
            break;
        }
        boolean contains = false;
        System.out.println(line);
        line = line.replaceAll("\\'", "'");
        System.out.println(line);
        for (String word : filter_words) {
            if (line.toLowerCase().contains(word.toLowerCase())) {
                contains = true;
                break;
            }
        }
        if (contains == false) {
            bufferedWriter.write(line + "\n");
        }
    }
    bufferedReader.close();
    bufferedWriter.close();
    Map<String, String> cl_zh_id2title_dict = read_w_t_t_w(zh_cl.replace("result.", "result.new."), 0);
    Map<String, String> cl_zh_title2id_dict = read_w_t_t_w(zh_cl.replace("result.", "result.new."), 1);
    Map<String, String> en_title2id_dict = read_w_t_t_w(en_id_title, 1);
    Map<String, String> zh_id2title_dict = read_w_t_t_w(zh_id_title, 0);
    Set<String> common_zh_id = new HashSet<String>();
    common_zh_id.addAll(zh_id2title_dict.keySet());
    common_zh_id.retainAll(cl_zh_id2title_dict.keySet());
    System.out.println(common_zh_id.size());
    Set<String> common_en_title = new HashSet<String>();
    common_en_title.retainAll(en_title2id_dict.keySet());
    common_en_title.addAll(cl_zh_title2id_dict.keySet());
    System.out.println(common_en_title.size());
    bufferedWriter = new BufferedWriter(new FileWriter(new File("en_zh_cl_id_title.txt")));
    for (String k : cl_zh_id2title_dict.keySet()) {
        if (common_zh_id.contains(k) && common_en_title.contains(cl_zh_id2title_dict.get(k))) {
            bufferedWriter.write(cl_zh_id2title_dict.get(k) + "\t\t" + en_title2id_dict.get(cl_zh_id2title_dict.get(k)) + "\t\t" + zh_id2title_dict.get(k) + "\t\t" + k + "\n");
        }
    }
    bufferedWriter.close();
}

[Buggy Hunk]
line = line.replaceAll("\\'", "'");

[Patch]
line = line.replace("\\'", "'");

[Demonstration 2]

[Buggy Method]
private void shareNews() {
    Intent shareIntent = new Intent(Intent.ACTION_SEND);
    shareIntent.setType("text/plain");
    shareIntent.putExtra(Intent.EXTRA_TEXT, "Put Data Here");
    startActivity(Intent.createChooser(shareIntent, "Share using"));
}

[Buggy Hunk]
shareIntent.putExtra(Intent.EXTRA_TEXT, "Put Data Here");

[Patch]
shareIntent.putExtra(Intent.EXTRA_TEXT, title + "\n" + overview);

[Demonstration 3]

[Buggy Method]
public void notifyChanged(Notification notification) {
    super.notifyChanged(notification);
    if (notification.getFeature() instanceof EAttributeImpl) {
        if (notification.getNotifier() instanceof BoundsImpl) {
            reposition(((BoundsImpl) notification.getNotifier()).getX(), ((BoundsImpl) notification.getNotifier()).getY(), ((BoundsImpl) notification.getNotifier()).getWidth(), getTreeHeight());
            FigureCanvas canvas = (FigureCanvas) getViewer().getControl();
            canvas.getViewport().repaint();
        }
    }
}

[Buggy Hunk]
getTreeHeight());

[Patch]
TreeNodeUtils.getTreeHeight(inputRootTreeNode, LEAF_HEIGHT));