[Demonstration 1]

[Buggy Method]
@Override
public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);
    // Checks whether a hardware keyboard is available
    if (newConfig.hardKeyboardHidden == Configuration.HARDKEYBOARDHIDDEN_NO) {
        LinearLayout parent = (LinearLayout) findViewById(R.id.parent);
        RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) parent.getLayoutParams();
        layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT, 0);
        parent.setLayoutParams(layoutParams);
    }
}

[Buggy Hunk]
LinearLayout parent = (LinearLayout) findViewById(R.id.parent);

[Patch]
RelativeLayout parent = (RelativeLayout) findViewById(R.id.parent);

[Demonstration 2]

[Buggy Method]
@Override
public Map<String, Object> getComponentConfiguration() {
    if (!_isDistributed) {
        Map<String, Object> ret = new HashMap<String, Object>();
        ret.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 1);
        return ret;
    } else {
        return null;
    }
}

[Buggy Hunk]
ret.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 1);

[Patch]
ret.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 5);

[Demonstration 3]

[Buggy Method]
public Map<String, Map<String, String>> getProfile() {
    return null;
}

[Buggy Hunk]
public Map<String,Map<String,String>> getProfile() {

[Patch]
public Map<String,Test> getProfile() {