[Demonstration 1]

[Buggy Method]
@Override
public void paintTo(GlimpseContext context, GlimpseBounds bounds, Axis1D axis) {
    GL2 gl = context.getGL().getGL2();
    gl.glColor3fv(color, 0);
    gl.glLineWidth(2);
    gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);
    gl.glLoadIdentity();
    gl.glOrtho(axis.getMin(), axis.getMax(), -0.5, bounds.getHeight() - 1 + 0.5f, -1, 1);
    gl.glRasterPos2f(position + 10, bounds.getHeight() - font.getHeight() - 2);
    glut.glutBitmapString(font.getFont(), text);
    gl.glBegin(GL.GL_LINE_STRIP);
    gl.glVertex2f(position, 0);
    gl.glVertex2f(position, bounds.getHeight());
    gl.glEnd();
}

[Buggy Hunk]
gl.glRasterPos2f(position + 10, bounds.getHeight() - font.getHeight() - 2);

[Patch]
gl.glRasterPos2f((float) (position + 10.0 / axis.getPixelsPerValue()), bounds.getHeight() - font.getHeight() - 2);

[Demonstration 2]

[Buggy Method]
public static void fillCommentsListItemView(View view, ThingInfo item, RedditSettings settings) {
    // Set the values of the Views for the CommentsListItem
    TextView votesView = (TextView) view.findViewById(R.id.votes);
    TextView textFlairView = (TextView) view.findViewById(R.id.textFlair);
    TextView submitterView = (TextView) view.findViewById(R.id.submitter);
    TextView bodyView = (TextView) view.findViewById(R.id.body);
    TextView submissionTimeView = (TextView) view.findViewById(R.id.submissionTime);
    ImageView voteUpView = (ImageView) view.findViewById(R.id.vote_up_image);
    ImageView voteDownView = (ImageView) view.findViewById(R.id.vote_down_image);
    try {
        votesView.setText(Util.showNumPoints(item.getUps() - item.getDowns()));
    } catch (NumberFormatException e) {
        // This happens because "ups" comes after the potentially long "replies" object,
        // so the ListView might try to display the View before "ups" in JSON has been parsed.
        if (Constants.LOGGING)
            Log.e(TAG, "getView, normal comment", e);
    }
    if (item.getSSAuthor() != null)
        submitterView.setText(item.getSSAuthor());
    else
        submitterView.setText(item.getAuthor());
    submissionTimeView.setText(Util.getTimeAgo(item.getCreated_utc()));
    if (item.getSpannedBody() != null)
        bodyView.setText(item.getSpannedBody());
    else
        bodyView.setText(item.getBody());
    setCommentIndent(view, item.getIndent(), settings);
    boolean hasFlair = !StringUtils.isEmpty(item.getAuthor_flair_text());
    textFlairView.setVisibility(hasFlair ? View.VISIBLE : View.GONE);
    textFlairView.setText(item.getAuthor_flair_text());
    if (voteUpView != null && voteDownView != null) {
        if (item.getLikes() == null || "[deleted]".equals(item.getAuthor())) {
            voteUpView.setVisibility(View.GONE);
            voteDownView.setVisibility(View.GONE);
        } else if (Boolean.TRUE.equals(item.getLikes())) {
            voteUpView.setVisibility(View.VISIBLE);
            voteDownView.setVisibility(View.GONE);
        } else if (Boolean.FALSE.equals(item.getLikes())) {
            voteUpView.setVisibility(View.GONE);
            voteDownView.setVisibility(View.VISIBLE);
        }
    }
}

[Buggy Hunk]
if (item.getLikes() == null || "[deleted]".equals(item.getAuthor())) {

[Patch]
if (item.getLikes() == null || item.isDeletedUser()) {

[Demonstration 3]

[Buggy Method]
@TargetApi(Build.VERSION_CODES.JELLY_BEAN)
@Override
public void onBindViewHolder(final ViewHolder holder, int position) {
    final Shop_item item = items.get(position);
    //        holder.mLogo.setImageResource(item.getImage());
    //        Bitmap logo = BitmapFactory.decodeFile(FileManager.getFile(item.getImage()).getAbsolutePath());
    //        holder.mLogo.setImageBitmap(logo);
    //        Uri uri = Uri.fromFile(FileManager.getFile(item.getImage()));
    //        holder.mLogo.setImageURI(uri);
    FileManager.getImage(item.getImage(), holder.mLogo);
    holder.mShopname.setText(item.getName());
    holder.mShopcategory.setText(item.getCategory());
    holder.mShopphone.setText(item.getPhone());
    holder.mLocation.setText(item.getLocation());
    holder.mMap.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent i = new Intent(context, MapsActivity.class);
            i.putExtra("shopname", item.getName());
            i.putExtra("latitude", item.getLatitude());
            i.putExtra("longitude", item.getLongitude());
            context.startActivity(i);
        }
    });
    holder.cardview.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            Intent i = new Intent(context, ShopPageActivity.class);
            i.putExtra("logo", item.getImage());
            i.putExtra("shopname", item.getName());
            i.putExtra("shopcategory", item.getCategory());
            i.putExtra("shopphone", item.getPhone());
            i.putExtra("location", item.getLocation());
            i.putExtra("latitude", item.getLatitude());
            i.putExtra("longitude", item.getLongitude());
            i.putExtra("shopid", item.getShopid());
            i.putExtra("issubscribed", item.isSubscribed());
            context.startActivity(i);
        }
    });
    //        if (MainActivity.get_SHOP(item.shopid) != null) {
    //            holder.mStar.setChecked(true);
    //        }
    holder.mStar.setChecked(item.isSubscribed());
    holder.mStar.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

        @Override
        public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
            if (buttonView.getId() == R.id.star_checkbox) {
                if (isChecked) {
                    UserSubscribeTask task = new UserSubscribeTask(item.getShopid());
                    task.execute();
                } else {
                    UserUnsubscribeTask task = new UserUnsubscribeTask(item.getShopid());
                    task.execute();
                }
            }
        }
    });
}

[Buggy Hunk]
i.putExtra("issubscribed", item.isSubscribed());

[Patch]
i.putExtra("issubscribed", holder.mStar.isChecked());