nus-yam/ex-repair huggingface dataset:
Program: 195196
Project: 195196
Buggy source:
void makeExpandedInvisible(){
  if (SPEW)   Log.d(TAG,"String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mExpandedVisible);
  if (!mExpandedVisible || mStatusBarWindow == null) {
    return;
  }
  mStatusBarView.collapseAllPanels(false,false,1.0f);
  mNotificationPanel.closeQs();
  mExpandedVisible=false;
  if (mNavigationBarView != null)   mNavigationBarView.setSlippery(false);
  visibilityChanged(false);
  mStatusBarWindowManager.setStatusBarExpanded(false);
  mStatusBarView.setFocusable(true);
  dismissPopups();
  runPostCollapseRunnables();
  setInteracting(StatusBarManager.WINDOW_STATUS_BAR,false);
  showBouncer();
  disable(mDisabledUnmodified1,mDisabledUnmodified2,true);
  if (!mStatusBarKeyguardViewManager.isShowing()) {
    WindowManagerGlobal.getInstance().trimMemory(ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN);
  }
}

Fixed version (ground truth):
void makeExpandedInvisible(){
  if (SPEW)   Log.d(TAG,"String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mExpandedVisible);
  if (!mExpandedVisible || mStatusBarWindow == null) {
    return;
  }
  mStatusBarView.collapseAllPanels(false,false,1.0f);
  mNotificationPanel.closeQs();
  mExpandedVisible=false;
  if (mNavigationBarView != null)   mNavigationBarView.setSlippery(false);
  visibilityChanged(false);
  mStatusBarWindowManager.setStatusBarExpanded(false);
  mStatusBarWindowManager.setForceStatusBarVisible(false);
  mStatusBarView.setFocusable(true);
  dismissPopups();
  runPostCollapseRunnables();
  setInteracting(StatusBarManager.WINDOW_STATUS_BAR,false);
  showBouncer();
  disable(mDisabledUnmodified1,mDisabledUnmodified2,true);
  if (!mStatusBarKeyguardViewManager.isShowing()) {
    WindowManagerGlobal.getInstance().trimMemory(ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN);
  }
}
Program: 195197
Project: 195197
Buggy source:
private void apply(State state){
  applyKeyguardFlags(state);
  applyFocusableFlag(state);
  adjustScreenOrientation(state);
  applyHeight(state);
  applyUserActivityTimeout(state);
  applyInputFeatures(state);
  applyFitsSystemWindows(state);
  applyModalFlag(state);
  if (mLp.copyFrom(mLpChanged) != 0) {
    mWindowManager.updateViewLayout(mStatusBarView,mLp);
  }
}

Fixed version (ground truth):
private void apply(State state){
  applyKeyguardFlags(state);
  applyForceStatusBarVisibleFlag(state);
  applyFocusableFlag(state);
  adjustScreenOrientation(state);
  applyHeight(state);
  applyUserActivityTimeout(state);
  applyInputFeatures(state);
  applyFitsSystemWindows(state);
  applyModalFlag(state);
  if (mLp.copyFrom(mLpChanged) != 0) {
    mWindowManager.updateViewLayout(mStatusBarView,mLp);
  }
}
Program: 195198
Project: 195198
Buggy source:
public int updateVisibilityLw(boolean transientAllowed,int oldVis,int vis){
  if (mWin == null)   return vis;
  if (isTransientShowing() || isTransientShowRequested()) {
    if (transientAllowed) {
      vis|=mTransientFlag;
      if ((oldVis & mTransientFlag) == 0) {
        vis|=mUnhideFlag;
      }
      setTransientBarState(TRANSIENT_BAR_SHOWING);
    }
 else {
      setTransientBarState(TRANSIENT_BAR_NONE);
    }
  }
  if (mTransientBarState != TRANSIENT_BAR_NONE) {
    vis|=mTransientFlag;
    vis&=~View.SYSTEM_UI_FLAG_LOW_PROFILE;
  }
  if ((vis & mTranslucentFlag) != 0 || (oldVis & mTranslucentFlag) != 0 || ((vis | oldVis) & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
    mLastTranslucent=SystemClock.uptimeMillis();
  }
  return vis;
}

Fixed version (ground truth):
public int updateVisibilityLw(boolean transientAllowed,int oldVis,int vis){
  if (mWin == null)   return vis;
  if (isTransientShowing() || isTransientShowRequested()) {
    if (transientAllowed) {
      vis|=mTransientFlag;
      if ((oldVis & mTransientFlag) == 0) {
        vis|=mUnhideFlag;
      }
      setTransientBarState(TRANSIENT_BAR_SHOWING);
    }
 else {
      setTransientBarState(TRANSIENT_BAR_NONE);
    }
  }
  if (mShowTransparent) {
    vis|=View.SYSTEM_UI_TRANSPARENT;
    if (mSetUnHideFlagWhenNextTransparent) {
      vis|=mUnhideFlag;
      mSetUnHideFlagWhenNextTransparent=false;
    }
  }
  if (mTransientBarState != TRANSIENT_BAR_NONE) {
    vis|=mTransientFlag;
    vis&=~View.SYSTEM_UI_FLAG_LOW_PROFILE;
  }
  if ((vis & mTranslucentFlag) != 0 || (oldVis & mTranslucentFlag) != 0 || ((vis | oldVis) & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
    mLastTranslucent=SystemClock.uptimeMillis();
  }
  return vis;
}
Program: 195199
Project: 195199
Buggy source:
public boolean setBarShowingLw(final boolean show){
  if (mWin == null)   return false;
  if (show && mTransientBarState == TRANSIENT_BAR_HIDING) {
    mPendingShow=true;
    return false;
  }
  final boolean wasVis=mWin.isVisibleLw();
  final boolean wasAnim=mWin.isAnimatingLw();
  final boolean change=show ? mWin.showLw(true) : mWin.hideLw(true);
  final int state=computeStateLw(wasVis,wasAnim,mWin,change);
  final boolean stateChanged=updateStateLw(state);
  return change || stateChanged;
}

Fixed version (ground truth):
public boolean setBarShowingLw(final boolean show){
  if (mWin == null)   return false;
  if (show && mTransientBarState == TRANSIENT_BAR_HIDING) {
    mPendingShow=true;
    return false;
  }
  final boolean wasVis=mWin.isVisibleLw();
  final boolean wasAnim=mWin.isAnimatingLw();
  final boolean change=show ? mWin.showLw(!mNoAnimationOnNextShow) : mWin.hideLw(!mNoAnimationOnNextShow);
  mNoAnimationOnNextShow=false;
  final int state=computeStateLw(wasVis,wasAnim,mWin,change);
  final boolean stateChanged=updateStateLw(state);
  return change || stateChanged;
}
Program: 195200
Project: 195200
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void beginPostLayoutPolicyLw(int displayWidth,int displayHeight){
  mTopFullscreenOpaqueWindowState=null;
  mTopFullscreenOpaqueOrDimmingWindowState=null;
  mAppsToBeHidden.clear();
  mAppsThatDismissKeyguard.clear();
  mForceStatusBar=false;
  mForceStatusBarFromKeyguard=false;
  mForcingShowNavBar=false;
  mForcingShowNavBarLayer=-1;
  mHideLockScreen=false;
  mAllowLockscreenWhenOn=false;
  mDismissKeyguard=DISMISS_KEYGUARD_NONE;
  mShowingLockscreen=false;
  mShowingDream=false;
  mWinShowWhenLocked=null;
  mKeyguardSecure=isKeyguardSecure();
  mKeyguardSecureIncludingHidden=mKeyguardSecure && (mKeyguardDelegate != null && mKeyguardDelegate.isShowing());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void beginPostLayoutPolicyLw(int displayWidth,int displayHeight){
  mTopFullscreenOpaqueWindowState=null;
  mTopFullscreenOpaqueOrDimmingWindowState=null;
  mAppsToBeHidden.clear();
  mAppsThatDismissKeyguard.clear();
  mForceStatusBar=false;
  mForceStatusBarFromKeyguard=false;
  mForceStatusBarTransparent=false;
  mForcingShowNavBar=false;
  mForcingShowNavBarLayer=-1;
  mHideLockScreen=false;
  mAllowLockscreenWhenOn=false;
  mDismissKeyguard=DISMISS_KEYGUARD_NONE;
  mShowingLockscreen=false;
  mShowingDream=false;
  mWinShowWhenLocked=null;
  mKeyguardSecure=isKeyguardSecure();
  mKeyguardSecureIncludingHidden=mKeyguardSecure && (mKeyguardDelegate != null && mKeyguardDelegate.isShowing());
}
Program: 195203
Project: 195203
Buggy source:
@Override public boolean activeServiceSupportsLaunchFromKeyguard() throws RemoteException {
  enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);
synchronized (this) {
    return mImpl != null && mImpl.mInfo.getSupportsLaunchFromKeyguard();
  }
}

Fixed version (ground truth):
@Override public boolean activeServiceSupportsLaunchFromKeyguard() throws RemoteException {
  enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);
synchronized (this) {
    return mImpl != null && mImpl.mInfo != null && mImpl.mInfo.getSupportsLaunchFromKeyguard();
  }
}
Program: 195204
Project: 195204
Buggy source:
@Override public boolean activeServiceSupportsAssist(){
  enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);
synchronized (this) {
    return mImpl != null && mImpl.mInfo.getSupportsAssist();
  }
}

Fixed version (ground truth):
@Override public boolean activeServiceSupportsAssist(){
  enforceCallingPermission(Manifest.permission.ACCESS_VOICE_INTERACTION_SERVICE);
synchronized (this) {
    return mImpl != null && mImpl.mInfo != null && mImpl.mInfo.getSupportsAssist();
  }
}
Program: 195205
Project: 195205
Buggy source:
public void setSystemUiVisibility(int vis,int mask){
synchronized (mList) {
    mHandler.removeMessages(MSG_SET_SYSTEMUI_VISIBILITY);
    mHandler.obtainMessage(MSG_SET_SYSTEMUI_VISIBILITY,vis,mask,null).sendToTarget();
  }
}

Fixed version (ground truth):
public void setSystemUiVisibility(int vis,int mask){
synchronized (mList) {
    mHandler.obtainMessage(MSG_SET_SYSTEMUI_VISIBILITY,vis,mask,null).sendToTarget();
  }
}
Program: 195206
Project: 195206
Buggy source:
@Override public void onHeadsUpPinnedModeChanged(boolean inPinnedMode){
  if (inPinnedMode) {
    mStatusBarWindowManager.setHeadsUpShowing(true);
  }
 else {
    Runnable endRunnable=new Runnable(){
      @Override public void run(){
        if (!mHeadsUpManager.hasPinnedHeadsUp()) {
          mStatusBarWindowManager.setHeadsUpShowing(false);
        }
      }
    }
;
    if (!mNotificationPanel.isFullyCollapsed()) {
      endRunnable.run();
    }
 else {
      mStackScroller.runAfterAnimationFinished(endRunnable);
    }
  }
}

Fixed version (ground truth):
@Override public void onHeadsUpPinnedModeChanged(boolean inPinnedMode){
  if (inPinnedMode) {
    mStatusBarWindowManager.setHeadsUpShowing(true);
    mStatusBarWindowManager.setForceStatusBarVisible(true);
  }
 else {
    Runnable endRunnable=new Runnable(){
      @Override public void run(){
        if (!mHeadsUpManager.hasPinnedHeadsUp()) {
          mStatusBarWindowManager.setHeadsUpShowing(false);
        }
      }
    }
;
    if (!mNotificationPanel.isFullyCollapsed()) {
      endRunnable.run();
    }
 else {
      mStackScroller.runAfterAnimationFinished(endRunnable);
    }
  }
}
Program: 195207
Project: 195207
Buggy source:
private void checkBarModes(){
  if (mDemoMode)   return;
  checkBarMode(mStatusBarMode,mStatusBarWindowState,mStatusBarView.getBarTransitions());
  if (mNavigationBarView != null) {
    checkBarMode(mNavigationBarMode,mNavigationBarWindowState,mNavigationBarView.getBarTransitions());
  }
}

Fixed version (ground truth):
private void checkBarModes(){
  if (mDemoMode)   return;
  checkBarMode(mStatusBarMode,mStatusBarWindowState,mStatusBarView.getBarTransitions(),mNoAnimationOnNextBarModeChange);
  if (mNavigationBarView != null) {
    checkBarMode(mNavigationBarMode,mNavigationBarWindowState,mNavigationBarView.getBarTransitions(),mNoAnimationOnNextBarModeChange);
  }
  mNoAnimationOnNextBarModeChange=false;
}
Program: 195208
Project: 195208
Buggy source:
private void checkBarMode(int mode,int windowState,BarTransitions transitions){
  final boolean powerSave=mBatteryController.isPowerSave();
  final boolean anim=(mScreenOn == null || mScreenOn) && windowState != WINDOW_STATE_HIDDEN && !powerSave;
  if (powerSave && getBarState() == StatusBarState.SHADE) {
    mode=MODE_WARNING;
  }
  transitions.transitionTo(mode,anim);
}

Fixed version (ground truth):
private void checkBarMode(int mode,int windowState,BarTransitions transitions,boolean noAnimation){
  final boolean powerSave=mBatteryController.isPowerSave();
  final boolean anim=!noAnimation && (mScreenOn == null || mScreenOn) && windowState != WINDOW_STATE_HIDDEN && !powerSave;
  if (powerSave && getBarState() == StatusBarState.SHADE) {
    mode=MODE_WARNING;
  }
  transitions.transitionTo(mode,anim);
}
Program: 195211
Project: 195211
Buggy source:
void makeExpandedInvisible(){
  if (SPEW)   Log.d(TAG,"String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mExpandedVisible);
  if (!mExpandedVisible || mStatusBarWindow == null) {
    return;
  }
  mStatusBarView.collapseAllPanels(false,false,1.0f);
  mNotificationPanel.closeQs();
  mExpandedVisible=false;
  if (mNavigationBarView != null)   mNavigationBarView.setSlippery(false);
  visibilityChanged(false);
  mStatusBarWindowManager.setStatusBarExpanded(false);
  mStatusBarView.setFocusable(true);
  dismissPopups();
  runPostCollapseRunnables();
  setInteracting(StatusBarManager.WINDOW_STATUS_BAR,false);
  showBouncer();
  disable(mDisabledUnmodified1,mDisabledUnmodified2,true);
  if (!mStatusBarKeyguardViewManager.isShowing()) {
    WindowManagerGlobal.getInstance().trimMemory(ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN);
  }
}

Fixed version (ground truth):
void makeExpandedInvisible(){
  if (SPEW)   Log.d(TAG,"String_Node_Str" + mExpandedVisible + "String_Node_Str"+ mExpandedVisible);
  if (!mExpandedVisible || mStatusBarWindow == null) {
    return;
  }
  mStatusBarView.collapseAllPanels(false,false,1.0f);
  mNotificationPanel.closeQs();
  mExpandedVisible=false;
  if (mNavigationBarView != null)   mNavigationBarView.setSlippery(false);
  visibilityChanged(false);
  mStatusBarWindowManager.setStatusBarExpanded(false);
  mStatusBarWindowManager.setForceStatusBarVisible(false);
  mStatusBarView.setFocusable(true);
  dismissPopups();
  runPostCollapseRunnables();
  setInteracting(StatusBarManager.WINDOW_STATUS_BAR,false);
  showBouncer();
  disable(mDisabledUnmodified1,mDisabledUnmodified2,true);
  if (!mStatusBarKeyguardViewManager.isShowing()) {
    WindowManagerGlobal.getInstance().trimMemory(ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN);
  }
}
Program: 195212
Project: 195212
Buggy source:
private void apply(State state){
  applyKeyguardFlags(state);
  applyFocusableFlag(state);
  adjustScreenOrientation(state);
  applyHeight(state);
  applyUserActivityTimeout(state);
  applyInputFeatures(state);
  applyFitsSystemWindows(state);
  applyModalFlag(state);
  if (mLp.copyFrom(mLpChanged) != 0) {
    mWindowManager.updateViewLayout(mStatusBarView,mLp);
  }
}

Fixed version (ground truth):
private void apply(State state){
  applyKeyguardFlags(state);
  applyForceStatusBarVisibleFlag(state);
  applyFocusableFlag(state);
  adjustScreenOrientation(state);
  applyHeight(state);
  applyUserActivityTimeout(state);
  applyInputFeatures(state);
  applyFitsSystemWindows(state);
  applyModalFlag(state);
  if (mLp.copyFrom(mLpChanged) != 0) {
    mWindowManager.updateViewLayout(mStatusBarView,mLp);
  }
}
Program: 195213
Project: 195213
Buggy source:
public int updateVisibilityLw(boolean transientAllowed,int oldVis,int vis){
  if (mWin == null)   return vis;
  if (isTransientShowing() || isTransientShowRequested()) {
    if (transientAllowed) {
      vis|=mTransientFlag;
      if ((oldVis & mTransientFlag) == 0) {
        vis|=mUnhideFlag;
      }
      setTransientBarState(TRANSIENT_BAR_SHOWING);
    }
 else {
      setTransientBarState(TRANSIENT_BAR_NONE);
    }
  }
  if (mTransientBarState != TRANSIENT_BAR_NONE) {
    vis|=mTransientFlag;
    vis&=~View.SYSTEM_UI_FLAG_LOW_PROFILE;
  }
  if ((vis & mTranslucentFlag) != 0 || (oldVis & mTranslucentFlag) != 0 || ((vis | oldVis) & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
    mLastTranslucent=SystemClock.uptimeMillis();
  }
  return vis;
}

Fixed version (ground truth):
public int updateVisibilityLw(boolean transientAllowed,int oldVis,int vis){
  if (mWin == null)   return vis;
  if (isTransientShowing() || isTransientShowRequested()) {
    if (transientAllowed) {
      vis|=mTransientFlag;
      if ((oldVis & mTransientFlag) == 0) {
        vis|=mUnhideFlag;
      }
      setTransientBarState(TRANSIENT_BAR_SHOWING);
    }
 else {
      setTransientBarState(TRANSIENT_BAR_NONE);
    }
  }
  if (mShowTransparent) {
    vis|=View.SYSTEM_UI_TRANSPARENT;
    if (mSetUnHideFlagWhenNextTransparent) {
      vis|=mUnhideFlag;
      mSetUnHideFlagWhenNextTransparent=false;
    }
  }
  if (mTransientBarState != TRANSIENT_BAR_NONE) {
    vis|=mTransientFlag;
    vis&=~View.SYSTEM_UI_FLAG_LOW_PROFILE;
  }
  if ((vis & mTranslucentFlag) != 0 || (oldVis & mTranslucentFlag) != 0 || ((vis | oldVis) & View.SYSTEM_UI_FLAG_FULLSCREEN) != 0) {
    mLastTranslucent=SystemClock.uptimeMillis();
  }
  return vis;
}
Program: 195214
Project: 195214
Buggy source:
public boolean setBarShowingLw(final boolean show){
  if (mWin == null)   return false;
  if (show && mTransientBarState == TRANSIENT_BAR_HIDING) {
    mPendingShow=true;
    return false;
  }
  final boolean wasVis=mWin.isVisibleLw();
  final boolean wasAnim=mWin.isAnimatingLw();
  final boolean change=show ? mWin.showLw(true) : mWin.hideLw(true);
  final int state=computeStateLw(wasVis,wasAnim,mWin,change);
  final boolean stateChanged=updateStateLw(state);
  return change || stateChanged;
}

Fixed version (ground truth):
public boolean setBarShowingLw(final boolean show){
  if (mWin == null)   return false;
  if (show && mTransientBarState == TRANSIENT_BAR_HIDING) {
    mPendingShow=true;
    return false;
  }
  final boolean wasVis=mWin.isVisibleLw();
  final boolean wasAnim=mWin.isAnimatingLw();
  final boolean change=show ? mWin.showLw(!mNoAnimationOnNextShow) : mWin.hideLw(!mNoAnimationOnNextShow);
  mNoAnimationOnNextShow=false;
  final int state=computeStateLw(wasVis,wasAnim,mWin,change);
  final boolean stateChanged=updateStateLw(state);
  return change || stateChanged;
}
Program: 195215
Project: 195215
Buggy source:
/** 
 * {@inheritDoc} 
 */
@Override public void beginPostLayoutPolicyLw(int displayWidth,int displayHeight){
  mTopFullscreenOpaqueWindowState=null;
  mTopFullscreenOpaqueOrDimmingWindowState=null;
  mAppsToBeHidden.clear();
  mAppsThatDismissKeyguard.clear();
  mForceStatusBar=false;
  mForceStatusBarFromKeyguard=false;
  mForcingShowNavBar=false;
  mForcingShowNavBarLayer=-1;
  mHideLockScreen=false;
  mAllowLockscreenWhenOn=false;
  mDismissKeyguard=DISMISS_KEYGUARD_NONE;
  mShowingLockscreen=false;
  mShowingDream=false;
  mWinShowWhenLocked=null;
  mKeyguardSecure=isKeyguardSecure();
  mKeyguardSecureIncludingHidden=mKeyguardSecure && (mKeyguardDelegate != null && mKeyguardDelegate.isShowing());
}

Fixed version (ground truth):
/** 
 * {@inheritDoc} 
 */
@Override public void beginPostLayoutPolicyLw(int displayWidth,int displayHeight){
  mTopFullscreenOpaqueWindowState=null;
  mTopFullscreenOpaqueOrDimmingWindowState=null;
  mAppsToBeHidden.clear();
  mAppsThatDismissKeyguard.clear();
  mForceStatusBar=false;
  mForceStatusBarFromKeyguard=false;
  mForceStatusBarTransparent=false;
  mForcingShowNavBar=false;
  mForcingShowNavBarLayer=-1;
  mHideLockScreen=false;
  mAllowLockscreenWhenOn=false;
  mDismissKeyguard=DISMISS_KEYGUARD_NONE;
  mShowingLockscreen=false;
  mShowingDream=false;
  mWinShowWhenLocked=null;
  mKeyguardSecure=isKeyguardSecure();
  mKeyguardSecureIncludingHidden=mKeyguardSecure && (mKeyguardDelegate != null && mKeyguardDelegate.isShowing());
}
Program: 195218
Project: 195218
Buggy source:
@Override public ParcelableConference createFromParcel(Parcel source){
  ClassLoader classLoader=ParcelableConference.class.getClassLoader();
  PhoneAccountHandle phoneAccount=source.readParcelable(classLoader);
  int state=source.readInt();
  int capabilities=source.readInt();
  List<String> connectionIds=new ArrayList<>(2);
  source.readList(connectionIds,classLoader);
  long connectTimeMillis=source.readLong();
  StatusHints statusHints=source.readParcelable(classLoader);
  IVideoProvider videoCallProvider=IVideoProvider.Stub.asInterface(source.readStrongBinder());
  int videoState=source.readInt();
  return new ParcelableConference(phoneAccount,state,capabilities,connectionIds,videoCallProvider,videoState,connectTimeMillis,statusHints);
}

Fixed version (ground truth):
@Override public ParcelableConference createFromParcel(Parcel source){
  ClassLoader classLoader=ParcelableConference.class.getClassLoader();
  PhoneAccountHandle phoneAccount=source.readParcelable(classLoader);
  int state=source.readInt();
  int capabilities=source.readInt();
  List<String> connectionIds=new ArrayList<>(2);
  source.readList(connectionIds,classLoader);
  long connectTimeMillis=source.readLong();
  IVideoProvider videoCallProvider=IVideoProvider.Stub.asInterface(source.readStrongBinder());
  int videoState=source.readInt();
  StatusHints statusHints=source.readParcelable(classLoader);
  return new ParcelableConference(phoneAccount,state,capabilities,connectionIds,videoCallProvider,videoState,connectTimeMillis,statusHints);
}
Program: 195221
Project: 195221
Buggy source:
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getActualHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}

Fixed version (ground truth):
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getIntrinsicHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}
Program: 195223
Project: 195223
Buggy source:
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getActualHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}

Fixed version (ground truth):
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getIntrinsicHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}
Program: 195224
Project: 195224
Buggy source:
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getActualHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}

Fixed version (ground truth):
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getIntrinsicHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}
Program: 195226
Project: 195226
Buggy source:
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getActualHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}

Fixed version (ground truth):
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getIntrinsicHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}
Program: 195228
Project: 195228
Buggy source:
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getActualHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}

Fixed version (ground truth):
private int getMaxAllowedChildHeight(View child,AmbientState ambientState){
  if (child instanceof ExpandableNotificationRow) {
    ExpandableNotificationRow row=(ExpandableNotificationRow)child;
    if (ambientState == null && row.isHeadsUp() || ambientState != null && ambientState.getTopHeadsUpEntry() == child) {
      int extraSize=row.getIntrinsicHeight() - row.getHeadsUpHeight();
      return mCollapsedSize + extraSize;
    }
    return row.getIntrinsicHeight();
  }
 else   if (child instanceof ExpandableView) {
    ExpandableView expandableView=(ExpandableView)child;
    return expandableView.getIntrinsicHeight();
  }
  return child == null ? mCollapsedSize : child.getHeight();
}
Program: 195229
Project: 195229
Buggy source:
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
  ev.offsetLocation(mTranslationX,0);
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}
Program: 195230
Project: 195230
Buggy source:
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
  ev.offsetLocation(mTranslationX,0);
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}
Program: 195231
Project: 195231
Buggy source:
/** 
 * Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType the type of the network over which traffic to the specifiedhost is to be routed
 * @param hostAddress the IP address of the host to which the route is desired
 * @return {@code true} on success, {@code false} on failure
 * @deprecated Deprecated in favor of the {@link #requestNetwork},  {@link #bindProcessToNetwork} and {@link Network#getSocketFactory} api.
 * @removed
 */
public boolean requestRouteToHost(int networkType,int hostAddress){
  return requestRouteToHostAddress(networkType,NetworkUtils.intToInetAddress(hostAddress));
}

Fixed version (ground truth):
/** 
 * Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType the type of the network over which traffic to the specifiedhost is to be routed
 * @param hostAddress the IP address of the host to which the route is desired
 * @return {@code true} on success, {@code false} on failure
 * @deprecated Deprecated in favor of the{@link #requestNetwork(NetworkRequest,NetworkCallback)},  {@link #bindProcessToNetwork} and {@link Network#getSocketFactory} API.
 * @removed
 */
public boolean requestRouteToHost(int networkType,int hostAddress){
  return requestRouteToHostAddress(networkType,NetworkUtils.intToInetAddress(hostAddress));
}
Program: 195232
Project: 195232
Buggy source:
/** 
 * Tells the underlying networking system that the caller is finished using the named feature. The interpretation of   {@code feature}is completely up to each networking implementation. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType specifies which network the request pertains to
 * @param feature the name of the feature that is no longer needed
 * @return an integer value representing the outcome of the request.The interpretation of this value is specific to each networking implementation+feature combination, except that the value  {@code -1}always indicates failure.
 * @deprecated Deprecated in favor of the cleaner {@link #requestNetwork} api.
 * @removed
 */
public int stopUsingNetworkFeature(int networkType,String feature){
  NetworkCapabilities netCap=networkCapabilitiesForFeature(networkType,feature);
  if (netCap == null) {
    Log.d(TAG,"String_Node_Str" + networkType + "String_Node_Str"+ feature);
    return -1;
  }
  if (removeRequestForFeature(netCap)) {
    Log.d(TAG,"String_Node_Str" + networkType + "String_Node_Str"+ feature);
  }
  return 1;
}

Fixed version (ground truth):
/** 
 * Tells the underlying networking system that the caller is finished using the named feature. The interpretation of   {@code feature}is completely up to each networking implementation. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType specifies which network the request pertains to
 * @param feature the name of the feature that is no longer needed
 * @return an integer value representing the outcome of the request.The interpretation of this value is specific to each networking implementation+feature combination, except that the value  {@code -1}always indicates failure.
 * @deprecated Deprecated in favor of the cleaner {@link unregisterNetworkCallback} API.
 * @removed
 */
public int stopUsingNetworkFeature(int networkType,String feature){
  NetworkCapabilities netCap=networkCapabilitiesForFeature(networkType,feature);
  if (netCap == null) {
    Log.d(TAG,"String_Node_Str" + networkType + "String_Node_Str"+ feature);
    return -1;
  }
  if (removeRequestForFeature(netCap)) {
    Log.d(TAG,"String_Node_Str" + networkType + "String_Node_Str"+ feature);
  }
  return 1;
}
Program: 195234
Project: 195234
Buggy source:
/** 
 * Unregisters callbacks about and possibly releases networks originating from  {@link #requestNetwork} and {@link #registerNetworkCallback} calls.  If thegiven  {@code NetworkCallback} had previously been used with {@code #requestNetwork}, any networks that had been connected to only to satisfy that request will be disconnected.
 * @param networkCallback The {@link NetworkCallback} used when making the request.
 */
public void unregisterNetworkCallback(NetworkCallback networkCallback){
  if (networkCallback == null || networkCallback.networkRequest == null || networkCallback.networkRequest.requestId == REQUEST_ID_UNSET) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    mService.releaseNetworkRequest(networkCallback.networkRequest);
  }
 catch (  RemoteException e) {
  }
}

Fixed version (ground truth):
/** 
 * Unregisters callbacks about and possibly releases networks originating from  {@link #requestNetwork(NetworkRequest,NetworkCallback)} and {@link #registerNetworkCallback}calls.  If the given   {@code NetworkCallback} had previously been used with{@code #requestNetwork}, any networks that had been connected to only to satisfy that request will be disconnected.
 * @param networkCallback The {@link NetworkCallback} used when making the request.
 */
public void unregisterNetworkCallback(NetworkCallback networkCallback){
  if (networkCallback == null || networkCallback.networkRequest == null || networkCallback.networkRequest.requestId == REQUEST_ID_UNSET) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  try {
    mService.releaseNetworkRequest(networkCallback.networkRequest);
  }
 catch (  RemoteException e) {
  }
}
Program: 195235
Project: 195235
Buggy source:
/** 
 * Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType the type of the network over which traffic to the specifiedhost is to be routed
 * @param hostAddress the IP address of the host to which the route is desired
 * @return {@code true} on success, {@code false} on failure
 * @hide
 * @deprecated Deprecated in favor of the {@link #requestNetwork} and{@link #bindProcessToNetwork} api.
 * @removed
 */
public boolean requestRouteToHostAddress(int networkType,InetAddress hostAddress){
  try {
    return mService.requestRouteToHostAddress(networkType,hostAddress.getAddress());
  }
 catch (  RemoteException e) {
    return false;
  }
}

Fixed version (ground truth):
/** 
 * Ensure that a network route exists to deliver traffic to the specified host via the specified network interface. An attempt to add a route that already exists is ignored, but treated as successful. <p>This method requires the caller to hold the permission  {@link android.Manifest.permission#CHANGE_NETWORK_STATE}.
 * @param networkType the type of the network over which traffic to the specifiedhost is to be routed
 * @param hostAddress the IP address of the host to which the route is desired
 * @return {@code true} on success, {@code false} on failure
 * @hide
 * @deprecated Deprecated in favor of the {@link #requestNetwork} and{@link #bindProcessToNetwork} API.
 * @removed
 */
public boolean requestRouteToHostAddress(int networkType,InetAddress hostAddress){
  try {
    return mService.requestRouteToHostAddress(networkType,hostAddress.getAddress());
  }
 catch (  RemoteException e) {
    return false;
  }
}
Program: 195236
Project: 195236
Buggy source:
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
  ev.offsetLocation(mTranslationX,0);
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}
Program: 195237
Project: 195237
Buggy source:
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}

Fixed version (ground truth):
@Override public boolean onTouchEvent(MotionEvent ev){
  if (mVelocityTracker == null) {
    return super.onTouchEvent(ev);
  }
  ev.offsetLocation(mTranslationX,0);
switch (ev.getActionMasked()) {
case MotionEvent.ACTION_UP:
    updateDismiss(ev);
  if (mDismissed) {
    dismiss();
  }
 else   if (mSwiping) {
    cancel();
  }
resetMembers();
break;
case MotionEvent.ACTION_CANCEL:
cancel();
resetMembers();
break;
case MotionEvent.ACTION_MOVE:
mVelocityTracker.addMovement(ev);
mLastX=ev.getRawX();
updateSwiping(ev);
if (mSwiping) {
if (mUseDynamicTranslucency && getContext() instanceof Activity) {
((Activity)getContext()).convertToTranslucent(null,null);
}
setProgress(ev.getRawX() - mDownX);
break;
}
}
return true;
}
Program: 195238
Project: 195238
Buggy source:
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  for (  ChooserTarget target : callerChooserTargets) {
    mCallerTargets.add(new ChooserTargetInfo(target));
  }
}

Fixed version (ground truth):
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  if (callerChooserTargets != null) {
    for (    ChooserTarget target : callerChooserTargets) {
      mCallerTargets.add(new ChooserTargetInfo(target));
    }
  }
}
Program: 195239
Project: 195239
Buggy source:
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  for (  ChooserTarget target : callerChooserTargets) {
    mCallerTargets.add(new ChooserTargetInfo(target));
  }
}

Fixed version (ground truth):
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  if (callerChooserTargets != null) {
    for (    ChooserTarget target : callerChooserTargets) {
      mCallerTargets.add(new ChooserTargetInfo(target));
    }
  }
}
Program: 195242
Project: 195242
Buggy source:
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  for (  ChooserTarget target : callerChooserTargets) {
    mCallerTargets.add(new ChooserTargetInfo(target));
  }
}

Fixed version (ground truth):
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  if (callerChooserTargets != null) {
    for (    ChooserTarget target : callerChooserTargets) {
      mCallerTargets.add(new ChooserTargetInfo(target));
    }
  }
}
Program: 195245
Project: 195245
Buggy source:
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  for (  ChooserTarget target : callerChooserTargets) {
    mCallerTargets.add(new ChooserTargetInfo(target));
  }
}

Fixed version (ground truth):
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  if (callerChooserTargets != null) {
    for (    ChooserTarget target : callerChooserTargets) {
      mCallerTargets.add(new ChooserTargetInfo(target));
    }
  }
}
Program: 195248
Project: 195248
Buggy source:
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  for (  ChooserTarget target : callerChooserTargets) {
    mCallerTargets.add(new ChooserTargetInfo(target));
  }
}

Fixed version (ground truth):
public ChooserListAdapter(Context context,Intent[] initialIntents,List<ResolveInfo> rList,int launchedFromUid,boolean filterLastUsed,ChooserTarget[] callerChooserTargets){
  super(context,initialIntents,rList,launchedFromUid,filterLastUsed);
  if (callerChooserTargets != null) {
    for (    ChooserTarget target : callerChooserTargets) {
      mCallerTargets.add(new ChooserTargetInfo(target));
    }
  }
}
Program: 195253
Project: 195253
Buggy source:
@Override public ParcelableConference createFromParcel(Parcel source){
  ClassLoader classLoader=ParcelableConference.class.getClassLoader();
  PhoneAccountHandle phoneAccount=source.readParcelable(classLoader);
  int state=source.readInt();
  int capabilities=source.readInt();
  List<String> connectionIds=new ArrayList<>(2);
  source.readList(connectionIds,classLoader);
  long connectTimeMillis=source.readLong();
  StatusHints statusHints=source.readParcelable(classLoader);
  IVideoProvider videoCallProvider=IVideoProvider.Stub.asInterface(source.readStrongBinder());
  int videoState=source.readInt();
  return new ParcelableConference(phoneAccount,state,capabilities,connectionIds,videoCallProvider,videoState,connectTimeMillis,statusHints);
}

Fixed version (ground truth):
@Override public ParcelableConference createFromParcel(Parcel source){
  ClassLoader classLoader=ParcelableConference.class.getClassLoader();
  PhoneAccountHandle phoneAccount=source.readParcelable(classLoader);
  int state=source.readInt();
  int capabilities=source.readInt();
  List<String> connectionIds=new ArrayList<>(2);
  source.readList(connectionIds,classLoader);
  long connectTimeMillis=source.readLong();
  IVideoProvider videoCallProvider=IVideoProvider.Stub.asInterface(source.readStrongBinder());
  int videoState=source.readInt();
  StatusHints statusHints=source.readParcelable(classLoader);
  return new ParcelableConference(phoneAccount,state,capabilities,connectionIds,videoCallProvider,videoState,connectTimeMillis,statusHints);
}