nus-yam/ex-repair huggingface dataset:
Program: 97668
Project: 97668
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.menu_refresh:
    RepoLoader.getInstance().triggerReload(true);
  return true;
case R.id.menu_share:
String text=mModule.name + "String_Node_Str";
if (isPackageInstalled(mPackageName,this)) {
String s=getPackageManager().getInstallerPackageName(mPackageName);
if (s.equals(ModulesFragment.PLAY_STORE_PACKAGE)) {
  text+=String.format(ModulesFragment.PLAY_STORE_LINK,mPackageName);
}
 else {
  text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
}
 else {
text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
Intent sharingIntent=new Intent(Intent.ACTION_SEND);
sharingIntent.setType("String_Node_Str");
sharingIntent.putExtra(Intent.EXTRA_TEXT,text);
startActivity(Intent.createChooser(sharingIntent,getString(R.string.share)));
return true;
}
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.menu_refresh:
    RepoLoader.getInstance().triggerReload(true);
  return true;
case R.id.menu_share:
String text=mModule.name + "String_Node_Str";
if (isPackageInstalled(mPackageName,this)) {
String s=getPackageManager().getInstallerPackageName(mPackageName);
boolean playStore;
try {
  playStore=s.equals(ModulesFragment.PLAY_STORE_PACKAGE);
}
 catch (NullPointerException e) {
  playStore=false;
}
if (playStore) {
  text+=String.format(ModulesFragment.PLAY_STORE_LINK,mPackageName);
}
 else {
  text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
}
 else {
text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
Intent sharingIntent=new Intent(Intent.ACTION_SEND);
sharingIntent.setType("String_Node_Str");
sharingIntent.putExtra(Intent.EXTRA_TEXT,text);
startActivity(Intent.createChooser(sharingIntent,getString(R.string.share)));
return true;
}
return super.onOptionsItemSelected(item);
}
Program: 97669
Project: 97669
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  mDrawerLayout.setStatusBarBackgroundColor(darkenColor(XposedApp.getColor(this),0.85f));
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}
Program: 97671
Project: 97671
Buggy source:
public IconListPreference(Context context,AttributeSet attrs){
  super(context,attrs);
  TypedArray a=context.getTheme().obtainStyledAttributes(attrs,R.styleable.IconListPreference,0,0);
  CharSequence[] drawables;
  try {
    drawables=a.getTextArray(R.styleable.IconListPreference_icons);
  }
  finally {
    a.recycle();
  }
  for (int i=0; i < drawables.length; i++) {
    int resId=context.getResources().getIdentifier(drawables[i].toString(),"String_Node_Str",context.getPackageName());
    Drawable d=context.getDrawable(resId);
    mEntryDrawables.add(d);
  }
}

Fixed version (ground truth):
public IconListPreference(Context context,AttributeSet attrs){
  super(context,attrs);
  TypedArray a=context.getTheme().obtainStyledAttributes(attrs,R.styleable.IconListPreference,0,0);
  CharSequence[] drawables;
  try {
    drawables=a.getTextArray(R.styleable.IconListPreference_icons);
  }
  finally {
    a.recycle();
  }
  for (  CharSequence drawable : drawables) {
    int resId=context.getResources().getIdentifier(drawable.toString(),"String_Node_Str",context.getPackageName());
    Drawable d=context.getResources().getDrawable(resId);
    mEntryDrawables.add(d);
  }
}
Program: 97672
Project: 97672
Buggy source:
@Override public boolean onContextItemSelected(MenuItem item){
  InstalledModule module=getItemFromContextMenuInfo(item.getMenuInfo());
  if (module == null)   return false;
switch (item.getItemId()) {
case R.id.menu_launch:
    startActivity(getSettingsIntent(module.packageName));
  return true;
case R.id.menu_download_updates:
Intent detailsIntent=new Intent(getActivity(),DownloadDetailsActivity.class);
detailsIntent.setData(Uri.fromParts("String_Node_Str",module.packageName,null));
startActivity(detailsIntent);
return true;
case R.id.menu_support:
NavUtil.startURL(getActivity(),RepoDb.getModuleSupport(module.packageName));
return true;
case R.id.menu_play_store:
Intent i=new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(String.format(PLAY_STORE_LINK,module.packageName)));
i.setPackage(PLAY_STORE_PACKAGE);
try {
startActivity(i);
}
 catch (ActivityNotFoundException e) {
i.setPackage(null);
startActivity(i);
}
return true;
case R.id.menu_app_info:
startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,Uri.fromParts("String_Node_Str",module.packageName,null)));
return true;
case R.id.menu_uninstall:
startActivity(new Intent(Intent.ACTION_UNINSTALL_PACKAGE,Uri.fromParts("String_Node_Str",module.packageName,null)));
return true;
}
return false;
}

Fixed version (ground truth):
@Override public boolean onContextItemSelected(MenuItem item){
  InstalledModule module=getItemFromContextMenuInfo(item.getMenuInfo());
  if (module == null)   return false;
switch (item.getItemId()) {
case R.id.menu_launch:
    startActivity(getSettingsIntent(module.packageName));
  return true;
case R.id.menu_download_updates:
Intent detailsIntent=new Intent(getActivity(),DownloadDetailsActivity.class);
detailsIntent.setData(Uri.fromParts("String_Node_Str",module.packageName,null));
startActivity(detailsIntent);
return true;
case R.id.menu_support:
NavUtil.startURL(getActivity(),Uri.parse(RepoDb.getModuleSupport(module.packageName)));
return true;
case R.id.menu_play_store:
Intent i=new Intent(android.content.Intent.ACTION_VIEW);
i.setData(Uri.parse(String.format(PLAY_STORE_LINK,module.packageName)));
i.setPackage(PLAY_STORE_PACKAGE);
try {
startActivity(i);
}
 catch (ActivityNotFoundException e) {
i.setPackage(null);
startActivity(i);
}
return true;
case R.id.menu_app_info:
startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS,Uri.fromParts("String_Node_Str",module.packageName,null)));
return true;
case R.id.menu_uninstall:
startActivity(new Intent(Intent.ACTION_UNINSTALL_PACKAGE,Uri.fromParts("String_Node_Str",module.packageName,null)));
return true;
}
return false;
}
Program: 97674
Project: 97674
Buggy source:
public boolean isForwardLocked(){
  return (app.flags & FLAG_FORWARD_LOCK) != 0;
}

Fixed version (ground truth):
/** 
 * @hide
 */
public boolean isForwardLocked(){
  return (app.flags & FLAG_FORWARD_LOCK) != 0;
}
Program: 97675
Project: 97675
Buggy source:
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.menu_refresh:
    RepoLoader.getInstance().triggerReload(true);
  return true;
case R.id.menu_share:
String text=mModule.name + "String_Node_Str";
String s=getPackageManager().getInstallerPackageName(mPackageName);
if (s.equals(ModulesFragment.PLAY_STORE_PACKAGE)) {
text+=String.format(ModulesFragment.PLAY_STORE_LINK,mPackageName);
}
 else {
text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
Intent sharingIntent=new Intent(Intent.ACTION_SEND);
sharingIntent.setType("String_Node_Str");
sharingIntent.putExtra(Intent.EXTRA_TEXT,text);
startActivity(Intent.createChooser(sharingIntent,getString(R.string.share)));
return true;
}
return super.onOptionsItemSelected(item);
}

Fixed version (ground truth):
@Override public boolean onOptionsItemSelected(MenuItem item){
switch (item.getItemId()) {
case R.id.menu_refresh:
    RepoLoader.getInstance().triggerReload(true);
  return true;
case R.id.menu_share:
String text=mModule.name + "String_Node_Str";
if (isPackageInstalled(mPackageName,this)) {
String s=getPackageManager().getInstallerPackageName(mPackageName);
if (s.equals(ModulesFragment.PLAY_STORE_PACKAGE)) {
  text+=String.format(ModulesFragment.PLAY_STORE_LINK,mPackageName);
}
 else {
  text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
}
 else {
text+=String.format(ModulesFragment.XPOSED_REPO_LINK,mPackageName);
}
Intent sharingIntent=new Intent(Intent.ACTION_SEND);
sharingIntent.setType("String_Node_Str");
sharingIntent.putExtra(Intent.EXTRA_TEXT,text);
startActivity(Intent.createChooser(sharingIntent,getString(R.string.share)));
return true;
}
return super.onOptionsItemSelected(item);
}
Program: 97676
Project: 97676
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  mDrawerLayout.setStatusBarBackgroundColor(darkenColor(XposedApp.getColor(this),0.85f));
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mPrevSelectedId=mSelectedId;
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    mDrawerHandler.removeCallbacksAndMessages(null);
    mDrawerHandler.postDelayed(new Runnable(){
      @Override public void run(){
        navigate(mSelectedId);
      }
    }
,250);
    mDrawerLayout.closeDrawers();
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}
Program: 97677
Project: 97677
Buggy source:
@Override public Cursor runQuery(CharSequence constraint){
  if (XposedApp.getInstance().areDownloadsEnabled()) {
    return RepoDb.queryModuleOverview(mSortingOrder,constraint);
  }
 else {
    showDisabledDownloadsDialog();
    return null;
  }
}

Fixed version (ground truth):
@Override public Cursor runQuery(CharSequence constraint){
  if (XposedApp.getInstance().areDownloadsEnabled()) {
    return RepoDb.queryModuleOverview(mSortingOrder,constraint);
  }
 else {
    return null;
  }
}
Program: 97678
Project: 97678
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mPref=XposedApp.getPreferences();
  mRepoLoader=RepoLoader.getInstance();
  mModuleUtil=ModuleUtil.getInstance();
  mAdapter=new DownloadsAdapter(getActivity());
  mAdapter.setFilterQueryProvider(new FilterQueryProvider(){
    @Override public Cursor runQuery(    CharSequence constraint){
      if (XposedApp.getInstance().areDownloadsEnabled()) {
        return RepoDb.queryModuleOverview(mSortingOrder,constraint);
      }
 else {
        showDisabledDownloadsDialog();
        return null;
      }
    }
  }
);
  mSortingOrder=mPref.getInt("String_Node_Str",RepoDb.SORT_STATUS);
  setHasOptionsMenu(true);
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  mPref=XposedApp.getPreferences();
  mRepoLoader=RepoLoader.getInstance();
  mModuleUtil=ModuleUtil.getInstance();
  mAdapter=new DownloadsAdapter(getActivity());
  mAdapter.setFilterQueryProvider(new FilterQueryProvider(){
    @Override public Cursor runQuery(    CharSequence constraint){
      if (XposedApp.getInstance().areDownloadsEnabled()) {
        return RepoDb.queryModuleOverview(mSortingOrder,constraint);
      }
 else {
        return null;
      }
    }
  }
);
  mSortingOrder=mPref.getInt("String_Node_Str",RepoDb.SORT_STATUS);
  setHasOptionsMenu(true);
}
Program: 97679
Project: 97679
Buggy source:
public static void setColors(ActionBar actionBar,Object value,Activity activity){
  int color=(int)value;
  actionBar.setBackgroundDrawable(new ColorDrawable(color));
  if (Build.VERSION.SDK_INT >= 21) {
    ActivityManager.TaskDescription tDesc=new ActivityManager.TaskDescription(activity.getString(R.string.app_name),drawableToBitmap(activity.getDrawable(R.mipmap.ic_launcher)),color);
    activity.setTaskDescription(tDesc);
    if (getPreferences().getBoolean("String_Node_Str",true)) {
      activity.getWindow().setNavigationBarColor(darkenColor(color,0.85f));
    }
 else {
      int black=activity.getResources().getColor(android.R.color.black);
      activity.getWindow().setNavigationBarColor(black);
    }
  }
}

Fixed version (ground truth):
public static void setColors(ActionBar actionBar,Object value,Activity activity){
  int color=(int)value;
  actionBar.setBackgroundDrawable(new ColorDrawable(color));
  if (Build.VERSION.SDK_INT >= 21) {
    ActivityManager.TaskDescription tDesc=new ActivityManager.TaskDescription(activity.getString(R.string.app_name),drawableToBitmap(activity.getDrawable(R.mipmap.ic_launcher)),color);
    activity.setTaskDescription(tDesc);
    if (getPreferences().getBoolean("String_Node_Str",false)) {
      activity.getWindow().setNavigationBarColor(darkenColor(color,0.85f));
    }
 else {
      int black=activity.getResources().getColor(android.R.color.black);
      activity.getWindow().setNavigationBarColor(black);
    }
  }
}
Program: 97680
Project: 97680
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  NavigationView mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    navigate(mSelectedId);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerLayout.setStatusBarBackgroundColor(getResources().getColor(R.color.colorPrimaryDark));
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    navigate(mSelectedId);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}
Program: 97681
Project: 97681
Buggy source:
private void notifyDataSetChanged(){
  runOnUiThread(new Runnable(){
    @Override public void run(){
      if (mAdapter != null) {
synchronized (mAdapter) {
          mAdapter.notifyDataSetChanged();
        }
      }
    }
  }
);
}

Fixed version (ground truth):
private void notifyDataSetChanged(){
  View parentLayout=findViewById(R.id.content_frame);
  String frameworkUpdateVersion=mRepoLoader.getFrameworkUpdateVersion();
  boolean moduleUpdateAvailable=mRepoLoader.hasModuleUpdates();
  Fragment currentFragment=getSupportFragmentManager().findFragmentById(R.id.content_frame);
  if (currentFragment instanceof DownloadDetailsFragment) {
    if (frameworkUpdateVersion != null) {
      Snackbar.make(parentLayout,R.string.welcome_framework_update_available + "String_Node_Str" + String.valueOf(frameworkUpdateVersion),Snackbar.LENGTH_LONG).show();
    }
  }
  if (moduleUpdateAvailable) {
    Snackbar.make(parentLayout,R.string.modules_updates_available,Snackbar.LENGTH_LONG).setAction("String_Node_Str",new View.OnClickListener(){
      @Override public void onClick(      View view){
        mSelectedId=mNavigationView.getMenu().getItem(2).getItemId();
        mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
        navigate(mSelectedId);
      }
    }
).show();
  }
}
Program: 97682
Project: 97682
Buggy source:
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerLayout.setStatusBarBackgroundColor(XposedApp.getColor(this));
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    navigate(mSelectedId);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}

Fixed version (ground truth):
@Override protected void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  ThemeUtil.setTheme(this);
  setContentView(R.layout.activity_welcome);
  mDrawerLayout=(DrawerLayout)findViewById(R.id.drawer_layout);
  Toolbar mToolbar=(Toolbar)findViewById(R.id.toolbar);
  setSupportActionBar(mToolbar);
  mNavigationView=(NavigationView)findViewById(R.id.navigation_view);
  mNavigationView.setNavigationItemSelectedListener(this);
  ActionBarDrawerToggle mDrawerToggle=new ActionBarDrawerToggle(this,mDrawerLayout,mToolbar,R.string.navigation_drawer_open,R.string.navigation_drawer_close);
  mDrawerLayout.setDrawerListener(mDrawerToggle);
  mDrawerToggle.syncState();
  SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
  mSelectedId=mNavigationView.getMenu().getItem(prefs.getInt("String_Node_Str",0)).getItemId();
  mSelectedId=savedInstanceState == null ? mSelectedId : savedInstanceState.getInt(SELECTED_ITEM_ID);
  mNavigationView.getMenu().findItem(mSelectedId).setChecked(true);
  if (savedInstanceState == null) {
    navigate(mSelectedId);
  }
  mRepoLoader=RepoLoader.getInstance();
  ModuleUtil.getInstance().addListener(this);
  mRepoLoader.addListener(this,false);
  notifyDataSetChanged();
}
Program: 97683
Project: 97683
Buggy source:
/** 
 * @author PeterCxy https://github.com/PeterCxy/Lolistat/blob/aide/app/src/main/java/info/papdt/lolistat/support/Utility.java
 */
private static int darkenColor(int color,float factor){
  float[] hsv=new float[3];
  Color.colorToHSV(color,hsv);
  hsv[2]*=factor;
  return Color.HSVToColor(hsv);
}

Fixed version (ground truth):
/** 
 * @author PeterCxy https://github.com/PeterCxy/Lolistat/blob/aide/app/src/main/java/info/papdt/lolistat/support/Utility.java
 */
public static int darkenColor(int color,float factor){
  float[] hsv=new float[3];
  Color.colorToHSV(color,hsv);
  hsv[2]*=factor;
  return Color.HSVToColor(hsv);
}
Program: 97684
Project: 97684
Buggy source:
public static void setColors(ActionBar actionBar,Object value,Activity activity){
  int color=(int)value;
  actionBar.setBackgroundDrawable(new ColorDrawable(color));
  if (Build.VERSION.SDK_INT >= 21) {
    activity.getWindow().setStatusBarColor(darkenColor(color,0.85f));
    ActivityManager.TaskDescription tDesc=new ActivityManager.TaskDescription(activity.getString(R.string.app_name),drawableToBitmap(activity.getDrawable(R.mipmap.ic_launcher)),color);
    activity.setTaskDescription(tDesc);
    if (getPreferences().getBoolean("String_Node_Str",true)) {
      activity.getWindow().setNavigationBarColor(darkenColor(color,0.85f));
    }
 else {
      int black=activity.getResources().getColor(android.R.color.black);
      activity.getWindow().setNavigationBarColor(black);
    }
  }
}

Fixed version (ground truth):
public static void setColors(ActionBar actionBar,Object value,Activity activity){
  int color=(int)value;
  actionBar.setBackgroundDrawable(new ColorDrawable(color));
  if (Build.VERSION.SDK_INT >= 21) {
    ActivityManager.TaskDescription tDesc=new ActivityManager.TaskDescription(activity.getString(R.string.app_name),drawableToBitmap(activity.getDrawable(R.mipmap.ic_launcher)),color);
    activity.setTaskDescription(tDesc);
    if (getPreferences().getBoolean("String_Node_Str",true)) {
      activity.getWindow().setNavigationBarColor(darkenColor(color,0.85f));
    }
 else {
      int black=activity.getResources().getColor(android.R.color.black);
      activity.getWindow().setNavigationBarColor(black);
    }
  }
}
Program: 97685
Project: 97685
Buggy source:
@Override protected void onResume(){
  super.onResume();
  XposedApp.setColors(getSupportActionBar(),XposedApp.getColor(this),this);
  ThemeUtil.reloadTheme(this);
  if (leftActivityWithSlideAnim)   NavUtil.setTransitionSlideLeave(this);
  leftActivityWithSlideAnim=false;
}

Fixed version (ground truth):
@Override protected void onResume(){
  super.onResume();
  XposedApp.setColors(getSupportActionBar(),getColor(this),this);
  ThemeUtil.reloadTheme(this);
  if (leftActivityWithSlideAnim)   NavUtil.setTransitionSlideLeave(this);
  leftActivityWithSlideAnim=false;
}
Program: 97686
Project: 97686
Buggy source:
/** 
 * Creates a matcher for   {@link Iterable}s that matches when a single pass over the examined   {@link Iterable} yields a series of items, that contains items satisfying the correspondingmatcher in the specified list of matchers, in the same relative order. <p/> For example: <pre>assertThat(Arrays.asList("a", "b", "c", "d", "e"), contains(Arrays.asList(equalTo("b"), equalTo("d"))))</pre>
 * @param itemMatchers a list of matchers, each of which must be satisfied by the items provided by an examined  {@link Iterable} in the same relative order
 */
@Factory public static <E>Matcher<Iterable<? extends E>> containsInRelativeOrder(List<Matcher<? super E>> itemMatchers){
  return new IsIterableContainingInRelativeOrder<E>(itemMatchers);
}

Fixed version (ground truth):
/** 
 * Creates a matcher for   {@link Iterable}s that matches when a single pass over the examined   {@link Iterable} yields a series of items, that contains items satisfying the correspondingmatcher in the specified list of matchers, in the same relative order. For example: <pre>assertThat(Arrays.asList("a", "b", "c", "d", "e"), contains(Arrays.asList(equalTo("b"), equalTo("d"))))</pre>
 * @param itemMatchers a list of matchers, each of which must be satisfied by the items provided by an examined  {@link Iterable} in the same relative order
 */
@Factory public static <E>Matcher<Iterable<? extends E>> containsInRelativeOrder(List<Matcher<? super E>> itemMatchers){
  return new IsIterableContainingInRelativeOrder<E>(itemMatchers);
}
Program: 97687
Project: 97687
Buggy source:
@Override public boolean matchesSafely(Iterable<T> collection,Description mismatchDescription){
  for (  T t : collection) {
    if (!matcher.matches(t)) {
      mismatchDescription.appendText("String_Node_Str");
      matcher.describeMismatch(t,mismatchDescription);
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
@Override public boolean matchesSafely(Iterable<? extends T> collection,Description mismatchDescription){
  for (  T t : collection) {
    if (!matcher.matches(t)) {
      mismatchDescription.appendText("String_Node_Str");
      matcher.describeMismatch(t,mismatchDescription);
      return false;
    }
  }
  return true;
}
Program: 97688
Project: 97688
Buggy source:
/** 
 * Creates a matcher for   {@link Iterable}s that only matches when a single pass over the examined   {@link Iterable} yields items that are all matched by the specified<code>itemMatcher</code>. <p/> For example: <pre>assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))</pre>
 * @param itemMatcher the matcher to apply to every item provided by the examined  {@link Iterable}
 */
@Factory public static <U>Matcher<Iterable<U>> everyItem(final Matcher<U> itemMatcher){
  return new Every<U>(itemMatcher);
}

Fixed version (ground truth):
/** 
 * Creates a matcher for   {@link Iterable}s that only matches when a single pass over the examined   {@link Iterable} yields items that are all matched by the specified<code>itemMatcher</code>. <p/> For example: <pre>assertThat(Arrays.asList("bar", "baz"), everyItem(startsWith("ba")))</pre>
 * @param itemMatcher the matcher to apply to every item provided by the examined  {@link Iterable}
 */
@Factory public static <U>Matcher<Iterable<? extends U>> everyItem(final Matcher<U> itemMatcher){
  return new Every<U>(itemMatcher);
}
Program: 97689
Project: 97689
Buggy source:
/** 
 * Attempts to locate the source code for a specific method, by cross-referencing the signature returned by reflection with the list of methods parsed by QDox.
 */
private JavaMethod findMethodInSource(FactoryMethod factoryMethod){
  List<FactoryMethod.Parameter> params=factoryMethod.getParameters();
  Type[] types=new Type[params.size()];
  for (int i=0; i < types.length; i++) {
    String type=params.get(i).getType();
    type=GENERIC_REGEX.matcher(type).replaceAll("String_Node_Str");
    type=VARARGS_REGEX.matcher(type).replaceAll("String_Node_Str");
    types[i]=new Type(type);
  }
  JavaMethod[] methods=classSource.getMethodsBySignature(factoryMethod.getName(),types,false);
  return methods.length == 1 ? methods[0] : null;
}

Fixed version (ground truth):
/** 
 * Attempts to locate the source code for a specific method, by cross-referencing the signature returned by reflection with the list of methods parsed by QDox.
 */
private JavaMethod findMethodInSource(FactoryMethod factoryMethod){
  List<FactoryMethod.Parameter> params=factoryMethod.getParameters();
  Type[] types=new Type[params.size()];
  boolean varArgs=false;
  for (int i=0; i < types.length; i++) {
    String type=params.get(i).getType();
    varArgs=VARARGS_REGEX.matcher(type).find();
    type=GENERIC_REGEX.matcher(type).replaceAll("String_Node_Str");
    type=VARARGS_REGEX.matcher(type).replaceAll("String_Node_Str");
    types[i]=new Type(type);
  }
  JavaMethod[] methods=classSource.getMethodsBySignature(factoryMethod.getName(),types,false,varArgs);
  return methods.length == 1 ? methods[0] : null;
}
Program: 97690
Project: 97690
Buggy source:
public void testMatchesItemsInOrder(){
  assertMatches("String_Node_Str",arrayContainingInAnyOrder(1,2,3),new Integer[]{1,2,3});
  assertMatches("String_Node_Str",arrayContainingInAnyOrder(1),new Integer[]{1});
}

Fixed version (ground truth):
public void testMatchesItemsInOrder(){
  assertMatches("String_Node_Str",arrayContaining(1,2,3),new Integer[]{1,2,3});
  assertMatches("String_Node_Str",arrayContaining(1),new Integer[]{1});
}
Program: 97691
Project: 97691
Buggy source:
/** 
 * @see Matcher#_dont_implement_Matcher___instead_extend_BaseMatcher_()
 */
public final void _dont_implement_Matcher___instead_extend_BaseMatcher_(){
}

Fixed version (ground truth):
/** 
 * @see Matcher#_dont_implement_Matcher___instead_extend_BaseMatcher_()
 */
@Deprecated public final void _dont_implement_Matcher___instead_extend_BaseMatcher_(){
}
Program: 97692
Project: 97692
Buggy source:
@Override public void describeMismatchSafely(T item,Description mismatchDescription){
  mismatchDescription.appendValue(value).appendText("String_Node_Str").appendText(comparison(value.compareTo(item))).appendText("String_Node_Str").appendValue(item);
}

Fixed version (ground truth):
@Override public void describeMismatchSafely(T actual,Description mismatchDescription){
  mismatchDescription.appendValue(expected).appendText("String_Node_Str").appendText(comparison(actual.compareTo(expected))).appendText("String_Node_Str").appendValue(actual);
}
Program: 97693
Project: 97693
Buggy source:
private OrderingComparison(T value,int minCompare,int maxCompare){
  this.value=value;
  this.minCompare=minCompare;
  this.maxCompare=maxCompare;
}

Fixed version (ground truth):
private OrderingComparison(T expected,int minCompare,int maxCompare){
  this.expected=expected;
  this.minCompare=minCompare;
  this.maxCompare=maxCompare;
}
Program: 97694
Project: 97694
Buggy source:
private String comparison(int compare){
  if (compare > 0) {
    return "String_Node_Str";
  }
 else   if (compare == 0) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}

Fixed version (ground truth):
private String comparison(int compare){
  if (compare == EQUAL) {
    return "String_Node_Str";
  }
 else   if (compare > EQUAL) {
    return "String_Node_Str";
  }
 else {
    return "String_Node_Str";
  }
}
Program: 97695
Project: 97695
Buggy source:
@Override public boolean matchesSafely(T other){
  int compare=Integer.signum(value.compareTo(other));
  return minCompare <= compare && compare <= maxCompare;
}

Fixed version (ground truth):
@Override public boolean matchesSafely(T actual){
  int compare=Integer.signum(actual.compareTo(expected));
  return minCompare <= compare && compare <= maxCompare;
}
Program: 97696
Project: 97696
Buggy source:
/** 
 * Is value < expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> lessThan(T value){
  return new OrderingComparison<T>(value,1,1);
}

Fixed version (ground truth):
/** 
 * Is value < expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> lessThan(T value){
  return new OrderingComparison<T>(value,LESS_THAN,LESS_THAN);
}
Program: 97697
Project: 97697
Buggy source:
public void describeTo(Description description){
  description.appendText("String_Node_Str").appendText(comparison(minCompare));
  if (minCompare != maxCompare) {
    description.appendText("String_Node_Str").appendText(comparison(maxCompare));
  }
  description.appendText("String_Node_Str").appendValue(value);
}

Fixed version (ground truth):
public void describeTo(Description description){
  description.appendText("String_Node_Str").appendText(comparison(minCompare));
  if (minCompare != maxCompare) {
    description.appendText("String_Node_Str").appendText(comparison(maxCompare));
  }
  description.appendText("String_Node_Str").appendValue(expected);
}
Program: 97698
Project: 97698
Buggy source:
/** 
 * Is value = expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> comparesEqualTo(T value){
  return new OrderingComparison<T>(value,0,0);
}

Fixed version (ground truth):
/** 
 * Is value = expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> comparesEqualTo(T value){
  return new OrderingComparison<T>(value,EQUAL,EQUAL);
}
Program: 97699
Project: 97699
Buggy source:
/** 
 * Is value >= expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> greaterThanOrEqualTo(T value){
  return new OrderingComparison<T>(value,-1,0);
}

Fixed version (ground truth):
/** 
 * Is value >= expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> greaterThanOrEqualTo(T value){
  return new OrderingComparison<T>(value,EQUAL,GREATER_THAN);
}
Program: 97700
Project: 97700
Buggy source:
/** 
 * Is value <= expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> lessThanOrEqualTo(T value){
  return new OrderingComparison<T>(value,0,1);
}

Fixed version (ground truth):
/** 
 * Is value <= expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> lessThanOrEqualTo(T value){
  return new OrderingComparison<T>(value,LESS_THAN,EQUAL);
}
Program: 97701
Project: 97701
Buggy source:
/** 
 * Is value > expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> greaterThan(T value){
  return new OrderingComparison<T>(value,-1,-1);
}

Fixed version (ground truth):
/** 
 * Is value > expected?
 */
@Factory public static <T extends Comparable<T>>Matcher<? super T> greaterThan(T value){
  return new OrderingComparison<T>(value,GREATER_THAN,GREATER_THAN);
}
Program: 97702
Project: 97702
Buggy source:
public void testAllowsForInclusiveComparisons(){
  assertThat(1,lessThanOrEqualTo(1));
  assertThat(1,greaterThanOrEqualTo(1));
}

Fixed version (ground truth):
public void testAllowsForInclusiveComparisons(){
  assertThat("String_Node_Str",1,lessThanOrEqualTo(1));
  assertThat("String_Node_Str",1,greaterThanOrEqualTo(1));
}
Program: 97703
Project: 97703
Buggy source:
@Override public void describeMismatchSafely(T actual,Description mismatchDescription){
  mismatchDescription.appendValue(expected).appendText("String_Node_Str").appendText(comparison(actual.compareTo(expected))).appendText("String_Node_Str").appendValue(actual);
}

Fixed version (ground truth):
@Override public void describeMismatchSafely(T actual,Description mismatchDescription){
  mismatchDescription.appendValue(actual).appendText("String_Node_Str").appendText(comparison(actual.compareTo(expected))).appendText("String_Node_Str").appendValue(expected);
}
Program: 97704
Project: 97704
Buggy source:
/** 
 * This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). For example:  assertThat(cheese, is(instanceOf(Cheddar.class))) vs.  assertThat(cheese, is(Cheddar.class))
 */
@Factory public static Matcher<Object> is(Class<?> type){
  return is(instanceOf(type));
}

Fixed version (ground truth):
/** 
 * This is a shortcut to the frequently used is(instanceOf(SomeClass.class)). For example:  assertThat(cheese, is(instanceOf(Cheddar.class))) vs.  assertThat(cheese, is(Cheddar.class))
 */
@Factory public static <T>Matcher<? super T> is(Class<T> type){
  return is(instanceOf(type));
}
Program: 97705
Project: 97705
Buggy source:
/** 
 * Is the value an instance of a particular type?
 */
@Factory public static Matcher<Object> instanceOf(Class<?> type){
  return new IsInstanceOf(type);
}

Fixed version (ground truth):
/** 
 * Is the value an instance of a particular type?
 */
@SuppressWarnings("String_Node_Str") @Factory public static <T>Matcher<T> instanceOf(Class<T> type){
  return (Matcher<T>)new IsInstanceOf(type);
}
Program: 97706
Project: 97706
Buggy source:
/** 
 * Attempts to locate the source code for a specific method, by cross-referencing the signature returned by reflection with the list of methods parsed by QDox.
 */
private JavaMethod findMethodInSource(FactoryMethod factoryMethod){
  List<FactoryMethod.Parameter> params=factoryMethod.getParameters();
  Type[] types=new Type[params.size()];
  for (int i=0; i < types.length; i++) {
    String type=params.get(i).getType();
    type=GENERIC_REGEX.matcher(type).replaceAll("String_Node_Str");
    type=VARARGS_REGEX.matcher(type).replaceAll("String_Node_Str");
    types[i]=new Type(type);
  }
  JavaMethod[] methods=classSource.getMethodsBySignature(factoryMethod.getName(),types,false);
  if (methods.length == 1) {
    return methods[0];
  }
 else {
    return null;
  }
}

Fixed version (ground truth):
/** 
 * Attempts to locate the source code for a specific method, by cross-referencing the signature returned by reflection with the list of methods parsed by QDox.
 */
private JavaMethod findMethodInSource(FactoryMethod factoryMethod){
  List<FactoryMethod.Parameter> params=factoryMethod.getParameters();
  Type[] types=new Type[params.size()];
  for (int i=0; i < types.length; i++) {
    String type=params.get(i).getType();
    type=GENERIC_REGEX.matcher(type).replaceAll("String_Node_Str");
    type=VARARGS_REGEX.matcher(type).replaceAll("String_Node_Str");
    types[i]=new Type(type);
  }
  JavaMethod[] methods=classSource.getMethodsBySignature(factoryMethod.getName(),types,false);
  return methods.length == 1 ? methods[0] : null;
}
Program: 97707
Project: 97707
Buggy source:
/** 
 * Get String representation of Type (e.g. java.lang.String or Map&lt;Stuff,? extends Cheese&gt;). <p/> Annoyingly this method wouldn't be needed if java.lang.reflect.Type.toString() behaved consistently across implementations. Rock on Liskov.
 */
private String typeToString(Type type){
  if (type instanceof Class<?>) {
    Class<?> cls=(Class<?>)type;
    if (cls.isArray()) {
      return cls.getComponentType().getName() + "String_Node_Str";
    }
 else {
      return cls.getName();
    }
  }
 else {
    return type.toString();
  }
}

Fixed version (ground truth):
private static String typeToString(Type type){
  return type instanceof Class<?> ? classToString((Class<?>)type) : type.toString();
}
Program: 97708
Project: 97708
Buggy source:
public void load(InputSource inputSource) throws ParserConfigurationException, SAXException, IOException {
  SAXParser saxParser=saxParserFactory.newSAXParser();
  saxParser.parse(inputSource,new DefaultHandler(){
    public void startElement(    String uri,    String localName,    String qName,    Attributes attributes) throws SAXException {
      if (localName.equals("String_Node_Str")) {
        String className=attributes.getValue("String_Node_Str");
        try {
          addClass(className);
        }
 catch (        ClassNotFoundException e) {
          throw new SAXException("String_Node_Str" + className);
        }
      }
    }
  }
);
}

Fixed version (ground truth):
public void load(InputSource inputSource) throws ParserConfigurationException, SAXException, IOException {
  SAXParser saxParser=saxParserFactory.newSAXParser();
  saxParser.parse(inputSource,new DefaultHandler(){
    @Override public void startElement(    String uri,    String localName,    String qName,    Attributes attributes) throws SAXException {
      if (localName.equals("String_Node_Str")) {
        String className=attributes.getValue("String_Node_Str");
        try {
          addClass(className);
        }
 catch (        ClassNotFoundException e) {
          throw new SAXException("String_Node_Str" + className);
        }
      }
    }
  }
);
}
Program: 97709
Project: 97709
Buggy source:
public void startElement(String uri,String localName,String qName,Attributes attributes) throws SAXException {
  if (localName.equals("String_Node_Str")) {
    String className=attributes.getValue("String_Node_Str");
    try {
      addClass(className);
    }
 catch (    ClassNotFoundException e) {
      throw new SAXException("String_Node_Str" + className);
    }
  }
}

Fixed version (ground truth):
@Override public void startElement(String uri,String localName,String qName,Attributes attributes) throws SAXException {
  if (localName.equals("String_Node_Str")) {
    String className=attributes.getValue("String_Node_Str");
    try {
      addClass(className);
    }
 catch (    ClassNotFoundException e) {
      throw new SAXException("String_Node_Str" + className);
    }
  }
}
Program: 97710
Project: 97710
Buggy source:
@SuppressWarnings({"String_Node_Str"}) public boolean matches(Object argument){
  return hamcrestMatcher.matches(argument);
}

Fixed version (ground truth):
public boolean matches(Object argument){
  return hamcrestMatcher.matches(argument);
}
Program: 97711
Project: 97711
Buggy source:
public boolean matchesSafely(T[] array){
  for (  T item : array) {
    if (elementMatcher.matches(item)) {
      return true;
    }
  }
  return false;
}

Fixed version (ground truth):
@Override public boolean matchesSafely(T[] array){
  for (  T item : array) {
    if (elementMatcher.matches(item)) {
      return true;
    }
  }
  return false;
}
Program: 97712
Project: 97712
Buggy source:
protected Matcher<?> createMatcher(){
  return hasProperty("String_Node_Str");
}

Fixed version (ground truth):
@Override protected Matcher<?> createMatcher(){
  return hasProperty("String_Node_Str");
}
Program: 97713
Project: 97713
Buggy source:
protected Matcher<?> createMatcher(){
  return hasItemInArray("String_Node_Str");
}

Fixed version (ground truth):
@Override protected Matcher<?> createMatcher(){
  return hasItemInArray("String_Node_Str");
}
Program: 97714
Project: 97714
Buggy source:
protected Matcher<?> createMatcher(){
  return array(equalTo("String_Node_Str"));
}

Fixed version (ground truth):
@Override protected Matcher<?> createMatcher(){
  return array(equalTo("String_Node_Str"));
}
Program: 97715
Project: 97715
Buggy source:
public void testMismatchDescriptionDescribesFirstFailingMatch(){
  assertMismatchDescription("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str")),"String_Node_Str");
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void testMismatchDescriptionDescribesFirstFailingMatch(){
  assertMismatchDescription("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str")),"String_Node_Str");
}
Program: 97716
Project: 97716
Buggy source:
public void testEvaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers(){
  assertThat("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str")));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void testEvaluatesToTheTheLogicalConjunctionOfTwoOtherMatchers(){
  assertThat("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str")));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
  assertThat("String_Node_Str",not(allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"))));
}
Program: 97717
Project: 97717
Buggy source:
public void testHasAReadableDescription(){
  assertDescription("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"),equalTo("String_Node_Str")));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public void testHasAReadableDescription(){
  assertDescription("String_Node_Str",allOf(equalTo("String_Node_Str"),equalTo("String_Node_Str"),equalTo("String_Node_Str")));
}