[Demonstration 1]

[Buggy Method]
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    // Inflate the layout for this fragment
    View rootView = inflater.inflate(R.layout.fragment_recomenats, container, false);
    recyclerView = (RecyclerView) rootView.findViewById(R.id.totsRecyclerView);
    linearLayoutManager = new LinearLayoutManager(getActivity());
    recyclerView.setLayoutManager(linearLayoutManager);
    List<String[]> dummy = new ArrayList<>();
    dummy.add(new String[] { "Festival", "BOOM Festival 2016", "Portu" + "gal", "16/10/2016 - 20:45h" });
    EventAdapter totsAdapter = new EventAdapter(dummy, getActivity());
    recyclerView.setAdapter(totsAdapter);
    recyclerView.setItemAnimator(new DefaultItemAnimator());
    return rootView;
}

[Buggy Hunk]
"gal", "16/10/2016 - 20:45h"});

[Patch]
"gal", "16/10/2016 - 20:45h", "id", "imageUrl", "35", "350"});

[Demonstration 2]

[Buggy Method]
protected AnValue newObject(Type t, String name) {
    if (t == Type.INT_TYPE || t == Type.LONG_TYPE) {
        ConstExpression x = new ConstExpression(t, new Long(0));
        //x.setName(name);
        return x;
    } else if (isResource(t.getClassName()))
        return generateThread(name, ThreadResource.ALLOCATED);
    AnValue a = new AnValue(t, name);
    String nclassName = Names.normalizeClassName(t.getClassName());
    if (typableClass(nclassName))
        for (String field : objectFields.get(nclassName)) {
            String fieldName = nclassName + "." + field;
            a.setField(field, newObject(fieldType.get(fieldName), name + "." + field));
        }
    a.setUpdated(false);
    return a;
}

[Buggy Hunk]
a.setField(field, newObject(fieldType.get(fieldName), name + "." + field));

[Patch]
a.setField(field, newObject(fieldType.get(fieldName), nclassName + "." + field));

[Demonstration 3]

[Buggy Method]
public static String[] split(String what, String at) {
    if (what.length() == 0 || at.length() == 0) {
        //the length checks will throw the necessary NullPointerExceptions
        throw new IllegalArgumentException("Empty String");
    }
    String[] result = new String[countOccurrencesOf(what, at) + 1];
    if (result.length == 1) {
        result[0] = what;
        return result;
    }
    int lastIndex = 0, index = what.indexOf(at), fl = at.length(), sidx = 0;
    while (index != -1) {
        result[sidx++] = what.substring(lastIndex, index);
        lastIndex = index + fl;
        index = what.indexOf(at, lastIndex);
    }
    result[sidx] = what.substring(lastIndex);
    return result;
}

[Buggy Hunk]
if (what.length() == 0 || at.length() == 0) {

[Patch]
if (what.isEmpty() || at.isEmpty()) {