[Demonstration 1]

[Buggy Method]
@NonNull
@Override
public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {
    View view = convertView;
    if (view == null) {
        LayoutInflater inflater = LayoutInflater.from(getContext());
        view = inflater.inflate(R.layout.weather_adapter, null);
    }
    final WeatherInfo item = getItem(position);
    if (item != null) {
        final ImageView image = (ImageView) view.findViewById(R.id.adapterImage);
        TextView description = (TextView) view.findViewById(R.id.adapterDescription);
        TextView temp = (TextView) view.findViewById(R.id.adapterTemp);
        TextView date = (TextView) view.findViewById(R.id.adapterDate);
        TextView time = (TextView) view.findViewById(R.id.adapterTime);
        int resId = view.getResources().getIdentifier("r" + item.icon, "raw", getContext().getPackageName());
        InputStream input = view.getResources().openRawResource(resId);
        Bitmap bitmap = BitmapFactory.decodeStream(input);
        image.setImageBitmap(bitmap);
        description.setText(item.description);
        temp.setText(item.temp + getContext().getString(R.string.celsius));
        DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy", Locale.ENGLISH);
        date.setText(dateFormat.format(item.date));
        DateFormat timeFormat = new SimpleDateFormat("HH:mm", Locale.ENGLISH);
        time.setText(timeFormat.format(item.date));
    }
    return view;
}

[Buggy Hunk]
temp.setText(item.temp + getContext().getString(R.string.celsius));

[Patch]
temp.setText(String.format("%.2f", item.temp) + getContext().getString(R.string.celsius));

[Demonstration 2]

[Buggy Method]
@Override
public String getUnlocalizedName(ItemStack stack) {
    return "item." + this.getVariantForMeta(stack.getMetadata()) + ".name";
}

[Buggy Hunk]
return "item." + this.getVariantForMeta(stack.getMetadata()) + ".name";

[Patch]
return "item." + this.getVariantForMeta(stack.getMetadata());

[Demonstration 3]

[Buggy Method]
public String getStats() {
    if (game.getRounds().isEmpty())
        return "";
    double averageBid = 0;
    double averageScore = 0;
    int scoreCountOffset = 0;
    for (Round round : game.getRounds()) {
        averageScore += round.getPlayerHand(playerNumber).getScore();
        averageBid += round.getPlayerHand(playerNumber).getBid();
        if (!round.isFinished()) {
            scoreCountOffset++;
        }
    }
    averageBid = averageBid / game.getRounds().size();
    averageScore = averageScore / (game.getRounds().size() - scoreCountOffset);
    return String.format("Bid: %.2f  Score: %.2f, Ratio: %.2f", averageBid, averageScore, averageScore / averageBid);
}

[Buggy Hunk]
averageBid += round.getPlayerHand(playerNumber).getBid();

[Patch]
averageBid += Math.max(round.getPlayerHand(playerNumber).getBid(), 0);