[Demonstration 1]

[Buggy Method]
@Override
protected void changePos() {
    position += backwards ? -1 : 1;
    if (position >= points.length) {
        backwards = true;
        position -= 1;
    } else if (position <= 0) {
        backwards = false;
        position += 1;
    }
    scrollX = points[position][0] * ((backwards ? -2 : 2) / (slowTimer <= 0 ? 1 : 2));
    scrollY = points[position][1] * ((backwards ? -2 : 2) / (slowTimer <= 0 ? 1 : 2));
    moveTimer = slowTimer <= 0 ? MOVE_MAX : MOVE_MAX * 2;
}

[Buggy Hunk]
} else if (position <= 0) {

[Patch]
} else if (position < 0) {

[Demonstration 2]

[Buggy Method]
private News getNewsFromRSSFeedItem(RSSFeedItem item) throws ParseException {
    String body = item.getDescription();
    String imageLink = extractImageLink(body);
    News news = new News();
    news.setId(Long.parseLong(extractId(item.getGuid())));
    news.setTitle(item.getTitle());
    news.setDescription(parseBody(body));
    news.setDescriptionShort(removeHTML(body));
    news.setIsPermaLink(false);
    news.setLink(item.getLink());
    news.setCreator(item.getCreator());
    news.setPubDate(dateFormat.parse(item.getPubDate()));
    //news.setPubDate(new Date(item.getPubDate()));
    news.setLinkToPreviewImage(imageLink);
    news.setCategory(item.getCategory());
    return news;
}

[Buggy Hunk]
news.setDescriptionShort(removeHTML(body));

[Patch]
news.setDescriptionShort(removeNewlines(removeHTML(body)));

[Demonstration 3]

[Buggy Method]
private void insertWebCard(final DataSnapshot snapshot, final LinearLayout websitesLinearLayout, final LayoutInflater inflater) {
    Thread t = new Thread(new Runnable() {

        @Override
        public void run() {
            String name = (String) snapshot.child("name").getValue();
            String desc = (String) snapshot.child("description").getValue();
            String url = (String) snapshot.child("url").getValue();
            String bitmap_base64 = (String) snapshot.child("icon").getValue();
            CardView webCardView = getWebCardView(inflater, websitesLinearLayout, name, url);
            TextView nameTextView = (TextView) webCardView.findViewById(R.id.website_name_textview);
            nameTextView.setText(name);
            TextView detailsTextView = (TextView) webCardView.findViewById(R.id.website_details_textview);
            detailsTextView.setText(desc);
            if (bitmap_base64 != null) {
                ImageView iconImageView = (ImageView) webCardView.findViewById(R.id.website_icon_imageview);
                Bitmap bmp = decodeBitmap(bitmap_base64);
                iconImageView.setImageBitmap(bmp);
            }
        }
    });
    t.run();
}

[Buggy Hunk]
Bitmap bmp = decodeBitmap(bitmap_base64);

[Patch]
Bitmap bmp = Utilities.decodeBitmap(bitmap_base64);