nus-yam/ex-repair huggingface dataset:
Program: 195892
Project: 195892
Buggy source:
private void deliverNewIntents(ActivityClientRecord r,List<ReferrerIntent> intents){
  final int N=intents.size();
  for (int i=0; i < N; i++) {
    Intent intent=intents.get(i);
    intent.setExtrasClassLoader(r.activity.getClassLoader());
    intent.prepareToEnterProcess();
    r.activity.mFragments.noteStateNotSaved();
    mInstrumentation.callActivityOnNewIntent(r.activity,intent);
  }
}

Fixed version (ground truth):
private void deliverNewIntents(ActivityClientRecord r,List<ReferrerIntent> intents){
  final int N=intents.size();
  for (int i=0; i < N; i++) {
    ReferrerIntent intent=intents.get(i);
    intent.setExtrasClassLoader(r.activity.getClassLoader());
    intent.prepareToEnterProcess();
    r.activity.mFragments.noteStateNotSaved();
    mInstrumentation.callActivityOnNewIntent(r.activity,intent);
  }
}
Program: 195893
Project: 195893
Buggy source:
/** 
 * Perform calling of an activity's   {@link Activity#onNewIntent}method.  The default implementation simply calls through to that method.
 * @param activity The activity receiving a new Intent.
 * @param intent The new intent being received.
 */
public void callActivityOnNewIntent(Activity activity,Intent intent){
  final String oldReferrer=activity.mReferrer;
  try {
    try {
      activity.mReferrer=((ReferrerIntent)intent).mReferrer;
    }
 catch (    ClassCastException e) {
      activity.mReferrer=null;
    }
    activity.onNewIntent(intent);
  }
  finally {
    activity.mReferrer=oldReferrer;
  }
}

Fixed version (ground truth):
/** 
 * @hide
 */
public void callActivityOnNewIntent(Activity activity,ReferrerIntent intent){
  final String oldReferrer=activity.mReferrer;
  try {
    activity.mReferrer=intent.mReferrer;
    callActivityOnNewIntent(activity,new Intent(intent));
  }
  finally {
    activity.mReferrer=oldReferrer;
  }
}
Program: 195894
Project: 195894
Buggy source:
private void deliverNewIntents(ActivityClientRecord r,List<ReferrerIntent> intents){
  final int N=intents.size();
  for (int i=0; i < N; i++) {
    Intent intent=intents.get(i);
    intent.setExtrasClassLoader(r.activity.getClassLoader());
    intent.prepareToEnterProcess();
    r.activity.mFragments.noteStateNotSaved();
    mInstrumentation.callActivityOnNewIntent(r.activity,intent);
  }
}

Fixed version (ground truth):
private void deliverNewIntents(ActivityClientRecord r,List<ReferrerIntent> intents){
  final int N=intents.size();
  for (int i=0; i < N; i++) {
    ReferrerIntent intent=intents.get(i);
    intent.setExtrasClassLoader(r.activity.getClassLoader());
    intent.prepareToEnterProcess();
    r.activity.mFragments.noteStateNotSaved();
    mInstrumentation.callActivityOnNewIntent(r.activity,intent);
  }
}
Program: 195895
Project: 195895
Buggy source:
/** 
 * Perform calling of an activity's   {@link Activity#onNewIntent}method.  The default implementation simply calls through to that method.
 * @param activity The activity receiving a new Intent.
 * @param intent The new intent being received.
 */
public void callActivityOnNewIntent(Activity activity,Intent intent){
  final String oldReferrer=activity.mReferrer;
  try {
    try {
      activity.mReferrer=((ReferrerIntent)intent).mReferrer;
    }
 catch (    ClassCastException e) {
      activity.mReferrer=null;
    }
    activity.onNewIntent(intent);
  }
  finally {
    activity.mReferrer=oldReferrer;
  }
}

Fixed version (ground truth):
/** 
 * @hide
 */
public void callActivityOnNewIntent(Activity activity,ReferrerIntent intent){
  final String oldReferrer=activity.mReferrer;
  try {
    activity.mReferrer=intent.mReferrer;
    callActivityOnNewIntent(activity,new Intent(intent));
  }
  finally {
    activity.mReferrer=oldReferrer;
  }
}
Program: 195896
Project: 195896
Buggy source:
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
}

Fixed version (ground truth):
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
  mImmutable=true;
}
Program: 195897
Project: 195897
Buggy source:
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
}

Fixed version (ground truth):
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
  mImmutable=true;
}
Program: 195898
Project: 195898
Buggy source:
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
}

Fixed version (ground truth):
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
  mImmutable=true;
}
Program: 195899
Project: 195899
Buggy source:
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
}

Fixed version (ground truth):
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
  mImmutable=true;
}
Program: 195900
Project: 195900
Buggy source:
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
}

Fixed version (ground truth):
public FailureSignalingConnection(DisconnectCause disconnectCause){
  setDisconnected(disconnectCause);
  mImmutable=true;
}
Program: 195902
Project: 195902
Buggy source:
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}

Fixed version (ground truth):
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      initDefaultGuestRestrictions();
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}
Program: 195903
Project: 195903
Buggy source:
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    writeUserListLocked();
  }
}

Fixed version (ground truth):
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS,true);
  }
}
Program: 195905
Project: 195905
Buggy source:
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}

Fixed version (ground truth):
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      initDefaultGuestRestrictions();
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}
Program: 195906
Project: 195906
Buggy source:
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    writeUserListLocked();
  }
}

Fixed version (ground truth):
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS,true);
  }
}
Program: 195908
Project: 195908
Buggy source:
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}

Fixed version (ground truth):
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      initDefaultGuestRestrictions();
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}
Program: 195909
Project: 195909
Buggy source:
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    writeUserListLocked();
  }
}

Fixed version (ground truth):
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS,true);
  }
}
Program: 195911
Project: 195911
Buggy source:
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}

Fixed version (ground truth):
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      initDefaultGuestRestrictions();
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}
Program: 195912
Project: 195912
Buggy source:
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    writeUserListLocked();
  }
}

Fixed version (ground truth):
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS,true);
  }
}
Program: 195914
Project: 195914
Buggy source:
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}

Fixed version (ground truth):
/** 
 * Available for testing purposes.
 */
private UserManagerService(Context context,PackageManagerService pm,Object installLock,Object packagesLock,File dataDir,File baseUserPath){
  mContext=context;
  mPm=pm;
  mInstallLock=installLock;
  mPackagesLock=packagesLock;
  mHandler=new Handler();
synchronized (mInstallLock) {
synchronized (mPackagesLock) {
      mUsersDir=new File(dataDir,USER_INFO_DIR);
      mUsersDir.mkdirs();
      File userZeroDir=new File(mUsersDir,"String_Node_Str");
      userZeroDir.mkdirs();
      mBaseUserPath=baseUserPath;
      FileUtils.setPermissions(mUsersDir.toString(),FileUtils.S_IRWXU | FileUtils.S_IRWXG | FileUtils.S_IROTH| FileUtils.S_IXOTH,-1,-1);
      mUserListFile=new File(mUsersDir,USER_LIST_FILENAME);
      initDefaultGuestRestrictions();
      readUserListLocked();
      ArrayList<UserInfo> partials=new ArrayList<UserInfo>();
      for (int i=0; i < mUsers.size(); i++) {
        UserInfo ui=mUsers.valueAt(i);
        if ((ui.partial || ui.guestToRemove) && i != 0) {
          partials.add(ui);
        }
      }
      for (int i=0; i < partials.size(); i++) {
        UserInfo ui=partials.get(i);
        Slog.w(LOG_TAG,"String_Node_Str" + i + "String_Node_Str"+ ui.name+ "String_Node_Str");
        removeUserStateLocked(ui.id);
      }
      sInstance=this;
    }
  }
}
Program: 195915
Project: 195915
Buggy source:
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    writeUserListLocked();
  }
}

Fixed version (ground truth):
/** 
 * If default guest restrictions haven't been initialized yet, add the basic restrictions.
 */
private void initDefaultGuestRestrictions(){
  if (mGuestRestrictions.isEmpty()) {
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_OUTGOING_CALLS,true);
    mGuestRestrictions.putBoolean(UserManager.DISALLOW_SMS,true);
  }
}
Program: 195916
Project: 195916
Buggy source:
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        setError(error);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        if (mEditor == null || !mEditor.mErrorWasChanged) {
          setError(error);
        }
      }
    }
);
  }
}
Program: 195917
Project: 195917
Buggy source:
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        setError(error);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        if (mEditor == null || !mEditor.mErrorWasChanged) {
          setError(error);
        }
      }
    }
);
  }
}
Program: 195918
Project: 195918
Buggy source:
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        setError(error);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        if (mEditor == null || !mEditor.mErrorWasChanged) {
          setError(error);
        }
      }
    }
);
  }
}
Program: 195919
Project: 195919
Buggy source:
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        setError(error);
      }
    }
);
  }
}

Fixed version (ground truth):
@Override public void onRestoreInstanceState(Parcelable state){
  if (!(state instanceof SavedState)) {
    super.onRestoreInstanceState(state);
    return;
  }
  SavedState ss=(SavedState)state;
  super.onRestoreInstanceState(ss.getSuperState());
  if (ss.text != null) {
    setText(ss.text);
  }
  if (ss.selStart >= 0 && ss.selEnd >= 0) {
    if (mText instanceof Spannable) {
      int len=mText.length();
      if (ss.selStart > len || ss.selEnd > len) {
        String restored="String_Node_Str";
        if (ss.text != null) {
          restored="String_Node_Str";
        }
        Log.e(LOG_TAG,"String_Node_Str" + ss.selStart + "String_Node_Str"+ ss.selEnd+ "String_Node_Str"+ restored+ "String_Node_Str"+ mText);
      }
 else {
        Selection.setSelection((Spannable)mText,ss.selStart,ss.selEnd);
        if (ss.frozenWithFocus) {
          createEditorIfNeeded();
          mEditor.mFrozenWithFocus=true;
        }
      }
    }
  }
  if (ss.error != null) {
    final CharSequence error=ss.error;
    post(new Runnable(){
      public void run(){
        if (mEditor == null || !mEditor.mErrorWasChanged) {
          setError(error);
        }
      }
    }
);
  }
}
Program: 195921
Project: 195921
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  data.writeStrongBinder(callerToken);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}
Program: 195922
Project: 195922
Buggy source:
@Override public int checkPermission(String permission,int pid,int uid){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermission(permission,pid,uid);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public int checkPermission(String permission,int pid,int uid,IBinder callerToken){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermissionWithToken(permission,pid,uid,callerToken);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}
Program: 195923
Project: 195923
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException ;

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException ;
Program: 195925
Project: 195925
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  data.writeStrongBinder(callerToken);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}
Program: 195926
Project: 195926
Buggy source:
@Override public int checkPermission(String permission,int pid,int uid){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermission(permission,pid,uid);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public int checkPermission(String permission,int pid,int uid,IBinder callerToken){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermissionWithToken(permission,pid,uid,callerToken);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}
Program: 195927
Project: 195927
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException ;

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException ;
Program: 195929
Project: 195929
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  data.writeStrongBinder(callerToken);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}
Program: 195930
Project: 195930
Buggy source:
@Override public int checkPermission(String permission,int pid,int uid){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermission(permission,pid,uid);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public int checkPermission(String permission,int pid,int uid,IBinder callerToken){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermissionWithToken(permission,pid,uid,callerToken);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}
Program: 195931
Project: 195931
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException ;

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException ;
Program: 195933
Project: 195933
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  data.writeStrongBinder(callerToken);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}
Program: 195934
Project: 195934
Buggy source:
@Override public int checkPermission(String permission,int pid,int uid){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermission(permission,pid,uid);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public int checkPermission(String permission,int pid,int uid,IBinder callerToken){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermissionWithToken(permission,pid,uid,callerToken);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}
Program: 195935
Project: 195935
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException ;

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException ;
Program: 195936
Project: 195936
Buggy source:
@LayoutlibDelegate static int getAmOrPmKeyCode(int amOrPm){
}

Fixed version (ground truth):
@LayoutlibDelegate static int getAmOrPmKeyCode(TimePickerSpinnerDelegate tpsd,int amOrPm){
}
Program: 195938
Project: 195938
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException {
  Parcel data=Parcel.obtain();
  Parcel reply=Parcel.obtain();
  data.writeInterfaceToken(IActivityManager.descriptor);
  uri.writeToParcel(data,0);
  data.writeInt(pid);
  data.writeInt(uid);
  data.writeInt(mode);
  data.writeInt(userId);
  data.writeStrongBinder(callerToken);
  mRemote.transact(CHECK_URI_PERMISSION_TRANSACTION,data,reply,0);
  reply.readException();
  int res=reply.readInt();
  data.recycle();
  reply.recycle();
  return res;
}
Program: 195939
Project: 195939
Buggy source:
@Override public int checkPermission(String permission,int pid,int uid){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermission(permission,pid,uid);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}

Fixed version (ground truth):
/** 
 * @hide 
 */
@Override public int checkPermission(String permission,int pid,int uid,IBinder callerToken){
  if (permission == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    return ActivityManagerNative.getDefault().checkPermissionWithToken(permission,pid,uid,callerToken);
  }
 catch (  RemoteException e) {
    return PackageManager.PERMISSION_DENIED;
  }
}
Program: 195940
Project: 195940
Buggy source:
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId) throws RemoteException ;

Fixed version (ground truth):
public int checkUriPermission(Uri uri,int pid,int uid,int mode,int userId,IBinder callerToken) throws RemoteException ;
Program: 195941
Project: 195941
Buggy source:
@Override public HdmiPortInfo createFromParcel(Parcel source){
  int id=source.readInt();
  int type=source.readInt();
  int address=source.readInt();
  boolean cec=(source.readInt() == 1);
  boolean arc=(source.readInt() == 1);
  boolean mhl=(source.readInt() == 1);
  return new HdmiPortInfo(id,type,address,cec,arc,mhl);
}

Fixed version (ground truth):
@Override public HdmiPortInfo createFromParcel(Parcel source){
  int id=source.readInt();
  int type=source.readInt();
  int address=source.readInt();
  boolean cec=(source.readInt() == 1);
  boolean arc=(source.readInt() == 1);
  boolean mhl=(source.readInt() == 1);
  return new HdmiPortInfo(id,type,address,cec,mhl,arc);
}
Program: 195942
Project: 195942
Buggy source:
/** 
 * Resets this view's properties 
 */
void resetViewProperties(){
  setDim(0);
  setLayerType(View.LAYER_TYPE_NONE,null);
  TaskViewTransform.reset(this);
}

Fixed version (ground truth):
/** 
 * Resets this view's properties 
 */
void resetViewProperties(){
  setDim(0);
  setLayerType(View.LAYER_TYPE_NONE,null);
  TaskViewTransform.reset(this);
  if (mActionButtonView != null) {
    mActionButtonView.setScaleX(1f);
    mActionButtonView.setScaleY(1f);
    mActionButtonView.setAlpha(1f);
    mActionButtonView.setTranslationZ(mActionButtonTranslationZ);
  }
}
Program: 195943
Project: 195943
Buggy source:
@Override protected void onFinishInflate(){
  mContent=findViewById(R.id.task_view_content);
  mHeaderView=(TaskViewHeader)findViewById(R.id.task_view_bar);
  mThumbnailView=(TaskViewThumbnail)findViewById(R.id.task_view_thumbnail);
  mThumbnailView.updateClipToTaskBar(mHeaderView);
  mActionButtonView=findViewById(R.id.lock_to_app_fab);
  mActionButtonView.setOutlineProvider(new ViewOutlineProvider(){
    @Override public void getOutline(    View view,    Outline outline){
      outline.setOval(0,0,mActionButtonView.getWidth(),mActionButtonView.getHeight());
    }
  }
);
}

Fixed version (ground truth):
@Override protected void onFinishInflate(){
  mContent=findViewById(R.id.task_view_content);
  mHeaderView=(TaskViewHeader)findViewById(R.id.task_view_bar);
  mThumbnailView=(TaskViewThumbnail)findViewById(R.id.task_view_thumbnail);
  mThumbnailView.updateClipToTaskBar(mHeaderView);
  mActionButtonView=findViewById(R.id.lock_to_app_fab);
  mActionButtonView.setOutlineProvider(new ViewOutlineProvider(){
    @Override public void getOutline(    View view,    Outline outline){
      outline.setOval(0,0,mActionButtonView.getWidth(),mActionButtonView.getHeight());
    }
  }
);
  mActionButtonTranslationZ=mActionButtonView.getTranslationZ();
}
Program: 195944
Project: 195944
Buggy source:
void moveTaskToFrontLocked(int taskId,int flags,Bundle options){
  if (!checkAppSwitchAllowedLocked(Binder.getCallingPid(),Binder.getCallingUid(),-1,-1,"String_Node_Str")) {
    ActivityOptions.abort(options);
    return;
  }
  final long origId=Binder.clearCallingIdentity();
  try {
    final TaskRecord task=mStackSupervisor.anyTaskForIdLocked(taskId);
    if (task == null) {
      return;
    }
    if (mStackSupervisor.isLockTaskModeViolation(task)) {
      mStackSupervisor.showLockTaskToast();
      Slog.e(TAG,"String_Node_Str");
      return;
    }
    final ActivityRecord prev=mStackSupervisor.topRunningActivityLocked();
    if (prev != null && prev.isRecentsActivity()) {
      task.setTaskToReturnTo(ActivityRecord.RECENTS_ACTIVITY_TYPE);
    }
    mStackSupervisor.findTaskToMoveToFrontLocked(task,flags,options);
  }
  finally {
    Binder.restoreCallingIdentity(origId);
  }
  ActivityOptions.abort(options);
}

Fixed version (ground truth):
void moveTaskToFrontLocked(int taskId,int flags,Bundle options){
  if (!checkAppSwitchAllowedLocked(Binder.getCallingPid(),Binder.getCallingUid(),-1,-1,"String_Node_Str")) {
    ActivityOptions.abort(options);
    return;
  }
  final long origId=Binder.clearCallingIdentity();
  try {
    final TaskRecord task=mStackSupervisor.anyTaskForIdLocked(taskId);
    if (task == null) {
      Slog.d(TAG,"String_Node_Str" + taskId);
      return;
    }
    if (mStackSupervisor.isLockTaskModeViolation(task)) {
      mStackSupervisor.showLockTaskToast();
      Slog.e(TAG,"String_Node_Str");
      return;
    }
    final ActivityRecord prev=mStackSupervisor.topRunningActivityLocked();
    if (prev != null && prev.isRecentsActivity()) {
      task.setTaskToReturnTo(ActivityRecord.RECENTS_ACTIVITY_TYPE);
    }
    mStackSupervisor.findTaskToMoveToFrontLocked(task,flags,options);
  }
  finally {
    Binder.restoreCallingIdentity(origId);
  }
  ActivityOptions.abort(options);
}
Program: 195945
Project: 195945
Buggy source:
@Override public HdmiPortInfo createFromParcel(Parcel source){
  int id=source.readInt();
  int type=source.readInt();
  int address=source.readInt();
  boolean cec=(source.readInt() == 1);
  boolean arc=(source.readInt() == 1);
  boolean mhl=(source.readInt() == 1);
  return new HdmiPortInfo(id,type,address,cec,arc,mhl);
}

Fixed version (ground truth):
@Override public HdmiPortInfo createFromParcel(Parcel source){
  int id=source.readInt();
  int type=source.readInt();
  int address=source.readInt();
  boolean cec=(source.readInt() == 1);
  boolean arc=(source.readInt() == 1);
  boolean mhl=(source.readInt() == 1);
  return new HdmiPortInfo(id,type,address,cec,mhl,arc);
}