nus-yam/ex-repair huggingface dataset:
Program: 192045
Project: 192045
Buggy source:
private SubscriptionInfo addSignalController(int id,int simSlotIndex){
  SubscriptionInfo info=new SubscriptionInfo(id,"String_Node_Str",simSlotIndex,"String_Node_Str","String_Node_Str",0,0,"String_Node_Str",0,null,0,0,"String_Node_Str");
  mMobileSignalControllers.put(id,new MobileSignalController(mContext,mConfig,mHasMobileDataFeature,mPhone,mCallbackHandler,this,info,mSubDefaults,mReceiverHandler.getLooper()));
  return info;
}

Fixed version (ground truth):
private SubscriptionInfo addSignalController(int id,int simSlotIndex){
  SubscriptionInfo info=new SubscriptionInfo(id,"String_Node_Str",simSlotIndex,"String_Node_Str","String_Node_Str",0,0,"String_Node_Str",0,null,0,0,"String_Node_Str",SubscriptionManager.SIM_PROVISIONED);
  mMobileSignalControllers.put(id,new MobileSignalController(mContext,mConfig,mHasMobileDataFeature,mPhone,mCallbackHandler,this,info,mSubDefaults,mReceiverHandler.getLooper()));
  return info;
}
Program: 192046
Project: 192046
Buggy source:
/** 
 * @hide
 */
public SubscriptionInfo(int id,String iccId,int simSlotIndex,CharSequence displayName,CharSequence carrierName,int nameSource,int iconTint,String number,int roaming,Bitmap icon,int mcc,int mnc,String countryIso){
  this.mId=id;
  this.mIccId=iccId;
  this.mSimSlotIndex=simSlotIndex;
  this.mDisplayName=displayName;
  this.mCarrierName=carrierName;
  this.mNameSource=nameSource;
  this.mIconTint=iconTint;
  this.mNumber=number;
  this.mDataRoaming=roaming;
  this.mIconBitmap=icon;
  this.mMcc=mcc;
  this.mMnc=mnc;
  this.mCountryIso=countryIso;
}

Fixed version (ground truth):
/** 
 * @hide
 */
public SubscriptionInfo(int id,String iccId,int simSlotIndex,CharSequence displayName,CharSequence carrierName,int nameSource,int iconTint,String number,int roaming,Bitmap icon,int mcc,int mnc,String countryIso,int simProvisioningStatus){
  this.mId=id;
  this.mIccId=iccId;
  this.mSimSlotIndex=simSlotIndex;
  this.mDisplayName=displayName;
  this.mCarrierName=carrierName;
  this.mNameSource=nameSource;
  this.mIconTint=iconTint;
  this.mNumber=number;
  this.mDataRoaming=roaming;
  this.mIconBitmap=icon;
  this.mMcc=mcc;
  this.mMnc=mnc;
  this.mCountryIso=countryIso;
  this.mSimProvisioningStatus=simProvisioningStatus;
}
Program: 192047
Project: 192047
Buggy source:
@Override public SubscriptionInfo createFromParcel(Parcel source){
  int id=source.readInt();
  String iccId=source.readString();
  int simSlotIndex=source.readInt();
  CharSequence displayName=source.readCharSequence();
  CharSequence carrierName=source.readCharSequence();
  int nameSource=source.readInt();
  int iconTint=source.readInt();
  String number=source.readString();
  int dataRoaming=source.readInt();
  int mcc=source.readInt();
  int mnc=source.readInt();
  String countryIso=source.readString();
  Bitmap iconBitmap=Bitmap.CREATOR.createFromParcel(source);
  return new SubscriptionInfo(id,iccId,simSlotIndex,displayName,carrierName,nameSource,iconTint,number,dataRoaming,iconBitmap,mcc,mnc,countryIso);
}

Fixed version (ground truth):
@Override public SubscriptionInfo createFromParcel(Parcel source){
  int id=source.readInt();
  String iccId=source.readString();
  int simSlotIndex=source.readInt();
  CharSequence displayName=source.readCharSequence();
  CharSequence carrierName=source.readCharSequence();
  int nameSource=source.readInt();
  int iconTint=source.readInt();
  String number=source.readString();
  int dataRoaming=source.readInt();
  int mcc=source.readInt();
  int mnc=source.readInt();
  String countryIso=source.readString();
  int simProvisioningStatus=source.readInt();
  Bitmap iconBitmap=Bitmap.CREATOR.createFromParcel(source);
  return new SubscriptionInfo(id,iccId,simSlotIndex,displayName,carrierName,nameSource,iconTint,number,dataRoaming,iconBitmap,mcc,mnc,countryIso,simProvisioningStatus);
}
Program: 192048
Project: 192048
Buggy source:
@Override public String toString(){
  String iccIdToPrint=givePrintableIccid(mIccId);
  return "String_Node_Str" + mId + "String_Node_Str"+ iccIdToPrint+ "String_Node_Str"+ mSimSlotIndex+ "String_Node_Str"+ mDisplayName+ "String_Node_Str"+ mCarrierName+ "String_Node_Str"+ mNameSource+ "String_Node_Str"+ mIconTint+ "String_Node_Str"+ mDataRoaming+ "String_Node_Str"+ mIconBitmap+ "String_Node_Str"+ mMcc+ "String_Node_Str"+ mMnc+ "String_Node_Str";
}

Fixed version (ground truth):
@Override public String toString(){
  String iccIdToPrint=givePrintableIccid(mIccId);
  return "String_Node_Str" + mId + "String_Node_Str"+ iccIdToPrint+ "String_Node_Str"+ mSimSlotIndex+ "String_Node_Str"+ mDisplayName+ "String_Node_Str"+ mCarrierName+ "String_Node_Str"+ mNameSource+ "String_Node_Str"+ mIconTint+ "String_Node_Str"+ mDataRoaming+ "String_Node_Str"+ mIconBitmap+ "String_Node_Str"+ mMcc+ "String_Node_Str"+ mMnc+ "String_Node_Str"+ mSimProvisioningStatus+ "String_Node_Str";
}
Program: 192049
Project: 192049
Buggy source:
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(mId);
  dest.writeString(mIccId);
  dest.writeInt(mSimSlotIndex);
  dest.writeCharSequence(mDisplayName);
  dest.writeCharSequence(mCarrierName);
  dest.writeInt(mNameSource);
  dest.writeInt(mIconTint);
  dest.writeString(mNumber);
  dest.writeInt(mDataRoaming);
  dest.writeInt(mMcc);
  dest.writeInt(mMnc);
  dest.writeString(mCountryIso);
  mIconBitmap.writeToParcel(dest,flags);
}

Fixed version (ground truth):
@Override public void writeToParcel(Parcel dest,int flags){
  dest.writeInt(mId);
  dest.writeString(mIccId);
  dest.writeInt(mSimSlotIndex);
  dest.writeCharSequence(mDisplayName);
  dest.writeCharSequence(mCarrierName);
  dest.writeInt(mNameSource);
  dest.writeInt(mIconTint);
  dest.writeString(mNumber);
  dest.writeInt(mDataRoaming);
  dest.writeInt(mMcc);
  dest.writeInt(mMnc);
  dest.writeString(mCountryIso);
  dest.writeInt(mSimProvisioningStatus);
  mIconBitmap.writeToParcel(dest,flags);
}
Program: 192051
Project: 192051
Buggy source:
/** 
 * Like   {@link #getStackTransform}, but in screen coordinates
 */
public TaskViewTransform getStackTransformScreenCoordinates(Task task,float stackScroll,TaskViewTransform transformOut,TaskViewTransform frontTransform){
  Rect windowRect=Recents.getSystemServices().getWindowRect();
  TaskViewTransform transform=getStackTransform(task,stackScroll,mFocusState,transformOut,frontTransform,true,false);
  transform.rect.offset(windowRect.left,windowRect.top);
  return transform;
}

Fixed version (ground truth):
/** 
 * Like   {@link #getStackTransform}, but in screen coordinates
 */
public TaskViewTransform getStackTransformScreenCoordinates(Task task,float stackScroll,TaskViewTransform transformOut,TaskViewTransform frontTransform){
  TaskViewTransform transform=getStackTransform(task,stackScroll,mFocusState,transformOut,frontTransform,true,false);
  return transformToScreenCoordinates(transform);
}
Program: 192053
Project: 192053
Buggy source:
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + client != null ? client.getOwnerString() : "String_Node_Str" + "String_Node_Str" + error + "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}

Fixed version (ground truth):
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + (client != null ? client.getOwnerString() : "String_Node_Str") + "String_Node_Str"+ error+ "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}
Program: 192054
Project: 192054
Buggy source:
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + client != null ? client.getOwnerString() : "String_Node_Str" + "String_Node_Str" + error + "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}

Fixed version (ground truth):
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + (client != null ? client.getOwnerString() : "String_Node_Str") + "String_Node_Str"+ error+ "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}
Program: 192055
Project: 192055
Buggy source:
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + client != null ? client.getOwnerString() : "String_Node_Str" + "String_Node_Str" + error + "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}

Fixed version (ground truth):
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + (client != null ? client.getOwnerString() : "String_Node_Str") + "String_Node_Str"+ error+ "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}
Program: 192056
Project: 192056
Buggy source:
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + client != null ? client.getOwnerString() : "String_Node_Str" + "String_Node_Str" + error + "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}

Fixed version (ground truth):
protected void handleError(long deviceId,int error){
  ClientMonitor client=mCurrentClient;
  if (client != null && client.onError(error)) {
    removeClient(client);
  }
  if (DEBUG)   Slog.v(TAG,"String_Node_Str" + (client != null ? client.getOwnerString() : "String_Node_Str") + "String_Node_Str"+ error+ "String_Node_Str");
  if (error == FingerprintManager.FINGERPRINT_ERROR_CANCELED) {
    mHandler.removeCallbacks(mResetClientState);
    if (mPendingClient != null) {
      if (DEBUG)       Slog.v(TAG,"String_Node_Str" + mPendingClient.getOwnerString());
      startClient(mPendingClient,false);
      mPendingClient=null;
    }
  }
}
Program: 192057
Project: 192057
Buggy source:
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}

Fixed version (ground truth):
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateNotificationColor();
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}
Program: 192058
Project: 192058
Buggy source:
public int getNotificationColor(){
  int color=getStatusBarNotification().getNotification().color;
  if (color == Notification.COLOR_DEFAULT) {
    return mContext.getColor(com.android.internal.R.color.notification_icon_default_color);
  }
  return color;
}

Fixed version (ground truth):
public int getNotificationColor(){
  return mNotificationColor;
}
Program: 192059
Project: 192059
Buggy source:
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
}

Fixed version (ground truth):
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
  removeView(mOverflowNumber);
  mOverflowNumber=null;
  mOverflowInvertHelper=null;
  mGroupOverFlowState=null;
  updateGroupOverflow();
}
Program: 192060
Project: 192060
Buggy source:
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}

Fixed version (ground truth):
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateNotificationColor();
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}
Program: 192061
Project: 192061
Buggy source:
public int getNotificationColor(){
  int color=getStatusBarNotification().getNotification().color;
  if (color == Notification.COLOR_DEFAULT) {
    return mContext.getColor(com.android.internal.R.color.notification_icon_default_color);
  }
  return color;
}

Fixed version (ground truth):
public int getNotificationColor(){
  return mNotificationColor;
}
Program: 192062
Project: 192062
Buggy source:
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
}

Fixed version (ground truth):
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
  removeView(mOverflowNumber);
  mOverflowNumber=null;
  mOverflowInvertHelper=null;
  mGroupOverFlowState=null;
  updateGroupOverflow();
}
Program: 192063
Project: 192063
Buggy source:
private DhcpErrorEvent(Parcel in){
  this.errorCode=in.readInt();
}

Fixed version (ground truth):
private DhcpErrorEvent(Parcel in){
  this.ifName=in.readString();
  this.errorCode=in.readInt();
}
Program: 192064
Project: 192064
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(errorCode);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeInt(errorCode);
}
Program: 192065
Project: 192065
Buggy source:
@Override public void run(){
  if (DBG)   Log.d(TAG,"String_Node_Str");
  while (!mStopped) {
    int length=0;
    try {
      length=Os.read(mPacketSock,mPacket,0,mPacket.length);
      DhcpPacket packet=null;
      packet=DhcpPacket.decodeFullPacket(mPacket,length,DhcpPacket.ENCAP_L2);
      if (DBG)       Log.d(TAG,"String_Node_Str" + packet);
      sendMessage(CMD_RECEIVED_PACKET,packet);
    }
 catch (    IOException|ErrnoException e) {
      if (!mStopped) {
        Log.e(TAG,"String_Node_Str",e);
      }
      DhcpClientEvent.logEvent(IpConnectivityEvent.IPCE_DHCP_RECV_ERROR,mIfaceName,e.getMessage());
    }
catch (    DhcpPacket.ParseException e) {
      Log.e(TAG,"String_Node_Str" + e.getMessage());
      if (PACKET_DBG) {
        Log.d(TAG,HexDump.dumpHexString(mPacket,0,length));
      }
      DhcpClientEvent.logEvent(IpConnectivityEvent.IPCE_DHCP_PARSE_ERROR,mIfaceName,e.getMessage());
    }
  }
  if (DBG)   Log.d(TAG,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(){
  if (DBG)   Log.d(TAG,"String_Node_Str");
  while (!mStopped) {
    int length=0;
    try {
      length=Os.read(mPacketSock,mPacket,0,mPacket.length);
      DhcpPacket packet=null;
      packet=DhcpPacket.decodeFullPacket(mPacket,length,DhcpPacket.ENCAP_L2);
      if (DBG)       Log.d(TAG,"String_Node_Str" + packet);
      sendMessage(CMD_RECEIVED_PACKET,packet);
    }
 catch (    IOException|ErrnoException e) {
      if (!mStopped) {
        Log.e(TAG,"String_Node_Str",e);
      }
      DhcpErrorEvent.logReceiveError(mIfaceName);
    }
catch (    DhcpPacket.ParseException e) {
      Log.e(TAG,"String_Node_Str" + e.getMessage());
      if (PACKET_DBG) {
        Log.d(TAG,HexDump.dumpHexString(mPacket,0,length));
      }
      DhcpErrorEvent.logParseError(mIfaceName,e.errorCode);
    }
  }
  if (DBG)   Log.d(TAG,"String_Node_Str");
}
Program: 192066
Project: 192066
Buggy source:
public ParseException(String msg,Object... args){
  super(String.format(msg,args));
}

Fixed version (ground truth):
public ParseException(int errorCode,String msg,Object... args){
  super(String.format(msg,args));
  this.errorCode=errorCode;
}
Program: 192067
Project: 192067
Buggy source:
public CaptivePortalCheckResultEvent(Parcel in){
  mNetId=in.readInt();
  mResult=in.readInt();
}

Fixed version (ground truth):
private CaptivePortalCheckResultEvent(Parcel in){
  this.netId=in.readInt();
  this.result=in.readInt();
}
Program: 192068
Project: 192068
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mNetId);
  out.writeInt(mResult);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(netId);
  out.writeInt(result);
}
Program: 192069
Project: 192069
Buggy source:
public static void logEvent(int netId,int result){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_NETMON_CHECK_RESULT,new CaptivePortalCheckResultEvent(netId,result));
}

Fixed version (ground truth):
public static void logEvent(int netId,int result){
  logEvent(IPCE_NETMON_CHECK_RESULT,new CaptivePortalCheckResultEvent(netId,result));
}
Program: 192070
Project: 192070
Buggy source:
public CaptivePortalStateChangeEvent(Parcel in){
  mState=in.readInt();
}

Fixed version (ground truth):
public CaptivePortalStateChangeEvent(Parcel in){
  state=in.readInt();
}
Program: 192071
Project: 192071
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mState);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(state);
}
Program: 192072
Project: 192072
Buggy source:
public static void logEvent(int state){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_NETMON_STATE_CHANGE,new CaptivePortalStateChangeEvent(state));
}

Fixed version (ground truth):
public static void logEvent(int state){
  logEvent(IPCE_NETMON_STATE_CHANGE,new CaptivePortalStateChangeEvent(state));
}
Program: 192073
Project: 192073
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mNetId);
  out.writeIntArray(mTransportTypes);
  out.writeInt(mPrevNetId);
  out.writeByte(mPrevIPv4 ? (byte)1 : (byte)0);
  out.writeByte(mPrevIPv6 ? (byte)1 : (byte)0);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(netId);
  out.writeIntArray(transportTypes);
  out.writeInt(prevNetId);
  out.writeByte(prevIPv4 ? (byte)1 : (byte)0);
  out.writeByte(prevIPv6 ? (byte)1 : (byte)0);
}
Program: 192074
Project: 192074
Buggy source:
public ConnectivityServiceChangeEvent(Parcel in){
  mNetId=in.readInt();
  mTransportTypes=in.createIntArray();
  mPrevNetId=in.readInt();
  mPrevIPv4=(in.readByte() > 0);
  mPrevIPv6=(in.readByte() > 0);
}

Fixed version (ground truth):
private ConnectivityServiceChangeEvent(Parcel in){
  this.netId=in.readInt();
  this.transportTypes=in.createIntArray();
  this.prevNetId=in.readInt();
  this.prevIPv4=(in.readByte() > 0);
  this.prevIPv6=(in.readByte() > 0);
}
Program: 192075
Project: 192075
Buggy source:
public static void logEvent(int netId,int[] transportTypes,int prevNetId,boolean prevIPv4,boolean prevIPv6){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_CONSRV_DEFAULT_NET_CHANGE,new ConnectivityServiceChangeEvent(netId,transportTypes,prevNetId,prevIPv4,prevIPv6));
}

Fixed version (ground truth):
public static void logEvent(int netId,int[] transportTypes,int prevNetId,boolean prevIPv4,boolean prevIPv6){
  logEvent(IPCE_CONSRV_DEFAULT_NET_CHANGE,new ConnectivityServiceChangeEvent(netId,transportTypes,prevNetId,prevIPv4,prevIPv6));
}
Program: 192076
Project: 192076
Buggy source:
public static void logStateEvent(String ifName,String state){
  logEvent(IpConnectivityEvent.IPCE_DHCP_STATE_CHANGE,new DhcpClientEvent(ifName,state));
}

Fixed version (ground truth):
public static void logStateEvent(String ifName,String state){
  logEvent(IPCE_DHCP_STATE_CHANGE,new DhcpClientEvent(ifName,state));
}
Program: 192077
Project: 192077
Buggy source:
public DhcpClientEvent(Parcel in){
  mIfName=in.readString();
  mMsg=in.readString();
}

Fixed version (ground truth):
private DhcpClientEvent(Parcel in){
  this.ifName=in.readString();
  this.msg=in.readString();
}
Program: 192078
Project: 192078
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeString(mIfName);
  out.writeString(mMsg);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeString(msg);
}
Program: 192079
Project: 192079
Buggy source:
public static void logParseError(String ifName,int errorCode){
  IpConnectivityEvent.logEvent(IPCE_DHCP_PARSE_ERROR,new DhcpErrorEvent(ifName,errorCode));
}

Fixed version (ground truth):
public static void logParseError(String ifName,int errorCode){
  logEvent(IPCE_DHCP_PARSE_ERROR,new DhcpErrorEvent(ifName,errorCode));
}
Program: 192080
Project: 192080
Buggy source:
private DnsEvent(Parcel in){
  netId=in.readInt();
  eventTypes=in.createByteArray();
  returnCodes=in.createByteArray();
  latenciesMs=in.createIntArray();
}

Fixed version (ground truth):
private DnsEvent(Parcel in){
  this.netId=in.readInt();
  this.eventTypes=in.createByteArray();
  this.returnCodes=in.createByteArray();
  this.latenciesMs=in.createIntArray();
}
Program: 192081
Project: 192081
Buggy source:
public static void logEvent(int netId,byte[] eventTypes,byte[] returnCodes,int[] latenciesMs){
  IpConnectivityEvent.logEvent(IPCE_DNS_LOOKUPS,new DnsEvent(netId,eventTypes,returnCodes,latenciesMs));
}

Fixed version (ground truth):
public static void logEvent(int netId,byte[] eventTypes,byte[] returnCodes,int[] latenciesMs){
  logEvent(IPCE_DNS_LOOKUPS,new DnsEvent(netId,eventTypes,returnCodes,latenciesMs));
}
Program: 192082
Project: 192082
Buggy source:
public static void logEvent(int tag,IpConnectivityEvent event){
  long timestamp=System.currentTimeMillis();
  mMetricsLogger.logEvent(timestamp,ConnectivityMetricsLogger.COMPONENT_TAG_CONNECTIVITY,tag,event);
}

Fixed version (ground truth):
public static <T extends IpConnectivityEvent & Parcelable>void logEvent(int tag,T event){
  final long timestamp=System.currentTimeMillis();
  final int componentTag=ConnectivityMetricsLogger.COMPONENT_TAG_CONNECTIVITY;
  mMetricsLogger.logEvent(timestamp,componentTag,tag,event);
}
Program: 192083
Project: 192083
Buggy source:
public IpManagerEvent(Parcel in){
  mIfName=in.readString();
  mDurationMs=in.readLong();
}

Fixed version (ground truth):
private IpManagerEvent(Parcel in){
  this.ifName=in.readString();
  this.durationMs=in.readLong();
}
Program: 192084
Project: 192084
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeString(mIfName);
  out.writeLong(mDurationMs);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeLong(durationMs);
}
Program: 192085
Project: 192085
Buggy source:
public static void logEvent(int eventType,String ifName,long durationMs){
  IpConnectivityEvent.logEvent(eventType,new IpManagerEvent(ifName,durationMs));
}

Fixed version (ground truth):
public static void logEvent(int eventType,String ifName,long durationMs){
  logEvent(eventType,new IpManagerEvent(ifName,durationMs));
}
Program: 192086
Project: 192086
Buggy source:
public CaptivePortalCheckResultEvent(Parcel in){
  mNetId=in.readInt();
  mResult=in.readInt();
}

Fixed version (ground truth):
private CaptivePortalCheckResultEvent(Parcel in){
  this.netId=in.readInt();
  this.result=in.readInt();
}
Program: 192087
Project: 192087
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mNetId);
  out.writeInt(mResult);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(netId);
  out.writeInt(result);
}
Program: 192088
Project: 192088
Buggy source:
public static void logEvent(int netId,int result){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_NETMON_CHECK_RESULT,new CaptivePortalCheckResultEvent(netId,result));
}

Fixed version (ground truth):
public static void logEvent(int netId,int result){
  logEvent(IPCE_NETMON_CHECK_RESULT,new CaptivePortalCheckResultEvent(netId,result));
}
Program: 192089
Project: 192089
Buggy source:
public CaptivePortalStateChangeEvent(Parcel in){
  mState=in.readInt();
}

Fixed version (ground truth):
public CaptivePortalStateChangeEvent(Parcel in){
  state=in.readInt();
}
Program: 192090
Project: 192090
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mState);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(state);
}
Program: 192091
Project: 192091
Buggy source:
public static void logEvent(int state){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_NETMON_STATE_CHANGE,new CaptivePortalStateChangeEvent(state));
}

Fixed version (ground truth):
public static void logEvent(int state){
  logEvent(IPCE_NETMON_STATE_CHANGE,new CaptivePortalStateChangeEvent(state));
}
Program: 192092
Project: 192092
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(mNetId);
  out.writeIntArray(mTransportTypes);
  out.writeInt(mPrevNetId);
  out.writeByte(mPrevIPv4 ? (byte)1 : (byte)0);
  out.writeByte(mPrevIPv6 ? (byte)1 : (byte)0);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeInt(netId);
  out.writeIntArray(transportTypes);
  out.writeInt(prevNetId);
  out.writeByte(prevIPv4 ? (byte)1 : (byte)0);
  out.writeByte(prevIPv6 ? (byte)1 : (byte)0);
}
Program: 192093
Project: 192093
Buggy source:
public ConnectivityServiceChangeEvent(Parcel in){
  mNetId=in.readInt();
  mTransportTypes=in.createIntArray();
  mPrevNetId=in.readInt();
  mPrevIPv4=(in.readByte() > 0);
  mPrevIPv6=(in.readByte() > 0);
}

Fixed version (ground truth):
private ConnectivityServiceChangeEvent(Parcel in){
  this.netId=in.readInt();
  this.transportTypes=in.createIntArray();
  this.prevNetId=in.readInt();
  this.prevIPv4=(in.readByte() > 0);
  this.prevIPv6=(in.readByte() > 0);
}
Program: 192094
Project: 192094
Buggy source:
public static void logEvent(int netId,int[] transportTypes,int prevNetId,boolean prevIPv4,boolean prevIPv6){
  IpConnectivityEvent.logEvent(IpConnectivityEvent.IPCE_CONSRV_DEFAULT_NET_CHANGE,new ConnectivityServiceChangeEvent(netId,transportTypes,prevNetId,prevIPv4,prevIPv6));
}

Fixed version (ground truth):
public static void logEvent(int netId,int[] transportTypes,int prevNetId,boolean prevIPv4,boolean prevIPv6){
  logEvent(IPCE_CONSRV_DEFAULT_NET_CHANGE,new ConnectivityServiceChangeEvent(netId,transportTypes,prevNetId,prevIPv4,prevIPv6));
}
Program: 192095
Project: 192095
Buggy source:
public static void logStateEvent(String ifName,String state){
  logEvent(IpConnectivityEvent.IPCE_DHCP_STATE_CHANGE,new DhcpClientEvent(ifName,state));
}

Fixed version (ground truth):
public static void logStateEvent(String ifName,String state){
  logEvent(IPCE_DHCP_STATE_CHANGE,new DhcpClientEvent(ifName,state));
}
Program: 192096
Project: 192096
Buggy source:
public DhcpClientEvent(Parcel in){
  mIfName=in.readString();
  mMsg=in.readString();
}

Fixed version (ground truth):
private DhcpClientEvent(Parcel in){
  this.ifName=in.readString();
  this.msg=in.readString();
}
Program: 192097
Project: 192097
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeString(mIfName);
  out.writeString(mMsg);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeString(msg);
}
Program: 192098
Project: 192098
Buggy source:
public static void logParseError(String ifName,int errorCode){
  IpConnectivityEvent.logEvent(IPCE_DHCP_PARSE_ERROR,new DhcpErrorEvent(ifName,errorCode));
}

Fixed version (ground truth):
public static void logParseError(String ifName,int errorCode){
  logEvent(IPCE_DHCP_PARSE_ERROR,new DhcpErrorEvent(ifName,errorCode));
}
Program: 192099
Project: 192099
Buggy source:
private DnsEvent(Parcel in){
  netId=in.readInt();
  eventTypes=in.createByteArray();
  returnCodes=in.createByteArray();
  latenciesMs=in.createIntArray();
}

Fixed version (ground truth):
private DnsEvent(Parcel in){
  this.netId=in.readInt();
  this.eventTypes=in.createByteArray();
  this.returnCodes=in.createByteArray();
  this.latenciesMs=in.createIntArray();
}
Program: 192100
Project: 192100
Buggy source:
public static void logEvent(int netId,byte[] eventTypes,byte[] returnCodes,int[] latenciesMs){
  IpConnectivityEvent.logEvent(IPCE_DNS_LOOKUPS,new DnsEvent(netId,eventTypes,returnCodes,latenciesMs));
}

Fixed version (ground truth):
public static void logEvent(int netId,byte[] eventTypes,byte[] returnCodes,int[] latenciesMs){
  logEvent(IPCE_DNS_LOOKUPS,new DnsEvent(netId,eventTypes,returnCodes,latenciesMs));
}
Program: 192101
Project: 192101
Buggy source:
public static void logEvent(int tag,IpConnectivityEvent event){
  long timestamp=System.currentTimeMillis();
  mMetricsLogger.logEvent(timestamp,ConnectivityMetricsLogger.COMPONENT_TAG_CONNECTIVITY,tag,event);
}

Fixed version (ground truth):
public static <T extends IpConnectivityEvent & Parcelable>void logEvent(int tag,T event){
  final long timestamp=System.currentTimeMillis();
  final int componentTag=ConnectivityMetricsLogger.COMPONENT_TAG_CONNECTIVITY;
  mMetricsLogger.logEvent(timestamp,componentTag,tag,event);
}
Program: 192102
Project: 192102
Buggy source:
public IpManagerEvent(Parcel in){
  mIfName=in.readString();
  mDurationMs=in.readLong();
}

Fixed version (ground truth):
private IpManagerEvent(Parcel in){
  this.ifName=in.readString();
  this.durationMs=in.readLong();
}
Program: 192103
Project: 192103
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeString(mIfName);
  out.writeLong(mDurationMs);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeLong(durationMs);
}
Program: 192104
Project: 192104
Buggy source:
public static void logEvent(int eventType,String ifName,long durationMs){
  IpConnectivityEvent.logEvent(eventType,new IpManagerEvent(ifName,durationMs));
}

Fixed version (ground truth):
public static void logEvent(int eventType,String ifName,long durationMs){
  logEvent(eventType,new IpManagerEvent(ifName,durationMs));
}
Program: 192105
Project: 192105
Buggy source:
private DhcpErrorEvent(Parcel in){
  this.errorCode=in.readInt();
}

Fixed version (ground truth):
private DhcpErrorEvent(Parcel in){
  this.ifName=in.readString();
  this.errorCode=in.readInt();
}
Program: 192106
Project: 192106
Buggy source:
public void writeToParcel(Parcel out,int flags){
  out.writeInt(errorCode);
}

Fixed version (ground truth):
public void writeToParcel(Parcel out,int flags){
  out.writeString(ifName);
  out.writeInt(errorCode);
}
Program: 192107
Project: 192107
Buggy source:
@Override public void run(){
  if (DBG)   Log.d(TAG,"String_Node_Str");
  while (!mStopped) {
    int length=0;
    try {
      length=Os.read(mPacketSock,mPacket,0,mPacket.length);
      DhcpPacket packet=null;
      packet=DhcpPacket.decodeFullPacket(mPacket,length,DhcpPacket.ENCAP_L2);
      if (DBG)       Log.d(TAG,"String_Node_Str" + packet);
      sendMessage(CMD_RECEIVED_PACKET,packet);
    }
 catch (    IOException|ErrnoException e) {
      if (!mStopped) {
        Log.e(TAG,"String_Node_Str",e);
      }
      DhcpClientEvent.logEvent(IpConnectivityEvent.IPCE_DHCP_RECV_ERROR,mIfaceName,e.getMessage());
    }
catch (    DhcpPacket.ParseException e) {
      Log.e(TAG,"String_Node_Str" + e.getMessage());
      if (PACKET_DBG) {
        Log.d(TAG,HexDump.dumpHexString(mPacket,0,length));
      }
      DhcpClientEvent.logEvent(IpConnectivityEvent.IPCE_DHCP_PARSE_ERROR,mIfaceName,e.getMessage());
    }
  }
  if (DBG)   Log.d(TAG,"String_Node_Str");
}

Fixed version (ground truth):
@Override public void run(){
  if (DBG)   Log.d(TAG,"String_Node_Str");
  while (!mStopped) {
    int length=0;
    try {
      length=Os.read(mPacketSock,mPacket,0,mPacket.length);
      DhcpPacket packet=null;
      packet=DhcpPacket.decodeFullPacket(mPacket,length,DhcpPacket.ENCAP_L2);
      if (DBG)       Log.d(TAG,"String_Node_Str" + packet);
      sendMessage(CMD_RECEIVED_PACKET,packet);
    }
 catch (    IOException|ErrnoException e) {
      if (!mStopped) {
        Log.e(TAG,"String_Node_Str",e);
      }
      DhcpErrorEvent.logReceiveError(mIfaceName);
    }
catch (    DhcpPacket.ParseException e) {
      Log.e(TAG,"String_Node_Str" + e.getMessage());
      if (PACKET_DBG) {
        Log.d(TAG,HexDump.dumpHexString(mPacket,0,length));
      }
      DhcpErrorEvent.logParseError(mIfaceName,e.errorCode);
    }
  }
  if (DBG)   Log.d(TAG,"String_Node_Str");
}
Program: 192108
Project: 192108
Buggy source:
public ParseException(String msg,Object... args){
  super(String.format(msg,args));
}

Fixed version (ground truth):
public ParseException(int errorCode,String msg,Object... args){
  super(String.format(msg,args));
  this.errorCode=errorCode;
}
Program: 192111
Project: 192111
Buggy source:
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}

Fixed version (ground truth):
public void onNotificationUpdated(NotificationData.Entry entry){
  mEntry=entry;
  mStatusBarNotification=entry.notification;
  mPrivateLayout.onNotificationUpdated(entry);
  mPublicLayout.onNotificationUpdated(entry);
  mShowingPublicInitialized=false;
  updateNotificationColor();
  updateClearability();
  if (mIsSummaryWithChildren) {
    recreateNotificationHeader();
    mChildrenContainer.onNotificationUpdated();
  }
  if (mIconAnimationRunning) {
    setIconAnimationRunning(true);
  }
  if (mNotificationParent != null) {
    mNotificationParent.updateChildrenHeaderAppearance();
  }
  onChildrenCountChanged();
  mPublicLayout.updateExpandButtons(true);
  updateLimits();
}
Program: 192112
Project: 192112
Buggy source:
public int getNotificationColor(){
  int color=getStatusBarNotification().getNotification().color;
  if (color == Notification.COLOR_DEFAULT) {
    return mContext.getColor(com.android.internal.R.color.notification_icon_default_color);
  }
  return color;
}

Fixed version (ground truth):
public int getNotificationColor(){
  return mNotificationColor;
}
Program: 192113
Project: 192113
Buggy source:
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
}

Fixed version (ground truth):
public void reInflateViews(){
  initDimens();
  for (int i=0; i < mDividers.size(); i++) {
    View prevDivider=mDividers.get(i);
    int index=indexOfChild(prevDivider);
    removeView(prevDivider);
    View divider=inflateDivider();
    addView(divider,index);
    mDividers.set(i,divider);
  }
  removeView(mOverflowNumber);
  mOverflowNumber=null;
  mOverflowInvertHelper=null;
  mGroupOverFlowState=null;
  updateGroupOverflow();
}
Program: 192118
Project: 192118
Buggy source:
private boolean isFlushed(SpeechItem speechItem){
synchronized (mFlushedObjects) {
    return mFlushAll || mFlushedObjects.contains(speechItem.getCallerIdentity());
  }
}

Fixed version (ground truth):
private boolean isFlushed(SpeechItem speechItem){
synchronized (mFlushedObjects) {
    return mFlushAll > 0 || mFlushedObjects.contains(speechItem.getCallerIdentity());
  }
}
Program: 192119
Project: 192119
Buggy source:
private void startFlushingSpeechItems(Object callerIdentity){
synchronized (mFlushedObjects) {
    if (callerIdentity == null) {
      mFlushAll=true;
    }
 else {
      mFlushedObjects.add(callerIdentity);
    }
  }
}

Fixed version (ground truth):
private void startFlushingSpeechItems(Object callerIdentity){
synchronized (mFlushedObjects) {
    if (callerIdentity == null) {
      mFlushAll+=1;
    }
 else {
      mFlushedObjects.add(callerIdentity);
    }
  }
}
Program: 192120
Project: 192120
Buggy source:
private void endFlushingSpeechItems(Object callerIdentity){
synchronized (mFlushedObjects) {
    if (callerIdentity == null) {
      mFlushAll=false;
    }
 else {
      mFlushedObjects.remove(callerIdentity);
    }
  }
}

Fixed version (ground truth):
private void endFlushingSpeechItems(Object callerIdentity){
synchronized (mFlushedObjects) {
    if (callerIdentity == null) {
      mFlushAll-=1;
    }
 else {
      mFlushedObjects.remove(callerIdentity);
    }
  }
}
Program: 192121
Project: 192121
Buggy source:
public final int broadcastIntent(IApplicationThread caller,Intent intent,String resolvedType,IIntentReceiver resultTo,int resultCode,String resultData,Bundle resultExtras,String[] requiredPermissions,int appOp,Bundle bOptions,boolean serialized,boolean sticky,int userId){
  enforceNotIsolatedCaller("String_Node_Str");
synchronized (this) {
    intent=verifyBroadcastLocked(intent);
    final ProcessRecord callerApp=getRecordForAppLocked(caller);
    final int callingPid=Binder.getCallingPid();
    final int callingUid=Binder.getCallingUid();
    final long origId=Binder.clearCallingIdentity();
    int res=broadcastIntentLocked(callerApp,callerApp != null ? callerApp.info.packageName : null,intent,resolvedType,resultTo,resultCode,resultData,resultExtras,requiredPermissions,appOp,null,serialized,sticky,callingPid,callingUid,userId);
    Binder.restoreCallingIdentity(origId);
    return res;
  }
}

Fixed version (ground truth):
public final int broadcastIntent(IApplicationThread caller,Intent intent,String resolvedType,IIntentReceiver resultTo,int resultCode,String resultData,Bundle resultExtras,String[] requiredPermissions,int appOp,Bundle bOptions,boolean serialized,boolean sticky,int userId){
  enforceNotIsolatedCaller("String_Node_Str");
synchronized (this) {
    intent=verifyBroadcastLocked(intent);
    final ProcessRecord callerApp=getRecordForAppLocked(caller);
    final int callingPid=Binder.getCallingPid();
    final int callingUid=Binder.getCallingUid();
    final long origId=Binder.clearCallingIdentity();
    int res=broadcastIntentLocked(callerApp,callerApp != null ? callerApp.info.packageName : null,intent,resolvedType,resultTo,resultCode,resultData,resultExtras,requiredPermissions,appOp,bOptions,serialized,sticky,callingPid,callingUid,userId);
    Binder.restoreCallingIdentity(origId);
    return res;
  }
}
Program: 192122
Project: 192122
Buggy source:
public final int broadcastIntent(IApplicationThread caller,Intent intent,String resolvedType,IIntentReceiver resultTo,int resultCode,String resultData,Bundle resultExtras,String[] requiredPermissions,int appOp,Bundle bOptions,boolean serialized,boolean sticky,int userId){
  enforceNotIsolatedCaller("String_Node_Str");
synchronized (this) {
    intent=verifyBroadcastLocked(intent);
    final ProcessRecord callerApp=getRecordForAppLocked(caller);
    final int callingPid=Binder.getCallingPid();
    final int callingUid=Binder.getCallingUid();
    final long origId=Binder.clearCallingIdentity();
    int res=broadcastIntentLocked(callerApp,callerApp != null ? callerApp.info.packageName : null,intent,resolvedType,resultTo,resultCode,resultData,resultExtras,requiredPermissions,appOp,null,serialized,sticky,callingPid,callingUid,userId);
    Binder.restoreCallingIdentity(origId);
    return res;
  }
}

Fixed version (ground truth):
public final int broadcastIntent(IApplicationThread caller,Intent intent,String resolvedType,IIntentReceiver resultTo,int resultCode,String resultData,Bundle resultExtras,String[] requiredPermissions,int appOp,Bundle bOptions,boolean serialized,boolean sticky,int userId){
  enforceNotIsolatedCaller("String_Node_Str");
synchronized (this) {
    intent=verifyBroadcastLocked(intent);
    final ProcessRecord callerApp=getRecordForAppLocked(caller);
    final int callingPid=Binder.getCallingPid();
    final int callingUid=Binder.getCallingUid();
    final long origId=Binder.clearCallingIdentity();
    int res=broadcastIntentLocked(callerApp,callerApp != null ? callerApp.info.packageName : null,intent,resolvedType,resultTo,resultCode,resultData,resultExtras,requiredPermissions,appOp,bOptions,serialized,sticky,callingPid,callingUid,userId);
    Binder.restoreCallingIdentity(origId);
    return res;
  }
}
Program: 192123
Project: 192123
Buggy source:
@Override protected void onDraw(Canvas canvas){
  if (mInvisible) {
    return;
  }
  int viewWidth=mTaskViewRect.width();
  int viewHeight=mTaskViewRect.height();
  if (mBitmapShader != null) {
    int thumbnailWidth=(int)(mThumbnailRect.width() * mThumbnailScale);
    int thumbnailHeight=(int)(mThumbnailRect.height() * mThumbnailScale);
    if (thumbnailWidth >= viewWidth && thumbnailHeight >= viewHeight) {
      canvas.drawRoundRect(0,0,viewWidth,viewHeight,mCornerRadius,mCornerRadius,mDrawPaint);
    }
 else {
      int count=canvas.save();
      canvas.clipRect(0,0,thumbnailWidth,thumbnailHeight,Region.Op.REPLACE);
      canvas.drawRoundRect(0,0,thumbnailWidth + (thumbnailWidth < viewWidth ? mCornerRadius : 0),thumbnailHeight + (thumbnailHeight < viewHeight ? mCornerRadius : 0),mCornerRadius,mCornerRadius,mDrawPaint);
      if (thumbnailWidth < viewWidth) {
        canvas.clipRect(thumbnailWidth,0,viewWidth,viewHeight,Region.Op.REPLACE);
        canvas.drawRoundRect(Math.max(0,thumbnailWidth - mCornerRadius),0,viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
      }
      if (thumbnailWidth > 0 && thumbnailHeight < viewHeight) {
        canvas.clipRect(0,thumbnailHeight,viewWidth,viewHeight,Region.Op.REPLACE);
        canvas.drawRoundRect(0,Math.max(0,thumbnailHeight - mCornerRadius),viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
      }
      canvas.restoreToCount(count);
    }
  }
 else {
    canvas.drawRoundRect(0,0,viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
  }
}

Fixed version (ground truth):
@Override protected void onDraw(Canvas canvas){
  if (mInvisible) {
    return;
  }
  int viewWidth=mTaskViewRect.width();
  int viewHeight=mTaskViewRect.height();
  int thumbnailWidth=Math.min(viewWidth,(int)(mThumbnailRect.width() * mThumbnailScale));
  int thumbnailHeight=Math.min(viewHeight,(int)(mThumbnailRect.height() * mThumbnailScale));
  if (mBitmapShader != null && thumbnailWidth > 0 && thumbnailHeight > 0) {
    if (thumbnailWidth < viewWidth) {
      canvas.drawRoundRect(Math.max(0,thumbnailWidth - mCornerRadius),0,viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
    }
    if (thumbnailHeight < viewHeight) {
      canvas.drawRoundRect(0,Math.max(0,thumbnailHeight - mCornerRadius),viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
    }
    canvas.drawRoundRect(0,0,thumbnailWidth,thumbnailHeight,mCornerRadius,mCornerRadius,mDrawPaint);
  }
 else {
    canvas.drawRoundRect(0,0,viewWidth,viewHeight,mCornerRadius,mCornerRadius,mBgFillPaint);
  }
}