nus-yam/ex-repair huggingface dataset:
Program: 196777
Project: 196777
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196780
Project: 196780
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196781
Project: 196781
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196782
Project: 196782
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196785
Project: 196785
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196786
Project: 196786
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196787
Project: 196787
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196790
Project: 196790
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196791
Project: 196791
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196792
Project: 196792
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196795
Project: 196795
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196796
Project: 196796
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196797
Project: 196797
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196800
Project: 196800
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196801
Project: 196801
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196802
Project: 196802
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196805
Project: 196805
Buggy source:
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  a.recycle();
}

Fixed version (ground truth):
/** 
 * @hide
 */
public FragmentBreadCrumbs(Context context,AttributeSet attrs,int defStyleAttr,int defStyleRes){
  super(context,attrs,defStyleAttr,defStyleRes);
  final TypedArray a=context.obtainStyledAttributes(attrs,com.android.internal.R.styleable.FragmentBreadCrumbs,defStyleAttr,defStyleRes);
  mGravity=a.getInt(com.android.internal.R.styleable.FragmentBreadCrumbs_gravity,DEFAULT_GRAVITY);
  mLayoutResId=a.getResourceId(com.android.internal.R.styleable.FragmentBreadCrumbs_itemLayout,com.android.internal.R.layout.fragment_bread_crumb_item);
  mTextColor=a.getColor(com.android.internal.R.styleable.FragmentBreadCrumbs_itemColor,0);
  a.recycle();
}
Program: 196806
Project: 196806
Buggy source:
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(com.android.internal.R.layout.preference_header_item,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  holder.icon.setImageResource(header.iconRes);
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}

Fixed version (ground truth):
@Override public View getView(int position,View convertView,ViewGroup parent){
  HeaderViewHolder holder;
  View view;
  if (convertView == null) {
    view=mInflater.inflate(mLayoutResId,parent,false);
    holder=new HeaderViewHolder();
    holder.icon=(ImageView)view.findViewById(com.android.internal.R.id.icon);
    holder.title=(TextView)view.findViewById(com.android.internal.R.id.title);
    holder.summary=(TextView)view.findViewById(com.android.internal.R.id.summary);
    view.setTag(holder);
  }
 else {
    view=convertView;
    holder=(HeaderViewHolder)view.getTag();
  }
  Header header=getItem(position);
  if (mRemoveIconIfEmpty) {
    if (header.iconRes == 0) {
      holder.icon.setVisibility(View.GONE);
    }
 else {
      holder.icon.setVisibility(View.VISIBLE);
      holder.icon.setImageResource(header.iconRes);
    }
  }
 else {
    holder.icon.setImageResource(header.iconRes);
  }
  holder.title.setText(header.getTitle(getContext().getResources()));
  CharSequence summary=header.getSummary(getContext().getResources());
  if (!TextUtils.isEmpty(summary)) {
    holder.summary.setVisibility(View.VISIBLE);
    holder.summary.setText(summary);
  }
 else {
    holder.summary.setVisibility(View.GONE);
  }
  return view;
}
Program: 196807
Project: 196807
Buggy source:
public HeaderAdapter(Context context,List<Header> objects){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
}

Fixed version (ground truth):
public HeaderAdapter(Context context,List<Header> objects,int layoutResId,boolean removeIconBehavior){
  super(context,0,objects);
  mInflater=(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  mLayoutResId=layoutResId;
  mRemoveIconIfEmpty=removeIconBehavior;
}
Program: 196809
Project: 196809
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196810
Project: 196810
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196811
Project: 196811
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196812
Project: 196812
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196813
Project: 196813
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196814
Project: 196814
Buggy source:
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
  if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}

Fixed version (ground truth):
@Override protected void onTrackingStarted(){
  super.onTrackingStarted();
  if (mStatusBar.getBarState() == StatusBarState.KEYGUARD || mStatusBar.getBarState() == StatusBarState.SHADE_LOCKED) {
    mAfforanceHelper.animateHideLeftRightIcon();
  }
 else   if (mQsExpanded) {
    mTwoFingerQsExpand=true;
  }
}
Program: 196818
Project: 196818
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196835
Project: 196835
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196838
Project: 196838
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196841
Project: 196841
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196845
Project: 196845
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196848
Project: 196848
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196851
Project: 196851
Buggy source:
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Main function for removing an existing process from the activity manager as a result of that process going away.  Clears out all connections to the process.
 */
private final void handleAppDiedLocked(ProcessRecord app,boolean restarting,boolean allowRestart){
  int pid=app.pid;
  boolean kept=cleanUpApplicationRecordLocked(app,restarting,allowRestart,-1);
  if (!kept && !restarting) {
    removeLruProcessLocked(app);
    if (pid > 0) {
      ProcessList.remove(pid);
    }
  }
  if (mProfileProc == app) {
    clearProfilerLocked();
  }
  boolean hasVisibleActivities=mStackSupervisor.handleAppDiedLocked(app);
  app.activities.clear();
  if (app.instrumentationClass != null) {
    Slog.w(TAG,"String_Node_Str" + app.processName + "String_Node_Str"+ app.instrumentationClass);
    Bundle info=new Bundle();
    info.putString("String_Node_Str","String_Node_Str");
    finishInstrumentationLocked(app,Activity.RESULT_CANCELED,info);
  }
  if (!restarting) {
    if (!mStackSupervisor.resumeTopActivitiesLocked()) {
      if (hasVisibleActivities) {
        mStackSupervisor.ensureActivitiesVisibleLocked(null,0);
      }
    }
  }
}
Program: 196858
Project: 196858
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}
Program: 196859
Project: 196859
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}
Program: 196860
Project: 196860
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}
Program: 196861
Project: 196861
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}
Program: 196862
Project: 196862
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}
Program: 196863
Project: 196863
Buggy source:
@Override public Bitmap getTaskDescriptionIcon(String filename){
  return mTaskPersister.getTaskDescriptionIcon(filename);
}

Fixed version (ground truth):
@Override public Bitmap getTaskDescriptionIcon(String filename){
  if (!FileUtils.isValidExtFilename(filename) || !filename.contains(ActivityRecord.ACTIVITY_ICON_SUFFIX)) {
    throw new IllegalArgumentException("String_Node_Str" + filename);
  }
  return mTaskPersister.getTaskDescriptionIcon(filename);
}