nus-yam/ex-repair huggingface dataset:
Program: 174358
Project: 174358
Buggy source:
@GET("String_Node_Str" + Constants.LOCATION_ID + "String_Node_Str"+ Constants.StartIndex+ "String_Node_Str"+ Constants.LastIndex+ "String_Node_Str") Call<List<Gift>> getGifts(@Path(Constants.LOCATION_ID) String locationId,@Path(Constants.StartIndex) String startIndex,@Path(Constants.LastIndex) String lastIndex,@Query(Constants.CATEGORY_ID) String categoryId,@Query(Constants.SEARCH_TEXT) String searchText);

Fixed version (ground truth):
@GET("String_Node_Str" + Constants.CITY_ID + "String_Node_Str"+ Constants.REGION_ID+ "String_Node_Str"+ Constants.CATEGORY_ID+ "String_Node_Str"+ Constants.StartIndex+ "String_Node_Str"+ Constants.LastIndex+ "String_Node_Str") Call<List<Gift>> getGifts(@Path(Constants.CITY_ID) String locationId,@Path(Constants.REGION_ID) String regoin,@Path(Constants.CATEGORY_ID) String categoryId,@Path(Constants.StartIndex) String startIndex,@Path(Constants.LastIndex) String lastIndex,@Query(Constants.SEARCH_TEXT) String searchText);
Program: 174359
Project: 174359
Buggy source:
public RequestToMyGiftsAdapter(Context context,ArrayList<RequestModel> requestModels){
  this.requestModels=requestModels;
  this.mContext=context;
}

Fixed version (ground truth):
public RequestToMyGiftsAdapter(Context context,ArrayList<Gift> gifts){
  this.gifts=gifts;
  this.mContext=context;
}
Program: 174360
Project: 174360
Buggy source:
@Override public int getItemCount(){
  return (null != requestModels ? requestModels.size() : 0);
}

Fixed version (ground truth):
@Override public int getItemCount(){
  return (null != gifts ? gifts.size() : 0);
}
Program: 174361
Project: 174361
Buggy source:
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(requestModels.get(i).gift);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(gifts.get(i).title);
}
Program: 174362
Project: 174362
Buggy source:
@Override protected void init(){
  super.init();
  adapter=new RequestToMyGiftsAdapter(context,requestModels);
  mRecyclerView.setAdapter(adapter);
  linearLayoutManager=new LinearLayoutManager(context);
  mRecyclerView.setLayoutManager(linearLayoutManager);
  apiRequest.getRequestedToMyGifts(new StartLastIndex(startIndex + "String_Node_Str",startIndex + Constants.LIMIT + "String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void init(){
  super.init();
  adapter=new RequestToMyGiftsAdapter(context,gifts);
  mRecyclerView.setAdapter(adapter);
  linearLayoutManager=new LinearLayoutManager(context);
  mRecyclerView.setLayoutManager(linearLayoutManager);
  apiRequest.getRequestedToMyGifts(new StartLastIndex(startIndex + "String_Node_Str",startIndex + Constants.LIMIT + "String_Node_Str"));
}
Program: 174363
Project: 174363
Buggy source:
@Override public void onResponse(Call call,Response response){
  progressView.setVisibility(View.INVISIBLE);
  ArrayList<RequestModel> requestModels=(ArrayList<RequestModel>)response.body();
  this.requestModels.addAll(requestModels);
  adapter.notifyDataSetChanged();
  if (requestModels.size() > 0) {
    mRecyclerView.setVisibility(View.VISIBLE);
    mMessageTv.setVisibility(View.INVISIBLE);
  }
 else {
    mRecyclerView.setVisibility(View.INVISIBLE);
    mMessageTv.setVisibility(View.VISIBLE);
    mMessageTv.setText("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  progressView.setVisibility(View.INVISIBLE);
  ArrayList<Gift> gifts=(ArrayList<Gift>)response.body();
  this.gifts.addAll(gifts);
  adapter.notifyDataSetChanged();
  if (gifts.size() > 0) {
    mRecyclerView.setVisibility(View.VISIBLE);
    mMessageTv.setVisibility(View.INVISIBLE);
  }
 else {
    mRecyclerView.setVisibility(View.INVISIBLE);
    mMessageTv.setVisibility(View.VISIBLE);
    mMessageTv.setText("String_Node_Str");
  }
}
Program: 174364
Project: 174364
Buggy source:
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
    replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    mToolbarTitleTextView.setText(R.string.categories);
    replaceFragment(new CategoriesGridFragment(),CategoriesGridFragment.class.getName());
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    mToolbarTitleTextView.setText(R.string.search);
    replaceFragment(HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null),HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    mToolbarTitleTextView.setText(R.string.my_wall);
    replaceFragment(new MyWallFragment(),MyWallFragment.class.getName());
  }
}

Fixed version (ground truth):
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
      replaceFragment(homeFragment,HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.categories);
      replaceFragment(categoriesGridFragment,CategoriesGridFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.search);
      replaceFragment(searchFragment,HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.my_wall);
      replaceFragment(myWallFragment,MyWallFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
}
Program: 174365
Project: 174365
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  settingToolbar();
  replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  homeFragment=HomeFragment.newInstance(Constants.HOME_PAGETYPE,null);
  searchFragment=HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null);
  categoriesGridFragment=new CategoriesGridFragment();
  myWallFragment=new MyWallFragment();
  settingToolbar();
  replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}
Program: 174366
Project: 174366
Buggy source:
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
      replaceFragment(homeFragment,HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.categories);
      replaceFragment(categoriesGridFragment,CategoriesGridFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.search);
      replaceFragment(searchFragment,HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.my_wall);
      replaceFragment(myWallFragment,MyWallFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
}

Fixed version (ground truth):
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      unlock=true;
      mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
      replaceFragment(homeFragment,HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      unlock=true;
      mToolbarTitleTextView.setText(R.string.categories);
      replaceFragment(categoriesGridFragment,CategoriesGridFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      unlock=true;
      mToolbarTitleTextView.setText(R.string.search);
      replaceFragment(searchFragment,HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
    }
    menuItemIdSelected=menuItemId;
  }
 else   if (menuItemId == R.id.bottomBarMyWall && unlock) {
    if (menuItemId != menuItemIdSelected) {
      clearStack();
      mToolbarTitleTextView.setText(R.string.my_wall);
      replaceFragment(myWallFragment,MyWallFragment.class.getName());
    }
    menuItemIdSelected=menuItemId;
  }
}
Program: 174367
Project: 174367
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  homeFragment=HomeFragment.newInstance(Constants.HOME_PAGETYPE,null);
  searchFragment=HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null);
  categoriesGridFragment=new CategoriesGridFragment();
  myWallFragment=new MyWallFragment();
  settingToolbar();
  replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  homeFragment=HomeFragment.newInstance(Constants.HOME_PAGETYPE,null);
  searchFragment=HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null);
  categoriesGridFragment=new CategoriesGridFragment();
  myWallFragment=new MyWallFragment();
  settingToolbar();
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}
Program: 174368
Project: 174368
Buggy source:
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
    setFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    mToolbarTitleTextView.setText(R.string.categories);
    setFragment(new CategoriesGridFragment(),CategoriesGridFragment.class.getName());
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    mToolbarTitleTextView.setText(R.string.search);
    setFragment(HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null),HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    mToolbarTitleTextView.setText(R.string.my_wall);
    setFragment(new MyWallFragment(),MyWallFragment.class.getName());
  }
}

Fixed version (ground truth):
private void TabSelected(int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
    replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    mToolbarTitleTextView.setText(R.string.categories);
    replaceFragment(new CategoriesGridFragment(),CategoriesGridFragment.class.getName());
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    mToolbarTitleTextView.setText(R.string.search);
    replaceFragment(HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null),HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    mToolbarTitleTextView.setText(R.string.my_wall);
    replaceFragment(new MyWallFragment(),MyWallFragment.class.getName());
  }
}
Program: 174369
Project: 174369
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  settingToolbar();
  setFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  Fabric.with(this,new Crashlytics());
  setContentView(R.layout.activity_bottombar);
  ButterKnife.bind(this);
  context=this;
  settingToolbar();
  replaceFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  settingBottomBar(savedInstanceState);
  mToolbarNewGiftBtnTv.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      if (AppController.getStoredString(Constants.Authorization) != null) {
        startActivity(new Intent(context,RegisterGiftActivity.class));
      }
 else {
        startActivity(new Intent(context,LoginActivity.class));
      }
    }
  }
);
  mBottomBar.selectTabAtPosition(3,false);
}
Program: 174370
Project: 174370
Buggy source:
@Override public void onClick(View v){
  ((BottomBarActivity)mContext).setFragment(HomeFragment.newInstance(Constants.CATEGORY_PAGETYPE,categories.get(i)),HomeFragment.class.getName() + CategoriesGridFragment.class.getName());
}

Fixed version (ground truth):
@Override public void onClick(View v){
  ((BottomBarActivity)mContext).replaceFragment(HomeFragment.newInstance(Constants.CATEGORY_PAGETYPE,categories.get(i)),HomeFragment.class.getName() + CategoriesGridFragment.class.getName());
}
Program: 174371
Project: 174371
Buggy source:
@Override public void onBindViewHolder(CategoryGridHolder categoryGridHolder,final int i){
  categoryGridHolder.getmCategoryTv().setText(categories.get(i).title);
  categoryGridHolder.getmCategoryFontIcon().setText(fontIcons[i]);
  categoryGridHolder.mItemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)mContext).setFragment(HomeFragment.newInstance(Constants.CATEGORY_PAGETYPE,categories.get(i)),HomeFragment.class.getName() + CategoriesGridFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(CategoryGridHolder categoryGridHolder,final int i){
  categoryGridHolder.getmCategoryTv().setText(categories.get(i).title);
  categoryGridHolder.getmCategoryFontIcon().setText(fontIcons[i]);
  categoryGridHolder.mItemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)mContext).replaceFragment(HomeFragment.newInstance(Constants.CATEGORY_PAGETYPE,categories.get(i)),HomeFragment.class.getName() + CategoriesGridFragment.class.getName());
    }
  }
);
}
Program: 174372
Project: 174372
Buggy source:
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_request,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}

Fixed version (ground truth):
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_requests,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}
Program: 174373
Project: 174373
Buggy source:
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(requestModels.get(i).gift);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mContext.startActivity(UserProfileActivity.createIntent(requestModels.get(i).fromUserId));
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(requestModels.get(i).fromUser);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      mContext.startActivity(UserProfileActivity.createIntent(requestModels.get(i).fromUserId));
    }
  }
);
}
Program: 174374
Project: 174374
Buggy source:
@Override public void onClick(View view){
  RequestsToAGiftFragment requestsToAGiftFragment=new RequestsToAGiftFragment();
  Bundle bundle=new Bundle();
  bundle.putString(Constants.GIFT_ID,gifts.get(i).giftId);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).setFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
}

Fixed version (ground truth):
@Override public void onClick(View view){
  RequestsToAGiftFragment requestsToAGiftFragment=new RequestsToAGiftFragment();
  Bundle bundle=new Bundle();
  bundle.putString(Constants.GIFT_ID,gifts.get(i).giftId);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
}
Program: 174375
Project: 174375
Buggy source:
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_request,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}

Fixed version (ground truth):
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_receive_requests,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}
Program: 174376
Project: 174376
Buggy source:
@Override public void onBindViewHolder(final SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(gifts.get(i).title);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      RequestsToAGiftFragment requestsToAGiftFragment=new RequestsToAGiftFragment();
      Bundle bundle=new Bundle();
      bundle.putString(Constants.GIFT_ID,gifts.get(i).giftId);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).setFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(final SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(gifts.get(i).title);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      RequestsToAGiftFragment requestsToAGiftFragment=new RequestsToAGiftFragment();
      Bundle bundle=new Bundle();
      bundle.putString(Constants.GIFT_ID,gifts.get(i).giftId);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}
Program: 174377
Project: 174377
Buggy source:
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_request,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}

Fixed version (ground truth):
@Override public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup,int viewType){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_requests,null);
  SentRequestItemHolder mh=new SentRequestItemHolder(v);
  return mh;
}
Program: 174378
Project: 174378
Buggy source:
private void setListeners(){
  mLogoutLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.logout();
      mLogoutLay.setVisibility(View.INVISIBLE);
      AppController.storeString(Constants.Authorization,null);
      AppController.storeString(Constants.TELEPHONE,null);
    }
  }
);
  myGiftLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyGiftsFragment(),MyGiftsFragment.class.getName());
    }
  }
);
  myRequestsLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyRequestsFragment(),MyRequestsFragment.class.getName());
    }
  }
);
  locationLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      FragmentManager fm=getActivity().getSupportFragmentManager();
      ChoosePlaceDialogFragment choosePlaceDialogFragment=new ChoosePlaceDialogFragment();
      choosePlaceDialogFragment.setTargetFragment(MyWallFragment.this,0);
      choosePlaceDialogFragment.show(fm,"String_Node_Str");
    }
  }
);
  statisticLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new StatisticFragment(),StatisticFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
private void setListeners(){
  mLogoutLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.logout();
      mLogoutLay.setVisibility(View.INVISIBLE);
      AppController.storeString(Constants.Authorization,null);
      AppController.storeString(Constants.TELEPHONE,null);
    }
  }
);
  myGiftLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).replaceFragment(new MyGiftsFragment(),MyGiftsFragment.class.getName());
    }
  }
);
  myRequestsLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).replaceFragment(new MyRequestsFragment(),MyRequestsFragment.class.getName());
    }
  }
);
  locationLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      FragmentManager fm=getActivity().getSupportFragmentManager();
      ChoosePlaceDialogFragment choosePlaceDialogFragment=new ChoosePlaceDialogFragment();
      choosePlaceDialogFragment.setTargetFragment(MyWallFragment.this,0);
      choosePlaceDialogFragment.show(fm,"String_Node_Str");
    }
  }
);
  statisticLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).replaceFragment(new StatisticFragment(),StatisticFragment.class.getName());
    }
  }
);
}
Program: 174379
Project: 174379
Buggy source:
@Override public void onClick(View v){
  ((BottomBarActivity)getActivity()).setFragment(new StatisticFragment(),StatisticFragment.class.getName());
}

Fixed version (ground truth):
@Override public void onClick(View v){
  ((BottomBarActivity)getActivity()).replaceFragment(new StatisticFragment(),StatisticFragment.class.getName());
}
Program: 174380
Project: 174380
Buggy source:
@Override protected void init(){
  super.init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
}

Fixed version (ground truth):
@Override protected void init(){
  super.init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
  if (AppController.getStoredString(Constants.Authorization) != null) {
    setupViewPager(mainVp);
    mainTabs.setupWithViewPager(mainVp);
    myGiftTopLay.setVisibility(View.GONE);
    myGiftBottomLay.setVisibility(View.VISIBLE);
    mainVp.setCurrentItem(2,false);
  }
 else {
    myGiftTopLay.setVisibility(View.VISIBLE);
    myGiftBottomLay.setVisibility(View.INVISIBLE);
    myGiftLoginBtn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        startActivity(new Intent(getActivity(),LoginActivity.class));
      }
    }
);
  }
}
Program: 174381
Project: 174381
Buggy source:
@Override public void onResume(){
  super.onResume();
  if (AppController.getStoredString(Constants.Authorization) != null) {
    setupViewPager(mainVp);
    mainTabs.setupWithViewPager(mainVp);
    myGiftTopLay.setVisibility(View.GONE);
    myGiftBottomLay.setVisibility(View.VISIBLE);
    mainVp.setCurrentItem(2,false);
  }
 else {
    myGiftTopLay.setVisibility(View.VISIBLE);
    myGiftBottomLay.setVisibility(View.INVISIBLE);
    myGiftLoginBtn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        startActivity(new Intent(getActivity(),LoginActivity.class));
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onResume(){
  super.onResume();
}
Program: 174382
Project: 174382
Buggy source:
@Override protected void init(){
  super.init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
}

Fixed version (ground truth):
@Override protected void init(){
  super.init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
  if (AppController.getStoredString(Constants.Authorization) != null) {
    setupViewPager(mainVp);
    mainTabs.setupWithViewPager(mainVp);
    mainVp.setCurrentItem(1,false);
    myGiftTopLay.setVisibility(View.GONE);
    myGiftBottomLay.setVisibility(View.VISIBLE);
    mainVp.setCurrentItem(1,false);
  }
 else {
    myGiftTopLay.setVisibility(View.VISIBLE);
    myGiftBottomLay.setVisibility(View.INVISIBLE);
    myGiftLoginBtn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        startActivity(new Intent(getActivity(),LoginActivity.class));
      }
    }
);
  }
}
Program: 174383
Project: 174383
Buggy source:
@Override public void onResume(){
  super.onResume();
  if (AppController.getStoredString(Constants.Authorization) != null) {
    setupViewPager(mainVp);
    mainTabs.setupWithViewPager(mainVp);
    mainVp.setCurrentItem(1,false);
    myGiftTopLay.setVisibility(View.GONE);
    myGiftBottomLay.setVisibility(View.VISIBLE);
    mainVp.setCurrentItem(1,false);
  }
 else {
    myGiftTopLay.setVisibility(View.VISIBLE);
    myGiftBottomLay.setVisibility(View.INVISIBLE);
    myGiftLoginBtn.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        startActivity(new Intent(getActivity(),LoginActivity.class));
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onResume(){
  super.onResume();
}
Program: 174384
Project: 174384
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_requests_toagift,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174385
Project: 174385
Buggy source:
public SentRequestItemHolder(View itemView){
  super(itemView);
  this.itemView=itemView;
  mItemTitleTv=(TextView)itemView.findViewById(R.id.rw_sent_request_name_tv);
}

Fixed version (ground truth):
public SentRequestItemHolder(View itemView){
  super(itemView);
  this.itemView=itemView;
  rootLay=(RelativeLayout)itemView.findViewById(R.id.root_lay);
  mItemTitleTv=(TextView)itemView.findViewById(R.id.rw_sent_request_name_tv);
}
Program: 174386
Project: 174386
Buggy source:
private void setListeners(){
  mBackBtn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      onBackPressed();
    }
  }
);
  enterVerificationCodeListener=new View.OnClickListener(){
    @Override public void onClick(    View v){
      Toasti.showS("String_Node_Str");
      apiRequest.getToken(phoneConfirimationCodeEt.getText().toString());
    }
  }
;
  enterPhoneNumber=new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.register(phoneConfirimationCodeEt.getText().toString());
      enterVerificationCode();
    }
  }
;
  not_recieved_code_btn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      enterTelephoneNumber();
    }
  }
);
  if (AppController.getStoredString(Constants.TELEPHONE) == null) {
    enterTelephoneNumber();
    loginGetVerificationBtn.setOnClickListener(enterPhoneNumber);
  }
 else {
    enterVerificationCode();
    loginGetVerificationBtn.setOnClickListener(enterVerificationCodeListener);
  }
}

Fixed version (ground truth):
private void setListeners(){
  mBackBtn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      onBackPressed();
    }
  }
);
  enterVerificationCodeListener=new View.OnClickListener(){
    @Override public void onClick(    View v){
      Toasti.showS("String_Node_Str");
      apiRequest.getToken(phoneConfirimationCodeEt.getText().toString());
    }
  }
;
  enterPhoneNumber=new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.register(phoneConfirimationCodeEt.getText().toString());
    }
  }
;
  not_recieved_code_btn.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      AppController.storeString(Constants.TELEPHONE,null);
      enterTelephoneNumber();
    }
  }
);
  if (AppController.getStoredString(Constants.TELEPHONE) == null) {
    enterTelephoneNumber();
    loginGetVerificationBtn.setOnClickListener(enterPhoneNumber);
  }
 else {
    enterVerificationCode();
    loginGetVerificationBtn.setOnClickListener(enterVerificationCodeListener);
  }
}
Program: 174387
Project: 174387
Buggy source:
@Override public void onResponse(Call call,Response response){
  if (response.body() instanceof TokenOutput) {
    TokenOutput tokenOutput=(TokenOutput)response.body();
    AppController.storeString(Constants.Authorization,Constants.BEARER + "String_Node_Str" + tokenOutput.access_token);
    AppController.storeString(Constants.USERNAME,tokenOutput.userName);
    finish();
  }
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  if (response.body() instanceof TokenOutput) {
    TokenOutput tokenOutput=(TokenOutput)response.body();
    AppController.storeString(Constants.Authorization,Constants.BEARER + "String_Node_Str" + tokenOutput.access_token);
    AppController.storeString(Constants.USERNAME,tokenOutput.userName);
    finish();
  }
 else {
    enterVerificationCode();
  }
}
Program: 174388
Project: 174388
Buggy source:
@Override public void onClick(View v){
  enterTelephoneNumber();
}

Fixed version (ground truth):
@Override public void onClick(View v){
  AppController.storeString(Constants.TELEPHONE,null);
  enterTelephoneNumber();
}
Program: 174389
Project: 174389
Buggy source:
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(gifts.get(i).title);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(SentRequestItemHolder myHolder,final int i){
  myHolder.mItemTitleTv.setText(gifts.get(i).title);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View view){
      RequestsToAGiftFragment requestsToAGiftFragment=new RequestsToAGiftFragment();
      Bundle bundle=new Bundle();
      bundle.putString(Constants.GIFT_ID,gifts.get(i).giftId);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).setFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}
Program: 174390
Project: 174390
Buggy source:
private void setListeners(){
  mLogoutLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.logout();
      mLogoutLay.setVisibility(View.INVISIBLE);
      AppController.storeString(Constants.Authorization,null);
    }
  }
);
  myGiftLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyGiftsFragment(),MyGiftsFragment.class.getName());
    }
  }
);
  myRequestsLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyRequestsFragment(),MyRequestsFragment.class.getName());
    }
  }
);
  locationLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      FragmentManager fm=getActivity().getSupportFragmentManager();
      ChoosePlaceDialogFragment choosePlaceDialogFragment=new ChoosePlaceDialogFragment();
      choosePlaceDialogFragment.setTargetFragment(MyWallFragment.this,0);
      choosePlaceDialogFragment.show(fm,"String_Node_Str");
    }
  }
);
  statisticLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new StatisticFragment(),StatisticFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
private void setListeners(){
  mLogoutLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.logout();
      mLogoutLay.setVisibility(View.INVISIBLE);
      AppController.storeString(Constants.Authorization,null);
      AppController.storeString(Constants.TELEPHONE,null);
    }
  }
);
  myGiftLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyGiftsFragment(),MyGiftsFragment.class.getName());
    }
  }
);
  myRequestsLay.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new MyRequestsFragment(),MyRequestsFragment.class.getName());
    }
  }
);
  locationLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      FragmentManager fm=getActivity().getSupportFragmentManager();
      ChoosePlaceDialogFragment choosePlaceDialogFragment=new ChoosePlaceDialogFragment();
      choosePlaceDialogFragment.setTargetFragment(MyWallFragment.this,0);
      choosePlaceDialogFragment.show(fm,"String_Node_Str");
    }
  }
);
  statisticLayout.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      ((BottomBarActivity)getActivity()).setFragment(new StatisticFragment(),StatisticFragment.class.getName());
    }
  }
);
}
Program: 174391
Project: 174391
Buggy source:
@Override protected void init(){
  super.init();
  adapter=new RequestToMyGiftsAdapter(context,gifts);
  mRecyclerView.setAdapter(adapter);
  linearLayoutManager=new LinearLayoutManager(context);
  mRecyclerView.setLayoutManager(linearLayoutManager);
  apiRequest.getRequestedToMyGifts(new StartLastIndex(startIndex + "String_Node_Str",startIndex + Constants.LIMIT + "String_Node_Str"));
}

Fixed version (ground truth):
@Override protected void init(){
  super.init();
  adapter=new RequestToMyGiftsAdapter(context,gifts);
  mRecyclerView.setAdapter(adapter);
  linearLayoutManager=new LinearLayoutManager(context);
  mRecyclerView.setLayoutManager(linearLayoutManager);
  apiRequest.getRequestsToMyGifts(new StartLastIndex(startIndex + "String_Node_Str",startIndex + Constants.LIMIT + "String_Node_Str"));
}
Program: 174392
Project: 174392
Buggy source:
@GET("String_Node_Str" + Constants.StartIndex + "String_Node_Str"+ Constants.LastIndex+ "String_Node_Str") Call<ArrayList<BookmarkListOutput>> getBookmarkList(@Header(Constants.ContentType) String contentType,@Header(Constants.Authorization) String authorization,@Path(Constants.StartIndex) String startIndex,@Path(Constants.LastIndex) String lastIndex);

Fixed version (ground truth):
@GET("String_Node_Str" + Constants.StartIndex + "String_Node_Str"+ Constants.LastIndex+ "String_Node_Str") Call<ArrayList<Gift>> getBookmarkList(@Header(Constants.ContentType) String contentType,@Header(Constants.Authorization) String authorization,@Path(Constants.StartIndex) String startIndex,@Path(Constants.LastIndex) String lastIndex);
Program: 174393
Project: 174393
Buggy source:
@Override public void onResponse(Call call,Response response){
  mRecyclerView.setVisibility(View.VISIBLE);
  progressView.setVisibility(View.INVISIBLE);
  ArrayList<BookmarkListOutput> gifts=(ArrayList<BookmarkListOutput>)response.body();
  for (int i=0; i < gifts.size(); i++) {
    this.gifts.add(gifts.get(i).gift);
  }
  adapter.notifyDataSetChanged();
  if (gifts.size() > 0) {
    mRecyclerView.setVisibility(View.VISIBLE);
    mMessageTv.setVisibility(View.INVISIBLE);
  }
 else {
    mRecyclerView.setVisibility(View.INVISIBLE);
    mMessageTv.setVisibility(View.VISIBLE);
    mMessageTv.setText("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  mRecyclerView.setVisibility(View.VISIBLE);
  progressView.setVisibility(View.INVISIBLE);
  ArrayList<Gift> gifts=(ArrayList<Gift>)response.body();
  this.gifts.addAll(gifts);
  adapter.notifyDataSetChanged();
  if (gifts.size() > 0) {
    mRecyclerView.setVisibility(View.VISIBLE);
    mMessageTv.setVisibility(View.INVISIBLE);
  }
 else {
    mRecyclerView.setVisibility(View.INVISIBLE);
    mMessageTv.setVisibility(View.VISIBLE);
    mMessageTv.setText("String_Node_Str");
  }
}
Program: 174394
Project: 174394
Buggy source:
public void getBookmarkList(StartLastIndex startLastIndex){
  Call<ArrayList<BookmarkListOutput>> call=AppController.service.getBookmarkList(Constants.JSON_TYPE,AppController.getStoredString(Constants.Authorization),startLastIndex.startIndex,startLastIndex.lastIndex);
  call.enqueue(new CallbackWithRetry<ArrayList<BookmarkListOutput>>(call,mContext){
    @Override public void onResponse(    Call<ArrayList<BookmarkListOutput>> call,    Response<ArrayList<BookmarkListOutput>> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<ArrayList<BookmarkListOutput>> call,    Throwable t){
      super.onFailure(call,t);
    }
  }
);
}

Fixed version (ground truth):
public void getBookmarkList(StartLastIndex startLastIndex){
  Call<ArrayList<Gift>> call=AppController.service.getBookmarkList(Constants.JSON_TYPE,AppController.getStoredString(Constants.Authorization),startLastIndex.startIndex,startLastIndex.lastIndex);
  call.enqueue(new CallbackWithRetry<ArrayList<Gift>>(call,mContext){
    @Override public void onResponse(    Call<ArrayList<Gift>> call,    Response<ArrayList<Gift>> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<ArrayList<Gift>> call,    Throwable t){
      super.onFailure(call,t);
    }
  }
);
}
Program: 174395
Project: 174395
Buggy source:
@Override public void onFailure(Call<T> call,Throwable t){
  if (call.isCanceled()) {
  }
 else {
    if (t instanceof IOException) {
      ConnectionDetector.ShowNetwrokConnectionProblemDialog(context,this);
    }
  }
}

Fixed version (ground truth):
@Override public void onFailure(Call<T> call,Throwable t){
  if (call.isCanceled()) {
  }
 else {
    if (t instanceof IOException) {
      if (((Activity)context).hasWindowFocus()) {
        ConnectionDetector.ShowNetwrokConnectionProblemDialog(context,this);
      }
    }
  }
}
Program: 174396
Project: 174396
Buggy source:
@Override public void onMenuTabSelected(@IdRes int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
    setFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    mToolbarTitleTextView.setText(R.string.categories);
    setFragment(new CategoriesGridFragment(),CategoriesGridFragment.class.getName());
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    mToolbarTitleTextView.setText(R.string.search);
    setFragment(HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null),HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    mToolbarTitleTextView.setText(R.string.my_wall);
    setFragment(new MyWallFragment(),MyWallFragment.class.getName());
  }
}

Fixed version (ground truth):
@Override public void onMenuTabSelected(@IdRes int menuItemId){
  TabSelected(menuItemId);
}
Program: 174397
Project: 174397
Buggy source:
private void settingBottomBar(Bundle savedInstanceState){
  mBottomBar=BottomBar.attach(this,savedInstanceState);
  mBottomBar.noTopOffset();
  mBottomBar.useFixedMode();
  mBottomBar.setTypeFace("String_Node_Str");
  mBottomBar.setItems(R.menu.menu_bottombar);
  mBottomBar.findViewById(R.id.bb_bottom_bar_background_view).setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
  int color=getResources().getColor(R.color.white);
  ((ImageView)mBottomBar.findViewById(R.id.bb_bottom_bar_icon)).setColorFilter(color);
  mBottomBar.setOnMenuTabClickListener(new OnMenuTabClickListener(){
    @Override public void onMenuTabSelected(    @IdRes int menuItemId){
      if (menuItemId == R.id.bottomBarHome) {
        mToolbarTitleTextView.setText("String_Node_Str" + AppController.getStoredString(Constants.MY_LOCATION_NAME));
        setFragment(HomeFragment.newInstance(Constants.HOME_PAGETYPE,null),HomeFragment.class.getName() + Constants.HOME_PAGETYPE);
      }
 else       if (menuItemId == R.id.bottomBarCategories) {
        mToolbarTitleTextView.setText(R.string.categories);
        setFragment(new CategoriesGridFragment(),CategoriesGridFragment.class.getName());
      }
 else       if (menuItemId == R.id.bottomBarSearch) {
        mToolbarTitleTextView.setText(R.string.search);
        setFragment(HomeFragment.newInstance(Constants.SEARCH_PAGETYPE,null),HomeFragment.class.getName() + Constants.SEARCH_PAGETYPE);
      }
 else       if (menuItemId == R.id.bottomBarMyWall) {
        mToolbarTitleTextView.setText(R.string.my_wall);
        setFragment(new MyWallFragment(),MyWallFragment.class.getName());
      }
    }
    @Override public void onMenuTabReSelected(    @IdRes int menuItemId){
      if (menuItemId == R.id.bottomBarHome) {
        Toasti.showS("String_Node_Str");
      }
 else       if (menuItemId == R.id.bottomBarCategories) {
        Toasti.showS("String_Node_Str");
      }
 else       if (menuItemId == R.id.bottomBarSearch) {
        Toasti.showS("String_Node_Str");
      }
 else       if (menuItemId == R.id.bottomBarMyWall) {
        Toasti.showS("String_Node_Str");
      }
    }
  }
);
}

Fixed version (ground truth):
private void settingBottomBar(Bundle savedInstanceState){
  mBottomBar=BottomBar.attach(this,savedInstanceState);
  mBottomBar.noTopOffset();
  mBottomBar.useFixedMode();
  mBottomBar.setTypeFace("String_Node_Str");
  mBottomBar.setItems(R.menu.menu_bottombar);
  mBottomBar.findViewById(R.id.bb_bottom_bar_background_view).setBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
  int color=getResources().getColor(R.color.white);
  ((ImageView)mBottomBar.findViewById(R.id.bb_bottom_bar_icon)).setColorFilter(color);
  mBottomBar.setOnMenuTabClickListener(new OnMenuTabClickListener(){
    @Override public void onMenuTabSelected(    @IdRes int menuItemId){
      TabSelected(menuItemId);
    }
    @Override public void onMenuTabReSelected(    @IdRes int menuItemId){
      TabSelected(menuItemId);
    }
  }
);
}
Program: 174398
Project: 174398
Buggy source:
@Override public void onMenuTabReSelected(@IdRes int menuItemId){
  if (menuItemId == R.id.bottomBarHome) {
    Toasti.showS("String_Node_Str");
  }
 else   if (menuItemId == R.id.bottomBarCategories) {
    Toasti.showS("String_Node_Str");
  }
 else   if (menuItemId == R.id.bottomBarSearch) {
    Toasti.showS("String_Node_Str");
  }
 else   if (menuItemId == R.id.bottomBarMyWall) {
    Toasti.showS("String_Node_Str");
  }
}

Fixed version (ground truth):
@Override public void onMenuTabReSelected(@IdRes int menuItemId){
  TabSelected(menuItemId);
}