nus-yam/ex-repair huggingface dataset:
Program: 94553
Project: 94553
Buggy source:
/** 
 * Go through each of the MapOp inputs and write the values out to disk. If the values are already on disk then this can be skipped. This may take a while.
 * @throws IOException
 * @throws JobFailedException
 */
protected void _writeInputs(Progress p) throws IOException, JobFailedException, JobCancelledException {
  ProgressHierarchy ph=new ProgressHierarchy(p);
  for (  MapOp input : _inputs) {
    if (input != null && (input instanceof VectorMapOp)) {
      if (((VectorMapOp)input).getOutputName() == null) {
        ph.createChild(1.0f);
      }
    }
  }
  _inputPaths=new ArrayList<Path>();
  int pi=0;
  for (  MapOp input : _inputs) {
    if (input != null && (input instanceof VectorMapOp)) {
      Path inputPath=new Path(((VectorMapOp)input).getOutputName());
      if (inputPath == null) {
        inputPath=new Path(HadoopFileUtils.getTempDir(),HadoopUtils.createRandomString(40) + "String_Node_Str");
        addTempFile(inputPath.toString());
        addTempFile(inputPath.toString() + "String_Node_Str");
        VectorMapOp.writeVectorOutput((InputFormatDescriptor)((VectorMapOp)input).getVectorOutput(),inputPath,getConf(),ph.getChild(pi++));
      }
      _inputPaths.add(inputPath);
    }
  }
}

Fixed version (ground truth):
/** 
 * Go through each of the MapOp inputs and write the values out to disk. If the values are already on disk then this can be skipped. This may take a while.
 * @throws IOException
 * @throws JobFailedException
 */
protected void _writeInputs(Progress p) throws IOException, JobFailedException, JobCancelledException {
  ProgressHierarchy ph=new ProgressHierarchy(p);
  for (  MapOp input : _inputs) {
    if (input != null && (input instanceof VectorMapOp)) {
      if (((VectorMapOp)input).getOutputName() == null) {
        ph.createChild(1.0f);
      }
    }
  }
  _inputPaths=new ArrayList<Path>();
  int pi=0;
  for (  MapOp input : _inputs) {
    if (input != null && (input instanceof VectorMapOp)) {
      Path inputPath=new Path(((VectorMapOp)input).getOutputName());
      if (inputPath == null) {
        inputPath=new Path(HadoopFileUtils.getTempDir(),HadoopUtils.createRandomString(40) + "String_Node_Str");
        addTempFile(inputPath.toString());
        addTempFile(inputPath.toString() + "String_Node_Str");
        VectorMapOp.writeVectorOutput((InputFormatDescriptor)((VectorMapOp)input).getVectorOutput(),inputPath,createConfiguration(),ph.getChild(pi++));
      }
      _inputPaths.add(inputPath);
    }
  }
}
Program: 94554
Project: 94554
Buggy source:
public void setupJob(final Configuration conf) throws DataProviderException {
  try {
    HadoopUtils.addJarCache(conf,getClass());
  }
 catch (  IOException e) {
    throw new DataProviderException(e);
  }
}

Fixed version (ground truth):
/** 
 * Perform Hadoop job setup that is required for using this ad hoc resource in a map/reduce job. This base class implementation adds the data plugin JAR to Hadoop's distributed cache to make it available on the cluster nodes as part of the job. So subclasses that override this method should always invoke this base class method.
 * @param job
 * @throws DataProviderException
 */
public void setupJob(final Job job) throws DataProviderException {
}
Program: 94555
Project: 94555
Buggy source:
/** 
 * Any sub-classes that need to override this method to do additional setup work should call super.setupJob(job) to perform default job setup too.
 */
@Override public void setupJob(Job job,final Properties providerProperties) throws DataProviderException {
  try {
    HadoopUtils.addJarCache(job,getClass());
    DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
    context.save(job.getConfiguration());
    for (    final String input : context.getInputs()) {
      MrsImagePyramid pyramid;
      try {
        pyramid=MrsImagePyramid.open(input,context.getProviderProperties());
      }
 catch (      IOException e) {
        throw new DataProviderException("String_Node_Str" + input,e);
      }
      final MrsImagePyramidMetadata metadata=pyramid.getMetadata();
      log.debug("String_Node_Str" + input + "String_Node_Str"+ pyramid+ "String_Node_Str"+ metadata);
      String image=metadata.getName(context.getZoomLevel());
      if (image == null) {
        log.error("String_Node_Str" + context.getZoomLevel() + "String_Node_Str"+ pyramid);
        image=metadata.getName(metadata.getMaxZoomLevel());
      }
      HadoopUtils.setMetadata(job,metadata);
    }
  }
 catch (  IOException e) {
    throw new DataProviderException("String_Node_Str" + context.toString(),e);
  }
}

Fixed version (ground truth):
/** 
 * Any sub-classes that need to override this method to do additional setup work should call super.setupJob(job) to perform default job setup too.
 */
@Override public void setupJob(Job job,final Properties providerProperties) throws DataProviderException {
  try {
    DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
    context.save(job.getConfiguration());
    for (    final String input : context.getInputs()) {
      MrsImagePyramid pyramid;
      try {
        pyramid=MrsImagePyramid.open(input,context.getProviderProperties());
      }
 catch (      IOException e) {
        throw new DataProviderException("String_Node_Str" + input,e);
      }
      final MrsImagePyramidMetadata metadata=pyramid.getMetadata();
      log.debug("String_Node_Str" + input + "String_Node_Str"+ pyramid+ "String_Node_Str"+ metadata);
      String image=metadata.getName(context.getZoomLevel());
      if (image == null) {
        log.error("String_Node_Str" + context.getZoomLevel() + "String_Node_Str"+ pyramid);
        image=metadata.getName(metadata.getMaxZoomLevel());
      }
      HadoopUtils.setMetadata(job,metadata);
    }
  }
 catch (  IOException e) {
    throw new DataProviderException("String_Node_Str" + context.toString(),e);
  }
}
Program: 94556
Project: 94556
Buggy source:
/** 
 * Sub-classes that override this method must call super.setupJob(job).
 */
@Override public void setupJob(Job job) throws DataProviderException, IOException {
  try {
    HadoopUtils.addJarCache(job,getClass());
  }
 catch (  IOException e) {
    throw new DataProviderException(e);
  }
}

Fixed version (ground truth):
/** 
 * Sub-classes that override this method must call super.setupJob(job).
 */
@Override public void setupJob(Job job) throws DataProviderException, IOException {
}
Program: 94557
Project: 94557
Buggy source:
@Override public void setupJob(final Job job,final Properties providerProperties) throws DataProviderException {
  try {
    HadoopUtils.addJarCache(job,getClass());
    DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
  }
 catch (  IOException e) {
    throw new DataProviderException(e);
  }
}

Fixed version (ground truth):
@Override public void setupJob(final Job job,final Properties providerProperties) throws DataProviderException {
  DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
}
Program: 94558
Project: 94558
Buggy source:
@Override public void setupJob(final Job job,final Properties providerProperties) throws DataProviderException {
  try {
    HadoopUtils.addJarCache(job,getClass());
    DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
  }
 catch (  IOException e) {
    throw new DataProviderException(e);
  }
}

Fixed version (ground truth):
@Override public void setupJob(final Job job,final Properties providerProperties) throws DataProviderException {
  DataProviderFactory.saveProviderPropertiesToConfig(providerProperties,job.getConfiguration());
}
Program: 94559
Project: 94559
Buggy source:
public static void addDependencies(final Configuration conf,final Class<?> clazz) throws IOException {
  if (conf.get("String_Node_Str","String_Node_Str") == "String_Node_Str") {
    return;
  }
  FileSystem fs=HadoopFileUtils.getFileSystem(conf);
  Path hdfsBase=new Path(MrGeoProperties.getInstance().getProperty(MrGeoConstants.MRGEO_HDFS_DISTRIBUTED_CACHE,"String_Node_Str"));
  Set<String> existing=new HashSet<String>(conf.getStringCollection(CLASSPATH_FILES));
  boolean developmentMode=MrGeoProperties.isDevelopmentMode();
  Set<Dependency> properties=loadDependenciesByReflection(clazz);
  if (properties != null) {
    for (    File p : getJarsFromProperties(properties,!developmentMode)) {
      addFileToClasspath(conf,existing,fs,hdfsBase,p);
    }
    for (    Dependency d : properties) {
      if (d.master) {
        Set<Dependency> master=new HashSet<Dependency>();
        master.add(d);
        for (        File m : getJarsFromProperties(master,!developmentMode)) {
          log.debug("String_Node_Str" + m.getCanonicalPath());
          conf.set("String_Node_Str",m.getCanonicalPath());
        }
      }
    }
  }
 else {
    log.warn("String_Node_Str" + clazz.getName());
  }
}

Fixed version (ground truth):
public static void addDependencies(final Configuration conf,final Class<?> clazz) throws IOException {
  if (conf.get("String_Node_Str","String_Node_Str") == "String_Node_Str") {
    return;
  }
  FileSystem fs=HadoopFileUtils.getFileSystem(conf);
  Path hdfsBase=new Path(MrGeoProperties.getInstance().getProperty(MrGeoConstants.MRGEO_HDFS_DISTRIBUTED_CACHE,"String_Node_Str"));
  Set<String> existing=getClasspath(conf);
  boolean developmentMode=MrGeoProperties.isDevelopmentMode();
  Set<Dependency> properties=loadDependenciesByReflection(clazz);
  if (properties != null) {
    for (    File p : getJarsFromProperties(properties,!developmentMode)) {
      addFileToClasspath(conf,existing,fs,hdfsBase,p);
    }
    for (    Dependency d : properties) {
      if (d.master) {
        Set<Dependency> master=new HashSet<Dependency>();
        master.add(d);
        for (        File m : getJarsFromProperties(master,!developmentMode)) {
          log.debug("String_Node_Str" + m.getCanonicalPath());
          conf.set("String_Node_Str",m.getCanonicalPath());
        }
      }
    }
  }
 else {
    log.warn("String_Node_Str" + clazz.getName());
  }
}
Program: 94560
Project: 94560
Buggy source:
private static void addClassPath(Job job,FileSystem fs,Path hdfsBase) throws IOException {
  HadoopFileUtils.create(job.getConfiguration(),hdfsBase);
  Configuration conf=job.getConfiguration();
  Set<String> existing=new HashSet<String>(conf.getStringCollection(CLASSPATH_FILES));
  String cpstr=System.getProperty("String_Node_Str");
  for (  String env : cpstr.split("String_Node_Str")) {
    addFilesToClassPath(conf,existing,fs,hdfsBase,env);
  }
}

Fixed version (ground truth):
private static void addClassPath(Job job,FileSystem fs,Path hdfsBase) throws IOException {
  HadoopFileUtils.create(job.getConfiguration(),hdfsBase);
  Configuration conf=job.getConfiguration();
  Set<String> existing=getClasspath(conf);
  String cpstr=System.getProperty("String_Node_Str");
  for (  String env : cpstr.split("String_Node_Str")) {
    addFilesToClassPath(conf,existing,fs,hdfsBase,env);
  }
}
Program: 94561
Project: 94561
Buggy source:
@Transactional public User registerNewUser(User user) throws UserExistsException {
  if (emailExist(user.getEmail())) {
    throw new UserExistsException("String_Node_Str");
  }
  if (userNameExist(user.getEmail())) {
    throw new UserExistsException("String_Node_Str");
  }
  return userRepository.save(user);
}

Fixed version (ground truth):
@Transactional public User registerNewUser(User user) throws UserExistsException {
  if (emailExist(user.getEmail())) {
    throw new UserExistsException("String_Node_Str");
  }
  if (userNameExist(user.getUserName())) {
    throw new UserExistsException("String_Node_Str");
  }
  return userRepository.save(user);
}
Program: 94562
Project: 94562
Buggy source:
@Bean public Object aliGreenJob(GreenService greenService){
  return new Object(){
    @Scheduled(fixedRate=60000) public void submitTask(){
      imgFileRepository.findByGreenStatus(0).forEach(img -> {
        String taskId=greenService.asyncDetect("String_Node_Str" + img.getShortName());
        imgFileRepository.updateTaskIdById(taskId,img.getId());
        imgFileRepository.updateGreenStatusById(1,img.getId());
      }
);
    }
    @Scheduled(fixedRate=120000) public void getResult(){
      imgFileRepository.findByGreenStatus(1).forEach(img -> {
        float checkResult=greenService.getCheckResult(img.getGreenTaskId());
        boolean porn=checkResult > 90;
        imgFileRepository.updateGreenStatusById(porn ? 3 : 4,img.getId());
        imgFileRepository.updateGreenPointById(checkResult,img.getId());
      }
);
    }
  }
;
}

Fixed version (ground truth):
@Bean public Object aliGreenJob(GreenService greenService){
  return new Object(){
    @Scheduled(fixedRate=60000) public void submitTask(){
      imgFileRepository.findByGreenStatus(0).forEach(img -> {
        String taskId=greenService.asyncDetect("String_Node_Str" + img.getShortName());
        imgFileRepository.updateTaskIdById(taskId,img.getId());
        imgFileRepository.updateGreenStatusById(1,img.getId());
      }
);
    }
    @Scheduled(fixedRate=120000) public void getResult(){
      imgFileRepository.findByGreenStatus(1).forEach(img -> {
        try {
          float checkResult=greenService.getCheckResult(img.getGreenTaskId());
          boolean porn=checkResult > 90;
          imgFileRepository.updateGreenStatusById(porn ? 3 : 5,img.getId());
          imgFileRepository.updateGreenPointById(checkResult,img.getId());
        }
 catch (        Exception e) {
          imgFileRepository.updateGreenStatusById(4,img.getId());
        }
      }
);
    }
  }
;
}
Program: 94563
Project: 94563
Buggy source:
@Scheduled(fixedRate=120000) public void getResult(){
  imgFileRepository.findByGreenStatus(1).forEach(img -> {
    float checkResult=greenService.getCheckResult(img.getGreenTaskId());
    boolean porn=checkResult > 90;
    imgFileRepository.updateGreenStatusById(porn ? 3 : 4,img.getId());
    imgFileRepository.updateGreenPointById(checkResult,img.getId());
  }
);
}

Fixed version (ground truth):
@Scheduled(fixedRate=120000) public void getResult(){
  imgFileRepository.findByGreenStatus(1).forEach(img -> {
    try {
      float checkResult=greenService.getCheckResult(img.getGreenTaskId());
      boolean porn=checkResult > 90;
      imgFileRepository.updateGreenStatusById(porn ? 3 : 5,img.getId());
      imgFileRepository.updateGreenPointById(checkResult,img.getId());
    }
 catch (    Exception e) {
      imgFileRepository.updateGreenStatusById(4,img.getId());
    }
  }
);
}
Program: 94564
Project: 94564
Buggy source:
/** 
 * change camera flash mode
 */
public final int changeFlash(){
  if (mCamera == null) {
    return -1;
  }
  Camera.Parameters parameters=mCamera.getParameters();
  List<String> FlashModes=parameters.getSupportedFlashModes();
  if (FlashModes == null) {
    return 0;
  }
  if (onCameraSelectListener != null) {
    onCameraSelectListener.onChangeFlashMode((flash_type) % 3);
  }
  Log.i(TAG,"String_Node_Str" + flash_type);
switch (flash_type % 3) {
case FLASH_ON:
    if (FlashModes.contains(Camera.Parameters.FLASH_MODE_ON)) {
      parameters.setFlashMode(Camera.Parameters.FLASH_MODE_ON);
      flash_type++;
      mCamera.setParameters(parameters);
    }
  break;
case FLASH_OFF:
if (FlashModes.contains(Camera.Parameters.FLASH_MODE_OFF)) {
  parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
  flash_type++;
  mCamera.setParameters(parameters);
}
break;
case FLASH_AUTO:
if (FlashModes.contains(Camera.Parameters.FLASH_MODE_AUTO)) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);
flash_type++;
mCamera.setParameters(parameters);
}
break;
default :
if (FlashModes.contains(Camera.Parameters.FLASH_MODE_OFF)) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
flash_type++;
mCamera.setParameters(parameters);
}
break;
}
return flash_type;
}

Fixed version (ground truth):
/** 
 * change camera flash mode
 */
public final int changeFlash(){
  if (mCamera == null) {
    return -1;
  }
  Camera.Parameters parameters=mCamera.getParameters();
  List<String> flashModes=parameters.getSupportedFlashModes();
  if (flashModes == null || flashModes.size() <= 1) {
    return 0;
  }
  if (onCameraSelectListener != null) {
    onCameraSelectListener.onChangeFlashMode((flash_type) % 3);
  }
  Log.i(TAG,"String_Node_Str" + flash_type);
switch (flash_type % 3) {
case FLASH_ON:
    if (flashModes.contains(Camera.Parameters.FLASH_MODE_ON)) {
      parameters.setFlashMode(Camera.Parameters.FLASH_MODE_ON);
      flash_type++;
      mCamera.setParameters(parameters);
    }
  break;
case FLASH_OFF:
if (flashModes.contains(Camera.Parameters.FLASH_MODE_OFF)) {
  parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
  flash_type++;
  mCamera.setParameters(parameters);
}
break;
case FLASH_AUTO:
if (flashModes.contains(Camera.Parameters.FLASH_MODE_AUTO)) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_AUTO);
flash_type++;
mCamera.setParameters(parameters);
}
break;
default :
if (flashModes.contains(Camera.Parameters.FLASH_MODE_OFF)) {
parameters.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
flash_type++;
mCamera.setParameters(parameters);
}
break;
}
return flash_type;
}
Program: 94572
Project: 94572
Buggy source:
public void setCacheDir(File cache_dir_){
  removeWorkingDirectory();
  if (cache_dir_ == null) {
    this.userSpecifiedACacheDir=false;
    try {
      this.workingDirectory=File.createTempFile("String_Node_Str","String_Node_Str");
      this.workingDirectory.createNewFile();
      this.workingDirectory.delete();
      this.workingDirectory.mkdir();
      this.workingDirectory.deleteOnExit();
      this.storageDirectory=new File(this.workingDirectory.getParent() + File.separator + "String_Node_Str");
      this.storageDirectory.mkdir();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else {
    this.userSpecifiedACacheDir=true;
    this.workingDirectory=cache_dir_;
  }
}

Fixed version (ground truth):
public void setCacheDir(File cache_dir_){
  removeWorkingDirectory();
  if (cache_dir_ == null) {
    this.userSpecifiedACacheDir=false;
    try {
      this.workingDirectory=File.createTempFile("String_Node_Str","String_Node_Str");
      this.workingDirectory.createNewFile();
      this.workingDirectory.delete();
      this.workingDirectory.mkdir();
      this.workingDirectory.deleteOnExit();
      this.storageDirectory=new File(this.workingDirectory.getParent() + File.separator + "String_Node_Str");
      this.storageDirectory.mkdir();
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
 else {
    this.userSpecifiedACacheDir=true;
    this.workingDirectory=cache_dir_;
    this.storageDirectory=cache_dir_;
  }
}
Program: 94577
Project: 94577
Buggy source:
public byte[] getLastRender(){
  try {
    HttpURLConnection httpCon=this.HTTPRequest(this.getPage("String_Node_Str"));
    InputStream inStrm=httpCon.getInputStream();
    if (httpCon.getResponseCode() != HttpURLConnection.HTTP_OK) {
      this.log.debug("String_Node_Str" + httpCon.getResponseCode());
      return null;
    }
    int size=httpCon.getContentLength();
    if (size == 0) {
      this.log.debug("String_Node_Str");
      return null;
    }
    byte[] ret=new byte[size];
    byte[] ch=new byte[512 * 1024];
    int n=0;
    int i=0;
    while ((n=inStrm.read(ch)) != -1) {
      System.arraycopy(ch,0,ret,i,n);
      i+=n;
    }
    inStrm.close();
    return ret;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
public byte[] getLastRender(){
  try {
    HttpURLConnection httpCon=this.HTTPRequest(this.getPage("String_Node_Str"));
    InputStream inStrm=httpCon.getInputStream();
    if (httpCon.getResponseCode() != HttpURLConnection.HTTP_OK) {
      this.log.debug("String_Node_Str" + httpCon.getResponseCode());
      return null;
    }
    int size=httpCon.getContentLength();
    if (size <= 0) {
      this.log.debug("String_Node_Str" + size + "String_Node_Str");
      return null;
    }
    byte[] ret=new byte[size];
    byte[] ch=new byte[512 * 1024];
    int n=0;
    int i=0;
    while ((n=inStrm.read(ch)) != -1) {
      System.arraycopy(ch,0,ret,i,n);
      i+=n;
    }
    inStrm.close();
    return ret;
  }
 catch (  Exception e) {
    System.err.println("String_Node_Str" + e);
    e.printStackTrace();
  }
  return null;
}
Program: 94580
Project: 94580
Buggy source:
public synchronized int stop(){
  this.running=false;
  this.disableErrorSending=true;
  if (this.renderingJob != null) {
    if (this.renderingJob.getProcessRender().getProcess() != null) {
      OS.getOS().kill(this.renderingJob.getProcessRender().getProcess());
      this.renderingJob.setAskForRendererKill(true);
    }
  }
  this.config.removeWorkingDirectory();
  if (this.server == null) {
    return 0;
  }
  try {
    this.server.HTTPRequest(this.server.getPage("String_Node_Str"));
  }
 catch (  IOException e) {
  }
  this.server.interrupt();
  try {
    this.server.join();
  }
 catch (  InterruptedException e) {
  }
  this.server=null;
  this.gui.stop();
  return 0;
}

Fixed version (ground truth):
public synchronized int stop(){
  this.running=false;
  this.disableErrorSending=true;
  if (this.renderingJob != null) {
    if (this.renderingJob.getProcessRender().getProcess() != null) {
      OS.getOS().kill(this.renderingJob.getProcessRender().getProcess());
      this.renderingJob.setAskForRendererKill(true);
    }
  }
  this.config.removeWorkingDirectory();
  if (this.server == null) {
    return 0;
  }
  try {
    this.server.HTTPRequest(this.server.getPage("String_Node_Str"));
  }
 catch (  IOException e) {
  }
  this.server.interrupt();
  try {
    this.server.join();
  }
 catch (  InterruptedException e) {
  }
  this.server=null;
  return 0;
}
Program: 94581
Project: 94581
Buggy source:
@Override public void start(){
  if (client != null) {
    Signal.handle(new Signal("String_Node_Str"),new SignalHandler(){
      @Override public void handle(      Signal signal){
        sigIntCount++;
        if (sigIntCount == 4) {
          System.out.println("String_Node_Str");
        }
 else         if (sigIntCount == 5) {
          Signal.raise(new Signal("String_Node_Str"));
          Runtime.getRuntime().halt(0);
        }
 else         if (client.isRunning() && client.isSuspended() == false) {
          client.askForStop();
          System.out.println("String_Node_Str");
        }
 else {
          client.stop();
        }
      }
    }
);
    client.run();
    client.stop();
  }
}

Fixed version (ground truth):
@Override public void start(){
  if (client != null) {
    Signal.handle(new Signal("String_Node_Str"),new SignalHandler(){
      @Override public void handle(      Signal signal){
        sigIntCount++;
        if (sigIntCount == 4) {
          System.out.println("String_Node_Str");
        }
 else         if (sigIntCount == 5) {
          Signal.raise(new Signal("String_Node_Str"));
          Runtime.getRuntime().halt(0);
        }
 else         if (client.isRunning() && client.isSuspended() == false) {
          client.askForStop();
          System.out.println("String_Node_Str");
        }
 else {
          client.stop();
          GuiText.this.stop();
        }
      }
    }
);
    client.run();
    client.stop();
  }
}
Program: 94582
Project: 94582
Buggy source:
@Override public void handle(Signal signal){
  sigIntCount++;
  if (sigIntCount == 4) {
    System.out.println("String_Node_Str");
  }
 else   if (sigIntCount == 5) {
    Signal.raise(new Signal("String_Node_Str"));
    Runtime.getRuntime().halt(0);
  }
 else   if (client.isRunning() && client.isSuspended() == false) {
    client.askForStop();
    System.out.println("String_Node_Str");
  }
 else {
    client.stop();
  }
}

Fixed version (ground truth):
@Override public void handle(Signal signal){
  sigIntCount++;
  if (sigIntCount == 4) {
    System.out.println("String_Node_Str");
  }
 else   if (sigIntCount == 5) {
    Signal.raise(new Signal("String_Node_Str"));
    Runtime.getRuntime().halt(0);
  }
 else   if (client.isRunning() && client.isSuspended() == false) {
    client.askForStop();
    System.out.println("String_Node_Str");
  }
 else {
    client.stop();
    GuiText.this.stop();
  }
}
Program: 94583
Project: 94583
Buggy source:
@Override public void start(){
  if (client != null) {
    Signal.handle(new Signal("String_Node_Str"),new SignalHandler(){
      @Override public void handle(      Signal signal){
        sigIntCount++;
        if (sigIntCount == 5) {
          Signal.raise(new Signal("String_Node_Str"));
          Runtime.getRuntime().halt(0);
        }
 else         if (client.isRunning() && client.isSuspended() == false) {
          client.askForStop();
          exiting=true;
        }
 else {
          client.stop();
        }
      }
    }
);
    client.run();
    client.stop();
  }
}

Fixed version (ground truth):
@Override public void start(){
  if (client != null) {
    Signal.handle(new Signal("String_Node_Str"),new SignalHandler(){
      @Override public void handle(      Signal signal){
        sigIntCount++;
        if (sigIntCount == 5) {
          Signal.raise(new Signal("String_Node_Str"));
          Runtime.getRuntime().halt(0);
        }
 else         if (client.isRunning() && client.isSuspended() == false) {
          client.askForStop();
          exiting=true;
        }
 else {
          client.stop();
          GuiTextOneLine.this.stop();
        }
      }
    }
);
    client.run();
    client.stop();
  }
}
Program: 94584
Project: 94584
Buggy source:
@Override public void handle(Signal signal){
  sigIntCount++;
  if (sigIntCount == 5) {
    Signal.raise(new Signal("String_Node_Str"));
    Runtime.getRuntime().halt(0);
  }
 else   if (client.isRunning() && client.isSuspended() == false) {
    client.askForStop();
    exiting=true;
  }
 else {
    client.stop();
  }
}

Fixed version (ground truth):
@Override public void handle(Signal signal){
  sigIntCount++;
  if (sigIntCount == 5) {
    Signal.raise(new Signal("String_Node_Str"));
    Runtime.getRuntime().halt(0);
  }
 else   if (client.isRunning() && client.isSuspended() == false) {
    client.askForStop();
    exiting=true;
  }
 else {
    client.stop();
    GuiTextOneLine.this.stop();
  }
}
Program: 94586
Project: 94586
Buggy source:
public GuiTextOneLine(){
  rendered=0;
  remaining=0;
  status="String_Node_Str";
  line="String_Node_Str";
}

Fixed version (ground truth):
public GuiTextOneLine(){
  rendered=0;
  remaining=0;
  creditsEarned=null;
  status="String_Node_Str";
  line="String_Node_Str";
}
Program: 94587
Project: 94587
Buggy source:
private void updateLine(){
  String creditsEarned=client.getServer().getCreditEarnedOnCurrentSession();
  int charToRemove=line.length();
  System.out.print("String_Node_Str");
  line=String.format("String_Node_Str",rendered,remaining,creditsEarned != null ? creditsEarned : "String_Node_Str",status + (exiting ? "String_Node_Str" : "String_Node_Str"));
  System.out.print(line);
  for (int i=line.length(); i <= charToRemove; i++) {
    System.out.print("String_Node_Str");
  }
}

Fixed version (ground truth):
private void updateLine(){
  int charToRemove=line.length();
  System.out.print("String_Node_Str");
  line=String.format("String_Node_Str",rendered,remaining,creditsEarned != null ? creditsEarned : "String_Node_Str",status + (exiting ? "String_Node_Str" : "String_Node_Str"));
  System.out.print(line);
  for (int i=line.length(); i <= charToRemove; i++) {
    System.out.print("String_Node_Str");
  }
}
Program: 94588
Project: 94588
Buggy source:
@Override public void AddFrameRendered(){
  rendered+=1;
  updateLine();
}

Fixed version (ground truth):
@Override public void AddFrameRendered(){
  rendered+=1;
  creditsEarned=client.getServer().getCreditEarnedOnCurrentSession();
  updateLine();
}
Program: 94589
Project: 94589
Buggy source:
public void showLastRender(){
  Client client=parent.getClient();
  if (client != null) {
    Server server=client.getServer();
    if (server != null) {
      byte[] data=server.getLastRender();
      if (data != null) {
        InputStream is=new ByteArrayInputStream(data);
        try {
          BufferedImage image=ImageIO.read(is);
          lastRender.setIcon(new ImageIcon(image));
        }
 catch (        IOException e) {
          System.out.println("String_Node_Str" + e);
          e.printStackTrace();
        }
      }
    }
  }
}

Fixed version (ground truth):
public void showLastRender(){
  Client client=parent.getClient();
  if (client != null) {
    Server server=client.getServer();
    if (server != null) {
      byte[] data=server.getLastRender();
      if (data != null) {
        InputStream is=new ByteArrayInputStream(data);
        try {
          BufferedImage image=ImageIO.read(is);
          if (image != null) {
            lastRender.setIcon(new ImageIcon(image));
          }
        }
 catch (        IOException e) {
          System.out.println("String_Node_Str" + e);
          e.printStackTrace();
        }
      }
    }
  }
}
Program: 94590
Project: 94590
Buggy source:
@Override public void actionPerformed(ActionEvent e){
  Client client=parent.getClient();
  if (client != null) {
    client.getRenderingJob().setAskForRendererKill(true);
    client.getRenderingJob().setUserBlockJob(true);
    OS.getOS().kill(client.getRenderingJob().getProcessRender().getProcess());
  }
}

Fixed version (ground truth):
@Override public void actionPerformed(ActionEvent e){
  Client client=parent.getClient();
  if (client != null) {
    Job job=client.getRenderingJob();
    if (job != null) {
      job.setAskForRendererKill(true);
      job.setUserBlockJob(true);
      RenderProcess process=job.getProcessRender();
      if (process != null) {
        OS.getOS().kill(process.getProcess());
      }
    }
  }
}
Program: 94591
Project: 94591
Buggy source:
@Override public CPU getCPU(){
  CPU ret=new CPU();
  try {
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("String_Node_Str");
    BufferedReader b=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line="String_Node_Str";
    while ((line=b.readLine()) != null) {
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 1) {
          ret.setName(buf[1].trim());
        }
      }
      if (line.contains("String_Node_Str") && line.contains("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        for (int i=0; i < buf.length; i++) {
          if (buf[i].contains("String_Node_Str")) {
            String family=buf[i].split("String_Node_Str")[1];
            ret.setFamily(family.split("String_Node_Str")[1]);
          }
          if (buf[i].contains("String_Node_Str")) {
            String model=buf[i].split("String_Node_Str")[1];
            ret.setModel(model.split("String_Node_Str")[1]);
          }
        }
      }
    }
    b.close();
    return ret;
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return ret;
}

Fixed version (ground truth):
@Override public CPU getCPU(){
  CPU ret=new CPU();
  try {
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("String_Node_Str");
    BufferedReader b=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line="String_Node_Str";
    while ((line=b.readLine()) != null) {
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 1) {
          ret.setName(buf[1].trim());
        }
      }
      if (line.contains("String_Node_Str") && line.contains("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        for (int i=0; i < buf.length; i++) {
          if (buf[i].contains("String_Node_Str")) {
            String family=buf[i].split("String_Node_Str")[1];
            ret.setFamily(family.split("String_Node_Str")[1]);
          }
          if (buf[i].contains("String_Node_Str")) {
            String model=buf[i].split("String_Node_Str")[1];
            ret.setModel(model.split("String_Node_Str")[1]);
          }
        }
      }
    }
    b.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  if (ret.haveData() == false) {
    Log.getInstance(null).debug("String_Node_Str");
    ret.setModel("String_Node_Str");
    ret.setFamily("String_Node_Str");
    try {
      Runtime run=Runtime.getRuntime();
      Process sysctl=run.exec("String_Node_Str");
      BufferedReader buf=new BufferedReader(new InputStreamReader(sysctl.getInputStream()));
      String name="String_Node_Str";
      name=buf.readLine();
      buf.close();
      if (name == "String_Node_Str") {
        ret.setName("String_Node_Str");
      }
 else {
        ret.setName(name);
      }
    }
 catch (    IOException e) {
      Log.getInstance(null).debug("String_Node_Str" + e);
    }
  }
  return ret;
}
Program: 94592
Project: 94592
Buggy source:
@Override public int getMemory(){
  try {
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("String_Node_Str");
    BufferedReader b=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line="String_Node_Str";
    while ((line=b.readLine()) != null) {
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 4) {
          Long mem_byte=Long.parseLong(buf[3].trim());
          return (int)(mem_byte / Long.valueOf(1024));
        }
      }
    }
    b.close();
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
  return 0;
}

Fixed version (ground truth):
@Override public int getMemory(){
  try {
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("String_Node_Str");
    BufferedReader b=new BufferedReader(new InputStreamReader(p.getInputStream()));
    String line="String_Node_Str";
    line=b.readLine();
    b.close();
    if (line.isEmpty()) {
      return 0;
    }
    Long mem_byte=Long.parseLong(line.trim());
    return (int)(mem_byte / Long.valueOf(1024));
  }
 catch (  IOException e) {
    Log.getInstance(null).debug("String_Node_Str" + e);
  }
  return 0;
}
Program: 94595
Project: 94595
Buggy source:
public static void set(String url_) throws MalformedURLException {
  URL url=new URL(url_);
  String userinfo=url.getUserInfo();
  if (userinfo != null) {
    String[] elements=userinfo.split("String_Node_Str");
    if (elements.length == 2) {
      String proxy_user=elements[0];
      String proxy_password=elements[1];
      if (proxy_user != null && proxy_password != null) {
        Authenticator.setDefault(new ProxyAuthenticator(proxy_user,proxy_password));
      }
    }
  }
  int port=url.getPort();
  if (port == -1) {
    port=8080;
  }
  System.setProperty("String_Node_Str",url.getHost());
  System.setProperty("String_Node_Str",Integer.toString(port));
  System.setProperty("String_Node_Str",url.getHost());
  System.setProperty("String_Node_Str",Integer.toString(port));
}

Fixed version (ground truth):
public static void set(String url_) throws MalformedURLException {
  if (url_ == null || url_.isEmpty()) {
    return;
  }
  URL url=new URL(url_);
  String userinfo=url.getUserInfo();
  if (userinfo != null) {
    String[] elements=userinfo.split("String_Node_Str");
    if (elements.length == 2) {
      String proxy_user=elements[0];
      String proxy_password=elements[1];
      if (proxy_user != null && proxy_password != null) {
        Authenticator.setDefault(new ProxyAuthenticator(proxy_user,proxy_password));
      }
    }
  }
  int port=url.getPort();
  if (port == -1) {
    port=8080;
  }
  System.setProperty("String_Node_Str",url.getHost());
  System.setProperty("String_Node_Str",Integer.toString(port));
  System.setProperty("String_Node_Str",url.getHost());
  System.setProperty("String_Node_Str",Integer.toString(port));
}
Program: 94596
Project: 94596
Buggy source:
private int downloadFile(Job ajob,String local_path,String md5_server,String url,String update_ui){
  File local_path_file=new File(local_path);
  if (local_path_file.exists() == false) {
    int ret=this.server.HTTPGetFile(url,local_path,this.gui,update_ui);
    if (ret != 0) {
      this.gui.error("String_Node_Str" + ret);
      return -9;
    }
  }
  String md5_local=Utils.md5(local_path);
  if (md5_local.equals(md5_server) == false) {
    this.log.error("String_Node_Str" + md5_local + "String_Node_Str"+ ajob.getRenderMd5()+ "String_Node_Str"+ new File(local_path).length()+ "String_Node_Str");
    return -10;
  }
  return 0;
}

Fixed version (ground truth):
private int downloadFile(Job ajob,String local_path,String md5_server,String url,String update_ui){
  File local_path_file=new File(local_path);
  if (local_path_file.exists() == false) {
    int ret=this.server.HTTPGetFile(url,local_path,this.gui,update_ui);
    if (ret != 0) {
      this.gui.error("String_Node_Str" + ret);
      this.log.debug("String_Node_Str" + local_path + "String_Node_Str");
      local_path_file.delete();
      return -9;
    }
  }
  String md5_local=Utils.md5(local_path);
  if (md5_local.equals(md5_server) == false) {
    this.log.error("String_Node_Str" + md5_local + "String_Node_Str"+ ajob.getRenderMd5()+ "String_Node_Str"+ new File(local_path).length()+ "String_Node_Str");
    this.log.debug("String_Node_Str" + local_path + "String_Node_Str");
    local_path_file.delete();
    return -10;
  }
  return 0;
}
Program: 94597
Project: 94597
Buggy source:
/** 
 * Merge the Settings file with the Configuration. The Configuration will have high priority.
 */
public void merge(Configuration config){
  if (config == null) {
    System.out.println("String_Node_Str");
  }
  loadFile();
  if (config.login().isEmpty() && login != null) {
    config.setLogin(login);
  }
  if (config.password().isEmpty() && password != null) {
    config.setPassword(password);
  }
  try {
    if ((config.getComputeMethod() == null && computeMethod != null) || (computeMethod != null && config.getComputeMethod() != ComputeType.valueOf(computeMethod))) {
      config.setComputeMethod(ComputeType.valueOf(computeMethod));
    }
  }
 catch (  IllegalArgumentException e) {
    System.err.println("String_Node_Str" + computeMethod + "String_Node_Str");
    computeMethod=null;
  }
  if (config.getGPUDevice() == null && gpu != null) {
    GPUDevice device=GPU.getGPUDevice(gpu);
    if (device != null) {
      config.setUseGPU(device);
    }
  }
  if (config.getNbCores() == -1 && cores != null) {
    config.setUseNbCores(Integer.valueOf(cores));
  }
  if (config.getUserSpecifiedACacheDir() == false && cacheDir != null) {
    config.setCacheDir(new File(cacheDir));
  }
  if (config.getUIType() == null && ui != null) {
    config.setUIType(ui);
  }
  config.setAutoSignIn(Boolean.valueOf(autoSignIn));
}

Fixed version (ground truth):
/** 
 * Merge the Settings file with the Configuration. The Configuration will have high priority.
 */
public void merge(Configuration config){
  if (config == null) {
    System.out.println("String_Node_Str");
  }
  loadFile();
  if (config.login().isEmpty() && login != null) {
    config.setLogin(login);
  }
  if (config.password().isEmpty() && password != null) {
    config.setPassword(password);
  }
  try {
    if ((config.getComputeMethod() == null && computeMethod != null) || (computeMethod != null && config.getComputeMethod() != ComputeType.valueOf(computeMethod))) {
      config.setComputeMethod(ComputeType.valueOf(computeMethod));
    }
  }
 catch (  IllegalArgumentException e) {
    System.err.println("String_Node_Str" + computeMethod + "String_Node_Str");
    computeMethod=null;
  }
  if (config.getGPUDevice() == null && gpu != null) {
    GPUDevice device=GPU.getGPUDevice(gpu);
    if (device != null) {
      config.setUseGPU(device);
    }
  }
  if (config.getNbCores() == -1 && cores != null) {
    config.setUseNbCores(Integer.valueOf(cores));
  }
  if (config.getUserSpecifiedACacheDir() == false && cacheDir != null && new File(cacheDir).exists()) {
    config.setCacheDir(new File(cacheDir));
  }
  if (config.getUIType() == null && ui != null) {
    config.setUIType(ui);
  }
  config.setAutoSignIn(Boolean.valueOf(autoSignIn));
}
Program: 94598
Project: 94598
Buggy source:
private boolean checkFile(Job ajob,String local_path,String md5_server){
  File local_path_file=new File(local_path);
  if (local_path_file.exists() == false) {
    this.log.error("String_Node_Str" + local_path + "String_Node_Str");
    return false;
  }
  String md5_local=Utils.md5(local_path);
  if (md5_local.equals(md5_server) == false) {
    this.log.error("String_Node_Str" + md5_local + "String_Node_Str"+ ajob.getRenderMd5()+ "String_Node_Str"+ new File(local_path).length()+ "String_Node_Str");
    return false;
  }
  return true;
}

Fixed version (ground truth):
private boolean checkFile(Job ajob,String local_path,String md5_server){
  File local_path_file=new File(local_path);
  if (local_path_file.exists() == false) {
    this.log.error("String_Node_Str" + local_path + "String_Node_Str");
    return false;
  }
  String md5_local=Utils.md5(local_path);
  if (md5_local.equals(md5_server) == false) {
    this.log.error("String_Node_Str" + md5_local + "String_Node_Str"+ md5_server+ "String_Node_Str"+ new File(local_path).length()+ "String_Node_Str");
    return false;
  }
  return true;
}
Program: 94599
Project: 94599
Buggy source:
protected Error.Type confirmJob(Job ajob){
  String extras_config="String_Node_Str";
  if (this.config.getNbCores() > 0) {
    extras_config="String_Node_Str" + this.config.getNbCores();
  }
  String url_real=String.format("String_Node_Str",this.server.getPage("String_Node_Str"),ajob.getId(),ajob.getFrameNumber(),ajob.getProcessRender().getDuration(),ajob.getRevision(),ajob.getProcessRender().getMemoryUsed(),ajob.getExtras(),extras_config);
  this.isValidatingJob=true;
  int nb_try=1;
  int max_try=3;
  ServerCode ret=ServerCode.UNKNOWN;
  while (nb_try < max_try && ret != ServerCode.OK) {
    ret=this.server.HTTPSendFile(url_real,ajob.getOutputImagePath());
switch (ret) {
case OK:
      nb_try=max_try;
    break;
case JOB_VALIDATION_ERROR_SESSION_DISABLED:
case JOB_VALIDATION_ERROR_BROKEN_MACHINE:
  return Type.SESSION_DISABLED;
case JOB_VALIDATION_ERROR_MISSING_PARAMETER:
return Error.Type.UNKNOWN;
default :
break;
}
nb_try++;
if (ret != ServerCode.OK && nb_try < max_try) {
try {
this.log.debug("String_Node_Str");
Thread.sleep(32000);
}
 catch (InterruptedException e) {
return Error.Type.UNKNOWN;
}
}
}
this.isValidatingJob=false;
File frame=new File(ajob.getOutputImagePath());
frame.delete();
ajob.setOutputImagePath(null);
this.isValidatingJob=false;
return Error.Type.OK;
}

Fixed version (ground truth):
protected Error.Type confirmJob(Job ajob){
  String extras_config="String_Node_Str";
  RenderProcess process=ajob.getProcessRender();
  if (process != null && process.getCoresUsed() > 0) {
    extras_config="String_Node_Str" + process.getCoresUsed();
  }
  String url_real=String.format("String_Node_Str",this.server.getPage("String_Node_Str"),ajob.getId(),ajob.getFrameNumber(),ajob.getProcessRender().getDuration(),ajob.getRevision(),ajob.getProcessRender().getMemoryUsed(),ajob.getExtras(),extras_config);
  this.isValidatingJob=true;
  int nb_try=1;
  int max_try=3;
  ServerCode ret=ServerCode.UNKNOWN;
  while (nb_try < max_try && ret != ServerCode.OK) {
    ret=this.server.HTTPSendFile(url_real,ajob.getOutputImagePath());
switch (ret) {
case OK:
      nb_try=max_try;
    break;
case JOB_VALIDATION_ERROR_SESSION_DISABLED:
case JOB_VALIDATION_ERROR_BROKEN_MACHINE:
  return Type.SESSION_DISABLED;
case JOB_VALIDATION_ERROR_MISSING_PARAMETER:
return Error.Type.UNKNOWN;
default :
break;
}
nb_try++;
if (ret != ServerCode.OK && nb_try < max_try) {
try {
this.log.debug("String_Node_Str");
Thread.sleep(32000);
}
 catch (InterruptedException e) {
return Error.Type.UNKNOWN;
}
}
}
this.isValidatingJob=false;
File frame=new File(ajob.getOutputImagePath());
frame.delete();
ajob.setOutputImagePath(null);
this.isValidatingJob=false;
return Error.Type.OK;
}
Program: 94601
Project: 94601
Buggy source:
public RenderProcess(){
  process=null;
  start=-1;
  end=-1;
  memoryUsed=0;
  remainingDuration=0;
}

Fixed version (ground truth):
public RenderProcess(){
  process=null;
  start=-1;
  end=-1;
  memoryUsed=0;
  coresUsed=0;
  remainingDuration=0;
}
Program: 94602
Project: 94602
Buggy source:
@Override public CPU getCPU(){
  CPU ret=new CPU();
  try {
    String filePath="String_Node_Str";
    Scanner scanner=new Scanner(new File(filePath));
    while (scanner.hasNextLine()) {
      String line=scanner.nextLine();
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 0) {
          ret.setName(buf[1].trim());
        }
      }
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 0) {
          ret.setFamily(buf[1].trim());
        }
      }
      if (line.startsWith("String_Node_Str") && line.startsWith("String_Node_Str") == false) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 0) {
          ret.setModel(buf[1].trim());
        }
      }
    }
    scanner.close();
  }
 catch (  java.lang.NoClassDefFoundError e) {
    System.err.println("String_Node_Str" + e + "String_Node_Str");
  }
catch (  Exception e) {
    e.printStackTrace();
  }
  return ret;
}

Fixed version (ground truth):
@Override public CPU getCPU(){
  CPU ret=new CPU();
  try {
    String filePath="String_Node_Str";
    Scanner scanner=new Scanner(new File(filePath));
    while (scanner.hasNextLine()) {
      String line=scanner.nextLine();
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 1) {
          ret.setName(buf[1].trim());
        }
      }
      if (line.startsWith("String_Node_Str")) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 1) {
          ret.setFamily(buf[1].trim());
        }
      }
      if (line.startsWith("String_Node_Str") && line.startsWith("String_Node_Str") == false) {
        String buf[]=line.split("String_Node_Str");
        if (buf.length > 1) {
          ret.setModel(buf[1].trim());
        }
      }
    }
    scanner.close();
  }
 catch (  java.lang.NoClassDefFoundError e) {
    System.err.println("String_Node_Str" + e + "String_Node_Str");
  }
catch (  Exception e) {
    e.printStackTrace();
  }
  return ret;
}
Program: 94604
Project: 94604
Buggy source:
public Configuration(File cache_dir_,String login_,String password_){
  this.login=login_;
  this.password=password_;
  this.static_exeDirName="String_Node_Str";
  this.maxUploadingJob=1;
  this.nbCores=-1;
  this.computeMethod=ComputeType.CPU_ONLY;
  this.GPUDevice=null;
  this.userSpecifiedACacheDir=false;
  this.workingDirectory=null;
  this.storageDirectory=null;
  this.setCacheDir(cache_dir_);
  this.printLog=false;
  this.requestTime=null;
  this.extras="String_Node_Str";
}

Fixed version (ground truth):
public Configuration(File cache_dir_,String login_,String password_){
  this.login=login_;
  this.password=password_;
  this.static_exeDirName="String_Node_Str";
  this.maxUploadingJob=1;
  this.nbCores=-1;
  this.computeMethod=null;
  this.GPUDevice=null;
  this.userSpecifiedACacheDir=false;
  this.workingDirectory=null;
  this.storageDirectory=null;
  this.setCacheDir(cache_dir_);
  this.printLog=false;
  this.requestTime=null;
  this.extras="String_Node_Str";
}