[Demonstration 1]

[Buggy Method]
public CTTriangleMesh getImport() {
    String c = this.content;
    if (c != null) {
        Vector3f n = new Vector3f(0, 1, 0);
        CTTriangleMeshImpl mesh = new CTTriangleMeshImpl();
        List<Vector3f> vectors = mesh.getVectors();
        StringTokenizer st = new StringTokenizer(c);
        Stack<Vector3f> s = new Stack<Vector3f>();
        while (st.hasMoreTokens()) {
            String t = st.nextToken();
            if ("vertex".equals(t)) {
                float sx = Float.parseFloat(st.nextToken());
                float sy = Float.parseFloat(st.nextToken());
                float sz = Float.parseFloat(st.nextToken());
                s.push(new Vector3f(sx, sy, sz));
            } else if ("normal".equals(t)) {
                float sx = Float.parseFloat(st.nextToken());
                float sy = Float.parseFloat(st.nextToken());
                float sz = Float.parseFloat(st.nextToken());
                n = new Vector3f(sx, sy, sz);
            } else if ("endfacet".equals(t)) {
                int index = vectors.size();
                vectors.add(s.pop());
                vectors.add(s.pop());
                vectors.add(s.pop());
                mesh.getTriangles().add(new CTTriangle(index, index + 1, index + 2, n));
            }
        }
        return mesh;
    } else {
        return null;
    }
}

[Buggy Hunk]
Stack<Vector3f> s = new Stack<Vector3f>();

[Patch]
Deque<Vector3f> s = new ArrayDeque<>();

[Demonstration 2]

[Buggy Method]
@Override
public void onBindViewHolder(ArticleViewHolder holder, int position) {
    ArticleViewModel model = mViewModels.get(position);
    holder.itemView.setTag(model);
    holder.titleView.setText(String.valueOf(position) + " " + model.title);
    holder.subtitleView.setText(model.subtitle);
    final ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams();
    if (lp instanceof StaggeredGridLayoutManager.LayoutParams) {
        StaggeredGridLayoutManager.LayoutParams sglp = (StaggeredGridLayoutManager.LayoutParams) lp;
        sglp.setFullSpan(true);
        holder.itemView.setLayoutParams(sglp);
    }
    Picasso.with(getApplicationContext()).load(model.thumbnailUrl).into(holder.thumbnailView);
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
        holder.thumbnailView.setTag(model.photoUrl);
        holder.thumbnailView.setTransitionName(model.photoUrl);
    }
    runAnimation(holder, position, defaultItemAnimationDuration, getAnimationDirection());
}

[Buggy Hunk]
holder.titleView.setText(String.valueOf(position) + " " + model.title);

[Patch]
holder.titleView.setText(model.title);

[Demonstration 3]

[Buggy Method]
public String getBaseUrlWithoutSlash() {
    String serverToUse = scheme;
    if (intServerPort > 80) {
        serverToUse = serverToUse + serverName + ":" + serverPort + contextPath;
    } else {
        serverToUse = serverToUse + serverName + contextPath;
    }
    return serverToUse;
}

[Buggy Hunk]
String serverToUse = scheme;

[Patch]
String serverToUse = scheme + "://";