[Demonstration 1]

[Buggy Method]
@Override
float calculatePrice() {
    float final_price = 0;
    float tax_amount = 0;
    // clothing tax
    if (this.tax == true) {
        tax_amount = this.price * TAX_RATE;
    }
    final_price = this.price + tax_amount;
    return final_price;
}

[Buggy Hunk]
float final_price = 0;

[Patch]
float final_price = this.price * this.quantity;

[Demonstration 2]

[Buggy Method]
@Override
public void onBindViewHolder(final VH holder, int position) {
    int pos = holder.getAdapterPosition();
    if (items != null && items.size() > pos && items.get(pos) != null) {
        onBindViewHolder(holder, items.get(pos), pos);
    }
    holder.itemView.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            if (multiSelectMode) {
                toggle(holder.getAdapterPosition());
            } else if (recyclerListener != null)
                recyclerListener.onRecyclerItemClicked(v, holder.getAdapterPosition());
        }
    });
    if (multiSelectMode || sortMode || recyclerListener == null) {
        holder.itemView.setOnLongClickListener(null);
    } else {
        holder.itemView.setOnLongClickListener(new View.OnLongClickListener() {

            @Override
            public boolean onLongClick(View v) {
                return recyclerListener.onRecyclerItemLongClicked(v, holder.getAdapterPosition());
            }
        });
    }
}

[Buggy Hunk]
if (multiSelectMode || sortMode || recyclerListener == null) {

[Patch]
if (sortMode || recyclerListener == null) {

[Demonstration 3]

[Buggy Method]
public Stream<Path> walk() throws IOException {
    try {
        final Stream<GlobPath> globs = StreamSupport.stream(this.longestPaths().spliterator(), true);
        return globs.map((GlobPath gp) -> {
            try {
                return Files.walk(gp.path).filter((Path p) -> {
                    return gp.matchers.stream().anyMatch((PathMatcher pm) -> {
                        return pm.matches(p);
                    });
                });
            } catch (IOException e) {
                throw new WrappedIOException(e);
            }
        }).reduce(Stream::concat).orElse(Stream.empty());
    } catch (WrappedIOException e) {
        throw e.origin;
    }
}

[Buggy Hunk]
return gp.matchers.stream()

[Patch]
return gp.matchers.isEmpty() || gp.matchers.stream()