[Demonstration 1]

[Buggy Method]
@Test(expected = ExecutionPlanValidationException.class)
public void testQueryCreationExceptionInvalidNoOfParams() {
    logger.info("Test: QueryCreationException at Invalid No Of Params");
    siddhiManager.createExecutionPlanRuntime(defineStream + "from NameEntityTypeViaDictionaryIn#nlp:findNameEntityTypeViaDictionary" + "        ('src/test/resources/dictionaryTest.xml',text) \n" + "        select *  \n" + "        insert into FindNameEntityTypeViaDictionaryResult;\n");
}

[Buggy Hunk]
"        ('src/test/resources/dictionaryTest.xml',text) \n" +

[Patch]
"        ('src" + File.separator + "test" + File.separator + "resources" + File.separator + "dictionaryTest.xml',text) \n" +

[Demonstration 2]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_pizza_view);
    Intent intent = getIntent();
    //String loc = intent.getStringExtra(Pizza.getBuilding()) + " " + intent.getStringExtra(Pizza.getRoom());
    id = intent.getStringExtra(MainActivity.KEY_VIEW);
    mFirebaseDatabase = FirebaseDatabase.getInstance().getReference();
    DatabaseReference pizza = mFirebaseDatabase.child("pizza").child(id);
    //  mFirebaseDatabase.child("pizza").child(pizza.getId()).child("isVegan");
    // mFirebaseDatabase.child("players").child(state.getId()).setValue(state);
    //.child pizza
    location = (TextView) findViewById(R.id.edRoomNumText);
    //location.setText(loc);
    vendor = (TextView) findViewById(R.id.edVendorText);
    toppings = (TextView) findViewById(R.id.toppingsEd);
    vegan = (CheckBox) findViewById(R.id.veganBox);
    vegetarian = (CheckBox) findViewById(R.id.vegBox);
    kosher = (CheckBox) findViewById(R.id.kosherBox);
    glutenFree = (CheckBox) findViewById(R.id.gfBox);
    doneButton = (Button) findViewById(R.id.doneButton);
    //TODO: set all UI elements to correct fields
    String loc = pizza.child("building").getKey() + " " + pizza.child("room").getKey();
    location.setText(loc);
    vendor.setText(pizza.child("vendor").getKey());
    vendor.setText(pizza.child("vendor").toString());
    toppings.setText(pizza.child("toppings").getKey());
    toppings.setText(pizza.child("toppings").getKey());
    vegan.setChecked(false);
    vegetarian.setChecked(false);
    kosher.setChecked(false);
    glutenFree.setChecked(false);
    //
    //        vendor.setText(mFirebaseDatabase.child("pizza").child(pizza.getId()).child("vendor").toString());
    //        toppings.setText(mFirebaseDatabase.child("pizza").child(pizza.getId()).child("toppings").toString());
    //        location.setText(mFirebaseDatabase.child("pizza").child(pizza.getId()).child("building").toString() + " "
    //        + mFirebaseDatabase.child("pizza").child(pizza.getId()).child("room").toString());
    //
    doneButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            //TODO: delete pizza
            mFirebaseDatabase.child("pizza").child(id).removeValue();
            //go back to MainActivity
            finish();
        }
    });
}

[Buggy Hunk]
String loc = pizza.child("building").getKey() + " " + pizza.child("room").getKey();

[Patch]
String loc = pizza.child("building").getKey().toString() + " " + pizza.child("room").getKey().toString();

[Demonstration 3]

[Buggy Method]
private static Set<String> repeatedPhrases(Map<Chapter, Collection<Quote>> map) {
    Map<String, Boolean> data = Collections.synchronizedMap(new HashMap<>());
    map.keySet().parallelStream().forEach((c) -> map.get(c).parallelStream().map(Quote::getText).forEach((t) -> data.put(t, data.containsKey(t))));
    return data.keySet().stream().filter(data::get).collect(Collectors.toSet());
}

[Buggy Hunk]
.forEach((t) -> data.put(t, data.containsKey(t))));

[Patch]
.forEach((t) -> data.compute(t, (k,v) -> v != null)));