[Demonstration 1]

[Buggy Method]
@ApiOperation(value = "get all 3D hotspot mutations", nickname = "fetch3dHotspotMutationsPOST")
@RequestMapping(value = "/hotspots/3d", method = { RequestMethod.POST }, produces = "application/json")
public List<HotspotMutation> fetch3dHotspotMutationsPOST(@ApiParam(value = "Comma separated list of hugo symbols. For example PTEN,BRAF,TP53", required = false, allowMultiple = true) @RequestParam(required = false) List<String> hugoSymbols) {
    if (hugoSymbols == null || hugoSymbols.size() == 0) {
        return multiResidueHotspotMutationService.getAllHotspotMutations();
    } else {
        return fetch3dHotspotMutationsByGeneGET(hugoSymbols);
    }
}

[Buggy Hunk]
method = {RequestMethod.POST},

[Patch]
method = {RequestMethod.POST, RequestMethod.GET},

[Demonstration 2]

[Buggy Method]
@Override
public void onBindViewHolder(DispatchSelectAdapter.ViewHolder viewHolder, int position) {
    // get the data model based on position
    Dispatch dispatch = dispatches.get(position);
    // set item views based on your views and data model
    // set description
    TextView dispatchDescription = viewHolder.dispatchDescription;
    dispatchDescription.setText(dispatch.getDispatchId() + dispatch.getDispatchDate());
    // set dispatch icon
    ImageView dispatchIcon = viewHolder.dispatchIcon;
    dispatchIcon.setImageResource(R.drawable.ic_dispatch);
}

[Buggy Hunk]
dispatchDescription.setText(dispatch.getDispatchId() + dispatch.getDispatchDate());

[Patch]
dispatchDescription.setText(dispatch.getDispatchDate() + " " + dispatch.getDispatchStartTime());

[Demonstration 3]

[Buggy Method]
private TreeNode<K, V> findLeftMostNodeForRemoveOperation(TreeNode<K, V> node) throws Exception {
    if (node.items.size() == 1) {
        node = FixOneKeyNode(node);
    }
    TreeNode<K, V> leftNode = node.getLeftChildNodeForItem(0);
    if (leftNode != null) {
        return findLeftMostNodeForRemoveOperation(leftNode);
    } else {
        return node;
    }
}

[Buggy Hunk]
node = FixOneKeyNode(node);

[Patch]
node = FixOneKeyNode(node, false);