[Demonstration 1]

[Buggy Method]
public void showAddListDialog(View view) {
    /* Create an instance of the dialog fragment and show it */
    DialogFragment dialog = AddListDialogFragment.newInstance(mUsername);
    dialog.show(MainActivity.this.getFragmentManager(), "AddListDialogFragment");
}

[Buggy Hunk]
DialogFragment dialog = AddListDialogFragment.newInstance(mUsername);

[Patch]
DialogFragment dialog = AddListDialogFragment.newInstance(mUserEmail);

[Demonstration 2]

[Buggy Method]
@Override
public void onStart() {
    super.onStart();
    Log.d(TAG, "onStart() called");
}

[Buggy Hunk]
Log.d(TAG, "onStart() called");

[Patch]
Log.v(TAG, "onStart() called");

[Demonstration 3]

[Buggy Method]
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = null;
    if (getIntent() != null && getIntent().getData() != null) {
        Uri data = getIntent().getData();
        switch(data.getScheme()) {
            case "twitter":
                switch(data.getHost()) {
                    case "post":
                        String replyId = data.getQueryParameter("in_reply_to_status_id");
                        intent = SendTweetActivity.getIntent(this, replyId != null ? Long.valueOf(replyId) : -1, data.getQueryParameter("message"));
                        break;
                    case "status":
                        intent = ShowTweetActivity.getIntent(this, Long.parseLong(data.getQueryParameter("id")));
                        break;
                    case "user":
                        String userId = data.getQueryParameter("id");
                        if (userId != null) {
                            intent = ShowUserActivity.getIntent(this, Long.valueOf(userId));
                        } else {
                            intent = ShowUserActivity.getIntent(this, data.getQueryParameter("screen_name"));
                        }
                        break;
                }
                break;
            case "https":
                if (data.getQueryParameter("status") != null) {
                    intent = SendTweetActivity.getIntent(this, data.getQueryParameter("status"));
                } else if (data.getPath().matches("/.+/status/.+")) {
                    intent = ShowTweetActivity.getIntent(this, Long.parseLong(data.getPathSegments().get(2)));
                } else if (data.getPathSegments().size() == 1) {
                    intent = ShowUserActivity.getIntent(this, Long.valueOf(data.getLastPathSegment()));
                }
                break;
        }
    }
    if (intent == null) {
        intent = new Intent(this, MainActivity.class);
    }
    startActivity(intent);
}

[Buggy Hunk]
intent = ShowUserActivity.getIntent(this, Long.valueOf(data.getLastPathSegment()));

[Patch]
intent = ShowUserActivity.getIntent(this, data.getLastPathSegment());