[Demonstration 1]

[Buggy Method]
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
    Intent movieInfoIntent = new Intent(MainActivity.this, MovieDetailsActivity.class);
    Movie movieItem = adapter.getItem(position);
    Bundle movieInfoBundle = new Bundle();
    String title = movieItem.getTitle();
    String imagePath = movieItem.getPosterPath();
    String rating = movieItem.getRating();
    String releaseDate = movieItem.getRelease_date();
    String plot = movieItem.getOverview();
    movieInfoBundle.putString(getString(R.string.poster_title), title);
    movieInfoBundle.putString(getString(R.string.poster_path), imagePath);
    movieInfoBundle.putString(getString(R.string.overview), plot);
    movieInfoBundle.putString(getString(R.string.rating), rating);
    movieInfoBundle.putString(getString(R.string.release_date), releaseDate);
    movieInfoIntent.putExtras(movieInfoBundle);
    startActivity(movieInfoIntent);
}

[Buggy Hunk]
String releaseDate = movieItem.getRelease_date();

[Patch]
String releaseDate = movieItem.getReleaseDate();

[Demonstration 2]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_restaurant);
    setVisibilityAlert(false);
    invalidateOptionsMenu();
    useToolbar(false);
    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    collapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsing_toolbar);
    collapsingToolbarLayout.setExpandedTitleColor(Color.WHITE);
    collapsingToolbarLayout.setCollapsedTitleTextColor(Color.WHITE);
    appbar = (AppBarLayout) findViewById(R.id.app_bar_layout);
    appbar.setExpanded(false);
    fab = (android.support.design.widget.FloatingActionButton) findViewById(R.id.fab);
    fab.setVisibility(View.GONE);
    fab.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View view) {
            likeButtonPressed();
        }
    });
    fab.setBackgroundTintList(ColorStateList.valueOf(getResources().getColor(R.color.themeColor)));
    add = (FloatingActionMenu) findViewById(R.id.add);
    add_review = (FloatingActionButton) findViewById(R.id.add_review);
    add_photo = (FloatingActionButton) findViewById(R.id.add_photo);
    add_reservation = (FloatingActionButton) findViewById(R.id.add_reservation);
    add.setVisibility(View.GONE);
    add.setClosedOnTouchOutside(true);
    add_photo.setOnClickListener(clickListener);
    add_reservation.setOnClickListener(clickListener);
    add_review.setOnClickListener(clickListener);
    Bundle extras = getIntent().getExtras();
    restaurantId = extras.getString("restaurantId");
    menuPrevFragment = (MenuPrevFragment) getSupportFragmentManager().findFragmentById(R.id.menuPrevFragment);
    menuPrevFragment.setRestaurantId(restaurantId);
    offerPrevFragment = (OfferPrevFragment) getSupportFragmentManager().findFragmentById(R.id.offersPrevFragment);
    offerPrevFragment.init(restaurantId);
    reviewsPrevFragment = (ReviewsPrevFragment) getSupportFragmentManager().findFragmentById(R.id.reviewsPrevFragment);
    reviewsPrevFragment.setRestaurantId(this.restaurantId);
    showAllMenuButton = (Button) findViewById(R.id.showAllMenuButton);
    showAllMenuButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            showAllMenuButtonPressed();
        }
    });
    showAllReviewsButton = (Button) findViewById(R.id.showAllReviewsButton);
    showAllReviewsButton.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            showAllReviewsButtonPressed();
        }
    });
}

[Buggy Hunk]
appbar.setExpanded(false);

[Patch]
appbar.setExpanded(true);

[Demonstration 3]

[Buggy Method]
@Override
public void createChildViewAt(int index) {
    if (intendToBeFlatContainer() && getRealView() != null) {
        Pair<WXComponent, Integer> ret = rearrangeIndexAndGetChild(index);
        if (ret.first != null) {
            WXComponent child = ret.first;
            Widget flatChild;
            FlatGUIIContext uiImp = getInstance().getFlatUIContext();
            WidgetContainer parent = uiImp.getFlatComponentAncestor(this);
            if (parent == null || uiImp.getAndroidViewWidget(this) != null) {
                parent = this;
            }
            uiImp.register(child, parent);
            if (child instanceof FlatComponent && !((FlatComponent) child).promoteToView(false)) {
                flatChild = ((FlatComponent) child).getOrCreateFlatWidget();
            } else {
                flatChild = new AndroidViewWidget(parent.getHostView());
                uiImp.register(child, (AndroidViewWidget) flatChild);
                child.createView();
                ((AndroidViewWidget) flatChild).setContentView(child.getHostView());
                //TODO Use a sort algorithm to decide the childIndex of AndroidViewWidget
                parent.addSubView(child.getHostView(), -1);
            }
            addFlatChild(flatChild, ret.second);
        }
    } else {
        super.createChildViewAt(index);
    }
}

[Buggy Hunk]
if (intendToBeFlatContainer() && getRealView()!=null) {

[Patch]
if (intendToBeFlatContainer()) {