nus-yam/ex-repair huggingface dataset:
Program: 90088
Project: 90088
Buggy source:
/** 
 * Get the time this entity was updated.
 * @return The updated timestamp
 */
@JsonProperty("String_Node_Str") @JsonSerialize(using=JsonDateSerializer.class) public Date getUpdated(){
  if (this.updated == null) {
    return null;
  }
 else {
    return new Date(this.updated.getTime());
  }
}

Fixed version (ground truth):
/** 
 * Get the time this entity was updated.
 * @return The updated timestamp
 */
public Date getUpdated(){
  if (this.updated == null) {
    return null;
  }
 else {
    return new Date(this.updated.getTime());
  }
}
Program: 90089
Project: 90089
Buggy source:
/** 
 * Get when this entity was created.
 * @return The created timestamps
 */
@JsonProperty("String_Node_Str") @JsonSerialize(using=JsonDateSerializer.class) public Date getCreated(){
  if (this.created == null) {
    return null;
  }
 else {
    return new Date(this.created.getTime());
  }
}

Fixed version (ground truth):
/** 
 * Get when this entity was created.
 * @return The created timestamps
 */
public Date getCreated(){
  if (this.created == null) {
    return null;
  }
 else {
    return new Date(this.created.getTime());
  }
}
Program: 90090
Project: 90090
Buggy source:
/** 
 * Set the created timestamp. This is a No-Op. Set once by system.
 * @param created The created timestamp
 */
@JsonIgnore public void setCreated(final Date created){
  LOG.info("String_Node_Str" + created + "String_Node_Str"+ this.id+ "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Set the created timestamp. This is a No-Op. Set once by system.
 * @param created The created timestamp
 */
public void setCreated(final Date created){
  LOG.info("String_Node_Str" + created + "String_Node_Str"+ this.id+ "String_Node_Str");
  this.created=new Date(created.getTime());
}
Program: 90091
Project: 90091
Buggy source:
/** 
 * Set the time this entity was updated. This is a No-Op. Updated automatically by system.
 * @param updated The updated timestamp
 */
@JsonIgnore public void setUpdated(final Date updated){
  LOG.info("String_Node_Str" + updated + "String_Node_Str"+ this.id+ "String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Set the time this entity was updated. This is a No-Op. Updated automatically by system.
 * @param updated The updated timestamp
 */
public void setUpdated(final Date updated){
  this.updated=new Date(updated.getTime());
}
Program: 90092
Project: 90092
Buggy source:
/** 
 * Gets the tags allocated to this application.
 * @return the tags as an unmodifiable list
 */
public Set<String> getTags(){
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  return this.tags;
}

Fixed version (ground truth):
/** 
 * Gets the tags allocated to this application.
 * @return the tags
 */
public Set<String> getTags(){
  return this.tags;
}
Program: 90093
Project: 90093
Buggy source:
/** 
 * Gets the tags allocated to this cluster.
 * @return the tags as an unmodifiable list
 */
public Set<String> getTags(){
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  return this.tags;
}

Fixed version (ground truth):
/** 
 * Gets the tags allocated to this cluster.
 * @return the tags
 */
public Set<String> getTags(){
  return this.tags;
}
Program: 90094
Project: 90094
Buggy source:
/** 
 * Check to make sure everything is OK before persisting.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@PrePersist @PreUpdate protected void onCreateOrUpdateCluster() throws GeniePreconditionException {
  validate(this.status,this.clusterType,this.configs,null);
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  this.addAndValidateSystemTags(this.tags);
}

Fixed version (ground truth):
/** 
 * Check to make sure everything is OK before persisting.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@PrePersist @PreUpdate protected void onCreateOrUpdateCluster() throws GeniePreconditionException {
  validate(this.status,this.clusterType,null);
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  this.addAndValidateSystemTags(this.tags);
}
Program: 90095
Project: 90095
Buggy source:
/** 
 * Helper method to ensure that values are valid for a cluster.
 * @param status      The status of the cluster
 * @param clusterType The type of cluster
 * @param configs     The configuration files for the cluster
 * @throws GeniePreconditionException If any precondition isn't met.
 */
private void validate(final ClusterStatus status,final String clusterType,final Set<String> configs,final String error) throws GeniePreconditionException {
  final StringBuilder builder=new StringBuilder();
  if (StringUtils.isNotBlank(error)) {
    builder.append(error);
  }
  if (status == null) {
    builder.append("String_Node_Str");
  }
  if (StringUtils.isBlank(clusterType)) {
    builder.append("String_Node_Str");
  }
  if (builder.length() > 0) {
    builder.insert(0,"String_Node_Str");
    final String msg=builder.toString();
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
}

Fixed version (ground truth):
/** 
 * Helper method to ensure that values are valid for a cluster.
 * @param status      The status of the cluster
 * @param clusterType The type of cluster
 * @throws GeniePreconditionException If any precondition isn't met.
 */
private void validate(final ClusterStatus status,final String clusterType,final String error) throws GeniePreconditionException {
  final StringBuilder builder=new StringBuilder();
  if (StringUtils.isNotBlank(error)) {
    builder.append(error);
  }
  if (status == null) {
    builder.append("String_Node_Str");
  }
  if (StringUtils.isBlank(clusterType)) {
    builder.append("String_Node_Str");
  }
  if (builder.length() > 0) {
    builder.insert(0,"String_Node_Str");
    final String msg=builder.toString();
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
}
Program: 90096
Project: 90096
Buggy source:
/** 
 * Gets the tags allocated to this command.
 * @return the tags as an unmodifiable list
 */
public Set<String> getTags(){
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  return this.tags;
}

Fixed version (ground truth):
/** 
 * Gets the tags allocated to this command.
 * @return the tags
 */
public Set<String> getTags(){
  return this.tags;
}
Program: 90097
Project: 90097
Buggy source:
/** 
 * Gets the tags allocated to this job.
 * @return the tags as a list
 */
public Set<String> getTags(){
  if (this.tags == null) {
    this.tags=new HashSet<>();
  }
  return this.tags;
}

Fixed version (ground truth):
/** 
 * Gets the tags allocated to this job.
 * @return the tags
 */
public Set<String> getTags(){
  return this.tags;
}
Program: 90098
Project: 90098
Buggy source:
/** 
 * Test setting the tags.
 */
@Test public void testSetTags(){
  Assert.assertNotNull(this.a.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.a.setTags(tags);
  Assert.assertEquals(tags,this.a.getTags());
}

Fixed version (ground truth):
/** 
 * Test setting the tags.
 */
@Test public void testSetTags(){
  Assert.assertNull(this.a.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.a.setTags(tags);
  Assert.assertEquals(tags,this.a.getTags());
}
Program: 90099
Project: 90099
Buggy source:
/** 
 * Test setting the tags.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testSetTags() throws GeniePreconditionException {
  Assert.assertNotNull(this.c.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.c.setTags(tags);
  Assert.assertEquals(tags,this.c.getTags());
}

Fixed version (ground truth):
/** 
 * Test setting the tags.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testSetTags() throws GeniePreconditionException {
  Assert.assertNull(this.c.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.c.setTags(tags);
  Assert.assertEquals(tags,this.c.getTags());
}
Program: 90100
Project: 90100
Buggy source:
/** 
 * Test the argument Constructor.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testConstructor() throws GeniePreconditionException {
  this.c=new Cluster(NAME,USER,ClusterStatus.UP,CLUSTER_TYPE,this.configs,VERSION);
  Assert.assertEquals(CLUSTER_TYPE,this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertEquals(this.configs,this.c.getConfigs());
  Assert.assertEquals(NAME,this.c.getName());
  Assert.assertEquals(ClusterStatus.UP,this.c.getStatus());
  Assert.assertNotNull(this.c.getTags());
  Assert.assertEquals(USER,this.c.getUser());
  Assert.assertEquals(VERSION,this.c.getVersion());
}

Fixed version (ground truth):
/** 
 * Test the argument Constructor.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testConstructor() throws GeniePreconditionException {
  this.c=new Cluster(NAME,USER,ClusterStatus.UP,CLUSTER_TYPE,this.configs,VERSION);
  Assert.assertEquals(CLUSTER_TYPE,this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertEquals(this.configs,this.c.getConfigs());
  Assert.assertEquals(NAME,this.c.getName());
  Assert.assertEquals(ClusterStatus.UP,this.c.getStatus());
  Assert.assertNull(this.c.getTags());
  Assert.assertEquals(USER,this.c.getUser());
  Assert.assertEquals(VERSION,this.c.getVersion());
}
Program: 90101
Project: 90101
Buggy source:
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getName());
  Assert.assertNull(this.c.getStatus());
  Assert.assertNotNull(this.c.getTags());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}

Fixed version (ground truth):
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getName());
  Assert.assertNull(this.c.getStatus());
  Assert.assertNull(this.c.getTags());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}
Program: 90102
Project: 90102
Buggy source:
/** 
 * Test setting the tags.
 */
@Test public void testSetTags(){
  Assert.assertNotNull(this.c.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.c.setTags(tags);
  Assert.assertEquals(tags,this.c.getTags());
}

Fixed version (ground truth):
/** 
 * Test setting the tags.
 */
@Test public void testSetTags(){
  Assert.assertNull(this.c.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.c.setTags(tags);
  Assert.assertEquals(tags,this.c.getTags());
}
Program: 90103
Project: 90103
Buggy source:
/** 
 * Just test to make sure it doesn't try to do something weird with tags.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testOnCreateOrUpdateJobWithNotNullTags() throws GeniePreconditionException {
  Assert.assertTrue(this.job.getTags().isEmpty());
  this.job.onCreateAuditable();
  this.job.onCreateOrUpdateCommonEntityFields();
  this.job.onCreateOrUpdateJob();
  Assert.assertNotNull(this.job.getTags());
  Assert.assertNotNull(this.job.getId());
  Assert.assertNotNull(this.job.getClusterCriteriasString());
  Assert.assertNotNull(this.job.getCommandCriteriaString());
  Assert.assertFalse(this.job.getTags().contains(CommonEntityFields.GENIE_ID_TAG_NAMESPACE + this.job.getId()));
  Assert.assertFalse(this.job.getTags().contains(CommonEntityFields.GENIE_NAME_TAG_NAMESPACE + this.job.getName()));
}

Fixed version (ground truth):
/** 
 * Just test to make sure it doesn't try to do something weird with tags.
 * @throws GeniePreconditionException If any precondition isn't met.
 */
@Test public void testOnCreateOrUpdateJobWithNotNullTags() throws GeniePreconditionException {
  Assert.assertNull(this.job.getTags());
  this.job.onCreateAuditable();
  this.job.onCreateOrUpdateCommonEntityFields();
  this.job.onCreateOrUpdateJob();
  Assert.assertNotNull(this.job.getTags());
  Assert.assertNotNull(this.job.getId());
  Assert.assertNotNull(this.job.getClusterCriteriasString());
  Assert.assertNotNull(this.job.getCommandCriteriaString());
  Assert.assertFalse(this.job.getTags().contains(CommonEntityFields.GENIE_ID_TAG_NAMESPACE + this.job.getId()));
  Assert.assertFalse(this.job.getTags().contains(CommonEntityFields.GENIE_NAME_TAG_NAMESPACE + this.job.getName()));
}
Program: 90104
Project: 90104
Buggy source:
/** 
 * Test the setter and the getter for tags.
 */
@Test public void testSetGetTags(){
  Assert.assertTrue(this.job.getTags().isEmpty());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.job.setTags(tags);
  Assert.assertEquals(tags,this.job.getTags());
}

Fixed version (ground truth):
/** 
 * Test the setter and the getter for tags.
 */
@Test public void testSetGetTags(){
  Assert.assertNull(this.job.getTags());
  final Set<String> tags=new HashSet<>();
  tags.add("String_Node_Str");
  tags.add("String_Node_Str");
  this.job.setTags(tags);
  Assert.assertEquals(tags,this.job.getTags());
}
Program: 90105
Project: 90105
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void launch() throws GenieException {
  LOG.info("String_Node_Str");
  if (!this.isInitCalled()) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  final List<String> processArgs=this.createBaseProcessArguments();
  processArgs.add("String_Node_Str" + this.getCluster().getName() + "String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.addAll(Arrays.asList(StringUtil.splitCmdLine(this.getJob().getCommandArgs())));
  final ProcessBuilder processBuilder=new ProcessBuilder(processArgs);
  this.setupCommonProcess(processBuilder);
  this.setupPrestoProcess(processBuilder);
  this.launchProcess(processBuilder);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void launch() throws GenieException {
  LOG.info("String_Node_Str");
  if (!this.isInitCalled()) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  final List<String> processArgs=this.createBaseProcessArguments();
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str" + this.getCluster().getName() + "String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.addAll(Arrays.asList(StringUtil.splitCmdLine(this.getJob().getCommandArgs())));
  final ProcessBuilder processBuilder=new ProcessBuilder(processArgs);
  this.setupCommonProcess(processBuilder);
  this.setupPrestoProcess(processBuilder);
  this.launchProcess(processBuilder);
}
Program: 90106
Project: 90106
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void launch() throws GenieException {
  LOG.info("String_Node_Str");
  if (!this.isInitCalled()) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  final String prestoProtocol=ConfigurationManager.getConfigInstance().getString(PRESTO_PROTOCOL_KEY,null);
  if (prestoProtocol == null) {
    throw new GeniePreconditionException("String_Node_Str" + PRESTO_PROTOCOL_KEY);
  }
  final String prestoMasterDomain=ConfigurationManager.getConfigInstance().getString(PRESTO_MASTER_DOMAIN,null);
  if (prestoMasterDomain == null) {
    throw new GeniePreconditionException("String_Node_Str" + PRESTO_MASTER_DOMAIN);
  }
  final List<String> processArgs=this.createBaseProcessArguments();
  processArgs.add("String_Node_Str");
  processArgs.add(PRESTO_PROTOCOL_KEY + this.getCluster().getName() + PRESTO_MASTER_DOMAIN);
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.addAll(Arrays.asList(StringUtil.splitCmdLine(this.getJob().getCommandArgs())));
  final ProcessBuilder processBuilder=new ProcessBuilder(processArgs);
  this.setupCommonProcess(processBuilder);
  this.setupPrestoProcess(processBuilder);
  this.launchProcess(processBuilder);
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void launch() throws GenieException {
  LOG.info("String_Node_Str");
  if (!this.isInitCalled()) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  final String prestoProtocol=ConfigurationManager.getConfigInstance().getString(PRESTO_PROTOCOL_KEY,null);
  if (prestoProtocol == null) {
    throw new GeniePreconditionException("String_Node_Str" + PRESTO_PROTOCOL_KEY);
  }
  final String prestoMasterDomain=ConfigurationManager.getConfigInstance().getString(PRESTO_MASTER_DOMAIN,null);
  if (prestoMasterDomain == null) {
    throw new GeniePreconditionException("String_Node_Str" + PRESTO_MASTER_DOMAIN);
  }
  final List<String> processArgs=this.createBaseProcessArguments();
  processArgs.add("String_Node_Str");
  processArgs.add(prestoProtocol + this.getCluster().getName() + prestoMasterDomain);
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.add("String_Node_Str");
  processArgs.addAll(Arrays.asList(StringUtil.splitCmdLine(this.getJob().getCommandArgs())));
  final ProcessBuilder processBuilder=new ProcessBuilder(processArgs);
  this.setupCommonProcess(processBuilder);
  this.setupPrestoProcess(processBuilder);
  this.launchProcess(processBuilder);
}
Program: 90107
Project: 90107
Buggy source:
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertEquals(ApplicationStatus.INACTIVE,this.a.getStatus());
  this.a.setStatus(ApplicationStatus.ACTIVE);
  Assert.assertEquals(ApplicationStatus.ACTIVE,this.a.getStatus());
}

Fixed version (ground truth):
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertNull(this.a.getStatus());
  this.a.setStatus(ApplicationStatus.ACTIVE);
  Assert.assertEquals(ApplicationStatus.ACTIVE,this.a.getStatus());
}
Program: 90108
Project: 90108
Buggy source:
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.a.getCommands());
  Assert.assertNull(this.a.getConfigs());
  Assert.assertNull(this.a.getEnvPropFile());
  Assert.assertEquals(ApplicationStatus.INACTIVE,this.a.getStatus());
  Assert.assertNull(this.a.getJars());
  Assert.assertNull(this.a.getName());
  Assert.assertNull(this.a.getUser());
  Assert.assertNull(this.a.getVersion());
}

Fixed version (ground truth):
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.a.getCommands());
  Assert.assertNull(this.a.getConfigs());
  Assert.assertNull(this.a.getEnvPropFile());
  Assert.assertNull(this.a.getStatus());
  Assert.assertNull(this.a.getJars());
  Assert.assertNull(this.a.getName());
  Assert.assertNull(this.a.getUser());
  Assert.assertNull(this.a.getVersion());
}
Program: 90109
Project: 90109
Buggy source:
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertEquals(ClusterStatus.OUT_OF_SERVICE,this.c.getStatus());
  this.c.setStatus(ClusterStatus.TERMINATED);
  Assert.assertEquals(ClusterStatus.TERMINATED,this.c.getStatus());
}

Fixed version (ground truth):
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertNull(this.c.getStatus());
  this.c.setStatus(ClusterStatus.TERMINATED);
  Assert.assertEquals(ClusterStatus.TERMINATED,this.c.getStatus());
}
Program: 90110
Project: 90110
Buggy source:
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getName());
  Assert.assertEquals(ClusterStatus.OUT_OF_SERVICE,this.c.getStatus());
  Assert.assertNotNull(this.c.getTags());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}

Fixed version (ground truth):
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getClusterType());
  Assert.assertNull(this.c.getCommands());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getName());
  Assert.assertNull(this.c.getStatus());
  Assert.assertNotNull(this.c.getTags());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}
Program: 90111
Project: 90111
Buggy source:
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertEquals(CommandStatus.INACTIVE,this.c.getStatus());
  this.c.setStatus(CommandStatus.ACTIVE);
  Assert.assertEquals(CommandStatus.ACTIVE,this.c.getStatus());
}

Fixed version (ground truth):
/** 
 * Test setting the status.
 */
@Test public void testSetStatus(){
  Assert.assertNull(this.c.getStatus());
  this.c.setStatus(CommandStatus.ACTIVE);
  Assert.assertEquals(CommandStatus.ACTIVE,this.c.getStatus());
}
Program: 90112
Project: 90112
Buggy source:
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getApplication());
  Assert.assertNull(this.c.getClusters());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getEnvPropFile());
  Assert.assertNull(this.c.getExecutable());
  Assert.assertNull(this.c.getJobType());
  Assert.assertNull(this.c.getName());
  Assert.assertEquals(CommandStatus.INACTIVE,this.c.getStatus());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}

Fixed version (ground truth):
/** 
 * Test the default Constructor.
 */
@Test public void testDefaultConstructor(){
  Assert.assertNull(this.c.getApplication());
  Assert.assertNull(this.c.getClusters());
  Assert.assertNull(this.c.getConfigs());
  Assert.assertNull(this.c.getEnvPropFile());
  Assert.assertNull(this.c.getExecutable());
  Assert.assertNull(this.c.getJobType());
  Assert.assertNull(this.c.getName());
  Assert.assertNull(this.c.getStatus());
  Assert.assertNull(this.c.getUser());
  Assert.assertNull(this.c.getVersion());
}
Program: 90115
Project: 90115
Buggy source:
/** 
 * Get job info for given filter criteria.
 * @param id          id for job
 * @param jobName     name of job (can be a SQL-style pattern such as HIVE%)
 * @param userName    user who submitted job
 * @param status      status of job - possible types Type.JobStatus
 * @param clusterName name of cluster for job
 * @param clusterId   id of cluster for job
 * @param page        page number for job
 * @param limit       max number of jobs to return
 * @return All jobs which match the criteria
 */
List getJobs(final String id,final String jobName,final String userName,final JobStatus status,final String clusterName,final String clusterId,final int page,final int limit);

Fixed version (ground truth):
/** 
 * Get job info for given filter criteria.
 * @param id          id for job
 * @param jobName     name of job (can be a SQL-style pattern such as HIVE%)
 * @param userName    user who submitted job
 * @param status      status of job - possible types Type.JobStatus
 * @param tags          tags for the job
 * @param clusterName name of cluster for job
 * @param clusterId   id of cluster for job
 * @param page        page number for job
 * @param limit       max number of jobs to return
 * @return All jobs which match the criteria
 */
List getJobs(final String id,final String jobName,final String userName,final JobStatus status,final Set<String> tags,final String clusterName,final String clusterId,final int page,final int limit);
Program: 90116
Project: 90116
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override @Transactional(rollbackFor=GenieException.class) public JobStatus finalizeJob(final String id,final int exitCode) throws GenieException {
  final Job job=this.jobRepo.findOne(id);
  if (job == null) {
    throw new GenieNotFoundException("String_Node_Str" + id + "String_Node_Str");
  }
  job.setExitCode(exitCode);
  if (job.getStatus() != null && job.getStatus() != JobStatus.KILLED) {
    if (exitCode != ProcessStatus.SUCCESS.getExitCode()) {
      LOG.error("String_Node_Str" + exitCode);
      String errMsg;
      try {
        errMsg=ProcessStatus.parse(exitCode).getMessage();
      }
 catch (      final GenieException ge) {
        errMsg="String_Node_Str";
      }
      job.setJobStatus(JobStatus.FAILED,"String_Node_Str" + errMsg);
      this.stats.incrGenieFailedJobs();
    }
 else {
      job.setJobStatus(JobStatus.SUCCEEDED,"String_Node_Str");
      this.stats.incrGenieSuccessfulJobs();
    }
    if (!job.isDisableLogArchival()) {
      job.setArchiveLocation(NetUtil.getArchiveURI(job.getId()));
    }
    job.setUpdated(new Date());
    return job.getStatus();
  }
 else {
    LOG.debug("String_Node_Str" + job.getId());
    return JobStatus.KILLED;
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override @Transactional(rollbackFor=GenieException.class) public JobStatus finalizeJob(final String id,final int exitCode) throws GenieException {
  final Job job=this.jobRepo.findOne(id);
  if (job == null) {
    throw new GenieNotFoundException("String_Node_Str" + id + "String_Node_Str");
  }
  job.setExitCode(exitCode);
  if (exitCode == ProcessStatus.JOB_KILLED.getExitCode()) {
    LOG.debug("String_Node_Str");
    job.setJobStatus(JobStatus.KILLED,"String_Node_Str");
    return JobStatus.KILLED;
  }
 else {
    if (exitCode != ProcessStatus.SUCCESS.getExitCode()) {
      LOG.error("String_Node_Str" + exitCode);
      String errMsg;
      try {
        errMsg=ProcessStatus.parse(exitCode).getMessage();
      }
 catch (      final GenieException ge) {
        errMsg="String_Node_Str";
      }
      job.setJobStatus(JobStatus.FAILED,"String_Node_Str" + errMsg);
      this.stats.incrGenieFailedJobs();
    }
 else {
      job.setJobStatus(JobStatus.SUCCEEDED,"String_Node_Str");
      this.stats.incrGenieSuccessfulJobs();
    }
    if (!job.isDisableLogArchival()) {
      job.setArchiveLocation(NetUtil.getArchiveURI(job.getId()));
    }
    job.setUpdated(new Date());
    return job.getStatus();
  }
}
Program: 90117
Project: 90117
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override @Transactional(readOnly=true) public List<Job> getJobs(final String id,final String jobName,final String userName,final JobStatus status,final String clusterName,final String clusterId,final int page,final int limit){
  LOG.debug("String_Node_Str");
  final PageRequest pageRequest=new PageRequest(page < 0 ? 0 : page,limit < 1 ? 1024 : limit,Direction.DESC,Job_.updated.getName());
  @SuppressWarnings("String_Node_Str") final List<Job> jobs=this.jobRepo.findAll(JobSpecs.find(id,jobName,userName,status,clusterName,clusterId),pageRequest).getContent();
  return jobs;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override @Transactional(readOnly=true) public List<Job> getJobs(final String id,final String jobName,final String userName,final JobStatus status,final Set<String> tags,final String clusterName,final String clusterId,final int page,final int limit){
  LOG.debug("String_Node_Str");
  final PageRequest pageRequest=new PageRequest(page < 0 ? 0 : page,limit < 1 ? 1024 : limit,Direction.DESC,Job_.updated.getName());
  @SuppressWarnings("String_Node_Str") final List<Job> jobs=this.jobRepo.findAll(JobSpecs.find(id,jobName,userName,status,tags,clusterName,clusterId),pageRequest).getContent();
  return jobs;
}
Program: 90118
Project: 90118
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutJobName(){
  final Specification<Job> spec=JobSpecs.find(ID,"String_Node_Str",USER_NAME,JobStatus.INIT,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.never()).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutJobName(){
  final Specification<Job> spec=JobSpecs.find(ID,"String_Node_Str",USER_NAME,JobStatus.INIT,TAGS,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.never()).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90119
Project: 90119
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutClusterId(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,CLUSTER_NAME,null);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutClusterId(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,TAGS,CLUSTER_NAME,null);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90121
Project: 90121
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutUserName(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,"String_Node_Str",JobStatus.INIT,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutUserName(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,"String_Node_Str",JobStatus.INIT,TAGS,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90122
Project: 90122
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutStatus(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,null,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutStatus(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,null,TAGS,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90123
Project: 90123
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithAll(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithAll(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,TAGS,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90124
Project: 90124
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutId(){
  final Specification<Job> spec=JobSpecs.find(null,JOB_NAME,USER_NAME,JobStatus.INIT,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.never()).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutId(){
  final Specification<Job> spec=JobSpecs.find(null,JOB_NAME,USER_NAME,JobStatus.INIT,TAGS,CLUSTER_NAME,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.never()).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90125
Project: 90125
Buggy source:
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutClusterName(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,null,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}

Fixed version (ground truth):
/** 
 * Test the find specification.
 */
@Test public void testFindWithOutClusterName(){
  final Specification<Job> spec=JobSpecs.find(ID,JOB_NAME,USER_NAME,JobStatus.INIT,TAGS,null,CLUSTER_ID);
  spec.toPredicate(this.root,this.cq,this.cb);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.id),ID);
  Mockito.verify(this.cb,Mockito.times(1)).like(this.root.get(Job_.name),JOB_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.user),USER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.status),JobStatus.INIT);
  Mockito.verify(this.cb,Mockito.never()).equal(this.root.get(Job_.executionClusterName),CLUSTER_NAME);
  Mockito.verify(this.cb,Mockito.times(1)).equal(this.root.get(Job_.executionClusterId),CLUSTER_ID);
}
Program: 90126
Project: 90126
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void init(final Job job,final Cluster cluster) throws GenieException {
  if (job == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  if (cluster == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  this.jobMonitor.setJobManager(this);
  this.job=job;
  this.cluster=cluster;
  this.jobService.setClusterInfoForJob(this.job.getId(),this.cluster.getId(),this.cluster.getName());
  Command command=null;
  for (  final Command cmd : this.cluster.getCommands()) {
    if (cmd.getTags().containsAll(this.job.getCommandCriteria())) {
      command=cmd;
      break;
    }
  }
  if (command == null) {
    final String msg="String_Node_Str";
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
  this.jobService.setCommandInfoForJob(this.job.getId(),command.getId(),command.getName());
  final Application application=command.getApplication();
  if (application != null) {
    this.jobService.setApplicationInfoForJob(this.job.getId(),application.getId(),application.getName());
  }
  this.initCalled=true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void init(final Job job,final Cluster cluster) throws GenieException {
  if (job == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  if (cluster == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  this.jobMonitor.setJobManager(this);
  this.job=job;
  this.cluster=cluster;
  this.jobService.setClusterInfoForJob(this.job.getId(),this.cluster.getId(),this.cluster.getName());
  Command command=null;
  for (  final Command cmd : this.cluster.getCommands()) {
    if (cmd.getTags().containsAll(this.job.getCommandCriteria())) {
      command=cmd;
      break;
    }
  }
  if (command == null) {
    final String msg="String_Node_Str";
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
  this.jobService.setCommandInfoForJob(this.job.getId(),command.getId(),command.getName());
  final Application application=command.getApplication();
  if (application != null) {
    this.jobService.setApplicationInfoForJob(this.job.getId(),application.getId(),application.getName());
  }
  this.job=this.jobService.getJob(this.job.getId());
  this.initCalled=true;
}
Program: 90127
Project: 90127
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void init(final Job job,final Cluster cluster) throws GenieException {
  if (job == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  if (cluster == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  this.jobMonitor.setJobManager(this);
  this.job=job;
  this.cluster=cluster;
  this.jobService.setClusterInfoForJob(this.job.getId(),this.cluster.getId(),this.cluster.getName());
  this.initCalled=true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void init(final Job job,final Cluster cluster) throws GenieException {
  if (job == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  if (cluster == null) {
    throw new GeniePreconditionException("String_Node_Str");
  }
  this.jobMonitor.setJobManager(this);
  this.job=job;
  this.cluster=cluster;
  this.jobService.setClusterInfoForJob(this.job.getId(),this.cluster.getId(),this.cluster.getName());
  Command command=null;
  for (  final Command cmd : this.cluster.getCommands()) {
    if (cmd.getTags().containsAll(this.job.getCommandCriteria())) {
      command=cmd;
      break;
    }
  }
  if (command == null) {
    final String msg="String_Node_Str";
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
  this.jobService.setCommandInfoForJob(this.job.getId(),command.getId(),command.getName());
  final Application application=command.getApplication();
  if (application != null) {
    this.jobService.setApplicationInfoForJob(this.job.getId(),application.getId(),application.getName());
  }
  this.initCalled=true;
}
Program: 90128
Project: 90128
Buggy source:
/** 
 * Set the command and application for a given process and job.
 * @param processBuilder The process builder to use.
 * @throws GenieException On an error interacting with database.
 */
private void setCommandAndApplicationForJob(final ProcessBuilder processBuilder) throws GenieException {
  Command command=null;
  for (  final Command cmd : this.cluster.getCommands()) {
    if (cmd.getTags().containsAll(this.job.getCommandCriteria())) {
      command=cmd;
      break;
    }
  }
  if (command == null) {
    final String msg="String_Node_Str";
    LOG.error(msg);
    throw new GeniePreconditionException(msg);
  }
  this.jobService.setCommandInfoForJob(this.job.getId(),command.getId(),command.getName());
  if (command.getConfigs() != null && !command.getConfigs().isEmpty()) {
    processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(command.getConfigs()));
  }
  if (StringUtils.isNotBlank(command.getEnvPropFile())) {
    processBuilder.environment().put("String_Node_Str",command.getEnvPropFile());
  }
  final Application application=command.getApplication();
  if (application != null) {
    this.jobService.setApplicationInfoForJob(this.job.getId(),application.getId(),application.getName());
    if (application.getConfigs() != null && !application.getConfigs().isEmpty()) {
      processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(application.getConfigs()));
    }
    if (application.getJars() != null && !application.getJars().isEmpty()) {
      processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(application.getJars()));
    }
    if (StringUtils.isNotBlank(application.getEnvPropFile())) {
      processBuilder.environment().put("String_Node_Str",application.getEnvPropFile());
    }
  }
}

Fixed version (ground truth):
/** 
 * Set the command and application for a given process and job.
 * @param processBuilder The process builder to use.
 * @throws GenieException On an error interacting with database.
 */
private void setCommandAndApplicationForJob(final ProcessBuilder processBuilder) throws GenieException {
  final Command command=this.commandService.getCommand(this.job.getCommandId());
  if (command.getConfigs() != null && !command.getConfigs().isEmpty()) {
    processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(command.getConfigs()));
  }
  if (StringUtils.isNotBlank(command.getEnvPropFile())) {
    processBuilder.environment().put("String_Node_Str",command.getEnvPropFile());
  }
  final Application application=command.getApplication();
  if (application != null) {
    if (application.getConfigs() != null && !application.getConfigs().isEmpty()) {
      processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(application.getConfigs()));
    }
    if (application.getJars() != null && !application.getJars().isEmpty()) {
      processBuilder.environment().put("String_Node_Str",convertCollectionToCSV(application.getJars()));
    }
    if (StringUtils.isNotBlank(application.getEnvPropFile())) {
      processBuilder.environment().put("String_Node_Str",application.getEnvPropFile());
    }
  }
}