nus-yam/ex-repair huggingface dataset:
Program: 60341
Project: 60341
Buggy source:
public void setJarContext(Class<?> classInSameJar){
  this.classInJar=classInSameJar;
}

Fixed version (ground truth):
public void setJarContext(Object ctx){
  this.resourceContext=ctx;
}
Program: 60342
Project: 60342
Buggy source:
private InputStream fishForTemplate(String resourcePath){
  String cp=System.getProperty("String_Node_Str");
  if (cp == null)   return null;
  String[] jars=cp.split("String_Node_Str");
  if (jars == null)   return null;
  for (  String jar : jars) {
    if (jar.endsWith("String_Node_Str")) {
      String resourceURL="String_Node_Str" + jar + "String_Node_Str"+ resourcePath;
      try {
        URL url=new URL(resourceURL);
        InputStream in=url.openStream();
        if (in != null)         return in;
      }
 catch (      MalformedURLException e) {
      }
catch (      IOException e) {
      }
    }
  }
  return null;
}

Fixed version (ground truth):
private InputStream fishForTemplate(String resourcePath){
  if (resourceContext != null) {
    InputStream in=fishForTemplateInContext(resourcePath);
    if (in != null)     return in;
  }
  String cp=System.getProperty("String_Node_Str");
  if (cp == null)   return null;
  String[] jars=cp.split("String_Node_Str");
  if (jars == null)   return null;
  for (  String jar : jars) {
    if (jar.endsWith("String_Node_Str")) {
      InputStream in=peekInsideJar("String_Node_Str" + jar,resourcePath);
      if (in != null)       return in;
    }
  }
  return null;
}
Program: 60344
Project: 60344
Buggy source:
/** 
 * If your templates are packaged into a jar with your application code, then you should use this method to tell chunk where your templates are. Chunk might still be able to find your templates but it will work a lot harder.  Without this info, it has to peek into every jar in the classpath every time.
 * @param classInSameJar
 */
public void setJarContext(Class<?> classInSameJar){
  if (themeLayers != null) {
    for (    TemplateSet layer : themeLayers) {
      layer.setJarContext(classInSameJar);
    }
  }
}

Fixed version (ground truth):
public void setJarContext(Object ctx){
  if (themeLayers != null) {
    for (    TemplateSet layer : themeLayers) {
      layer.setJarContext(ctx);
    }
  }
}
Program: 60345
Project: 60345
Buggy source:
public Theme(String themesFolder,String themeLayerNames,String ext){
  char lastChar=themesFolder.charAt(themesFolder.length() - 1);
  char fs=System.getProperty("String_Node_Str").charAt(0);
  if (lastChar != '\\' && lastChar != '/' && lastChar != fs) {
    themesFolder+=fs;
  }
  this.themesFolder=themesFolder;
  String[] layerNames=parseLayerNames(themeLayerNames);
  if (layerNames == null) {
    TemplateSet simple=new TemplateSet(themesFolder,ext,0);
    themeLayers.add(simple);
  }
 else {
    for (int i=0; i < layerNames.length; i++) {
      TemplateSet x=new TemplateSet(this.themesFolder + layerNames[i],ext,0);
      x.signalFailureWithNull();
      themeLayers.add(x);
    }
  }
}

Fixed version (ground truth):
public Theme(String themesFolder,String themeLayerNames,String ext){
  char lastChar=themesFolder.charAt(themesFolder.length() - 1);
  char fs=System.getProperty("String_Node_Str").charAt(0);
  if (lastChar != '\\' && lastChar != '/' && lastChar != fs) {
    themesFolder+=fs;
  }
  this.themesFolder=themesFolder;
  String[] layerNames=parseLayerNames(themeLayerNames);
  if (layerNames == null) {
    TemplateSet simple=new TemplateSet(themesFolder,ext,0);
    themeLayers.add(simple);
  }
 else {
    for (int i=0; i < layerNames.length; i++) {
      TemplateSet x=new TemplateSet(this.themesFolder + layerNames[i],ext,0);
      x.setLayerName(layerNames[i]);
      x.signalFailureWithNull();
      themeLayers.add(x);
    }
  }
}
Program: 60346
Project: 60346
Buggy source:
public void search(){
  setListShown(false);
  searchThread=new Thread(new Runnable(){
    @Override public void run(){
      try {
        final List<File> results=searchDir(showHidden,mDirectory);
        runOnUiThread(new Runnable(){
          @Override public void run(){
            if (searchThread.isInterrupted())             return;
            Collections.sort(results,getComparator());
            mAdapter.set(results);
            setListShown(true);
          }
        }
);
      }
 catch (      final Exception e) {
        e.printStackTrace();
        runOnUiThread(new Runnable(){
          @Override public void run(){
            if (mDirectory.isRemote()) {
              ((DrawerActivity)getActivity()).disableFab(false);
            }
            try {
              String message=e.getMessage();
              if (message.trim().isEmpty())               message=getString(R.string.error);
              setEmptyText(message);
              setListShown(true);
            }
 catch (            IllegalStateException e) {
              e.printStackTrace();
            }
          }
        }
);
      }
    }
  }
);
}

Fixed version (ground truth):
public void search(){
  setListShown(false);
  searchThread=new Thread(new Runnable(){
    @Override public void run(){
      try {
        final List<File> results=searchDir(showHidden,mDirectory);
        runOnUiThread(new Runnable(){
          @Override public void run(){
            if (searchThread.isInterrupted())             return;
            Collections.sort(results,getComparator());
            mAdapter.set(results);
            setListShown(true);
          }
        }
);
      }
 catch (      final Exception e) {
        e.printStackTrace();
        runOnUiThread(new Runnable(){
          @Override public void run(){
            if (mDirectory.isRemote()) {
              ((DrawerActivity)getActivity()).disableFab(false);
            }
            try {
              String message=e.getMessage();
              if (message.trim().isEmpty())               message=getString(R.string.error);
              setEmptyText(message);
              setListShown(true);
            }
 catch (            IllegalStateException e) {
              e.printStackTrace();
            }
          }
        }
);
      }
    }
  }
);
  searchThread.start();
}
Program: 60347
Project: 60347
Buggy source:
@Override public void onPause(){
  super.onPause();
  searchThread.interrupt();
  try {
    getActivity().unregisterReceiver(mReceiver);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void onPause(){
  super.onPause();
  if (searchThread != null)   searchThread.interrupt();
  try {
    getActivity().unregisterReceiver(mReceiver);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 60348
Project: 60348
Buggy source:
@Override public void onItemClicked(int index,File file){
  if (file.isDirectory()) {
    ((DrawerActivity)getActivity()).switchDirectory(file,false);
  }
 else {
    if (((DrawerActivity)getActivity()).pickMode) {
      Activity act=getActivity();
      Intent intent=act.getIntent().setData(Uri.fromFile(file.toJavaFile()));
      act.setResult(Activity.RESULT_OK,intent);
      act.finish();
    }
 else {
      Utils.openFile((DrawerActivity)getActivity(),file,false);
    }
  }
}

Fixed version (ground truth):
@Override public void onItemClicked(int index,File file){
  if (file.isDirectory()) {
    ((DrawerActivity)getActivity()).switchDirectory(file,false);
  }
 else {
    if (((DrawerActivity)getActivity()).pickMode) {
      Activity act=getActivity();
      Intent intent=act.getIntent().setData(Uri.fromFile(file.toJavaFile()));
      act.setResult(Activity.RESULT_OK,intent);
      act.finish();
    }
 else {
      if (file.getExtension().equals("String_Node_Str")) {
        final File fFile=file;
        CustomDialog.create(getActivity(),R.string.unzip,getString(R.string.auto_unzip_prompt),android.R.string.ok,0,android.R.string.cancel,new CustomDialog.ClickListener(){
          @Override public void onPositive(          int which,          View view){
            List<File> files=new ArrayList<File>();
            files.add(fFile);
            Unzipper.unzip(DirectoryFragment.this,files,null);
          }
          @Override public void onNeutral(){
          }
          @Override public void onNegative(){
            Utils.openFile((DrawerActivity)getActivity(),fFile,false);
          }
        }
).show(getFragmentManager(),"String_Node_Str");
      }
 else {
        Utils.openFile((DrawerActivity)getActivity(),file,false);
      }
    }
  }
}
Program: 60349
Project: 60349
Buggy source:
public NavigationDrawerAdapter(Activity context,ClickListener listener){
  mContext=context;
  mItems=new ArrayList<Shortcuts.Item>();
  mListener=listener;
  if (Shortcuts.getAll(context).size() == 0) {
    LocalFile item=new LocalFile(context);
    Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,Environment.getExternalStorageDirectory());
    Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
    if (item.existsSync())     Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
    if (item.existsSync())     Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
    if (item.existsSync())     Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
    if (item.existsSync())     Shortcuts.add(context,new Shortcuts.Item(item));
  }
  reload(context);
}

Fixed version (ground truth):
public NavigationDrawerAdapter(Activity context,ClickListener listener){
  mContext=context;
  mItems=new ArrayList<Shortcuts.Item>();
  mListener=listener;
  if (Shortcuts.getAll(context).size() == 0) {
    LocalFile item=new LocalFile(context);
    Shortcuts.add(context,new Shortcuts.Item(item));
    item=new LocalFile(context,Environment.getExternalStorageDirectory());
    Shortcuts.add(context,new Shortcuts.Item(item));
    try {
      item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
      if (item.existsSync())       Shortcuts.add(context,new Shortcuts.Item(item));
      item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
      if (item.existsSync())       Shortcuts.add(context,new Shortcuts.Item(item));
      item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
      if (item.existsSync())       Shortcuts.add(context,new Shortcuts.Item(item));
      item=new LocalFile(context,new java.io.File(Environment.getExternalStorageDirectory(),"String_Node_Str"));
      if (item.existsSync())       Shortcuts.add(context,new Shortcuts.Item(item));
    }
 catch (    Exception e) {
      Toast.makeText(context,e.getLocalizedMessage(),Toast.LENGTH_SHORT).show();
    }
  }
  reload(context);
}
Program: 60350
Project: 60350
Buggy source:
@Override public void run(){
  Utils.showErrorDialog(getContext(),R.string.failed_delete_file,e);
  if (callback != null)   callback.onError(null);
}

Fixed version (ground truth):
@Override public void run(){
  callback.onError(e);
}
Program: 60351
Project: 60351
Buggy source:
public boolean deleteSync(){
  boolean val=new java.io.File(getPath()).delete();
  notifyMediaScannerService(this);
  return val;
}

Fixed version (ground truth):
@Override public boolean deleteSync(){
  boolean val=new java.io.File(getPath()).delete();
  notifyMediaScannerService(this);
  return val;
}
Program: 60352
Project: 60352
Buggy source:
@Override public void delete(final SftpClient.CompletionCallback callback){
  if (requiresRoot()) {
    new Thread(new Runnable(){
      @Override public void run(){
        try {
          runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
          getContext().runOnUiThread(new Runnable(){
            @Override public void run(){
              if (callback != null)               callback.onComplete();
            }
          }
);
        }
 catch (        final Exception e) {
          e.printStackTrace();
          getContext().runOnUiThread(new Runnable(){
            @Override public void run(){
              Utils.showErrorDialog(getContext(),R.string.failed_delete_file,e);
              if (callback != null)               callback.onError(null);
            }
          }
);
        }
      }
    }
).start();
  }
 else {
    java.io.File mFile=new java.io.File(getPath());
    if (mFile.isDirectory()) {
      try {
        wipeDirectory(this,callback);
      }
 catch (      Exception e) {
      }
    }
 else     if (mFile.delete()) {
      if (callback != null)       callback.onComplete();
    }
 else {
      Utils.showErrorDialog(getContext(),R.string.failed_delete_file,new Exception("String_Node_Str"));
      if (callback != null)       callback.onError(null);
    }
  }
}

Fixed version (ground truth):
@Override public void delete(final SftpClient.CompletionCallback callback){
  if (requiresRoot()) {
    new Thread(new Runnable(){
      @Override public void run(){
        try {
          RootFile.runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
          getContext().runOnUiThread(new Runnable(){
            @Override public void run(){
              if (callback != null)               callback.onComplete();
            }
          }
);
        }
 catch (        final Exception e) {
          e.printStackTrace();
          getContext().runOnUiThread(new Runnable(){
            @Override public void run(){
              Utils.showErrorDialog(getContext(),R.string.failed_delete_file,e);
              if (callback != null)               callback.onError(null);
            }
          }
);
        }
      }
    }
).start();
  }
 else {
    java.io.File mFile=new java.io.File(getPath());
    if (mFile.isDirectory()) {
      try {
        wipeDirectory(this,callback);
      }
 catch (      Exception e) {
      }
    }
 else     if (mFile.delete()) {
      if (callback != null)       callback.onComplete();
    }
 else {
      Utils.showErrorDialog(getContext(),R.string.failed_delete_file,new Exception("String_Node_Str"));
      if (callback != null)       callback.onError(null);
    }
  }
}
Program: 60353
Project: 60353
Buggy source:
@Override public void createFile(final SftpClient.CompletionCallback callback){
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        if (requiresRoot()) {
          runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
        }
 else         if (!toJavaFile().createNewFile())         throw new Exception("String_Node_Str");
        callback.onComplete();
      }
 catch (      Exception e) {
        e.printStackTrace();
        callback.onError(e);
      }
    }
  }
).start();
}

Fixed version (ground truth):
@Override public void createFile(final SftpClient.CompletionCallback callback){
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        if (requiresRoot()) {
          RootFile.runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
        }
 else         if (!toJavaFile().createNewFile())         throw new Exception("String_Node_Str");
        callback.onComplete();
      }
 catch (      Exception e) {
        e.printStackTrace();
        callback.onError(e);
      }
    }
  }
).start();
}
Program: 60354
Project: 60354
Buggy source:
@Override public boolean existsSync(){
  java.io.File mFile=new java.io.File(getPath());
  return mFile.exists() && isDirectory() == mFile.isDirectory();
}

Fixed version (ground truth):
@Override public boolean existsSync() throws Exception {
  if (requiresRoot()) {
    String cmd;
    if (isDirectory()) {
      cmd="String_Node_Str" + getPath() + "String_Node_Str";
    }
 else {
      cmd="String_Node_Str" + getPath() + "String_Node_Str";
    }
    return Integer.parseInt(RootFile.runAsRoot(cmd).get(0)) == 1;
  }
  java.io.File mFile=new java.io.File(getPath());
  return mFile.exists() && isDirectory() == mFile.isDirectory();
}
Program: 60355
Project: 60355
Buggy source:
public List<File> listFilesSync(boolean includeHidden,FileFilter filter){
  java.io.File[] list;
  if (filter != null)   list=new java.io.File(getPath()).listFiles(filter);
 else   list=new java.io.File(getPath()).listFiles();
  if (list == null || list.length == 0)   return new ArrayList<File>();
  List<File> results=new ArrayList<File>();
  for (  java.io.File local : list) {
    if (!includeHidden && (local.isHidden() || local.getName().startsWith("String_Node_Str")))     continue;
    LocalFile file=new LocalFile(getContext(),local);
    if (filter != null)     file.isSearchResult=true;
    results.add(file);
  }
  return results;
}

Fixed version (ground truth):
public List<File> listFilesSync(boolean includeHidden,FileFilter filter) throws Exception {
  List<File> results=new ArrayList<File>();
  if (requiresRoot()) {
    List<String> response=RootFile.runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
    return LsParser.parse(getContext(),getPath(),response,filter,includeHidden).getFiles();
  }
 else {
    java.io.File[] list;
    if (filter != null)     list=new java.io.File(getPath()).listFiles();
 else     list=new java.io.File(getPath()).listFiles();
    if (list == null || list.length == 0)     return new ArrayList<File>();
    for (    java.io.File local : list) {
      if (!includeHidden && (local.isHidden() || local.getName().startsWith("String_Node_Str")))       continue;
      LocalFile file=new LocalFile(getContext(),local);
      if (filter != null) {
        if (filter.accept(file)) {
          file.isSearchResult=true;
          results.add(file);
        }
      }
 else       results.add(file);
    }
  }
  return results;
}
Program: 60356
Project: 60356
Buggy source:
@Override public void listFiles(boolean includeHidden,final ArrayCallback callback){
  List<File> results=listFilesSync(includeHidden);
  callback.onComplete(results != null ? results.toArray(new File[results.size()]) : null);
}

Fixed version (ground truth):
@Override public void listFiles(final boolean includeHidden,final ArrayCallback callback){
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        final List<File> results=listFilesSync(includeHidden);
        getContext().runOnUiThread(new Runnable(){
          @Override public void run(){
            callback.onComplete(results != null ? results.toArray(new File[results.size()]) : null);
          }
        }
);
      }
 catch (      final Exception e) {
        e.printStackTrace();
        getContext().runOnUiThread(new Runnable(){
          @Override public void run(){
            callback.onError(e);
          }
        }
);
      }
    }
  }
).start();
}
Program: 60357
Project: 60357
Buggy source:
public void mkdirSync() throws Exception {
  if (requiresRoot()) {
    runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
  }
 else {
    new java.io.File(getPath()).mkdirs();
  }
  if (!new java.io.File(getPath()).exists())   throw new Exception("String_Node_Str");
}

Fixed version (ground truth):
public void mkdirSync() throws Exception {
  if (requiresRoot()) {
    RootFile.runAsRoot("String_Node_Str" + getPath() + "String_Node_Str");
  }
 else {
    new java.io.File(getPath()).mkdirs();
  }
  if (!new java.io.File(getPath()).exists())   throw new Exception("String_Node_Str");
}
Program: 60358
Project: 60358
Buggy source:
private LocalFile copySync(java.io.File file,java.io.File newFile) throws Exception {
  LocalFile dest=(LocalFile)Utils.checkDuplicatesSync(getContext(),new LocalFile(getContext(),newFile));
  if (requiresRoot()) {
    runAsRoot("String_Node_Str" + file.getAbsolutePath() + "String_Node_Str"+ dest.getPath()+ "String_Node_Str");
    return dest;
  }
  InputStream in=new FileInputStream(file);
  OutputStream out=new FileOutputStream(dest.toJavaFile());
  byte[] buf=new byte[1024];
  int len;
  while ((len=in.read(buf)) > 0) {
    out.write(buf,0,len);
  }
  in.close();
  out.close();
  File scanFile=new LocalFile(getContext(),newFile);
  notifyMediaScannerService(scanFile);
  return dest;
}

Fixed version (ground truth):
private LocalFile copySync(java.io.File file,java.io.File newFile) throws Exception {
  LocalFile dest=(LocalFile)Utils.checkDuplicatesSync(getContext(),new LocalFile(getContext(),newFile));
  if (requiresRoot()) {
    RootFile.runAsRoot("String_Node_Str" + file.getAbsolutePath() + "String_Node_Str"+ dest.getPath()+ "String_Node_Str");
    return dest;
  }
  InputStream in=new FileInputStream(file);
  OutputStream out=new FileOutputStream(dest.toJavaFile());
  byte[] buf=new byte[1024];
  int len;
  while ((len=in.read(buf)) > 0) {
    out.write(buf,0,len);
  }
  in.close();
  out.close();
  File scanFile=new LocalFile(getContext(),newFile);
  notifyMediaScannerService(scanFile);
  return dest;
}
Program: 60359
Project: 60359
Buggy source:
public List<File> searchRecursive(boolean includeHidden,FileFilter filter){
  java.io.File mFile=new java.io.File(getPath());
  Log.v("String_Node_Str","String_Node_Str" + mFile.getAbsolutePath());
  List<File> all=listFilesSync(includeHidden);
  if (all == null || all.size() == 0) {
    Log.v("String_Node_Str","String_Node_Str" + mFile.getAbsolutePath());
    return null;
  }
  List<File> matches=new ArrayList<File>();
  matches.addAll(listFilesSync(includeHidden,filter));
  for (  File fi : all) {
    List<File> subResults=((LocalFile)fi).searchRecursive(includeHidden,filter);
    if (subResults != null && subResults.size() > 0)     matches.addAll(subResults);
  }
  return matches;
}

Fixed version (ground truth):
public List<File> searchRecursive(boolean includeHidden,FileFilter filter) throws Exception {
  java.io.File mFile=new java.io.File(getPath());
  Log.v("String_Node_Str","String_Node_Str" + mFile.getAbsolutePath());
  List<File> all=listFilesSync(includeHidden);
  if (all == null || all.size() == 0) {
    Log.v("String_Node_Str","String_Node_Str" + mFile.getAbsolutePath());
    return null;
  }
  List<File> matches=new ArrayList<File>();
  matches.addAll(listFilesSync(includeHidden,filter));
  for (  File fi : all) {
    List<File> subResults=((LocalFile)fi).searchRecursive(includeHidden,filter);
    if (subResults != null && subResults.size() > 0)     matches.addAll(subResults);
  }
  return matches;
}
Program: 60361
Project: 60361
Buggy source:
@Override public void exists(BooleanCallback callback){
  callback.onComplete(existsSync());
}

Fixed version (ground truth):
@Override public void exists(final BooleanCallback callback){
  new Thread(new Runnable(){
    @Override public void run(){
      try {
        final boolean exists=existsSync();
        getContext().runOnUiThread(new Runnable(){
          @Override public void run(){
            if (callback != null)             callback.onComplete(exists);
          }
        }
);
      }
 catch (      final Exception e) {
        e.printStackTrace();
        getContext().runOnUiThread(new Runnable(){
          @Override public void run(){
            Utils.showErrorDialog(getContext(),R.string.error,e);
            if (callback != null)             callback.onError(null);
          }
        }
);
      }
    }
  }
).start();
}
Program: 60362
Project: 60362
Buggy source:
public BaseFileCab invalidateFab(){
  Log.v("String_Node_Str","String_Node_Str");
  boolean hide=false;
  Log.v("String_Node_Str","String_Node_Str" + canPaste());
  getContext().fabPasteMode=canPaste();
  if (canPaste() != PasteMode.NOT_AVAILABLE) {
    if (isActive() && canPaste() == PasteMode.DISABLED) {
      Log.v("String_Node_Str","String_Node_Str");
    }
 else {
      if (getFiles().size() == 0)       Log.v("String_Node_Str","String_Node_Str");
      if (!canPasteIntoSameDir()) {
        for (        File fi : getFiles()) {
          Log.v("String_Node_Str","String_Node_Str" + fi.getParent().getPath() + "String_Node_Str"+ getDirectory().getPath());
          if (fi.getParent().equals(getDirectory())) {
            Log.v("String_Node_Str","String_Node_Str");
            hide=true;
            break;
          }
        }
      }
    }
    if (hide)     Log.v("String_Node_Str","String_Node_Str");
 else     Log.v("String_Node_Str","String_Node_Str");
  }
 else   Log.v("String_Node_Str","String_Node_Str");
  getContext().disableFab(hide);
  getContext().fab.setDrawable(getContext().getResources().getDrawable(canPaste() == BaseFileCab.PasteMode.ENABLED ? R.drawable.ic_paste : R.drawable.ic_add));
  return this;
}

Fixed version (ground truth):
public BaseFileCab invalidateFab(){
  Log.v("String_Node_Str","String_Node_Str");
  boolean hide=false;
  if (!canShowFab()) {
    Log.v("String_Node_Str","String_Node_Str");
    hide=true;
  }
 else {
    Log.v("String_Node_Str","String_Node_Str" + canPaste());
    getContext().fabPasteMode=canPaste();
    if (canPaste() != PasteMode.NOT_AVAILABLE) {
      if (isActive() && canPaste() == PasteMode.DISABLED) {
        Log.v("String_Node_Str","String_Node_Str");
      }
 else {
        if (getFiles().size() == 0)         Log.v("String_Node_Str","String_Node_Str");
        if (!canPasteIntoSameDir()) {
          for (          File fi : getFiles()) {
            Log.v("String_Node_Str","String_Node_Str" + fi.getParent().getPath() + "String_Node_Str"+ getDirectory().getPath());
            if (fi.getParent().equals(getDirectory())) {
              Log.v("String_Node_Str","String_Node_Str");
              hide=true;
              break;
            }
          }
        }
      }
      if (hide)       Log.v("String_Node_Str","String_Node_Str");
 else       Log.v("String_Node_Str","String_Node_Str");
    }
 else     Log.v("String_Node_Str","String_Node_Str");
  }
  getContext().disableFab(hide);
  getContext().fab.setDrawable(getContext().getResources().getDrawable(canPaste() == BaseFileCab.PasteMode.ENABLED ? R.drawable.ic_paste : R.drawable.ic_add));
  return this;
}
Program: 60364
Project: 60364
Buggy source:
@Override public void onPositive(int which,View view){
  file.delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      if (Shortcuts.remove(getActivity(),file))       ((DrawerActivity)getActivity()).reloadNavDrawer();
      mAdapter.remove(file);
    }
    @Override public void onError(    Exception e){
    }
  }
);
}

Fixed version (ground truth):
@Override public void onPositive(int which,View view){
  file.delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      if (Shortcuts.remove(getActivity(),file))       ((DrawerActivity)getActivity()).reloadNavDrawer();
      DrawerActivity act=(DrawerActivity)getActivity();
      if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
        ((BaseFileCab)act.getCab()).removeFile(file);
      }
      mAdapter.remove(file);
    }
    @Override public void onError(    Exception e){
    }
  }
);
}
Program: 60365
Project: 60365
Buggy source:
@Override public void onComplete(){
  if (Shortcuts.remove(getActivity(),file))   ((DrawerActivity)getActivity()).reloadNavDrawer();
  mAdapter.remove(file);
}

Fixed version (ground truth):
@Override public void onComplete(){
  if (Shortcuts.remove(getActivity(),file))   ((DrawerActivity)getActivity()).reloadNavDrawer();
  DrawerActivity act=(DrawerActivity)getActivity();
  if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
    ((BaseFileCab)act.getCab()).removeFile(file);
  }
  mAdapter.remove(file);
}
Program: 60367
Project: 60367
Buggy source:
public void remove(File file){
  for (int i=0; i < mFiles.size(); i++) {
    if (mFiles.get(i).getPath().equals(file.getPath())) {
      mFiles.remove(i);
      break;
    }
  }
  notifyDataSetChanged();
}

Fixed version (ground truth):
public void remove(File file,boolean notify){
  for (int i=0; i < mFiles.size(); i++) {
    if (mFiles.get(i).getPath().equals(file.getPath())) {
      Log.v("String_Node_Str","String_Node_Str" + mFiles.get(i).getPath());
      mFiles.remove(i);
      break;
    }
  }
  if (notify)   notifyDataSetChanged();
}
Program: 60368
Project: 60368
Buggy source:
@Override public void onComplete(){
  getFragment().mAdapter.remove(getFiles().get(0));
  getFiles().remove(0);
  deleteNextFile();
}

Fixed version (ground truth):
@Override public void onComplete(){
  getFragment().mAdapter.remove(getFiles().get(0),false);
  getFiles().remove(0);
  deleteNextFile();
}
Program: 60369
Project: 60369
Buggy source:
@Override public void onPositive(int which,View view){
  deleteNextFile();
  finish();
}

Fixed version (ground truth):
@Override public void onPositive(int which,View view){
  deleteNextFile();
}
Program: 60370
Project: 60370
Buggy source:
private void deleteNextFile(){
  if (getFiles().size() == 0) {
    getFragment().setListShown(true);
    invalidate();
    return;
  }
  getFiles().get(0).delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      getFragment().mAdapter.remove(getFiles().get(0));
      getFiles().remove(0);
      deleteNextFile();
    }
    @Override public void onError(    Exception e){
    }
  }
);
}

Fixed version (ground truth):
private void deleteNextFile(){
  Log.v("String_Node_Str","String_Node_Str");
  if (getFiles().size() == 0) {
    Log.v("String_Node_Str","String_Node_Str");
    getFragment().setListShown(true);
    invalidate();
    return;
  }
  Log.v("String_Node_Str","String_Node_Str" + getFiles().get(0));
  getFiles().get(0).delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      getFragment().mAdapter.remove(getFiles().get(0),false);
      getFiles().remove(0);
      deleteNextFile();
    }
    @Override public void onError(    Exception e){
    }
  }
);
}
Program: 60372
Project: 60372
Buggy source:
protected final void setEmptyText(final String text){
  runOnUiThread(new Runnable(){
    @Override public void run(){
      View v=getView();
      if (v != null) {
        ((TextView)v.findViewById(android.R.id.empty)).setText(text);
      }
    }
  }
);
}

Fixed version (ground truth):
protected final void setEmptyText(final String text){
  runOnUiThread(new Runnable(){
    @Override public void run(){
      View v=getView();
      if (v != null) {
        ((TextView)v.findViewById(R.id.emptyText)).setText(text);
      }
    }
  }
);
}
Program: 60373
Project: 60373
Buggy source:
public final void setListShown(boolean shown){
  View v=getView();
  if (v != null) {
    if (shown) {
      v.findViewById(R.id.listFrame).setVisibility(View.VISIBLE);
      v.findViewById(android.R.id.progress).setVisibility(View.GONE);
      boolean showEmpty=mAdapter.getItemCount() == 0;
      v.findViewById(android.R.id.empty).setVisibility(showEmpty ? View.VISIBLE : View.GONE);
      v.findViewById(android.R.id.list).setVisibility(showEmpty ? View.GONE : View.VISIBLE);
    }
 else {
      v.findViewById(R.id.listFrame).setVisibility(View.GONE);
      v.findViewById(android.R.id.progress).setVisibility(View.VISIBLE);
    }
  }
}

Fixed version (ground truth):
public final void setListShown(boolean shown){
  View v=getView();
  if (v != null) {
    if (shown) {
      v.findViewById(R.id.listFrame).setVisibility(View.VISIBLE);
      v.findViewById(android.R.id.progress).setVisibility(View.GONE);
      boolean showEmpty=mAdapter.getItemCount() == 0;
      v.findViewById(android.R.id.empty).setVisibility(showEmpty ? View.VISIBLE : View.GONE);
      ((RecyclerView)v.findViewById(android.R.id.list)).setAdapter(mAdapter);
    }
 else {
      v.findViewById(R.id.listFrame).setVisibility(View.GONE);
      v.findViewById(android.R.id.progress).setVisibility(View.VISIBLE);
    }
  }
}
Program: 60374
Project: 60374
Buggy source:
@Override public void onPositive(int which,View view){
  file.delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      if (Shortcuts.remove(getActivity(),file))       ((DrawerActivity)getActivity()).reloadNavDrawer();
      DrawerActivity act=(DrawerActivity)getActivity();
      if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
        ((BaseFileCab)act.getCab()).removeFile(file);
      }
      mAdapter.remove(file);
    }
    @Override public void onError(    Exception e){
    }
  }
);
}

Fixed version (ground truth):
@Override public void onPositive(int which,View view){
  file.delete(new SftpClient.CompletionCallback(){
    @Override public void onComplete(){
      if (Shortcuts.remove(getActivity(),file))       ((DrawerActivity)getActivity()).reloadNavDrawer();
      DrawerActivity act=(DrawerActivity)getActivity();
      if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
        ((BaseFileCab)act.getCab()).removeFile(file);
      }
      mAdapter.remove(file,true);
    }
    @Override public void onError(    Exception e){
    }
  }
);
}
Program: 60375
Project: 60375
Buggy source:
@Override public void onComplete(){
  if (Shortcuts.remove(getActivity(),file))   ((DrawerActivity)getActivity()).reloadNavDrawer();
  DrawerActivity act=(DrawerActivity)getActivity();
  if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
    ((BaseFileCab)act.getCab()).removeFile(file);
  }
  mAdapter.remove(file);
}

Fixed version (ground truth):
@Override public void onComplete(){
  if (Shortcuts.remove(getActivity(),file))   ((DrawerActivity)getActivity()).reloadNavDrawer();
  DrawerActivity act=(DrawerActivity)getActivity();
  if (act.getCab() != null && act.getCab() instanceof BaseFileCab) {
    ((BaseFileCab)act.getCab()).removeFile(file);
  }
  mAdapter.remove(file,true);
}
Program: 60377
Project: 60377
Buggy source:
@Override public boolean onPrepareActionMode(ActionMode actionMode,Menu menu){
  boolean showUnzip=true;
  boolean showShare=true;
  for (  File fi : getFiles()) {
    if (fi.isDirectory())     showShare=false;
 else     if (!fi.getExtension().equals("String_Node_Str")) {
      showUnzip=false;
    }
  }
  menu.findItem(R.id.zip).setTitle(showUnzip ? R.string.unzip : R.string.zip);
  menu.findItem(R.id.share).setVisible(showShare);
  return super.onPrepareActionMode(actionMode,menu);
}

Fixed version (ground truth):
@Override public boolean onPrepareActionMode(ActionMode actionMode,Menu menu){
  boolean showUnzip=true;
  boolean showShare=true;
  for (  File fi : getFiles()) {
    if (fi.isDirectory()) {
      showShare=false;
      showUnzip=false;
    }
 else     if (!fi.getExtension().equals("String_Node_Str")) {
      showUnzip=false;
    }
  }
  menu.findItem(R.id.zip).setTitle(showUnzip ? R.string.unzip : R.string.zip);
  menu.findItem(R.id.share).setVisible(showShare);
  return super.onPrepareActionMode(actionMode,menu);
}
Program: 60378
Project: 60378
Buggy source:
public APKIconDownloader(Context context,int connectTimeout,int readTimeout){
  super(context,connectTimeout,readTimeout);
  mContext=context;
}

Fixed version (ground truth):
public APKIconDownloader(Context context){
  super(context);
  mContext=context;
}
Program: 60379
Project: 60379
Buggy source:
@Override public void onCreate(Bundle savedInstanceState){
  mDirectory=(File)getArguments().getSerializable("String_Node_Str");
  mQuery=getArguments().getString("String_Node_Str");
  super.onCreate(savedInstanceState);
  setHasOptionsMenu(true);
  if (mQuery != null)   mQuery=mQuery.trim();
  showHidden=Utils.getShowHidden(getActivity());
  sorter=Utils.getSorter(getActivity());
}

Fixed version (ground truth):
@Override public void onCreate(Bundle savedInstanceState){
  mDirectory=(File)getArguments().getSerializable("String_Node_Str");
  mQuery=getArguments().getString("String_Node_Str");
  super.onCreate(savedInstanceState);
  if (mQuery != null)   mQuery=mQuery.trim();
  showHidden=Utils.getShowHidden(getActivity());
  sorter=Utils.getSorter(getActivity());
}
Program: 60381
Project: 60381
Buggy source:
private void processIntent(Intent intent){
  if (intent.hasExtra("String_Node_Str")) {
    mRemoteSwitch=(CloudFile)intent.getSerializableExtra("String_Node_Str");
    if (mNetworkService != null) {
      switchDirectory(mRemoteSwitch,true);
      displayDisconnectPrompt();
      mRemoteSwitch=null;
    }
  }
 else {
    if (!PreferenceManager.getDefaultSharedPreferences(this).getBoolean("String_Node_Str",false)) {
      getFragmentManager().beginTransaction().replace(R.id.container,new WelcomeFragment()).commit();
    }
 else {
      switchDirectory(null,true);
    }
  }
}

Fixed version (ground truth):
private void processIntent(Intent intent,Bundle savedInstanceState){
  if (intent.hasExtra("String_Node_Str")) {
    mRemoteSwitch=(CloudFile)intent.getSerializableExtra("String_Node_Str");
    if (mNetworkService != null) {
      switchDirectory(mRemoteSwitch,true);
      displayDisconnectPrompt();
      mRemoteSwitch=null;
    }
  }
 else   if (savedInstanceState == null) {
    if (!PreferenceManager.getDefaultSharedPreferences(this).getBoolean("String_Node_Str",false)) {
      getFragmentManager().beginTransaction().replace(R.id.container,new WelcomeFragment()).commit();
    }
 else {
      switchDirectory(null,true);
    }
  }
}
Program: 60383
Project: 60383
Buggy source:
@Override protected void onNewIntent(Intent intent){
  super.onNewIntent(intent);
  processIntent(intent);
}

Fixed version (ground truth):
@Override protected void onNewIntent(Intent intent){
  super.onNewIntent(intent);
  processIntent(intent,null);
}
Program: 60384
Project: 60384
Buggy source:
public ClVariable getCenterY(){
  if (centerY == null) {
    centerY=new ClVariable();
    solver.addConstraint(new ClLinearEquation(centerY,new ClLinearExpression(getWidth()).divide(2).plus(getY()),ClStrength.required));
  }
  return centerY;
}

Fixed version (ground truth):
public ClVariable getCenterY(){
  if (centerY == null) {
    centerY=new ClVariable();
    solver.addConstraint(new ClLinearEquation(centerY,new ClLinearExpression(getHeight()).divide(2).plus(getY()),ClStrength.required));
  }
  return centerY;
}
Program: 60385
Project: 60385
Buggy source:
public TileData loadTile(MapTile tile){
  TileData tileData1=dataSource1.loadTile(tile);
  TileData tileData2=dataSource2.loadTile(tile);
  if (tileData1 == null) {
    return tileData2;
  }
  if (tileData2 == null) {
    return tileData1;
  }
  com.nutiteq.graphics.Bitmap tileBitmap1=new com.nutiteq.graphics.Bitmap(tileData1.getData(),false);
  com.nutiteq.graphics.Bitmap tileBitmap2=new com.nutiteq.graphics.Bitmap(tileData2.getData(),false);
  Bitmap bitmap1=BitmapUtils.createAndroidBitmapFromBitmap(tileBitmap1);
  Bitmap bitmap2=BitmapUtils.createAndroidBitmapFromBitmap(tileBitmap2);
  if (paint == null) {
    paint=new Paint(Paint.FILTER_BITMAP_FLAG);
  }
  Canvas canvas=new Canvas(bitmap1);
  canvas.drawBitmap(bitmap2,null,new Rect(0,0,bitmap1.getWidth(),bitmap1.getHeight()),paint);
  return new TileData(BitmapUtils.createBitmapFromAndroidBitmap(bitmap1).compressToInternal());
}

Fixed version (ground truth):
public TileData loadTile(MapTile tile){
  TileData tileData1=dataSource1.loadTile(tile);
  TileData tileData2=dataSource2.loadTile(tile);
  if (tileData1 == null) {
    return tileData2;
  }
  if (tileData2 == null) {
    return tileData1;
  }
  com.nutiteq.graphics.Bitmap tileBitmap1=com.nutiteq.graphics.Bitmap.createFromCompressed(tileData1.getData(),false);
  com.nutiteq.graphics.Bitmap tileBitmap2=com.nutiteq.graphics.Bitmap.createFromCompressed(tileData2.getData(),false);
  Bitmap bitmap1=BitmapUtils.createAndroidBitmapFromBitmap(tileBitmap1);
  Bitmap bitmap2=BitmapUtils.createAndroidBitmapFromBitmap(tileBitmap2);
  if (paint == null) {
    paint=new Paint(Paint.FILTER_BITMAP_FLAG);
  }
  Canvas canvas=new Canvas(bitmap1);
  canvas.drawBitmap(bitmap2,null,new Rect(0,0,bitmap1.getWidth(),bitmap1.getHeight()),paint);
  return new TileData(BitmapUtils.createBitmapFromAndroidBitmap(bitmap1).compressToInternal());
}
Program: 60386
Project: 60386
Buggy source:
private void updateBaseLayer(){
  String styleAssetName=vectorStyleName + "String_Node_Str";
  boolean styleBuildings3D=false;
  if (vectorStyleName.equals("String_Node_Str")) {
    styleAssetName="String_Node_Str";
    styleBuildings3D=true;
  }
  UnsignedCharVector styleBytes=AssetUtils.loadBytes(styleAssetName);
  if (styleBytes != null) {
    MBVectorTileStyleSet vectorTileStyleSet=new MBVectorTileStyleSet(styleBytes);
    vectorTileDecoder=new MBVectorTileDecoder(vectorTileStyleSet);
    vectorTileDecoder.setStyleParameter("String_Node_Str",vectorStyleLang);
    if (styleAssetName.equals("String_Node_Str")) {
      vectorTileDecoder.setStyleParameter("String_Node_Str",styleBuildings3D);
    }
    TileDataSource vectorTileDataSource=createTileDataSource();
    if (baseLayer != null) {
      mapView.getLayers().remove(baseLayer);
    }
    baseLayer=new VectorTileLayer(vectorTileDataSource,vectorTileDecoder);
    mapView.getLayers().insert(0,baseLayer);
  }
 else {
    Log.e(Const.LOG_TAG,"String_Node_Str" + vectorStyleName);
  }
}

Fixed version (ground truth):
private void updateBaseLayer(){
  String styleAssetName=vectorStyleName + "String_Node_Str";
  boolean styleBuildings3D=false;
  if (vectorStyleName.equals("String_Node_Str")) {
    styleAssetName="String_Node_Str";
    styleBuildings3D=true;
  }
  UnsignedCharVector styleBytes=AssetUtils.loadBytes(styleAssetName);
  if (styleBytes != null) {
    MBVectorTileStyleSet vectorTileStyleSet=new MBVectorTileStyleSet(styleBytes);
    vectorTileDecoder=new MBVectorTileDecoder(vectorTileStyleSet);
    vectorTileDecoder.setStyleParameter("String_Node_Str",vectorStyleLang);
    if (styleAssetName.equals("String_Node_Str")) {
      vectorTileDecoder.setStyleParameter("String_Node_Str",styleBuildings3D);
    }
    if (vectorTileDataSource == null) {
      vectorTileDataSource=createTileDataSource();
    }
    if (baseLayer != null) {
      mapView.getLayers().remove(baseLayer);
    }
    baseLayer=new VectorTileLayer(vectorTileDataSource,vectorTileDecoder);
    mapView.getLayers().insert(0,baseLayer);
  }
 else {
    Log.e(Const.LOG_TAG,"String_Node_Str" + vectorStyleName);
  }
}
Program: 60388
Project: 60388
Buggy source:
public Builder resource(final String resource){
switch (getInstance().getType()) {
case PROPAGATION:
case PULL:
case PUSH:
    getInstance().setResource(resource);
  return this;
default :
throw new IllegalArgumentException("String_Node_Str" + getInstance().getType());
}
}

Fixed version (ground truth):
public Builder resource(final String resource){
  getInstance().setResource(resource);
  return this;
}
Program: 60389
Project: 60389
Buggy source:
public Builder entityKey(final String entityKey){
switch (getInstance().getType()) {
case PROPAGATION:
case NOTIFICATION:
    getInstance().setEntityKey(entityKey);
  return this;
default :
throw new IllegalArgumentException("String_Node_Str" + getInstance().getType());
}
}

Fixed version (ground truth):
public Builder entityKey(final String entityKey){
  getInstance().setEntityKey(entityKey);
  return this;
}
Program: 60390
Project: 60390
Buggy source:
public Builder anyTypeKind(final AnyTypeKind anyTypeKind){
switch (getInstance().getType()) {
case PROPAGATION:
case NOTIFICATION:
    getInstance().setAnyTypeKind(anyTypeKind);
  return this;
default :
throw new IllegalArgumentException("String_Node_Str" + getInstance().getType());
}
}

Fixed version (ground truth):
public Builder anyTypeKind(final AnyTypeKind anyTypeKind){
  getInstance().setAnyTypeKind(anyTypeKind);
  return this;
}
Program: 60391
Project: 60391
Buggy source:
public Builder notification(final String notification){
switch (getInstance().getType()) {
case NOTIFICATION:
    getInstance().setNotification(notification);
  return this;
default :
throw new IllegalArgumentException("String_Node_Str" + getInstance().getType());
}
}

Fixed version (ground truth):
public Builder notification(final String notification){
  getInstance().setNotification(notification);
  return this;
}
Program: 60392
Project: 60392
Buggy source:
/** 
 * Invalidates the access token of the requesting user.
 * @return an empty response if operation was successful
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") Response logout();

Fixed version (ground truth):
/** 
 * Invalidates the access token of the requesting user.
 * @return an empty response if operation was successful
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response logout();
Program: 60393
Project: 60393
Buggy source:
/** 
 * Returns an empty response bearing the X-Syncope-Token header value, with extended lifetime. The provided value is a signed JSON Web Token.
 * @return an empty response bearing the X-Syncope-Token header value, with extended lifetime
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") Response refresh();

Fixed version (ground truth):
/** 
 * Returns an empty response bearing the X-Syncope-Token header value, with extended lifetime. The provided value is a signed JSON Web Token.
 * @return an empty response bearing the X-Syncope-Token header value, with extended lifetime
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response refresh();
Program: 60394
Project: 60394
Buggy source:
/** 
 * Returns an empty response bearing the X-Syncope-Token header value, in case of successful authentication. The provided value is a signed JSON Web Token.
 * @return empty response bearing the X-Syncope-Token header value, in case of successful authentication
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") Response login();

Fixed version (ground truth):
/** 
 * Returns an empty response bearing the X-Syncope-Token header value, in case of successful authentication. The provided value is a signed JSON Web Token.
 * @return empty response bearing the X-Syncope-Token header value, in case of successful authentication
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str")}) @POST @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response login();
Program: 60395
Project: 60395
Buggy source:
/** 
 * Returns a paged list of existing access tokens matching the given query.
 * @param query query conditions
 * @return paged list of existing access tokens matching the given query
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str"),@Authorization(value="String_Node_Str")}) @GET PagedResult<AccessTokenTO> list(@BeanParam AccessTokenQuery query);

Fixed version (ground truth):
/** 
 * Returns a paged list of existing access tokens matching the given query.
 * @param query query conditions
 * @return paged list of existing access tokens matching the given query
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str"),@Authorization(value="String_Node_Str")}) @GET @Consumes({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) PagedResult<AccessTokenTO> list(@BeanParam AccessTokenQuery query);
Program: 60396
Project: 60396
Buggy source:
/** 
 * Invalidates the access token matching the provided key.
 * @param key access token key
 * @return an empty response if operation was successful
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str"),@Authorization(value="String_Node_Str")}) @DELETE @Path("String_Node_Str") Response delete(@PathParam("String_Node_Str") String key);

Fixed version (ground truth):
/** 
 * Invalidates the access token matching the provided key.
 * @param key access token key
 * @return an empty response if operation was successful
 */
@ApiOperation(value="String_Node_Str",authorizations={@Authorization(value="String_Node_Str"),@Authorization(value="String_Node_Str")}) @DELETE @Path("String_Node_Str") @Produces({MediaType.APPLICATION_JSON,MediaType.APPLICATION_XML}) Response delete(@PathParam("String_Node_Str") String key);