nus-yam/ex-repair huggingface dataset:
Program: 88756
Project: 88756
Buggy source:
private void showDatabaseExportDialog(){
  dbSaveDialog=new Dialog(ConfigActivity.this,android.R.style.Theme_Holo_Light_Dialog);
  dbSaveDialog.setTitle(getString(R.string.dbbackup));
  dbSaveDialog.setContentView(R.layout.savedb);
  android.view.WindowManager.LayoutParams params2=dbSaveDialog.getWindow().getAttributes();
  params2.width=LayoutParams.MATCH_PARENT;
  dbSaveDialog.getWindow().setAttributes(params2);
  dbSaveDialog.setCancelable(true);
  dbSaveDialog.setCanceledOnTouchOutside(true);
  exportFile=(EditText)dbSaveDialog.findViewById(R.id.fileName);
  Button closeBtn=(Button)dbSaveDialog.findViewById(R.id.closeBtn);
  closeBtn.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      dbSaveDialog.dismiss();
    }
  }
);
  Button exportButton=(Button)dbSaveDialog.findViewById(R.id.saveBtn);
  exportButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View arg0){
      dbSaveDialog.dismiss();
      mHandler.post(exportDB);
    }
  }
);
  SimpleDateFormat timeStamp=new SimpleDateFormat("String_Node_Str",Locale.getDefault());
  exportFile.setText(timeStamp.format(Calendar.getInstance().getTime()) + "String_Node_Str" + "String_Node_Str"+ DataHelper.DATABASE_VERSION+ "String_Node_Str");
  dbSaveDialog.show();
}

Fixed version (ground truth):
private void showDatabaseExportDialog(){
  dbSaveDialog=new Dialog(ConfigActivity.this,android.R.style.Theme_Holo_Light_Dialog);
  dbSaveDialog.setTitle(getString(R.string.dbbackup));
  dbSaveDialog.setContentView(R.layout.savedb);
  android.view.WindowManager.LayoutParams params2=dbSaveDialog.getWindow().getAttributes();
  params2.width=LayoutParams.MATCH_PARENT;
  dbSaveDialog.getWindow().setAttributes(params2);
  dbSaveDialog.setCancelable(true);
  dbSaveDialog.setCanceledOnTouchOutside(true);
  exportFile=(EditText)dbSaveDialog.findViewById(R.id.fileName);
  Button closeBtn=(Button)dbSaveDialog.findViewById(R.id.closeBtn);
  closeBtn.setOnClickListener(new OnClickListener(){
    public void onClick(    View v){
      dbSaveDialog.dismiss();
    }
  }
);
  Button exportButton=(Button)dbSaveDialog.findViewById(R.id.saveBtn);
  exportButton.setOnClickListener(new OnClickListener(){
    public void onClick(    View arg0){
      dbSaveDialog.dismiss();
      exportFileString=exportFile.getText().toString();
      mHandler.post(exportDB);
    }
  }
);
  SimpleDateFormat timeStamp=new SimpleDateFormat("String_Node_Str",Locale.getDefault());
  exportFile.setText(timeStamp.format(Calendar.getInstance().getTime()) + "String_Node_Str" + "String_Node_Str"+ DataHelper.DATABASE_VERSION+ "String_Node_Str");
  dbSaveDialog.show();
}
Program: 88757
Project: 88757
Buggy source:
@Override public void onCheckedChanged(CompoundButton arg0,boolean position){
  if (holder.visible.isChecked()) {
    MainActivity.dt.updateTraitVisibility(holder.name.getText().toString(),true);
  }
 else {
    MainActivity.dt.updateTraitVisibility(holder.name.getText().toString(),false);
  }
  TraitEditorActivity.loadData();
  MainActivity.reloadData=true;
}

Fixed version (ground truth):
@Override public void onCheckedChanged(CompoundButton arg0,boolean position){
  if (holder.visible.isChecked()) {
    MainActivity.dt.updateTraitVisibility(holder.name.getText().toString(),true);
  }
 else {
    MainActivity.dt.updateTraitVisibility(holder.name.getText().toString(),false);
  }
}
Program: 88758
Project: 88758
Buggy source:
@Override public boolean onTouch(View v,MotionEvent event){
  if (event.getAction() == MotionEvent.ACTION_DOWN) {
    DragSortListView drag=(DragSortListView)parent;
    drag.startDrag(position,DragSortListView.DRAG_POS_Y | DragSortListView.DRAG_NEG_Y,0,0);
    Log.w("String_Node_Str","String_Node_Str");
    return true;
  }
 else   if (event.getAction() == MotionEvent.ACTION_UP) {
    DragSortListView drag=(DragSortListView)parent;
    drag.stopDrag(false);
    Log.w("String_Node_Str","String_Node_Str");
    return true;
  }
 else   return false;
}

Fixed version (ground truth):
@Override public boolean onTouch(View v,MotionEvent event){
  if (event.getAction() == MotionEvent.ACTION_DOWN) {
    DragSortListView drag=(DragSortListView)parent;
    drag.startDrag(position,DragSortListView.DRAG_POS_Y | DragSortListView.DRAG_NEG_Y,0,0);
    Log.w("String_Node_Str","String_Node_Str");
    return true;
  }
 else   if (event.getAction() == MotionEvent.ACTION_UP) {
    DragSortListView drag=(DragSortListView)parent;
    drag.stopDrag(false);
    TraitEditorActivity.loadData();
    MainActivity.reloadData=true;
    Log.w("String_Node_Str","String_Node_Str");
    return true;
  }
 else   return false;
}
Program: 88762
Project: 88762
Buggy source:
private void moveAllFilesInDirectory(Path from,Path to) throws MojoExecutionException {
  try {
    Files.createDirectories(to);
    for (    File file : from.toFile().listFiles()) {
      mojo.getLog().info("String_Node_Str" + file + "String_Node_Str"+ to.resolve(file.toPath().getFileName()));
      Files.move(file.toPath(),to.resolve(file.toPath().getFileName()));
    }
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + quote(from) + "String_Node_Str"+ quote(to),e);
  }
}

Fixed version (ground truth):
private void moveAllFilesInDirectory(Path from,Path to) throws MojoExecutionException {
  try {
    Files.createDirectories(to);
    for (    File file : from.toFile().listFiles()) {
      mojo.getLog().info("String_Node_Str" + file + "String_Node_Str"+ to.resolve(file.toPath().getFileName()));
      FileUtils.forceDelete(to.resolve(file.toPath().getFileName()).toFile());
      Files.move(file.toPath(),to.resolve(file.toPath().getFileName()));
    }
  }
 catch (  Exception e) {
    throw new RuntimeException("String_Node_Str" + quote(from) + "String_Node_Str"+ quote(to),e);
  }
}
Program: 88763
Project: 88763
Buggy source:
void assertDriverIsInstalled(String driverFileName){
  boolean foundDriverFile=false;
  boolean foundDriverVersionFile=false;
  for (  File file : mojo.installationDirectory.listFiles()) {
    if (file.getName().equals(driverFileName)) {
      foundDriverFile=true;
    }
    if (file.getName().equals(driverFileName.replace("String_Node_Str","String_Node_Str") + "String_Node_Str")) {
      foundDriverVersionFile=true;
    }
  }
  if (!foundDriverFile) {
    fail("String_Node_Str" + driverFileName + "String_Node_Str"+ System.lineSeparator()+ Utils.debugInfo(mojo));
  }
  if (!foundDriverVersionFile) {
    fail("String_Node_Str" + driverFileName + "String_Node_Str"+ System.lineSeparator()+ Utils.debugInfo(mojo));
  }
}

Fixed version (ground truth):
void assertDriverIsInstalled(String driverFileName,String version){
  boolean foundDriverFile=false;
  boolean foundDriverVersionFile=false;
  String versionFilename=driverFileName.replace("String_Node_Str","String_Node_Str") + "String_Node_Str";
  for (  File file : mojo.installationDirectory.listFiles()) {
    if (file.getName().equals(driverFileName)) {
      foundDriverFile=true;
    }
    if (file.getName().equals(versionFilename)) {
      foundDriverVersionFile=true;
      if (version != null) {
        try {
          String versionFileString=FileUtils.readFileToString(file);
          if (!versionFileString.contains("String_Node_Str" + version + "String_Node_Str")) {
            fail("String_Node_Str" + version + "String_Node_Str"+ versionFileString);
          }
        }
 catch (        IOException e) {
          fail("String_Node_Str" + versionFilename);
        }
      }
    }
  }
  if (!foundDriverFile) {
    fail("String_Node_Str" + driverFileName + "String_Node_Str"+ System.lineSeparator()+ Utils.debugInfo(mojo));
  }
  if (!foundDriverVersionFile) {
    fail("String_Node_Str" + versionFilename + "String_Node_Str"+ System.lineSeparator()+ Utils.debugInfo(mojo));
  }
}
Program: 88764
Project: 88764
Buggy source:
private void printXmlFileContetIfPresentInDonwloadedFile(Path downloadFilePath){
  try {
    List<String> fileContent=Files.readAllLines(Paths.get("String_Node_Str"),StandardCharsets.UTF_8);
    if (fileContent.get(0).startsWith("String_Node_Str")) {
      mojo.getLog().info("String_Node_Str");
      for (      String line : fileContent) {
        mojo.getLog().info("String_Node_Str" + line);
      }
    }
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
private void printXmlFileContetIfPresentInDonwloadedFile(Path downloadFilePath){
  try {
    List<String> fileContent=Files.readAllLines(downloadFilePath,StandardCharsets.UTF_8);
    if (fileContent.get(0).startsWith("String_Node_Str")) {
      mojo.getLog().info("String_Node_Str");
      for (      String line : fileContent) {
        mojo.getLog().info("String_Node_Str" + line);
      }
    }
  }
 catch (  Exception e) {
  }
}
Program: 88766
Project: 88766
Buggy source:
public void install(Driver driver,Path extractLocation) throws MojoExecutionException {
  if (directoryIsEmpty(extractLocation)) {
    throw new InstallDriversMojoExecutionException("String_Node_Str",mojo,driver);
  }
  try {
    if (directoryContainsSingleDirectory(extractLocation)) {
      moveDirectoryInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getId()));
    }
 else     if (directoryContainsSingleFile(extractLocation)) {
      moveFileInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getFileName()));
      makeExecutable(Paths.get(mojo.installationDirectory.getPath(),driver.getFileName()));
    }
 else {
      moveAllFilesInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getId()));
    }
    versionHandler.writeVersionFile(driver);
  }
 catch (  Exception e) {
    throw new InstallDriversMojoExecutionException("String_Node_Str" + e.getMessage(),e,mojo,driver);
  }
}

Fixed version (ground truth):
public void install(Driver driver,Path extractLocation) throws MojoExecutionException {
  if (extractLocation.toFile().isDirectory() && directoryIsEmpty(extractLocation)) {
    throw new InstallDriversMojoExecutionException("String_Node_Str",mojo,driver);
  }
  try {
    if (isFile(extractLocation)) {
      moveFile(driver,extractLocation);
    }
 else     if (directoryContainsSingleDirectory(extractLocation)) {
      moveDirectoryInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getId()));
    }
 else     if (directoryContainsSingleFile(extractLocation)) {
      moveFileInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getFileName()));
      makeExecutable(Paths.get(mojo.installationDirectory.getPath(),driver.getFileName()));
    }
 else {
      moveAllFilesInDirectory(extractLocation,Paths.get(mojo.installationDirectory.getPath(),driver.getId()));
    }
    versionHandler.writeVersionFile(driver);
  }
 catch (  Exception e) {
    throw new InstallDriversMojoExecutionException("String_Node_Str" + e.getMessage(),e,mojo,driver);
  }
}
Program: 88767
Project: 88767
Buggy source:
public static String directoryToString(File path){
  if (!path.exists()) {
    return path + "String_Node_Str" + System.lineSeparator();
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  if (files.size() == 0) {
    return path + "String_Node_Str";
  }
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}

Fixed version (ground truth):
public static String directoryToString(File path){
  if (!path.exists()) {
    return path + "String_Node_Str" + System.lineSeparator();
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  if (files.size() == 0) {
    return path + "String_Node_Str" + System.lineSeparator();
  }
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}
Program: 88768
Project: 88768
Buggy source:
private static String getRelativePath(File file,File relativeToPath){
  return file.getAbsolutePath().replaceFirst(relativeToPath.getAbsolutePath() + File.separator,"String_Node_Str");
}

Fixed version (ground truth):
private static String getRelativePath(File file,File relativeToPath){
  return StringUtils.replaceOnce(file.getAbsolutePath(),relativeToPath.getAbsolutePath() + File.separator,"String_Node_Str");
}
Program: 88769
Project: 88769
Buggy source:
public DriverExtractor(File tempDirectory,boolean keepDownloadedWebdrivers,Log log){
  this.tempDirectory=tempDirectory;
  this.keepDownloadedWebdrivers=keepDownloadedWebdrivers;
  this.log=log;
}

Fixed version (ground truth):
public DriverExtractor(File tempDirectory,Log log){
  this.tempDirectory=tempDirectory;
  this.log=log;
}
Program: 88771
Project: 88771
Buggy source:
public void execute() throws MojoExecutionException {
  if (skip) {
    getLog().info("String_Node_Str");
  }
 else {
    Repository repository=Repository.load(repositoryUrl,getProxyFromSettings(settings,proxyId));
    getLog().info("String_Node_Str" + Utils.quote(installationDirectory));
    if (drivers.isEmpty()) {
      getLog().info("String_Node_Str");
      drivers=repository.getLatestDrivers();
    }
 else {
      getLog().info("String_Node_Str");
    }
    DriverDownloader driverDownloader=new DriverDownloader(settings,proxyId,getLog());
    DriverExtractor driverExtractor=new DriverExtractor(tempDirectory,keepDownloadedWebdrivers,getLog());
    DriverInstaller driverInstaller=new DriverInstaller(installationDirectory,getLog());
    cleanupTempDirectory();
    for (    Driver _driver : drivers) {
      Driver driver=repository.enrichDriver(_driver);
      if (driver == null) {
        continue;
      }
      getLog().info(driver.getId() + "String_Node_Str" + driver.getVersion());
      if (driverInstaller.needInstallation(driver)) {
        File downloadPath=keepDownloadedWebdrivers ? Paths.get(cacheDirectory.getPath(),driver.getIdWithVersion()).toFile() : tempDirectory;
        Path downloadLocation=driverDownloader.downloadFile(driver,downloadPath);
        Path extractLocation=driverExtractor.extractDriver(driver,downloadLocation);
        driverInstaller.install(driver,extractLocation);
        cleanupTempDirectory();
      }
 else {
        getLog().info("String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException {
  if (skip) {
    getLog().info("String_Node_Str");
  }
 else {
    Repository repository=Repository.load(repositoryUrl,getProxyFromSettings(settings,proxyId));
    getLog().info("String_Node_Str" + Utils.quote(installationDirectory));
    if (drivers.isEmpty()) {
      getLog().info("String_Node_Str");
      drivers=repository.getLatestDrivers();
    }
 else {
      getLog().info("String_Node_Str");
    }
    DriverDownloader driverDownloader=new DriverDownloader(settings,proxyId,getLog());
    DriverExtractor driverExtractor=new DriverExtractor(tempDirectory,getLog());
    DriverInstaller driverInstaller=new DriverInstaller(installationDirectory,getLog());
    cleanupTempDirectory();
    for (    Driver _driver : drivers) {
      Driver driver=repository.enrichDriver(_driver);
      if (driver == null) {
        continue;
      }
      getLog().info(driver.getId() + "String_Node_Str" + driver.getVersion());
      if (driverInstaller.needInstallation(driver)) {
        File downloadPath=keepDownloadedWebdrivers ? Paths.get(cacheDirectory.getPath(),driver.getIdWithVersion()).toFile() : tempDirectory;
        Path downloadLocation=driverDownloader.downloadFile(driver,downloadPath);
        Path extractLocation=driverExtractor.extractDriver(driver,downloadLocation);
        driverInstaller.install(driver,extractLocation);
        cleanupTempDirectory();
      }
 else {
        getLog().info("String_Node_Str");
      }
    }
  }
}
Program: 88772
Project: 88772
Buggy source:
public static String debugInfo(InstallDriversMojo mojo,Driver driver){
  return System.lineSeparator() + System.lineSeparator() + "String_Node_Str"+ driver+ System.lineSeparator()+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.installationDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.cacheDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.tempDirectory);
}

Fixed version (ground truth):
public static String debugInfo(InstallDriversMojo mojo,Driver driver){
  return System.lineSeparator() + System.lineSeparator() + "String_Node_Str"+ driver+ System.lineSeparator()+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.cacheDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.tempDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.installationDirectory);
}
Program: 88773
Project: 88773
Buggy source:
public static String directoryToString(File path){
  if (!path.exists()) {
    return quote(path) + "String_Node_Str" + System.lineSeparator();
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}

Fixed version (ground truth):
public static String directoryToString(File path){
  if (!path.exists()) {
    return path + "String_Node_Str" + System.lineSeparator();
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  if (files.size() == 0) {
    return path + "String_Node_Str";
  }
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}
Program: 88774
Project: 88774
Buggy source:
public void install(Driver driver,Path extractLocation) throws MojoExecutionException {
  if (directoryContainsSingleDirectory(extractLocation)) {
    moveDirectoryInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getId()));
  }
 else   if (directoryContainsSingleFile(extractLocation)) {
    moveFileInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getFileName()));
    makeExecutable(installationDirectory + "String_Node_Str" + driver.getFileName());
  }
 else {
    moveAllFilesInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getId()));
  }
  versionHandler.writeVersionFile(driver);
}

Fixed version (ground truth):
public void install(Driver driver,Path extractLocation) throws MojoExecutionException {
  if (directoryContainsSingleDirectory(extractLocation)) {
    moveDirectoryInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getId()));
  }
 else   if (directoryContainsSingleFile(extractLocation)) {
    moveFileInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getFileName()));
    makeExecutable(Paths.get(installationDirectory.getPath(),driver.getFileName()));
  }
 else {
    moveAllFilesInDirectory(extractLocation,Paths.get(installationDirectory.getPath(),driver.getId()));
  }
  versionHandler.writeVersionFile(driver);
}
Program: 88775
Project: 88775
Buggy source:
private static void makeExecutable(String path){
  File file=new File(path);
  if (file.exists() && !file.canExecute()) {
    file.setExecutable(true);
  }
}

Fixed version (ground truth):
private static void makeExecutable(Path path){
  File file=path.toFile();
  if (file.exists() && !file.canExecute()) {
    file.setExecutable(true);
  }
}
Program: 88776
Project: 88776
Buggy source:
private File getVersionFile(Driver driver){
  return new File(installationDirectory + "String_Node_Str" + driver.getId()+ "String_Node_Str");
}

Fixed version (ground truth):
private File getVersionFile(Driver driver){
  return Paths.get(installationDirectory.getPath(),driver.getId() + "String_Node_Str").toFile();
}
Program: 88777
Project: 88777
Buggy source:
public Path downloadFile(Driver driver,File downloadPath) throws MojoExecutionException {
  String url=driver.getUrl();
  Path downloadLocation=Paths.get(downloadPath.getPath(),driver.getFilenameFromUrl());
  File fileToDownload=downloadLocation.toFile();
  if (fileToDownload.exists()) {
    mojo.getLog().info("String_Node_Str" + downloadLocation);
  }
 else {
    mojo.getLog().info("String_Node_Str" + url + "String_Node_Str"+ downloadLocation);
    HttpClientBuilder httpClientBuilder=prepareHttpClientBuilderWithTimeoutsAndProxySettings(proxySettings);
    httpClientBuilder.setRetryHandler(new DefaultHttpRequestRetryHandler(FILE_DOWNLOAD_RETRY_ATTEMPTS,true));
    try (CloseableHttpClient httpClient=httpClientBuilder.build()){
      try (CloseableHttpResponse fileDownloadResponse=httpClient.execute(new HttpGet(url))){
        HttpEntity remoteFileStream=fileDownloadResponse.getEntity();
        copyInputStreamToFile(remoteFileStream.getContent(),fileToDownload);
      }
     }
 catch (    IOException e) {
      mojo.getLog().info("String_Node_Str" + e.getCause() + Utils.debugInfo(mojo,driver),e);
      throw new InstallDriversMojoExecutionException("String_Node_Str" + e.getCause(),e,mojo,driver);
    }
  }
  return downloadLocation;
}

Fixed version (ground truth):
public Path downloadFile(Driver driver,File downloadPath) throws MojoExecutionException {
  String url=driver.getUrl();
  Path downloadLocation=Paths.get(downloadPath.getPath(),driver.getFilenameFromUrl());
  File fileToDownload=downloadLocation.toFile();
  if (fileToDownload.exists()) {
    mojo.getLog().info("String_Node_Str" + downloadLocation);
  }
 else {
    mojo.getLog().info("String_Node_Str" + url + "String_Node_Str"+ downloadLocation);
    HttpClientBuilder httpClientBuilder=prepareHttpClientBuilderWithTimeoutsAndProxySettings(proxySettings);
    httpClientBuilder.setRetryHandler(new DefaultHttpRequestRetryHandler(FILE_DOWNLOAD_RETRY_ATTEMPTS,true));
    try (CloseableHttpClient httpClient=httpClientBuilder.build()){
      try (CloseableHttpResponse fileDownloadResponse=httpClient.execute(new HttpGet(url))){
        HttpEntity remoteFileStream=fileDownloadResponse.getEntity();
        copyInputStreamToFile(remoteFileStream.getContent(),fileToDownload);
      }
     }
 catch (    IOException e) {
      throw new InstallDriversMojoExecutionException("String_Node_Str" + e.getCause(),e,mojo,driver);
    }
  }
  return downloadLocation;
}
Program: 88779
Project: 88779
Buggy source:
public static String directoryToString(File path){
  if (!path.exists()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}

Fixed version (ground truth):
public static String directoryToString(File path){
  if (!path.exists()) {
    return "String_Node_Str" + quote(path) + "String_Node_Str";
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}
Program: 88780
Project: 88780
Buggy source:
public static String debugInfo(InstallDriversMojo mojo,Driver driver){
  return System.lineSeparator() + "String_Node_Str" + driver+ System.lineSeparator()+ "String_Node_Str"+ directoryToString(mojo.installationDirectory)+ "String_Node_Str"+ directoryToString(mojo.cacheDirectory)+ "String_Node_Str"+ directoryToString(mojo.tempDirectory);
}

Fixed version (ground truth):
public static String debugInfo(InstallDriversMojo mojo,Driver driver){
  return System.lineSeparator() + System.lineSeparator() + "String_Node_Str"+ driver+ System.lineSeparator()+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.installationDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.cacheDirectory)+ System.lineSeparator()+ "String_Node_Str"+ System.lineSeparator()+ directoryToString(mojo.tempDirectory);
}
Program: 88781
Project: 88781
Buggy source:
public static String directoryToString(File path){
  if (!path.exists()) {
    return "String_Node_Str" + quote(path) + "String_Node_Str";
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}

Fixed version (ground truth):
public static String directoryToString(File path){
  if (!path.exists()) {
    return quote(path) + "String_Node_Str" + System.lineSeparator();
  }
  if (!path.isDirectory()) {
    throw new IllegalArgumentException("String_Node_Str" + path);
  }
  Collection<File> files=FileUtils.listFiles(path,new RegexFileFilter("String_Node_Str"),DirectoryFileFilter.DIRECTORY);
  StringBuilder stringBuilder=new StringBuilder();
  stringBuilder.append(path);
  stringBuilder.append(System.lineSeparator());
  int padSize=longestPath(files,path);
  for (Iterator iterator=files.iterator(); iterator.hasNext(); ) {
    File file=(File)iterator.next();
    String relativePath=getRelativePath(file,path);
    if (iterator.hasNext()) {
      stringBuilder.append("String_Node_Str");
    }
 else {
      stringBuilder.append("String_Node_Str");
    }
    stringBuilder.append(StringUtils.rightPad(relativePath,padSize));
    stringBuilder.append(readableFileSize(file));
    stringBuilder.append(System.lineSeparator());
  }
  return stringBuilder.toString();
}
Program: 88782
Project: 88782
Buggy source:
public String filesInInstallationDirectoryAsString(){
  String installedFiles="String_Node_Str";
  for (  File file : installationDirectory.listFiles()) {
    installedFiles+="String_Node_Str" + file.getName() + System.lineSeparator();
  }
  return "String_Node_Str" + installedFiles;
}

Fixed version (ground truth):
public String filesInInstallationDirectoryAsString(){
  String installedFiles="String_Node_Str";
  for (  File file : installationDirectory.listFiles()) {
    installedFiles+="String_Node_Str" + file.getName() + System.lineSeparator();
  }
  return "String_Node_Str" + System.lineSeparator() + installedFiles;
}
Program: 88783
Project: 88783
Buggy source:
private boolean isInstalled(Driver driver){
  Path path=Paths.get(installationDirectory.getPath(),driver.getId());
  return path.toFile().exists();
}

Fixed version (ground truth):
private boolean isInstalled(Driver driver){
  Path path=Paths.get(installationDirectory.getPath(),driver.getFileName());
  return path.toFile().exists();
}
Program: 88784
Project: 88784
Buggy source:
public boolean isSameVersion(Driver driver) throws MojoExecutionException {
  try {
    String savedVersion=org.apache.commons.io.FileUtils.readFileToString(getVersionFile(driver));
    String currentVersion=createVersionString(driver);
    return savedVersion.equals(currentVersion);
  }
 catch (  IOException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
public boolean isSameVersion(Driver driver) throws MojoExecutionException {
  try {
    File versionFile=getVersionFile(driver);
    if (!versionFile.exists()) {
      return false;
    }
    String savedVersion=org.apache.commons.io.FileUtils.readFileToString(versionFile);
    String currentVersion=createVersionString(driver);
    return savedVersion.equals(currentVersion);
  }
 catch (  IOException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}
Program: 88785
Project: 88785
Buggy source:
public void execute() throws MojoExecutionException {
  tempDirectory=project.getBuild().getDirectory() + "String_Node_Str";
  if (skip) {
    getLog().info("String_Node_Str");
  }
 else {
    repository=Repository.load(repositoryUrl);
    getLog().info("String_Node_Str" + quote(installationDirectory));
    if (drivers.isEmpty()) {
      getLog().info("String_Node_Str");
      drivers=repository.getLatestDrivers();
    }
 else {
      getLog().info("String_Node_Str");
    }
    for (    Driver driver : drivers) {
      driver=repository.getDriver(driver);
      getLog().info(driver.getId() + "String_Node_Str" + driver.getVersion());
      if (driverIsNotInstalled(driver) || driverVersionIsNew(driver)) {
        cleanup();
        downloadDriver(driver);
        if (downloadedDriverIsZipped(driver)) {
          unzipDriver(driver);
        }
        if (StringUtils.isBlank(driver.getChecksum())) {
          printChecksumMissingWarning(driver);
        }
 else {
          verifyChecksum(driver);
          installDriver(driver);
        }
        cleanup();
      }
    }
  }
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException {
  tempDirectory=project.getBuild().getDirectory() + "String_Node_Str";
  if (skip) {
    getLog().info("String_Node_Str");
  }
 else {
    repository=Repository.load(repositoryUrl);
    getLog().info("String_Node_Str" + quote(installationDirectory));
    if (drivers.isEmpty()) {
      getLog().info("String_Node_Str");
      drivers=repository.getLatestDrivers();
    }
 else {
      getLog().info("String_Node_Str");
    }
    for (    Driver driver : drivers) {
      driver=repository.getDriver(driver);
      if (driver == null) {
        continue;
      }
      getLog().info(driver.getId() + "String_Node_Str" + driver.getVersion());
      if (driverIsNotInstalled(driver) || driverVersionIsNew(driver)) {
        cleanup();
        downloadDriver(driver);
        if (downloadedDriverIsZipped(driver)) {
          unzipDriver(driver);
        }
        if (StringUtils.isBlank(driver.getChecksum())) {
          printChecksumMissingWarning(driver);
        }
 else {
          verifyChecksum(driver);
          installDriver(driver);
        }
        cleanup();
      }
 else {
        getLog().info("String_Node_Str");
      }
    }
  }
}
Program: 88786
Project: 88786
Buggy source:
public String getLatestDriverVersion(String driverId){
  List<Driver> allDriverVersions=select(drivers,having(on(Driver.class).getId(),is(driverId)));
  Driver latestDriver=selectMax(allDriverVersions,on(Driver.class).getComparableVersion());
  return latestDriver.getVersion();
}

Fixed version (ground truth):
public String getLatestDriverVersion(String driverId){
  List<Driver> allDriverVersions=select(drivers,having(on(Driver.class).getId(),is(driverId)));
  Driver latestDriver=selectMax(allDriverVersions,on(Driver.class).getComparableVersion());
  if (latestDriver == null) {
    return null;
  }
  return latestDriver.getVersion();
}
Program: 88787
Project: 88787
Buggy source:
public Driver getDriver(Driver driver) throws MojoExecutionException {
  if (isBlank(driver.getName())) {
    throw new MojoExecutionException("String_Node_Str" + driver.toString());
  }
  if (!isBlank(driver.getUrl())) {
    return driver;
  }
  if (isBlank(driver.getPlatform())) {
    String platform;
    if (isMac()) {
      platform="String_Node_Str";
    }
 else     if (isLinux()) {
      platform="String_Node_Str";
    }
 else {
      platform="String_Node_Str";
    }
    driver.setPlatform(platform);
  }
  if (isBlank(driver.getBit())) {
    String bit;
    if (isLinux() && is64Bit()) {
      bit="String_Node_Str";
    }
 else {
      bit="String_Node_Str";
    }
    driver.setBit(bit);
  }
  if (isBlank(driver.getVersion())) {
    driver.setVersion(getLatestDriverVersion(driver.getId()));
  }
  try {
    return getDrivers(driver.getName(),driver.getPlatform(),driver.getBit(),driver.getVersion()).get(0);
  }
 catch (  IndexOutOfBoundsException ex) {
    throw new MojoExecutionException("String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ driver.toString());
  }
}

Fixed version (ground truth):
public Driver getDriver(Driver driver) throws MojoExecutionException {
  if (isBlank(driver.getName())) {
    throw new MojoExecutionException("String_Node_Str" + driver.toString());
  }
  if (!isBlank(driver.getUrl())) {
    return driver;
  }
  if (isBlank(driver.getPlatform())) {
    String platform;
    if (isMac()) {
      platform="String_Node_Str";
    }
 else     if (isLinux()) {
      platform="String_Node_Str";
    }
 else {
      platform="String_Node_Str";
    }
    driver.setPlatform(platform);
  }
  if (isBlank(driver.getBit())) {
    String bit;
    if (isLinux() && is64Bit()) {
      bit="String_Node_Str";
    }
 else {
      bit="String_Node_Str";
    }
    driver.setBit(bit);
  }
  if (isBlank(driver.getVersion())) {
    driver.setVersion(getLatestDriverVersion(driver.getId()));
  }
  try {
    return getDrivers(driver.getName(),driver.getPlatform(),driver.getBit(),driver.getVersion()).get(0);
  }
 catch (  IndexOutOfBoundsException ex) {
    return null;
  }
}
Program: 88788
Project: 88788
Buggy source:
/** 
 * Create a new instance of the GridView.
 */
public GridView(){
  this.getChildren().add(gridBackground);
  this.getChildren().add(rootPane);
  guidelinePane.setMouseTransparent(true);
  this.getChildren().add(guidelinePane);
  gridModel.addListener((obs,oldValue,newValue) -> {
    if (newValue != null) {
      initGridModel();
    }
  }
);
  updateCellBorder();
  cellBorderWidth.addListener((obs,oldValue,newValue) -> updateCellBorder());
  cellBorderColor.addListener((obs,oldValue,newValue) -> updateCellBorder());
}

Fixed version (ground truth):
/** 
 * Create a new instance of the GridView.
 */
public GridView(){
  this.setMinWidth(0);
  this.setMinHeight(0);
  this.getChildren().add(gridBackground);
  this.getChildren().add(rootPane);
  guidelinePane.setMouseTransparent(true);
  this.getChildren().add(guidelinePane);
  gridModel.addListener((obs,oldValue,newValue) -> {
    if (newValue != null) {
      initGridModel();
    }
  }
);
  updateCellBorder();
  cellBorderWidth.addListener((obs,oldValue,newValue) -> updateCellBorder());
  cellBorderColor.addListener((obs,oldValue,newValue) -> updateCellBorder());
}
Program: 88789
Project: 88789
Buggy source:
@Override protected void doInit() throws ResourceException {
  super.doInit();
  boolean postMethod=getMethod().equals(Method.POST);
  this.query=getQueryMd(!postMethod);
  this.perPage=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(perPage == null || perPage > 0,"String_Node_Str");
  badRequestIfNot(perPage <= query.getRowsLimit(),"String_Node_Str",query.getRowsLimit());
  this.page=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(page == null || page > 0,"String_Node_Str");
  badRequestIfNot((page == null && perPage == null) || (page != null && perPage != null),"String_Node_Str");
}

Fixed version (ground truth):
@Override protected void doInit() throws ResourceException {
  super.doInit();
  boolean postMethod=getMethod().equals(Method.POST);
  this.query=getQueryMd(!postMethod);
  this.perPage=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(perPage == null || (perPage > 0 && perPage <= query.getRowsLimit()),"String_Node_Str",query.getRowsLimit());
  this.page=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(page == null || page > 0,"String_Node_Str");
}
Program: 88791
Project: 88791
Buggy source:
@Test public void simpleTest() throws Exception {
  TableFactory tf=new XmlFolderTableFactory(dir.toString());
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  TestCase.assertNull(tf.getNext());
  List<MdTable> tables=tf.getTables();
  TestCase.assertEquals(2,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(2,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  deleteFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  deleteFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(1,tables.size());
  TestCase.assertFalse(tf.isRefresh());
}

Fixed version (ground truth):
@Test public void simpleTest() throws Exception {
  deleteFile("String_Node_Str");
  deleteFile("String_Node_Str");
  deleteFile("String_Node_Str");
  TableFactory tf=new XmlFolderTableFactory(dir.toString());
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  TestCase.assertNull(tf.getNext());
  List<MdTable> tables=tf.getTables();
  TestCase.assertEquals(2,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(2,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  deleteFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  copyFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(3,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  Thread.sleep(1000);
  deleteFile("String_Node_Str");
  TestCase.assertTrue(tf.isRefresh());
  tables=tf.getTables();
  TestCase.assertEquals(1,tables.size());
  TestCase.assertFalse(tf.isRefresh());
  deleteFile("String_Node_Str");
}
Program: 88792
Project: 88792
Buggy source:
public XmlClasspathFactory(String tablesClassPath){
  super(tablesClassPath);
  this.reflections=new Reflections(tablesClassPath,new ResourcesScanner());
}

Fixed version (ground truth):
public XmlClasspathFactory(String tablesClassPath){
  super(tablesClassPath);
  if (log.isDebugEnabled()) {
    log.debug(String.format("String_Node_Str",tablesClassPath));
  }
  this.reflections=new Reflections(tablesClassPath,new ResourcesScanner());
}
Program: 88793
Project: 88793
Buggy source:
public ServerApp(final ConnectionFactory connectionFactory,final TableFactory tableFactory,final ServerAppConfig cfg) throws Exception {
  setName("String_Node_Str");
  setDescription("String_Node_Str");
  setAuthor("String_Node_Str");
  final SchedulerFactory schedulerFactory=new StdSchedulerFactory();
  final Scheduler scheduler=schedulerFactory.getScheduler();
  this.applicationModules=new AbstractModule[]{new AbstractModule(){
    @Override protected void configure(){
      bind(ConnectionFactory.class).toInstance(connectionFactory);
      bind(TableFactory.class).toInstance(tableFactory);
      bind(CCJSqlParserManager.class).toInstance(new CCJSqlParserManager());
      install(new FactoryModuleBuilder().build(ResourceFactory.class));
      bind(JobFactory.class).to(InjectorJobFactory.class);
      bind(MetadataFactoryIf.class).to(MetadataFactory.class);
      bind(Scheduler.class).toInstance(scheduler);
      bind(ServerAppConfig.class).toInstance(cfg);
    }
  }
};
  getInjector().getInstance(MetadataFactoryIf.class).refresh();
  InjectorJobFactory.startUpdateJob(scheduler,getInjector().getInstance(InjectorJobFactory.class));
  getInjector().getInstance(CacheFactory.class);
  scheduler.start();
}

Fixed version (ground truth):
public ServerApp(final ConnectionFactory connectionFactory,final TableFactory tableFactory,final ServerAppConfig cfg) throws Exception {
  setName("String_Node_Str");
  setDescription("String_Node_Str");
  setAuthor("String_Node_Str");
  final StdSchedulerFactory schedulerFactory=new StdSchedulerFactory();
  try (InputStream in=SchedulerFactory.class.getResourceAsStream("String_Node_Str")){
    schedulerFactory.initialize(in);
  }
   final Scheduler scheduler=schedulerFactory.getScheduler();
  this.applicationModules=new AbstractModule[]{new AbstractModule(){
    @Override protected void configure(){
      bind(ConnectionFactory.class).toInstance(connectionFactory);
      bind(TableFactory.class).toInstance(tableFactory);
      bind(CCJSqlParserManager.class).toInstance(new CCJSqlParserManager());
      install(new FactoryModuleBuilder().build(ResourceFactory.class));
      bind(JobFactory.class).to(InjectorJobFactory.class);
      bind(MetadataFactoryIf.class).to(MetadataFactory.class);
      bind(Scheduler.class).toInstance(scheduler);
      bind(ServerAppConfig.class).toInstance(cfg);
    }
  }
};
  getInjector().getInstance(MetadataFactoryIf.class).refresh();
  InjectorJobFactory.startUpdateJob(scheduler,getInjector().getInstance(InjectorJobFactory.class));
  getInjector().getInstance(CacheFactory.class);
  scheduler.start();
}
Program: 88794
Project: 88794
Buggy source:
@Override protected void doInit() throws ResourceException {
  super.doInit();
  Integer row=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(row != null && row >= 0,"String_Node_Str");
  Integer col=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(col != null && col > 0 && col < query.getColumns().size(),"String_Node_Str");
  MdColumn column=query.getColumns().get(col);
  badRequestIfNot(column.getType() == MdType.BLOB || column.getType() == MdType.CLOB,"String_Node_Str",column.getType().name());
  this.handler=rf.createLobHandler(query,getQuery());
  handler.setPerPage(perPage);
  handler.setPage(page);
  handler.setColumn(col);
  handler.setRow(row);
  String mt=getParam(String.class,"String_Node_Str");
  if (mt != null) {
    this.handler.setMediaType(MediaType.valueOf(mt));
  }
}

Fixed version (ground truth):
@Override protected void doInit() throws ResourceException {
  super.doInit();
  Integer row=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(row != null && row >= 0,"String_Node_Str");
  Integer col=getAttr(Integer.class,"String_Node_Str");
  badRequestIfNot(col != null && col >= 0 && col < query.getColumns().size(),"String_Node_Str");
  MdColumn column=query.getColumns().get(col);
  badRequestIfNot(column.getType() == MdType.BLOB || column.getType() == MdType.CLOB,"String_Node_Str",column.getType().name());
  this.handler=rf.createLobHandler(query,getQuery());
  handler.setPerPage(perPage);
  handler.setPage(page);
  handler.setColumn(col);
  handler.setRow(row);
  String mt=getParam(String.class,"String_Node_Str");
  if (mt != null) {
    this.handler.setMediaType(MediaType.valueOf(mt));
  }
}
Program: 88795
Project: 88795
Buggy source:
private static String escapeStr(String s){
  String s1=s.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str");
  if (SYMBOLS_TO_WRAP.matcher(s1).matches()) {
    s1="String_Node_Str".concat(s1).concat("String_Node_Str");
  }
  return s1;
}

Fixed version (ground truth):
private static String escapeStr(String s){
  String s1=s.replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str").replaceAll("String_Node_Str","String_Node_Str");
  if (SYMBOLS_TO_WRAP.matcher(s1).find()) {
    s1="String_Node_Str".concat(s1).concat("String_Node_Str");
  }
  return s1;
}