nus-yam/ex-repair huggingface dataset:
Program: 153354
Project: 153354
Buggy source:
public void requestReload(){
  hideRefreshView();
  Log.d("String_Node_Str",(getActivity() == null) ? "String_Node_Str" : "String_Node_Str");
  if (!manager.isRunning() || canRepeat) {
    setSelection(1);
    Log.d("String_Node_Str","String_Node_Str");
    initValue();
    manager.request(getContext(),request(),REQUEST_RELOAD,this);
    nextValue();
  }
}

Fixed version (ground truth):
public void requestReload(){
  hideRefreshView();
  Log.d("String_Node_Str",(getActivity() == null) ? "String_Node_Str" : "String_Node_Str");
  if (!manager.isRunning() || canRepeat) {
    setSelection(1);
    Log.d("String_Node_Str","String_Node_Str");
    initValue();
    manager.request(reloadSpinner,request(),REQUEST_RELOAD,this);
    nextValue();
  }
}
Program: 153356
Project: 153356
Buggy source:
@Override public void onTabChanged(String str){
  int index=getTabHost().getCurrentTab();
  now=index;
  Searchable searchable=(Searchable)getCurrentActivity();
  if (index == STORE) {
    searchInputBar.changeSearchType(MainSearchInputBar.STORE,searchable);
  }
 else   if (index == POST) {
    searchInputBar.changeSearchType(MainSearchInputBar.POST,searchable);
  }
 else   if (index == USER) {
    searchInputBar.changeSearchType(MainSearchInputBar.USER,searchable);
  }
}

Fixed version (ground truth):
@Override public void onTabChanged(String str){
  int index=getTabHost().getCurrentTab();
  Searchable searchable=(Searchable)getCurrentActivity();
  if (index == STORE) {
    searchInputBar.changeSearchType(MainSearchInputBar.STORE,searchable);
  }
 else   if (index == POST) {
    searchInputBar.changeSearchType(MainSearchInputBar.POST,searchable);
  }
 else   if (index == USER) {
    searchInputBar.changeSearchType(MainSearchInputBar.USER,searchable);
  }
}
Program: 153357
Project: 153357
Buggy source:
public View getView(int position,View convertView,ViewGroup parent){
  DefaultElement defaultElement;
  SearchToken store=(SearchToken)data.get(position);
  if (convertView == null) {
    defaultElement=new DefaultElement();
    convertView=getLayoutInflater().inflate(R.layout.row_simple,null);
    defaultElement.text=(TextView)convertView.findViewById(R.id.row_simple_text);
    convertView.setTag(defaultElement);
  }
 else {
    defaultElement=(DefaultElement)convertView.getTag();
  }
  defaultElement.text.setText(store.getSeed());
  return convertView;
}

Fixed version (ground truth):
public View getView(int position,View convertView,ViewGroup parent){
  DefaultElement defaultElement;
  RecentSearchToken store=(RecentSearchToken)data.get(position);
  if (convertView == null) {
    defaultElement=new DefaultElement();
    convertView=getLayoutInflater().inflate(R.layout.row_simple,null);
    defaultElement.text=(TextView)convertView.findViewById(R.id.row_simple_text);
    convertView.setTag(defaultElement);
  }
 else {
    defaultElement=(DefaultElement)convertView.getTag();
  }
  defaultElement.text.setText(store.getSeed());
  return convertView;
}
Program: 153358
Project: 153358
Buggy source:
private void saveRecentQueue(LinkedList<SearchToken> queue){
  try {
    preferenceProvider.setObject(SessionIndex.RECENT_STORE_SEARCH,queue);
    preferenceProvider.commit(contextRef.get());
  }
 catch (  NotSerializableException e) {
    Log.d("String_Node_Str","String_Node_Str");
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void saveRecentQueue(LinkedList<RecentSearchToken> queue){
  try {
    preferenceProvider.setObject(SessionIndex.RECENT_STORE_SEARCH,queue);
    preferenceProvider.commit(contextRef.get());
  }
 catch (  NotSerializableException e) {
    Log.d("String_Node_Str","String_Node_Str");
    e.printStackTrace();
  }
}
Program: 153359
Project: 153359
Buggy source:
private LinkedList<SearchToken> getRecentQueue(){
  @SuppressWarnings("String_Node_Str") LinkedList<SearchToken> queue=(LinkedList<SearchToken>)preferenceProvider.getObject(SessionIndex.RECENT_STORE_SEARCH);
  if (queue == null) {
    return new LinkedList<SearchToken>();
  }
 else {
    return queue;
  }
}

Fixed version (ground truth):
private LinkedList<RecentSearchToken> getRecentQueue(){
  @SuppressWarnings("String_Node_Str") LinkedList<RecentSearchToken> queue=(LinkedList<RecentSearchToken>)preferenceProvider.getObject(SessionIndex.RECENT_STORE_SEARCH);
  if (queue == null) {
    return new LinkedList<RecentSearchToken>();
  }
 else {
    return queue;
  }
}
Program: 153360
Project: 153360
Buggy source:
public ArrayList<SearchToken> getRecentList(){
  return new ArrayList<SearchToken>(getRecentQueue());
}

Fixed version (ground truth):
public ArrayList<RecentSearchToken> getRecentList(){
  return new ArrayList<RecentSearchToken>(getRecentQueue());
}
Program: 153361
Project: 153361
Buggy source:
private boolean isOverCapacity(LinkedList<SearchToken> recentQueue){
  return recentQueue.size() > CAPACITY;
}

Fixed version (ground truth):
private boolean isOverCapacity(LinkedList<RecentSearchToken> recentQueue){
  return recentQueue.size() > CAPACITY;
}
Program: 153362
Project: 153362
Buggy source:
public ArrayList<SearchToken> push(SearchToken searchToken){
  LinkedList<SearchToken> queue=getRecentQueue();
  for (  SearchToken token : queue) {
    if (token.equals(searchToken)) {
      queue.remove(token);
      queue.addFirst(searchToken);
      return new ArrayList<SearchToken>(queue);
    }
  }
  queue.addFirst(searchToken);
  if (isOverCapacity(queue))   queue.removeLast();
  saveRecentQueue(queue);
  return new ArrayList<SearchToken>(queue);
}

Fixed version (ground truth):
public ArrayList<RecentSearchToken> push(RecentSearchToken searchToken){
  LinkedList<RecentSearchToken> queue=getRecentQueue();
  for (  RecentSearchToken token : queue) {
    if (token.equals(searchToken)) {
      queue.remove(token);
      queue.addFirst(searchToken);
      return new ArrayList<RecentSearchToken>(queue);
    }
  }
  queue.addFirst(searchToken);
  if (isOverCapacity(queue))   queue.removeLast();
  saveRecentQueue(queue);
  return new ArrayList<RecentSearchToken>(queue);
}
Program: 153363
Project: 153363
Buggy source:
@Override public void onListItemClick(int position){
  SearchToken data=(SearchToken)getAdapter().getItem(position + 1);
  this.keyword=data.getSeed();
  search(keyword);
}

Fixed version (ground truth):
@Override public void onListItemClick(int position){
  RecentSearchToken data=(RecentSearchToken)getAdapter().getItem(position + 1);
  this.keyword=data.getSeed();
  search(keyword);
}
Program: 153364
Project: 153364
Buggy source:
@Override public void onListItemClick(int position){
  SearchToken data=(SearchToken)getAdapter().getItem(position + 1);
  this.keyword=data.getSeed();
  Intent intent=new Intent(getActivity(),SearchActivity.class);
  intent.putExtra(SearchActivity.KEYWORD,keyword);
  if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,0);
  }
 else   if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,1);
  }
 else   if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,2);
  }
  getActivity().startActivity(intent);
  getActivity().finish();
}

Fixed version (ground truth):
@Override public void onListItemClick(int position){
  RecentSearchToken data=(RecentSearchToken)getAdapter().getItem(position + 1);
  this.keyword=data.getSeed();
  Intent intent=new Intent(getActivity(),SearchActivity.class);
  intent.putExtra(SearchActivity.KEYWORD,keyword);
  if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,0);
  }
 else   if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,1);
  }
 else   if (getActivity().getLocalClassName().equals("String_Node_Str")) {
    intent.putExtra(SearchActivity.PAGE,2);
  }
  getActivity().startActivity(intent);
  getActivity().finish();
}
Program: 153365
Project: 153365
Buggy source:
private Bitmap applyConvert(File f){
  Bitmap bitmap=ImageUtil.decodeFile(f,false);
  if (convertable != null) {
    bitmap=convertable.convert(bitmap);
    try {
      FileOutputStream out=new FileOutputStream(f);
      bitmap.compress(Bitmap.CompressFormat.JPEG,100,out);
      out.close();
    }
 catch (    IOException e) {
    }
  }
  return bitmap;
}

Fixed version (ground truth):
private Bitmap applyConvert(File f){
  Bitmap bitmap=ImageUtil.decodeFile(f,false);
  if (convertable != null) {
    bitmap=convertable.convert(bitmap);
    try {
      FileOutputStream out=new FileOutputStream(f);
      bitmap.compress(Bitmap.CompressFormat.PNG,100,out);
      out.close();
    }
 catch (    IOException e) {
    }
  }
  return bitmap;
}
Program: 153367
Project: 153367
Buggy source:
public static Bitmap rotate(Bitmap bitmap,int angle){
  Matrix matrix=new Matrix();
  matrix.postRotate(angle);
  return Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight(),matrix,true);
}

Fixed version (ground truth):
public static Bitmap rotate(Bitmap bitmap,int angle){
  if (angle == 0) {
    return bitmap;
  }
  Matrix matrix=new Matrix();
  matrix.postRotate(angle);
  return Bitmap.createBitmap(bitmap,0,0,bitmap.getWidth(),bitmap.getHeight(),matrix,true);
}
Program: 153368
Project: 153368
Buggy source:
public static Bitmap decodeFile(File f,boolean isScalable){
  try {
    BitmapFactory.Options o=new BitmapFactory.Options();
    o.inJustDecodeBounds=true;
    BitmapFactory.decodeStream(new FileInputStream(f),null,o);
    final int REQUIRED_SIZE=70;
    int width_tmp=o.outWidth, height_tmp=o.outHeight;
    int scale=1;
    if (isScalable) {
      while (true) {
        if (width_tmp / 2 < REQUIRED_SIZE || height_tmp / 2 < REQUIRED_SIZE)         break;
        width_tmp/=2;
        height_tmp/=2;
        scale*=2;
      }
    }
    BitmapFactory.Options o2=new BitmapFactory.Options();
    o2.inSampleSize=scale;
    Bitmap result=BitmapFactory.decodeStream(new FileInputStream(f),null,o2);
    int rotateAngle=getRotateAngle(f);
    if (rotateAngle != 0) {
      result=rotate(result,rotateAngle);
    }
    return result;
  }
 catch (  FileNotFoundException e) {
  }
  return null;
}

Fixed version (ground truth):
public static Bitmap decodeFile(File f,boolean isScalable){
  try {
    BitmapFactory.Options o=new BitmapFactory.Options();
    o.inJustDecodeBounds=true;
    BitmapFactory.decodeStream(new FileInputStream(f),null,o);
    final int REQUIRED_SIZE=70;
    int width_tmp=o.outWidth, height_tmp=o.outHeight;
    int scale=1;
    if (isScalable) {
      while (true) {
        if (width_tmp / 2 < REQUIRED_SIZE || height_tmp / 2 < REQUIRED_SIZE)         break;
        width_tmp/=2;
        height_tmp/=2;
        scale*=2;
      }
    }
    BitmapFactory.Options o2=new BitmapFactory.Options();
    o2.inSampleSize=scale;
    int rotateAngle=getRotateAngle(f);
    return rotate(BitmapFactory.decodeStream(new FileInputStream(f),null,o2),rotateAngle);
  }
 catch (  FileNotFoundException e) {
  }
  return null;
}
Program: 153369
Project: 153369
Buggy source:
@Override public void requestCallBack(int tag,ArrayList<MatjiData> data){
  StoreFood dummy=new StoreFood();
  Food dummyFood=new Food();
  dummyFood.setName(StoreFoodAdapter.ADD_STORE_FOOD);
  dummy.setFood(dummyFood);
  data.add(dummy);
  super.requestCallBack(tag,data);
}

Fixed version (ground truth):
@Override public void requestCallBack(int tag,ArrayList<MatjiData> data){
  StoreFood dummy=new StoreFood();
  Food dummyFood=new Food();
  dummyFood.setName(StoreFoodAdapter.ADD_STORE_FOOD);
  dummy.setFood(dummyFood);
  dummy.setAccuracy(true);
  data.add(dummy);
  super.requestCallBack(tag,data);
}
Program: 153370
Project: 153370
Buggy source:
@Override protected void onPreExecute(){
  super.onPreExecute();
  dialog.show();
}

Fixed version (ground truth):
public void onPreExecute(int tag);
Program: 153371
Project: 153371
Buggy source:
@Override protected Boolean doInBackground(Object... arg0){
  try {
    data=request.request();
    return true;
  }
 catch (  MatjiException e) {
    exception=e;
    return false;
  }
}

Fixed version (ground truth):
@Override protected Boolean doInBackground(Object... arg0){
  boolean result=true;
  if (listenerRef != null && listenerRef.get() != null) {
    listenerRef.get().onStartBackground(tag);
  }
  try {
    data=request.request();
    result=true;
  }
 catch (  MatjiException e) {
    exception=e;
    result=false;
  }
  if (listenerRef != null && listenerRef.get() != null) {
    listenerRef.get().onEndBackground(tag);
  }
  return result;
}
Program: 153372
Project: 153372
Buggy source:
@Override protected void onPostExecute(Boolean isSuccess){
  super.onPostExecute(isSuccess);
  dialog.dismiss();
  if (isSuccess) {
    requestableRef.get().requestCallBack(tag,data);
  }
 else {
    requestableRef.get().requestExceptionCallBack(tag,exception);
  }
}

Fixed version (ground truth):
public void onPostExecute(int tag);
Program: 153373
Project: 153373
Buggy source:
public HttpRequest(Context context){
  cm=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
  Session session=Session.getInstance(context);
  postHashtable=new Hashtable<String,Object>();
  getHashtable=new Hashtable<String,String>();
}

Fixed version (ground truth):
public HttpRequest(Context context){
  cm=(ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
  session=Session.getInstance(context);
  postHashtable=new Hashtable<String,Object>();
  getHashtable=new Hashtable<String,String>();
}
Program: 153375
Project: 153375
Buggy source:
public void requestExceptionCallBack(int tag,MatjiException e){
  if (tag == HttpRequestManager.AUTHORIZE) {
    if (mLoginableRef != null && mLoginableRef.get() != null)     mLoginableRef.get().loginFailed();
  }
}

Fixed version (ground truth):
public void requestExceptionCallBack(int tag,MatjiException e){
  if (tag == HttpRequestManager.AUTHORIZE) {
    e.performExceptionHandling(mContextRef.get());
    if (mLoginableRef != null && mLoginableRef.get() != null)     mLoginableRef.get().loginFailed();
  }
}
Program: 153376
Project: 153376
Buggy source:
public void requestCallBack(int tag,ArrayList<MatjiData> data){
switch (tag) {
case HttpRequestManager.AUTHORIZE:
    Me me=(Me)data.get(0);
  saveMe(me);
if (mLoginableRef != null && mLoginableRef.get() != null) mLoginableRef.get().loginCompleted();
postLogin();
break;
}
}

Fixed version (ground truth):
public void requestCallBack(int tag,ArrayList<MatjiData> data){
switch (tag) {
case HttpRequestManager.AUTHORIZE:
    Me me=(Me)data.get(0);
  saveMe(me);
if (mLoginableRef != null && mLoginableRef.get() != null) {
  mLoginableRef.get().loginCompleted();
}
postLogin();
break;
}
}
Program: 153377
Project: 153377
Buggy source:
public void login(Loginable loginable){
  this.loginableRef=new WeakReference(loginable);
  if (idField.getText().toString().trim().equals("String_Node_Str") || pwdField.getText().toString().trim().equals("String_Node_Str")) {
    toast.show();
  }
 else {
    if (saveidCheckBox.isChecked()) {
      privateUtil.setSavedUserId(idField.getText().toString());
    }
    MeHttpRequest request=new MeHttpRequest(getContext());
    request.actionAuthorize(idField.getText().toString(),pwdField.getText().toString());
    DialogAsyncTask dialogTask=new DialogAsyncTask(getContext(),this,request,REQUEST_LOGIN);
    dialogTask.execute();
  }
}

Fixed version (ground truth):
public void login(Loginable loginable){
  this.loginableRef=new WeakReference(loginable);
  if (idField.getText().toString().trim().equals("String_Node_Str") || pwdField.getText().toString().trim().equals("String_Node_Str")) {
    toast.show();
  }
 else {
    if (saveidCheckBox.isChecked()) {
      privateUtil.setSavedUserId(idField.getText().toString());
    }
    session.loginWithDialog(getContext(),idField.getText().toString(),pwdField.getText().toString(),loginable);
  }
}
Program: 153378
Project: 153378
Buggy source:
/** 
 * 이 UserCell에 user 정보를 저장하고 해당 유저의 변하지 않는 정보들을 뷰에 뿌려준다.
 * @param user
 */
public void setUser(User user){
  this.user=user;
  profile.setUserId(user.getId());
  nick.setText(user.getNick());
  if (user.getMileage() != null)   point.setText(user.getMileage().getTotalPoint() + "String_Node_Str");
 else   point.setText("String_Node_Str");
  area.setText(MatjiConstants.countryName(user.getCountryCode()));
  likeList.setOnClickListener(new LikeStoreListListener(getContext(),user));
  followingListener.setUser(user);
}

Fixed version (ground truth):
/** 
 * 이 UserCell에 user 정보를 저장하고 해당 유저의 변하지 않는 정보들을 뷰에 뿌려준다.
 * @param user
 */
public void setUser(User user){
  this.user=user;
  profile.setUserId(user.getId());
  nick.setText(user.getNick());
  if (user.getMileage() != null)   point.setText(user.getMileage().getTotalPoint() + "String_Node_Str");
 else   point.setText("String_Node_Str");
  area.setText(MatjiConstants.countryName(user.getCountryCode()));
  likeList.setText(user.getLikeStoreCount() + "String_Node_Str");
  likeList.setOnClickListener(new LikeStoreListListener(getContext(),user));
  followingListener.setUser(user);
}
Program: 153379
Project: 153379
Buggy source:
protected StoreFood getMatjiData(JsonObject object) throws MatjiException {
  if (object == null)   return null;
  StoreFood storeFood=new StoreFood();
  storeFood.setId(getInt(object,"String_Node_Str"));
  storeFood.setUserId(getInt(object,"String_Node_Str"));
  storeFood.setFoodId(getInt(object,"String_Node_Str"));
  storeFood.setStoreId(getInt(object,"String_Node_Str"));
  storeFood.setLikeCount(getInt(object,"String_Node_Str"));
  storeFood.setAccuracy(getInt(object,"String_Node_Str") != 0);
  StoreParser storeParser=new StoreParser(context);
  storeFood.setStore(storeParser.getMatjiData(getObject(object,"String_Node_Str")));
  FoodParser foodParser=new FoodParser(context);
  storeFood.setFood(foodParser.getMatjiData(getObject(object,"String_Node_Str")));
  UserParser userParser=new UserParser(context);
  storeFood.setUser(userParser.getMatjiData(getObject(object,"String_Node_Str")));
  Log.d("String_Node_Str","String_Node_Str");
  return storeFood;
}

Fixed version (ground truth):
protected StoreFood getMatjiData(JsonObject object) throws MatjiException {
  if (object == null)   return null;
  StoreFood storeFood=new StoreFood();
  storeFood.setId(getInt(object,"String_Node_Str"));
  storeFood.setUserId(getInt(object,"String_Node_Str"));
  storeFood.setFoodId(getInt(object,"String_Node_Str"));
  storeFood.setStoreId(getInt(object,"String_Node_Str"));
  storeFood.setLikeCount(getInt(object,"String_Node_Str"));
  storeFood.setAccuracy(getBoolean(object,"String_Node_Str"));
  StoreParser storeParser=new StoreParser(context);
  storeFood.setStore(storeParser.getMatjiData(getObject(object,"String_Node_Str")));
  FoodParser foodParser=new FoodParser(context);
  storeFood.setFood(foodParser.getMatjiData(getObject(object,"String_Node_Str")));
  UserParser userParser=new UserParser(context);
  storeFood.setUser(userParser.getMatjiData(getObject(object,"String_Node_Str")));
  Log.d("String_Node_Str","String_Node_Str");
  return storeFood;
}
Program: 153380
Project: 153380
Buggy source:
@Override protected void onPreExecute(){
  super.onPreExecute();
  request.setProgressListener(tag,this);
  progressDialog.setMax(request.getRequestCount());
  progressDialog.show();
}

Fixed version (ground truth):
@Override protected void onPreExecute(){
  super.onPreExecute();
  request.setProgressListener(tag,this);
  progressDialog.show();
}
Program: 153381
Project: 153381
Buggy source:
public void onUnitWritten(int tag,int totalCount,int readCount){
  publishProgress(PRIMARY,tag,totalCount,readCount);
}

Fixed version (ground truth):
public void onUnitWritten(int tag,int totalCount,int readCount){
}
Program: 153382
Project: 153382
Buggy source:
public void onWritten(int tag,int totalBytes,int readBytes){
  publishProgress(SECONDARY,tag,totalBytes,readBytes);
}

Fixed version (ground truth):
public void onWritten(int tag,int totalBytes,int readBytes){
  publishProgress(PRIMARY,tag,totalBytes,readBytes);
}
Program: 153383
Project: 153383
Buggy source:
public void onStart(AsyncTask task){
}

Fixed version (ground truth):
public void onStart(Threadable task){
}
Program: 153384
Project: 153384
Buggy source:
public void run(){
  Session session=Session.getInstance(IntroActivity.this);
  if (session.isLogin())   session.unsyncSessionValidate();
  session.notificationValidate();
  ImageLoader.clearCache(getApplicationContext());
  startActivity(new Intent(IntroActivity.this,MainTabActivity.class));
  finish();
}

Fixed version (ground truth):
public void run(){
  Session session=Session.getInstance(IntroActivity.this);
  if (session.isLogin())   session.unsyncSessionValidate();
  session.notificationValidate();
  ImageLoader.clearCache(getApplicationContext());
  startActivity(new Intent(IntroActivity.this,MainTabActivity.class));
}
Program: 153385
Project: 153385
Buggy source:
public void onFinish(AsyncTask task){
  timeAsyncTask.setTimeListener(null);
  if (lastElapsedTime < LOADING_MIN_TIME) {
    try {
      Thread.sleep(LOADING_MIN_TIME - lastElapsedTime);
    }
 catch (    InterruptedException e) {
      e.printStackTrace();
    }
  }
  dialog.dismiss();
}

Fixed version (ground truth):
public void onFinish(Threadable task){
  timeAsyncTask.setTimeListener(null);
  if (lastElapsedTime < LOADING_MIN_TIME) {
    try {
      Thread.sleep(LOADING_MIN_TIME - lastElapsedTime);
    }
 catch (    InterruptedException e) {
      e.printStackTrace();
    }
  }
  dialog.dismiss();
  finish();
}
Program: 153386
Project: 153386
Buggy source:
protected void onPreExecute(){
  if (listener != null)   listener.onStartRequest(this);
}

Fixed version (ground truth):
public void onPreExecute(){
  if (listener != null)   listener.onStartRequest(this);
}
Program: 153387
Project: 153387
Buggy source:
public void execute(){
  execute(command);
}

Fixed version (ground truth):
public void execute(){
  super.execute(command);
}
Program: 153388
Project: 153388
Buggy source:
public void onStart(AsyncTask task);

Fixed version (ground truth):
public void onStart(Threadable task);
Program: 153389
Project: 153389
Buggy source:
public void onFinish(AsyncTask task);

Fixed version (ground truth):
public void onFinish(Threadable task);
Program: 153390
Project: 153390
Buggy source:
public void execute(){
  execute(new Object());
}

Fixed version (ground truth):
public void execute(){
  if (listener != null)   listener.onStart(this);
  start();
}
Program: 153391
Project: 153391
Buggy source:
public void requestCallBack(int tag,ArrayList<MatjiData> data){
switch (tag) {
case REQUEST_GEOCODING:
    GeocodeAddress address=(GeocodeAddress)data.get(0);
  Intent result=new Intent();
int addrLat=address.getLocationLat();
int addrLng=address.getLocationLng();
result.putExtra(INTENT_KEY_LATITUDE,addrLat);
result.putExtra(INTENT_KEY_LONGITUDE,addrLng);
result.putExtra(INTENT_KEY_LOCATION_NAME,lastSearchSeed);
setResult(Activity.RESULT_OK,result);
Log.d("String_Node_Str","String_Node_Str");
finish();
}
}

Fixed version (ground truth):
public void requestCallBack(int tag,ArrayList<MatjiData> data){
switch (tag) {
case REQUEST_GEOCODING:
    GeocodeAddress address=(GeocodeAddress)data.get(0);
  Intent result=new Intent();
int addrLat=address.getLocationLat();
int addrLng=address.getLocationLng();
result.putExtra(INTENT_KEY_LATITUDE,addrLat);
result.putExtra(INTENT_KEY_LONGITUDE,addrLng);
result.putExtra(INTENT_KEY_LOCATION_NAME,lastSearchSeed);
setResult(Activity.RESULT_OK,result);
finish();
}
}
Program: 153392
Project: 153392
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  context=getApplicationContext();
  sessionLocationUtil=new SessionRecentLocationUtil(context);
  addressView=(TextView)findViewById(R.id.map_title_bar_address);
  mapView=(MainMatjiMapView)findViewById(R.id.map_view);
  mapView.init(addressView,this);
  storeListView=(StoreMapNearListView)findViewById(R.id.main_map_store_list);
  storeListView.init(addressView,this);
  flipButton=findViewById(R.id.map_title_bar_flip_button);
  isFlow=false;
  currentViewIsMap=true;
  flipMapViewBackground=getResources().getDrawable(R.drawable.map_titlebar_flip_mapview_btn);
  flipNearStoreBackground=getResources().getDrawable(R.drawable.map_titlebar_flip_btn);
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  context=getApplicationContext();
  sessionLocationUtil=new SessionRecentLocationUtil(context);
  addressView=(TextView)findViewById(R.id.map_title_bar_address);
  mapView=(MainMatjiMapView)findViewById(R.id.map_view);
  mapView.init(addressView,this);
  storeListView=(StoreMapNearListView)findViewById(R.id.main_map_store_list);
  storeListView.init(addressView,this);
  flipButton=findViewById(R.id.map_title_bar_flip_button);
  currentViewIsMap=true;
  flipMapViewBackground=getResources().getDrawable(R.drawable.map_titlebar_flip_mapview_btn);
  flipNearStoreBackground=getResources().getDrawable(R.drawable.map_titlebar_flip_btn);
}
Program: 153393
Project: 153393
Buggy source:
protected void onResume(){
  super.onResume();
  mapView.startMapCenterThread();
  if (!isFlow) {
    storeListView.requestReload();
  }
 else {
    isFlow=false;
  }
}

Fixed version (ground truth):
protected void onResume(){
  super.onResume();
  mapView.startMapCenterThread();
}
Program: 153394
Project: 153394
Buggy source:
public String putSectionName(int position){
  if (position >= nearByStoreIndex) {
    return SECTION_STORE;
  }
 else {
    return SECTION_BOOKMARK_STORE;
  }
}

Fixed version (ground truth):
public String putSectionName(int position){
  return SECTION_STORE;
}
Program: 153395
Project: 153395
Buggy source:
public View getItemView(int position,View convertView,ViewGroup parent){
  StoreElement storeElement;
  Store store=(Store)data.get(position);
  if (convertView == null) {
    storeElement=new StoreElement();
    convertView=getLayoutInflater().inflate(R.layout.adapter_near_store,null);
    storeElement.name=(TextView)convertView.findViewById(R.id.adapter_near_store_name);
    storeElement.likeCount=(TextView)convertView.findViewById(R.id.adapter_near_store_like_count);
    storeElement.postCount=(TextView)convertView.findViewById(R.id.adapter_near_store_post_count);
    storeElement.bookmarkToggle=(BookmarkStarToggleView)convertView.findViewById(R.id.adapter_near_store_bookmark);
    convertView.setTag(storeElement);
  }
 else {
    storeElement=(StoreElement)convertView.getTag();
  }
  storeElement.name.setText(store.getName());
  storeElement.likeCount.setText("String_Node_Str" + store.getLikeCount());
  storeElement.postCount.setText("String_Node_Str" + store.getPostCount());
  storeElement.bookmarkToggle.init(this,bookmarkedList,store);
  return convertView;
}

Fixed version (ground truth):
public View getItemView(int position,View convertView,ViewGroup parent){
  StoreElement storeElement;
  Store store=(Store)data.get(position);
  if (convertView == null) {
    storeElement=new StoreElement();
    convertView=getLayoutInflater().inflate(R.layout.adapter_near_store,null);
    storeElement.name=(TextView)convertView.findViewById(R.id.adapter_near_store_name);
    storeElement.likeCount=(TextView)convertView.findViewById(R.id.adapter_near_store_like_count);
    storeElement.postCount=(TextView)convertView.findViewById(R.id.adapter_near_store_post_count);
    storeElement.bookmarkToggle=(BookmarkStarToggleView)convertView.findViewById(R.id.adapter_near_store_bookmark);
    storeElement.listener=new StoreClickListener(context);
    convertView.setTag(storeElement);
  }
 else {
    storeElement=(StoreElement)convertView.getTag();
  }
  storeElement.name.setText(store.getName());
  storeElement.likeCount.setText("String_Node_Str" + store.getLikeCount());
  storeElement.postCount.setText("String_Node_Str" + store.getPostCount());
  storeElement.bookmarkToggle.init(this,bookmarkedList,store);
  storeElement.listener.setStore(store);
  convertView.setOnClickListener(storeElement.listener);
  return convertView;
}
Program: 153396
Project: 153396
Buggy source:
public ArrayList<MatjiData> request() throws MatjiException {
  if (!isBookmarkListEnded && session.isLogin()) {
    isBookmarkListEnded=true;
    storeRequest.actionNearbyBookmarkedList(user_id,lat_sw,lat_ne,lng_sw,lng_ne,page);
    bookmarkList=storeRequest.request();
    nearByStoreIndex=bookmarkList.size();
    storeRequest.actionNearbyList(lat_sw,lat_ne,lng_sw,lng_ne,page,limit);
    storeList=storeRequest.request();
    resultList.addAll(bookmarkList);
    resultList.addAll(storeList);
    return resultList;
  }
 else {
    storeRequest.actionNearbyList(lat_sw,lat_ne,lng_sw,lng_ne,page,limit);
    resultList=storeRequest.request();
    return resultList;
  }
}

Fixed version (ground truth):
public ArrayList<MatjiData> request() throws MatjiException {
  if (!isBookmarkListEnded && session.isLogin()) {
    isBookmarkListEnded=true;
    storeRequest.actionNearbyBookmarkedList(user_id,lat_sw,lat_ne,lng_sw,lng_ne,page);
    bookmarkList=storeRequest.request();
    nearByStoreIndex=bookmarkList.size();
    storeRequest.actionNearbyList(lat_sw,lat_ne,lng_sw,lng_ne,page,limit);
    storeList=storeRequest.request();
    resultList.addAll(storeList);
    return resultList;
  }
 else {
    storeRequest.actionNearbyList(lat_sw,lat_ne,lng_sw,lng_ne,page,limit);
    resultList=storeRequest.request();
    return resultList;
  }
}
Program: 153397
Project: 153397
Buggy source:
private void saveRecentQueue(LinkedList<LocationSearchToken> queue){
  try {
    preferenceProvider.setObject(SessionIndex.RECENT_CHANGED_LOCATION,queue);
  }
 catch (  NotSerializableException e) {
    Log.d("String_Node_Str","String_Node_Str");
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void saveRecentQueue(LinkedList<LocationSearchToken> queue){
  try {
    preferenceProvider.setObject(SessionIndex.RECENT_CHANGED_LOCATION,queue);
    preferenceProvider.commit();
  }
 catch (  NotSerializableException e) {
    Log.d("String_Node_Str","String_Node_Str");
    e.printStackTrace();
  }
}
Program: 153398
Project: 153398
Buggy source:
public void onClick(View v){
  if (requestManager.isRunning()) {
    return;
  }
  if (isUnchecked) {
    if (session.isLogin()) {
      bookmarkedList.add(store);
      adapter.notifyDataSetChanged();
      requestBookmark(store);
      isUnchecked=false;
    }
 else {
      confirmLogin();
    }
  }
 else {
    removeBookmarkedList(store);
    adapter.notifyDataSetChanged();
    requestUnBookmark(store);
    isUnchecked=true;
  }
}

Fixed version (ground truth):
public void onClick(View v){
  if (requestManager.isRunning()) {
    return;
  }
  if (isUnchecked) {
    if (session.isLogin()) {
      bookmarkedList.add(store);
      requestBookmark(store);
      showCheckedView();
      isUnchecked=false;
    }
 else {
      confirmLogin();
    }
  }
 else {
    removeBookmarkedList(store);
    requestUnBookmark(store);
    showUncheckedView();
    isUnchecked=true;
  }
}
Program: 153399
Project: 153399
Buggy source:
public void onListItemClick(int position){
  activity.setIsFlow(true);
  Store store=(Store)getAdapterData().get(position);
  Intent intent=new Intent(getActivity(),StoreMainActivity.class);
  intent.putExtra(StoreMainActivity.STORE,(Parcelable)store);
  getActivity().startActivity(intent);
}

Fixed version (ground truth):
public void onListItemClick(int position){
}
Program: 153400
Project: 153400
Buggy source:
public void actionCurrentUserBookmarkedList(int page,int limit){
  Session session=Session.getInstance(context);
  actionBookmarkedList(session.getCurrentUser().getId(),page,limit);
}

Fixed version (ground truth):
public void actionCurrentUserBookmarkedList(int page,int limit){
  Session session=Session.getInstance(context);
  actionBookmarkList(session.getCurrentUser().getId(),page,limit);
}
Program: 153401
Project: 153401
Buggy source:
@SuppressWarnings("String_Node_Str") private HashMap<String,Object> getSharedObjectPreferences(){
  HashMap<String,Object> hmap=null;
  FileInputStream fis=null;
  ObjectInputStream ois=null;
  try {
    fis=context.openFileInput(OBJECT_PREFERENCE_NAME);
    ois=new ObjectInputStream(fis);
    hmap=(HashMap<String,Object>)ois.readObject();
    if (hmap == null) {
      Log.d("String_Node_Str","String_Node_Str");
      hmap=new HashMap<String,Object>();
    }
 else {
      Log.d("String_Node_Str","String_Node_Str" + hmap.size());
    }
  }
 catch (  Throwable e) {
    hmap=new HashMap<String,Object>();
    Log.d("String_Node_Str","String_Node_Str");
  }
  try {
    if (ois != null)     ois.close();
    if (fis != null)     fis.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return hmap;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private HashMap<String,Object> getSharedObjectPreferences(){
  HashMap<String,Object> hmap=null;
  FileInputStream fis=null;
  ObjectInputStream ois=null;
  try {
    fis=context.openFileInput(OBJECT_PREFERENCE_NAME);
    ois=new ObjectInputStream(fis);
    hmap=(HashMap<String,Object>)ois.readObject();
    if (hmap == null) {
      Log.d("String_Node_Str","String_Node_Str");
      hmap=new HashMap<String,Object>();
    }
 else {
      Log.d("String_Node_Str","String_Node_Str" + hmap.size());
    }
  }
 catch (  Throwable e) {
    Log.d("String_Node_Str",e.getMessage());
    hmap=new HashMap<String,Object>();
    Log.d("String_Node_Str","String_Node_Str");
  }
  try {
    if (ois != null)     ois.close();
    if (fis != null)     fis.close();
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
  return hmap;
}
Program: 153402
Project: 153402
Buggy source:
public void requestCallBack(int tag,ArrayList<MatjiData> data){
  if (data.size() == 0 || data.size() < limit) {
    scrollListener.requestSetOff();
  }
 else {
    scrollListener.requestSetOn();
  }
  adapter.addAll(data);
  if (data.size() > 0)   adapter.notifyDataSetChanged();
  onRefreshComplete();
}

Fixed version (ground truth):
public void requestCallBack(int tag,ArrayList<MatjiData> data){
  if (tag == REQUEST_RELOAD) {
    clearAdapter();
  }
  if (data.size() == 0 || data.size() < limit) {
    scrollListener.requestSetOff();
  }
 else {
    scrollListener.requestSetOn();
  }
  adapter.addAll(data);
  if (data.size() > 0)   adapter.notifyDataSetChanged();
  onRefreshComplete();
}
Program: 153403
Project: 153403
Buggy source:
public void initValue(){
  adapter.clear();
  page=1;
}

Fixed version (ground truth):
public void initValue(){
  page=1;
}
Program: 153404
Project: 153404
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  mMapView=(MatjiMapView)findViewById(R.id.map_view);
  mMapController=mMapView.getController();
  mMapView.setMapCenterListener(this);
  mContext=getApplicationContext();
  mGpsManager=new GpsManager(mContext,this);
  mSearchView=(EditText)findViewById(R.id.main_map_search_box);
  mRequestManager=HttpRequestManager.getInstance(mContext);
  storeItemizedOverlay=new StoreItemizedOverlay(mContext,this,mMapView);
  bookmarkButton=(Button)findViewById(R.id.bookmark_button);
  session=Session.getInstance(mContext);
  mSearchView.setOnKeyListener(this);
  mGpsManager.start();
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  mMapView=(MatjiMapView)findViewById(R.id.map_view);
  mMapController=mMapView.getController();
  mMapView.setMapCenterListener(this);
  mMapView.setOnTouchListener(this);
  mContext=getApplicationContext();
  mGpsManager=new GpsManager(mContext,this);
  mSearchView=(EditText)findViewById(R.id.main_map_search_box);
  mRequestManager=HttpRequestManager.getInstance(mContext);
  storeItemizedOverlay=new StoreItemizedOverlay(mContext,this,mMapView);
  bookmarkButton=(Button)findViewById(R.id.bookmark_button);
  session=Session.getInstance(mContext);
  mSearchView.setOnKeyListener(this);
  mGpsManager.start();
}
Program: 153405
Project: 153405
Buggy source:
private void drawOverlays(){
  storeItemizedOverlay.getOverlayItems().clear();
  for (  MatjiData storeData : stores) {
    Store store=(Store)storeData;
    storeItemizedOverlay.addOverlay(store);
  }
  mMapView.postInvalidate();
}

Fixed version (ground truth):
private void drawOverlays(){
  mMapView.getOverlays().clear();
  storeItemizedOverlay.getOverlayItems().clear();
  for (  MatjiData storeData : stores) {
    Store store=(Store)storeData;
    storeItemizedOverlay.addOverlay(store);
  }
  mMapView.postInvalidate();
}
Program: 153406
Project: 153406
Buggy source:
protected void onResume(){
  super.onResume();
  mMapView.startMapCenterThread();
}

Fixed version (ground truth):
protected void onResume(){
  super.onResume();
}
Program: 153407
Project: 153407
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  mMapView=(MatjiMapView)findViewById(R.id.map_view);
  mMapController=mMapView.getController();
  mMapView.setMapCenterListener(this);
  mContext=getApplicationContext();
  mGpsManager=new GpsManager(mContext,this);
  mRequestManager=HttpRequestManager.getInstance(mContext);
  storeItemizedOverlay=new StoreItemizedOverlay(mContext,mMapView);
  session=Session.getInstance(mContext);
  mGpsManager.start();
  mMapView.startMapCenterThread();
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_main_map);
  mMapView=(MatjiMapView)findViewById(R.id.map_view);
  mMapController=mMapView.getController();
  mMapView.setMapCenterListener(this);
  mContext=getApplicationContext();
  mGpsManager=new GpsManager(mContext,this);
  mRequestManager=HttpRequestManager.getInstance(mContext);
  storeItemizedOverlay=new StoreItemizedOverlay(mContext,mMapView);
  session=Session.getInstance(mContext);
  mGpsManager.start();
}
Program: 153408
Project: 153408
Buggy source:
protected void onResume(){
  super.onResume();
}

Fixed version (ground truth):
protected void onResume(){
  super.onResume();
  mMapView.startMapCenterThread();
}
Program: 153409
Project: 153409
Buggy source:
public boolean isRequestAlreadyExecute(HttpRequest request){
  Iterator itr=tasks.iterator();
  boolean result=false;
  HttpAsyncTask task;
  HttpRequest prevRequest;
  while (itr.hasNext() && !result) {
    task=(HttpAsyncTask)itr.next();
    prevRequest=task.getRequest();
    result=(prevRequest.getTag() == request.getTag());
  }
  return result;
}

Fixed version (ground truth):
public boolean isRequestAlreadyExecute(HttpRequest request){
  Iterator itr=tasks.iterator();
  boolean result=false;
  HttpAsyncTask task;
  HttpRequest prevRequest;
  while (itr.hasNext() && !result) {
    task=(HttpAsyncTask)itr.next();
    prevRequest=task.getRequest();
    result=prevRequest.isEqual(request);
  }
  return result;
}
Program: 153410
Project: 153410
Buggy source:
public ArrayList<MatjiData> request() throws MatjiException {
  SimpleHttpResponse response=(httpMethod == HttpMethod.HTTP_POST) ? requestHttpResponsePost(serverDomain + controller + "String_Node_Str"+ action,null,postHashtable) : requestHttpResponseGet(serverDomain + controller + "String_Node_Str"+ action,null,getHashtable);
  String resultBody=response.getHttpResponseBodyAsString();
  String resultCode=response.getHttpStatusCode() + "String_Node_Str";
  Log.d("String_Node_Str","String_Node_Str" + resultBody);
  Log.d("String_Node_Str","String_Node_Str" + resultCode);
  ArrayList<MatjiData> attachFiles=parser.parseToMatjiDataList(resultBody);
  ArrayList<MatjiData> result=new ArrayList<MatjiData>();
  for (int i=0; i < attachFiles.size(); i=i + capacity) {
    int[] ids=new int[capacity];
    for (int j=0; j < ids.length; j++) {
      ids[j]=ImageAdapter.IMAGE_IS_NULL;
    }
    for (int j=0; (j < ids.length) && (i + j < attachFiles.size()); j++) {
      ids[j]=((AttachFile)attachFiles.get(i + j)).getId();
    }
    AttachFileIds attachFileIds=new AttachFileIds();
    attachFileIds.setIds(ids);
    result.add(attachFileIds);
  }
  return result;
}

Fixed version (ground truth):
public ArrayList<MatjiData> request() throws MatjiException {
  SimpleHttpResponse response=(httpMethod == HttpMethod.HTTP_POST) ? requestHttpResponsePost(null,postHashtable) : requestHttpResponseGet(null,getHashtable);
  String resultBody=response.getHttpResponseBodyAsString();
  String resultCode=response.getHttpStatusCode() + "String_Node_Str";
  Log.d("String_Node_Str","String_Node_Str" + resultBody);
  Log.d("String_Node_Str","String_Node_Str" + resultCode);
  ArrayList<MatjiData> attachFiles=parser.parseToMatjiDataList(resultBody);
  ArrayList<MatjiData> result=new ArrayList<MatjiData>();
  for (int i=0; i < attachFiles.size(); i=i + capacity) {
    int[] ids=new int[capacity];
    for (int j=0; j < ids.length; j++) {
      ids[j]=ImageAdapter.IMAGE_IS_NULL;
    }
    for (int j=0; (j < ids.length) && (i + j < attachFiles.size()); j++) {
      ids[j]=((AttachFile)attachFiles.get(i + j)).getId();
    }
    AttachFileIds attachFileIds=new AttachFileIds();
    attachFileIds.setIds(ids);
    result.add(attachFileIds);
  }
  return result;
}
Program: 153411
Project: 153411
Buggy source:
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_chat);
  manager=HttpRequestManager.getInstance(this);
  message=(Message)SharedMatjiData.getInstance().top();
  User me=Session.getInstance(this).getCurrentUser();
  user_id=(message.getSentUserId() == me.getId()) ? message.getReceivedUserId() : message.getSentUserId();
  listView=(ChatView)findViewById(R.id.chat);
  listView.setThreadId(message.getThreadId());
  listView.setActivity(this);
  listView.requestReload();
}

Fixed version (ground truth):
public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.activity_chat);
  manager=HttpRequestManager.getInstance(this);
  message=(Message)SharedMatjiData.getInstance().top();
  User me=Session.getInstance(this).getCurrentUser();
  user_id=(message.getSentUserId() == me.getId()) ? message.getReceivedUserId() : message.getSentUserId();
  listView=(ChatView)findViewById(R.id.chat);
  listView.setThreadId(message.getThreadId());
  listView.setActivity(this);
}
Program: 153412
Project: 153412
Buggy source:
public void finishWithMatjiData(){
  SharedMatjiData.getInstance().pop();
  super.finish();
}

Fixed version (ground truth):
public void finishWithMatjiData(){
  preFinish();
  super.finish();
}
Program: 153413
Project: 153413
Buggy source:
public void startActivityForResultWithMatjiData(Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  super.startActivityForResult(intent,requestCode);
}

Fixed version (ground truth):
public void startActivityForResultWithMatjiData(Intent intent,int requestCode,MatjiData data){
  preStart(data);
  super.startActivityForResult(intent,requestCode);
}
Program: 153414
Project: 153414
Buggy source:
public void finishActivityWithMatjiData(int requestCode){
  SharedMatjiData.getInstance().pop();
  super.finishActivity(requestCode);
}

Fixed version (ground truth):
public void finishActivityWithMatjiData(int requestCode){
  preFinish();
  super.finishActivity(requestCode);
}
Program: 153415
Project: 153415
Buggy source:
public void startActivityFromChildWithMatjiData(Activity child,Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  super.startActivityFromChild(child,intent,requestCode);
}

Fixed version (ground truth):
public void startActivityFromChildWithMatjiData(Activity child,Intent intent,int requestCode,MatjiData data){
  preStart(data);
  super.startActivityFromChild(child,intent,requestCode);
}
Program: 153416
Project: 153416
Buggy source:
public boolean startActivityIfNeededWithMatjiData(Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  return super.startActivityIfNeeded(intent,requestCode);
}

Fixed version (ground truth):
public boolean startActivityIfNeededWithMatjiData(Intent intent,int requestCode,MatjiData data){
  preStart(data);
  return super.startActivityIfNeeded(intent,requestCode);
}
Program: 153417
Project: 153417
Buggy source:
public void startActivityWithMatjiData(Intent intent,MatjiData data){
  Log.d("String_Node_Str","String_Node_Str");
  SharedMatjiData.getInstance().push(data);
  super.startActivity(intent);
}

Fixed version (ground truth):
public void startActivityWithMatjiData(Intent intent,MatjiData data){
  preStart(data);
  super.startActivity(intent);
}
Program: 153418
Project: 153418
Buggy source:
public void finishFromChildWithMatjiData(Activity child){
  SharedMatjiData.getInstance().pop();
  super.finishFromChild(child);
}

Fixed version (ground truth):
public void finishFromChildWithMatjiData(Activity child){
  preFinish();
  super.finishFromChild(child);
}
Program: 153419
Project: 153419
Buggy source:
public void finishActivityFromChildWithMatjiData(Activity child,int requestCode){
  SharedMatjiData.getInstance().pop();
  super.finishActivityFromChild(child,requestCode);
}

Fixed version (ground truth):
public void finishActivityFromChildWithMatjiData(Activity child,int requestCode){
  preFinish();
  super.finishActivityFromChild(child,requestCode);
}
Program: 153420
Project: 153420
Buggy source:
public void startActivityForResultWithMatjiData(Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  super.startActivityForResult(intent,requestCode);
}

Fixed version (ground truth):
public void startActivityForResultWithMatjiData(Intent intent,int requestCode,MatjiData data){
  preStart(data);
  super.startActivityForResult(intent,requestCode);
}
Program: 153421
Project: 153421
Buggy source:
public void finishActivityWithMatjiData(int requestCode){
  SharedMatjiData.getInstance().pop();
  super.finishActivity(requestCode);
}

Fixed version (ground truth):
public void finishActivityWithMatjiData(int requestCode){
  preFinish();
  super.finishActivity(requestCode);
}
Program: 153422
Project: 153422
Buggy source:
public void startActivityFromChildWithMatjiData(Activity child,Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  super.startActivityFromChild(child,intent,requestCode);
}

Fixed version (ground truth):
public void startActivityFromChildWithMatjiData(Activity child,Intent intent,int requestCode,MatjiData data){
  preStart(data);
  super.startActivityFromChild(child,intent,requestCode);
}
Program: 153423
Project: 153423
Buggy source:
public boolean startActivityIfNeededWithMatjiData(Intent intent,int requestCode,MatjiData data){
  SharedMatjiData.getInstance().push(data);
  return super.startActivityIfNeeded(intent,requestCode);
}

Fixed version (ground truth):
public boolean startActivityIfNeededWithMatjiData(Intent intent,int requestCode,MatjiData data){
  preStart(data);
  return super.startActivityIfNeeded(intent,requestCode);
}
Program: 153424
Project: 153424
Buggy source:
public void startActivityWithMatjiData(Intent intent,MatjiData data){
  Log.d("String_Node_Str","String_Node_Str");
  SharedMatjiData.getInstance().push(data);
  super.startActivity(intent);
}

Fixed version (ground truth):
public void startActivityWithMatjiData(Intent intent,MatjiData data){
  preFinish();
  super.startActivity(intent);
}
Program: 153425
Project: 153425
Buggy source:
public void finishFromChildWithMatjiData(Activity child){
  SharedMatjiData.getInstance().pop();
  super.finishFromChild(child);
}

Fixed version (ground truth):
public void finishFromChildWithMatjiData(Activity child){
  preFinish();
  super.finishFromChild(child);
}
Program: 153426
Project: 153426
Buggy source:
public void finishActivityFromChildWithMatjiData(Activity child,int requestCode){
  SharedMatjiData.getInstance().pop();
  super.finishActivityFromChild(child,requestCode);
}

Fixed version (ground truth):
public void finishActivityFromChildWithMatjiData(Activity child,int requestCode){
  preFinish();
  super.finishActivityFromChild(child,requestCode);
}
Program: 153427
Project: 153427
Buggy source:
public void finishWithMatjiData(){
  SharedMatjiData.getInstance().pop();
  super.finish();
}

Fixed version (ground truth):
public void finishWithMatjiData(){
  preFinish();
  super.finish();
}