Program: 188879
Project: 188879
Buggy source:
public void testLatestWorkflowsInternal(List<Integer> accessions) throws IOException {
  String output=ITUtility.runSeqWareJar("String_Node_Str",ReturnValue.SUCCESS,null);
  Assert.assertTrue("String_Node_Str",output.contains("String_Node_Str"));
  Map<String,WorkflowInfo> latestWorkflows=new HashMap<>();
  String[] lines=output.split(System.getProperty("String_Node_Str"));
  for (  String line : lines) {
    String[] lineParts=line.split("String_Node_Str");
    try {
      int workflow_accession=Integer.valueOf(lineParts[3]);
      String workflowName=lineParts[0];
      String path=lineParts[lineParts.length - 2];
      if (path.equals("String_Node_Str")) {
        continue;
      }
      WorkflowInfo wi=new WorkflowInfo(workflow_accession,path,workflowName,lineParts[1]);
      File fileAtPath=new File(path);
      if (!fileAtPath.exists()) {
        Log.warn("String_Node_Str" + workflowName + "String_Node_Str"+ workflow_accession+ "String_Node_Str"+ path);
        continue;
      }
      if (!latestWorkflows.containsKey(workflowName)) {
        latestWorkflows.put(workflowName,wi);
      }
 else {
        int old=latestWorkflows.get(workflowName).sw_accession;
        if (workflow_accession > old) {
          latestWorkflows.put(workflowName,wi);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  ExecutorService threadPool=Executors.newFixedThreadPool(latestWorkflows.size());
  CompletionService<String> pool=new ExecutorCompletionService<>(threadPool);
  for (  Entry<String,WorkflowInfo> e : latestWorkflows.entrySet()) {
    System.out.println("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().sw_accession);
    if (accessions.size() > 0) {
      Integer acc=e.getValue().sw_accession;
      if (!accessions.contains(acc)) {
        System.out.println("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().sw_accession+ "String_Node_Str");
        continue;
      }
    }
    StringBuilder params=new StringBuilder();
    params.append("String_Node_Str").append(e.getValue().path).append("String_Node_Str");
    params.append("String_Node_Str").append(e.getValue().version).append("String_Node_Str");
    params.append("String_Node_Str");
    File tempFile=File.createTempFile(e.getValue().name,"String_Node_Str");
    pool.submit(new TestingThread(params.toString(),tempFile));
  }
  for (  Entry<String,WorkflowInfo> e : latestWorkflows.entrySet()) {
    try {
      pool.take().get();
    }
 catch (    InterruptedException|ExecutionException ex) {
      Log.error(ex);
    }
  }
  threadPool.shutdown();
}

Fixed version (ground truth):
public void testLatestWorkflowsInternal(List<Integer> accessions) throws IOException {
  String output=ITUtility.runSeqWareJar("String_Node_Str",ReturnValue.SUCCESS,null);
  Assert.assertTrue("String_Node_Str",output.contains("String_Node_Str"));
  Map<String,WorkflowInfo> latestWorkflows=new HashMap<>();
  String[] lines=output.split(System.getProperty("String_Node_Str"));
  for (  String line : lines) {
    String[] lineParts=line.split("String_Node_Str");
    try {
      int workflow_accession=Integer.valueOf(lineParts[3]);
      String workflowName=lineParts[0];
      String path=lineParts[lineParts.length - 2];
      if (path.equals("String_Node_Str")) {
        continue;
      }
      WorkflowInfo wi=new WorkflowInfo(workflow_accession,path,workflowName,lineParts[1]);
      File fileAtPath=new File(path);
      if (!fileAtPath.exists()) {
        Log.warn("String_Node_Str" + workflowName + "String_Node_Str"+ workflow_accession+ "String_Node_Str"+ path);
        continue;
      }
      if (!latestWorkflows.containsKey(workflowName)) {
        latestWorkflows.put(workflowName,wi);
      }
 else {
        int old=latestWorkflows.get(workflowName).sw_accession;
        if (workflow_accession > old) {
          latestWorkflows.put(workflowName,wi);
        }
      }
    }
 catch (    Exception e) {
    }
  }
  ExecutorService threadPool=Executors.newFixedThreadPool(latestWorkflows.size());
  CompletionService<String> pool=new ExecutorCompletionService<>(threadPool);
  for (  Entry<String,WorkflowInfo> e : latestWorkflows.entrySet()) {
    System.out.println("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().sw_accession);
    if (accessions.size() > 0) {
      Integer acc=e.getValue().sw_accession;
      if (!accessions.contains(acc)) {
        System.out.println("String_Node_Str" + e.getKey() + "String_Node_Str"+ e.getValue().sw_accession+ "String_Node_Str");
        continue;
      }
    }
    StringBuilder params=new StringBuilder();
    params.append("String_Node_Str").append(e.getValue().path).append("String_Node_Str");
    params.append("String_Node_Str").append(e.getValue().version).append("String_Node_Str");
    params.append("String_Node_Str");
    params.append("String_Node_Str").append(e.getValue().name);
    File tempFile=File.createTempFile(e.getValue().name,"String_Node_Str");
    pool.submit(new TestingThread(params.toString(),tempFile));
  }
  for (  Entry<String,WorkflowInfo> e : latestWorkflows.entrySet()) {
    try {
      pool.take().get();
    }
 catch (    InterruptedException|ExecutionException ex) {
      Log.error(ex);
    }
  }
  threadPool.shutdown();
}