nus-yam/ex-repair huggingface dataset:
Program: 174306
Project: 174306
Buggy source:
private void setupViewPager(ViewPager viewPager){
  ViewPagerAdapter adapter=new ViewPagerAdapter(mainActivity.getSupportFragmentManager());
  SentRequestsFragment sentRequestsFragment=new SentRequestsFragment();
  ReceivedRequestsFragment receivedRequestsFragment=new ReceivedRequestsFragment();
  adapter.addFrag(sentRequestsFragment,"String_Node_Str");
  adapter.addFrag(receivedRequestsFragment,"String_Node_Str");
  viewPager.setAdapter(adapter);
  adapter.notifyDataSetChanged();
}

Fixed version (ground truth):
private void setupViewPager(ViewPager viewPager){
  ViewPagerAdapter adapter=new ViewPagerAdapter(getChildFragmentManager());
  SentRequestsFragment sentRequestsFragment=new SentRequestsFragment();
  ReceivedRequestsFragment receivedRequestsFragment=new ReceivedRequestsFragment();
  adapter.addFrag(sentRequestsFragment,"String_Node_Str");
  adapter.addFrag(receivedRequestsFragment,"String_Node_Str");
  viewPager.setAdapter(adapter);
  adapter.notifyDataSetChanged();
}
Program: 174307
Project: 174307
Buggy source:
@Override public void onResponse(Call call,Response response){
  super.onResponse(call,response);
  Map<String,String> characteristics=(Map<String,String>)response.body();
  int i=0;
  for (  Map.Entry<String,String> entry : characteristics.entrySet()) {
    i++;
    if (i > 1) {
      break;
    }
    String key=entry.getKey();
    String value=entry.getValue();
    TextView valueTxt=(TextView)rootView.findViewById(AppController.getAppContext().getResources().getIdentifier("String_Node_Str" + i,"String_Node_Str",getContext().getPackageName()));
    valueTxt.setText(value);
    valueTxt.setVisibility(View.VISIBLE);
    TextView keyTxt=(TextView)rootView.findViewById(AppController.getAppContext().getResources().getIdentifier("String_Node_Str" + i,"String_Node_Str",getContext().getPackageName()));
    keyTxt.setText(key);
    keyTxt.setVisibility(View.VISIBLE);
  }
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  super.onResponse(call,response);
  Map<String,String> characteristics=(Map<String,String>)response.body();
  int i=0;
  for (  Map.Entry<String,String> entry : characteristics.entrySet()) {
    i++;
    if (i > 1) {
      break;
    }
    String key=entry.getKey();
    String value=entry.getValue();
    TextView valueTxt=(TextView)rootView.findViewById(AppController.getAppContext().getResources().getIdentifier("String_Node_Str" + i,"String_Node_Str",getActivity().getPackageName()));
    valueTxt.setText(value);
    valueTxt.setVisibility(View.VISIBLE);
    TextView keyTxt=(TextView)rootView.findViewById(AppController.getAppContext().getResources().getIdentifier("String_Node_Str" + i,"String_Node_Str",getActivity().getPackageName()));
    keyTxt.setText(key);
    keyTxt.setVisibility(View.VISIBLE);
  }
}
Program: 174309
Project: 174309
Buggy source:
private void init(){
  context=this;
  apiRequest=new ApiRequest(context,this);
  phoneConfirimationCodeEt.setRawInputType(Configuration.KEYBOARD_QWERTY);
  settingToolbar();
}

Fixed version (ground truth):
private void init(){
  context=this;
  apiRequest=new ApiRequest(context,this);
  if (!AppController.getStoredBoolean(Constants.CALLED_SETDEVICE_BEFORE,false)) {
    String deviceID=DeviceInfo.getDeviceID(this);
    Log.d("String_Node_Str",deviceID);
    apiRequest.setDevice(new SetDeviceInput(AppController.getStoredString(Constants.FIREBASE_REG_TOKEN),deviceID));
  }
  phoneConfirimationCodeEt.setRawInputType(Configuration.KEYBOARD_QWERTY);
  settingToolbar();
}
Program: 174310
Project: 174310
Buggy source:
@POST("String_Node_Str") Call<ResponseBody> logout(@Header(Constants.ContentType) String contentType,@Header(Constants.Authorization) String authorization);

Fixed version (ground truth):
@POST("String_Node_Str") Call<ResponseBody> logout(@Header(Constants.ContentType) String contentType,@Header(Constants.Authorization) String authorization,@Path("String_Node_Str") String registerationId);
Program: 174311
Project: 174311
Buggy source:
@POST("String_Node_Str") Call<SetDeviceOutput> setDevice(@Body SetDeviceInput setDeviceInput);

Fixed version (ground truth):
@POST("String_Node_Str") Call<ResponseBody> setDevice(@Header(Constants.ContentType) String contentType,@Body SetDeviceInput setDeviceInput);
Program: 174312
Project: 174312
Buggy source:
public void logout(){
  Call<ResponseBody> call=AppController.accountService.logout(Constants.JSON_TYPE,AppController.getStoredString(Constants.Authorization));
  call.enqueue(new CallbackWithRetry<ResponseBody>(call,mContext){
    @Override public void onResponse(    Call<ResponseBody> call,    Response<ResponseBody> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<ResponseBody> call,    Throwable t){
      super.onFailure(call,t);
    }
  }
);
}

Fixed version (ground truth):
public void logout(){
  Call<ResponseBody> call=AppController.accountService.logout(Constants.JSON_TYPE,AppController.getStoredString(Constants.Authorization),AppController.getStoredString(Constants.FIREBASE_REG_TOKEN));
  call.enqueue(new CallbackWithRetry<ResponseBody>(call,mContext){
    @Override public void onResponse(    Call<ResponseBody> call,    Response<ResponseBody> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<ResponseBody> call,    Throwable t){
      super.onFailure(call,t);
    }
  }
);
}
Program: 174313
Project: 174313
Buggy source:
public void setDevice(SetDeviceInput device){
  Call<SetDeviceOutput> result=AppController.accountService.setDevice(device);
  result.enqueue(new CallbackWithRetry<SetDeviceOutput>(result,mContext){
    @Override public void onResponse(    Call<SetDeviceOutput> call,    Response<SetDeviceOutput> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<SetDeviceOutput> call,    Throwable t){
      Toasti.showS("String_Node_Str");
    }
  }
);
}

Fixed version (ground truth):
public void setDevice(SetDeviceInput device){
  Call<ResponseBody> result=AppController.accountService.setDevice(Constants.JSON_TYPE,device);
  result.enqueue(new CallbackWithRetry<ResponseBody>(result,mContext){
    @Override public void onResponse(    Call<ResponseBody> call,    Response<ResponseBody> response){
      handlingOnResponse(new HandlingResponse(call,response,this));
    }
    @Override public void onFailure(    Call<ResponseBody> call,    Throwable t){
      Toasti.showS("String_Node_Str");
    }
  }
);
}
Program: 174314
Project: 174314
Buggy source:
@Override public void onResponse(Call call,Response response){
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  if (response.body() instanceof ResponseBody) {
    AppController.storeBoolean(Constants.CALLED_SETDEVICE_BEFORE,true);
  }
}
Program: 174315
Project: 174315
Buggy source:
@Override public void onFailure(Call call,Throwable t){
}

Fixed version (ground truth):
@Override public void onFailure(Call call,Throwable t){
  int i=0;
  Log.d(TAG,"String_Node_Str");
}
Program: 174316
Project: 174316
Buggy source:
public void addFragment(Fragment fragment,String title){
  try {
    FragmentManager fragmentManager=getSupportFragmentManager();
    FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
    fragmentTransaction.add(R.id.container_body,fragment,title);
    fragmentTransaction.addToBackStack(title);
    fragmentTransaction.commit();
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void addFragment(Fragment fragment,String title){
  try {
    FragmentManager fragmentManager=getSupportFragmentManager();
    FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
    fragmentTransaction.add(R.id.container_body,fragment,title);
    fragmentTransaction.addToBackStack(title);
    fragmentTransaction.commit();
    fragmentManager.executePendingTransactions();
  }
 catch (  Exception e) {
  }
}
Program: 174317
Project: 174317
Buggy source:
public void replaceFragment(Fragment fragment,String title){
  try {
    FragmentManager fragmentManager=getSupportFragmentManager();
    FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
    fragmentTransaction.replace(R.id.container_body,fragment,title);
    fragmentTransaction.addToBackStack(title);
    fragmentTransaction.commit();
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void replaceFragment(Fragment fragment,String title){
  try {
    FragmentManager fragmentManager=getSupportFragmentManager();
    FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
    fragmentTransaction.replace(R.id.container_body,fragment,title);
    fragmentTransaction.addToBackStack(title);
    fragmentTransaction.commit();
    fragmentManager.executePendingTransactions();
  }
 catch (  Exception e) {
  }
}
Program: 174318
Project: 174318
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);
  bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
  bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).addFragment(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);
  bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
  bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).replaceFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
}
Program: 174319
Project: 174319
Buggy source:
@Override public void onBindViewHolder(final ReceiveGiftsRequestHolder myHolder,final int i){
  myHolder.mTitleTv.setText(gifts.get(i).title);
  myHolder.mUnseenMsgTv.setText(gifts.get(i).requestCount);
  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);
      bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
      bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(final ReceiveGiftsRequestHolder myHolder,final int i){
  myHolder.mTitleTv.setText(gifts.get(i).title);
  myHolder.mUnseenMsgTv.setText(gifts.get(i).requestCount);
  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);
      bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
      bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).replaceFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}
Program: 174320
Project: 174320
Buggy source:
private void updateCurrentFragment(){
  if (!mShouldUpdateFragmentInitially && mFragmentManager != null && mFragmentContainer != 0 && mItems != null && mItems instanceof BottomBarFragment[]) {
    BottomBarFragment newFragment=((BottomBarFragment)mItems[mCurrentTabPosition]);
    if (mFragmentManager instanceof android.support.v4.app.FragmentManager && newFragment.getSupportFragment() != null) {
      ((android.support.v4.app.FragmentManager)mFragmentManager).beginTransaction().replace(mFragmentContainer,newFragment.getSupportFragment()).commit();
    }
 else     if (mFragmentManager instanceof android.app.FragmentManager && newFragment.getFragment() != null) {
      ((android.app.FragmentManager)mFragmentManager).beginTransaction().replace(mFragmentContainer,newFragment.getFragment()).commit();
    }
  }
  mShouldUpdateFragmentInitially=false;
}

Fixed version (ground truth):
private void updateCurrentFragment(){
  if (!mShouldUpdateFragmentInitially && mFragmentManager != null && mFragmentContainer != 0 && mItems != null && mItems instanceof BottomBarFragment[]) {
    BottomBarFragment newFragment=((BottomBarFragment)mItems[mCurrentTabPosition]);
    if (mFragmentManager instanceof android.support.v4.app.FragmentManager && newFragment.getSupportFragment() != null) {
      ((android.support.v4.app.FragmentManager)mFragmentManager).beginTransaction().replace(mFragmentContainer,newFragment.getSupportFragment()).commit();
    }
 else     if (mFragmentManager instanceof android.app.FragmentManager && newFragment.getFragment() != null) {
      ((android.app.FragmentManager)mFragmentManager).beginTransaction().replace(mFragmentContainer,newFragment.getFragment()).commit();
    }
    ((android.support.v4.app.FragmentManager)mFragmentManager).executePendingTransactions();
  }
  mShouldUpdateFragmentInitially=false;
}
Program: 174322
Project: 174322
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_information,container,false);
  ButterKnife.bind(this,rootView);
  init();
  setListeners();
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_information,container,false);
  ButterKnife.bind(this,rootView);
  init();
  setListeners();
  return rootView;
}
Program: 174323
Project: 174323
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();
  adapter=new GridCategoriesAdapter(context,categories);
  mRecyclerView.setAdapter(adapter);
  mRecyclerView.setLayoutManager(new GridLayoutManager(context,2));
  apiRequest.getCategories();
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  adapter=new GridCategoriesAdapter(context,categories);
  mRecyclerView.setAdapter(adapter);
  mRecyclerView.setLayoutManager(new GridLayoutManager(context,2));
  apiRequest.getCategories();
  return rootView;
}
Program: 174324
Project: 174324
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174325
Project: 174325
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_my_wall,container,false);
  ButterKnife.bind(this,rootView);
  init();
  setListeners();
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_my_wall,container,false);
  ButterKnife.bind(this,rootView);
  init();
  setListeners();
  return rootView;
}
Program: 174326
Project: 174326
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_statistic,container,false);
  ButterKnife.bind(this,rootView);
  init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
  return rootView;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_statistic,container,false);
  ButterKnife.bind(this,rootView);
  init();
  ((BottomBarActivity)getActivity()).mToolbarTitleTextView.setText("String_Node_Str");
  return rootView;
}
Program: 174327
Project: 174327
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_my_gifts,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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_my_gifts,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174328
Project: 174328
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  View rootView=inflater.inflate(R.layout.fragment_my_requests,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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_my_requests,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174329
Project: 174329
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  apiRequest.getRequestsToMyGifts(new StartLastIndex(startIndex + "String_Node_Str",startIndex + Constants.LIMIT + "String_Node_Str"));
  return rootView;
}
Program: 174330
Project: 174330
Buggy source:
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_requests_toagift,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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_requests_toagift,container,false);
  ButterKnife.bind(this,rootView);
  requestModels.clear();
  init();
  return rootView;
}
Program: 174331
Project: 174331
Buggy source:
private void setInfo(){
  mTitleEt.setText(myGift.title);
  mPriceEt.setText(myGift.price);
  mDescriptionEt.setText(myGift.description);
  category=new Category();
  category.categoryId=myGift.categoryId;
  category.title=myGift.category;
  changeUIAfterCategorySelect();
  if (myGift.locationId != null) {
    city=new Place();
    city.id=myGift.locationId;
    city.name=myGift.location;
    if (!myGift.location.equals("String_Node_Str")) {
      mChooseCityBtnTxt.setText(myGift.location);
    }
  }
  if (myGift.regionId != null) {
    region=new Place();
    region.id=myGift.regionId;
    region.name=myGift.region;
    if (!myGift.region.equals("String_Node_Str")) {
      mChooseRegionBtnTxt.setText(myGift.region);
    }
  }
  findCityRegion();
  giftGalleryAdapter.notifyDataSetChanged();
  onUpdateGallery();
}

Fixed version (ground truth):
private void setInfo(){
  mTitleEt.setText(myGift.title);
  mPriceEt.setText(myGift.price);
  mDescriptionEt.setText(myGift.description);
  category=new Category();
  category.categoryId=myGift.categoryId;
  category.title=myGift.category;
  changeUIAfterCategorySelect();
  if (myGift.locationId != null) {
    city=new Place();
    city.id=myGift.locationId;
    city.name=myGift.location;
    if (myGift.location != null && !myGift.location.equals("String_Node_Str")) {
      mChooseCityBtnTxt.setText(myGift.location);
    }
  }
  if (myGift.regionId != null) {
    region=new Place();
    region.id=myGift.regionId;
    region.name=myGift.region;
    if (myGift.region != null && !myGift.region.equals("String_Node_Str")) {
      mChooseRegionBtnTxt.setText(myGift.region);
    }
  }
  findCityRegion();
  giftGalleryAdapter=new GiftGalleryAdapter(this,myGift.giftImages);
  mRecyclerView.setAdapter(giftGalleryAdapter);
  mRecyclerView.setLayoutManager(new LinearLayoutManager(this,LinearLayoutManager.HORIZONTAL,true));
  giftGalleryAdapter.notifyDataSetChanged();
  onUpdateGallery();
}
Program: 174332
Project: 174332
Buggy source:
public static Intent createIntent(){
  Intent intent=new Intent(AppController.getAppContext(),GiftDetailActivity.class);
  return intent;
}

Fixed version (ground truth):
public static Intent createIntent(){
  Intent intent=new Intent(AppController.getAppContext(),LoginActivity.class);
  return intent;
}
Program: 174333
Project: 174333
Buggy source:
public static Intent createIntent(){
  Intent intent=new Intent(AppController.getAppContext(),GiftDetailActivity.class);
  return intent;
}

Fixed version (ground truth):
public static Intent createIntent(){
  Intent intent=new Intent(AppController.getAppContext(),RegisterGiftActivity.class);
  return intent;
}
Program: 174334
Project: 174334
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){
      apiRequest.login(phoneConfirimationCodeEt.getText().toString());
      progressView.setVisibility(View.VISIBLE);
      login_get_verification_tv.setVisibility(View.INVISIBLE);
    }
  }
;
  enterPhoneNumber=new View.OnClickListener(){
    @Override public void onClick(    View v){
      apiRequest.register(phoneConfirimationCodeEt.getText().toString());
      progressView.setVisibility(View.VISIBLE);
      login_get_verification_tv.setVisibility(View.INVISIBLE);
    }
  }
;
  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();
  }
 else {
    enterVerificationCode();
  }
}

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){
      String confirmationCode=NumberTranslator.toEnglish(phoneConfirimationCodeEt.getText().toString());
      if (!confirmationCode.trim().matches(regexStr)) {
        Toasti.showS("String_Node_Str");
        return;
      }
      apiRequest.login(confirmationCode);
      progressView.setVisibility(View.VISIBLE);
      login_get_verification_tv.setVisibility(View.INVISIBLE);
    }
  }
;
  enterPhoneNumber=new View.OnClickListener(){
    @Override public void onClick(    View v){
      String phoneNumber=NumberTranslator.toEnglish(phoneConfirimationCodeEt.getText().toString());
      if (phoneNumber.length() != 11 || !phoneNumber.startsWith("String_Node_Str") || !phoneNumber.trim().matches(regexStr)) {
        Toasti.showS("String_Node_Str");
        return;
      }
      apiRequest.register(phoneNumber);
      progressView.setVisibility(View.VISIBLE);
      login_get_verification_tv.setVisibility(View.INVISIBLE);
    }
  }
;
  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();
  }
 else {
    enterVerificationCode();
  }
}
Program: 174335
Project: 174335
Buggy source:
private void init(){
  context=this;
  apiRequest=new ApiRequest(context,this);
  settingToolbar();
}

Fixed version (ground truth):
private void init(){
  context=this;
  apiRequest=new ApiRequest(context,this);
  phoneConfirimationCodeEt.setRawInputType(Configuration.KEYBOARD_QWERTY);
  settingToolbar();
}
Program: 174336
Project: 174336
Buggy source:
@Override public void onResponse(Call call,Response response){
  progressView.setVisibility(View.INVISIBLE);
  login_get_verification_tv.setVisibility(View.VISIBLE);
  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);
    AppController.storeString(Constants.USER_ID,tokenOutput.userId);
    finish();
  }
 else {
    enterVerificationCode();
  }
}

Fixed version (ground truth):
@Override public void onResponse(Call call,Response response){
  progressView.setVisibility(View.INVISIBLE);
  login_get_verification_tv.setVisibility(View.VISIBLE);
  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);
    AppController.storeString(Constants.USER_ID,tokenOutput.userId);
    Toasti.showL("String_Node_Str" + NumberTranslator.toPersian(AppController.getStoredString(Constants.TELEPHONE)) + "String_Node_Str");
    finish();
  }
 else {
    enterVerificationCode();
  }
}
Program: 174337
Project: 174337
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174338
Project: 174338
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174339
Project: 174339
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174340
Project: 174340
Buggy source:
private void setupViewPager(ViewPager viewPager){
  ViewPagerAdapter adapter=new ViewPagerAdapter(mainActivity.getSupportFragmentManager());
  SentRequestsFragment sentRequestsFragment=new SentRequestsFragment();
  ReceivedRequestsFragment receivedRequestsFragment=new ReceivedRequestsFragment();
  adapter.addFrag(receivedRequestsFragment,"String_Node_Str");
  adapter.addFrag(sentRequestsFragment,"String_Node_Str");
  viewPager.setAdapter(adapter);
  adapter.notifyDataSetChanged();
}

Fixed version (ground truth):
private void setupViewPager(ViewPager viewPager){
  ViewPagerAdapter adapter=new ViewPagerAdapter(mainActivity.getSupportFragmentManager());
  SentRequestsFragment sentRequestsFragment=new SentRequestsFragment();
  ReceivedRequestsFragment receivedRequestsFragment=new ReceivedRequestsFragment();
  adapter.addFrag(sentRequestsFragment,"String_Node_Str");
  adapter.addFrag(receivedRequestsFragment,"String_Node_Str");
  viewPager.setAdapter(adapter);
  adapter.notifyDataSetChanged();
}
Program: 174341
Project: 174341
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174342
Project: 174342
Buggy source:
@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;
}

Fixed version (ground truth):
@Override public View onCreateView(LayoutInflater inflater,ViewGroup container,Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_requests_toagift,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174343
Project: 174343
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);
  if (rootView != null) {
    if (rootView.getParent() != null)     ((ViewGroup)rootView.getParent()).removeView(rootView);
    return rootView;
  }
  rootView=inflater.inflate(R.layout.fragment_recyclerview,container,false);
  ButterKnife.bind(this,rootView);
  init();
  return rootView;
}
Program: 174344
Project: 174344
Buggy source:
@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));
      }
    }
);
  }
}

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

Fixed version (ground truth):
@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));
      }
    }
);
  }
}
Program: 174346
Project: 174346
Buggy source:
@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));
      }
    }
);
  }
}

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

Fixed version (ground truth):
@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));
      }
    }
);
  }
}
Program: 174348
Project: 174348
Buggy source:
public static void ShowNetwrokConnectionProblemDialog(final Context activity,final CallbackWithRetry callbackWithRetry){
  MaterialDialog.Builder builder=MaterialDialogBuilder.create(activity);
  final MaterialDialog dialog=builder.customView(R.layout.activity_no_internet_connection,false).show();
  final RippleView rippleBtnTry;
  rippleBtnTry=(RippleView)dialog.findViewById(R.id.ripple_btn_internet_retry_btn_cardview);
  rippleBtnTry.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener(){
    @Override public void onComplete(    RippleView rippleView){
      if (ConnectionDetector.isConnectedToInternet()) {
        dialog.dismiss();
        callbackWithRetry.retry();
      }
 else {
        dialog.dismiss();
        dialog.show();
      }
    }
  }
);
  dialog.setCancelable(false);
}

Fixed version (ground truth):
public static void ShowNetwrokConnectionProblemDialog(final Context activity,final CallbackWithRetry callbackWithRetry){
  MaterialDialog.Builder builder=MaterialDialogBuilder.create(activity);
  final MaterialDialog dialog=builder.customView(R.layout.activity_no_internet_connection,false).show();
  final RippleView rippleBtnTry;
  rippleBtnTry=(RippleView)dialog.findViewById(R.id.ripple_btn_internet_retry_btn_cardview);
  rippleBtnTry.setOnRippleCompleteListener(new RippleView.OnRippleCompleteListener(){
    @Override public void onComplete(    RippleView rippleView){
      if (ConnectionDetector.isConnectedToInternet()) {
        dialog.dismiss();
        callbackWithRetry.retry();
      }
 else {
        dialog.dismiss();
        dialog.show();
      }
    }
  }
);
  dialog.setCancelable(true);
}
Program: 174349
Project: 174349
Buggy source:
private void setInfo(){
  mToolbarTitleTv.setText(gift.title);
  mDetailDescriptionTv.setText(gift.description);
  mDetailTitleTv.setText(gift.title);
  mDetailRegisterTimeTv.setText(gift.createDateTime);
  mDetailPriceTv.setText(gift.price);
  String place=findPlaceRecursion(gift.locationId);
  mDetailPlaceTv.setText(place);
  mDetailCategoryTv.setText(gift.category);
  setupViewPager(viewPager);
  mIndicator=new MyPageIndicator(this,pagesContainer,viewPager,R.drawable.indicator_circle);
  mIndicator.setPageCount(gift.giftImages != null ? gift.giftImages.size() : 0);
  mIndicator.show();
}

Fixed version (ground truth):
private void setInfo(){
  mToolbarTitleTv.setText(gift.title);
  mDetailDescriptionTv.setText(gift.description);
  mDetailTitleTv.setText(gift.title);
  mDetailRegisterTimeTv.setText(gift.createDateTime);
  mDetailPriceTv.setText(gift.price);
  String place=findPlaceRecursion(gift.locationId);
  mDetailPlaceTv.setText(place);
  mDetailCategoryTv.setText(gift.category);
  setupViewPager(viewPager);
  if (gift.giftImages.size() > 1) {
    mIndicator=new MyPageIndicator(this,pagesContainer,viewPager,R.drawable.indicator_circle);
    mIndicator.setPageCount(gift.giftImages != null ? gift.giftImages.size() : 0);
    mIndicator.show();
  }
 else {
    pagesContainer.setVisibility(View.GONE);
  }
}
Program: 174351
Project: 174351
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();
  }
 else {
    enterVerificationCode();
  }
}

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);
    AppController.storeString(Constants.USER_ID,tokenOutput.userId);
    finish();
  }
 else {
    enterVerificationCode();
  }
}
Program: 174352
Project: 174352
Buggy source:
@Override public ItemHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_ad_gift,null);
  ItemHolder mh=new ItemHolder(v);
  return mh;
}

Fixed version (ground truth):
@Override public GiftHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_ad_gift,null);
  GiftHolder mh=new GiftHolder(v);
  return mh;
}
Program: 174353
Project: 174353
Buggy source:
@Override public void onBindViewHolder(ItemHolder myHolder,final int i){
  String image_url;
  if (gifts.get(i).giftImages != null && gifts.get(i).giftImages.size() > 0) {
    image_url=gifts.get(i).giftImages.get(0);
  }
 else {
    image_url="String_Node_Str";
  }
  Glide.with(mContext).load(image_url).centerCrop().placeholder(R.color.background).crossFade().into(myHolder.getmItemIv());
  myHolder.getGiftTitleTv().setText(gifts.get(i).title + gifts.get(i).user);
  myHolder.getGiftLocationTv().setText(gifts.get(i).address);
  myHolder.getGiftCreatedTimeTv().setText(gifts.get(i).createDateTime);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mContext.startActivity(GiftDetailActivity.createIntent(gifts.get(i)));
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(GiftHolder myHolder,final int i){
  String image_url;
  if (gifts.get(i).giftImages != null && gifts.get(i).giftImages.size() > 0) {
    image_url=gifts.get(i).giftImages.get(0);
  }
 else {
    image_url="String_Node_Str";
  }
  Glide.with(mContext).load(image_url).centerCrop().placeholder(R.color.background).crossFade().into(myHolder.getmItemIv());
  myHolder.getGiftTitleTv().setText(gifts.get(i).title + gifts.get(i).user);
  myHolder.getGiftLocationTv().setText(gifts.get(i).address);
  myHolder.getGiftCreatedTimeTv().setText(gifts.get(i).createDateTime);
  myHolder.itemView.setOnClickListener(new View.OnClickListener(){
    @Override public void onClick(    View v){
      mContext.startActivity(GiftDetailActivity.createIntent(gifts.get(i)));
    }
  }
);
}
Program: 174354
Project: 174354
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);
  bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).addFragment(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);
  bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
  bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
  requestsToAGiftFragment.setArguments(bundle);
  ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
}
Program: 174355
Project: 174355
Buggy source:
@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;
}

Fixed version (ground truth):
@Override public ReceiveGiftsRequestHolder onCreateViewHolder(ViewGroup viewGroup,int i){
  View v=LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_receive_requests,null);
  ReceiveGiftsRequestHolder mh=new ReceiveGiftsRequestHolder(v);
  return mh;
}
Program: 174356
Project: 174356
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);
      bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}

Fixed version (ground truth):
@Override public void onBindViewHolder(final ReceiveGiftsRequestHolder myHolder,final int i){
  myHolder.mTitleTv.setText(gifts.get(i).title);
  myHolder.mUnseenMsgTv.setText(gifts.get(i).requestCount);
  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);
      bundle.putString(Constants.GIFT_NAME,gifts.get(i).title);
      bundle.putString(Constants.GIFT_REQUEST_COUNT,gifts.get(i).requestCount);
      requestsToAGiftFragment.setArguments(bundle);
      ((BottomBarActivity)mContext).addFragment(requestsToAGiftFragment,RequestsToAGiftFragment.class.getName());
    }
  }
);
}
Program: 174357
Project: 174357
Buggy source:
@GET("String_Node_Str") Call<ArrayList<Category>> getCategories();

Fixed version (ground truth):
@GET("String_Node_Str" + Constants.StartIndex + "String_Node_Str"+ Constants.LastIndex+ "String_Node_Str"+ Constants.DensityId+ "String_Node_Str") Call<ArrayList<Category>> getCategories(@Path(Constants.StartIndex) String startIndex,@Path(Constants.LastIndex) String lastIndex,@Path(Constants.DensityId) String DensityId);