Program: 54868
Project: 54868
Buggy source:
private static void addPackageModels(int rootPathLength,File dir,SortedSet<PackageModel> pkgs) throws IOException {
  PackageModel pkg=null;
  for (  File file : dir.listFiles()) {
    if ("String_Node_Str".equals(file.getName())) {
      continue;
    }
    if (file.isDirectory()) {
      addPackageModels(rootPathLength,file,pkgs);
    }
 else {
      if (file.getName().endsWith("String_Node_Str")) {
        if (pkg == null) {
          pkg=new PackageModel(file.getParentFile().getCanonicalPath().substring(1 + rootPathLength).replace('/','-'));
          pkgs.add(pkg);
        }
        String content=readFile(file);
        Matcher matcher=IMPORT_PATTERN.matcher(content);
        while (matcher.find()) {
          String className=matcher.group(1);
          String packageName=getPackageName(className);
          if (className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId=packageName.substring(4).replace('.','-');
            dep.version=VERSION_SNAPSHOT;
            pkg.dependencies.add(dep);
          }
 else           if (className.startsWith("String_Node_Str") || className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId="String_Node_Str";
            dep.scope="String_Node_Str";
            pkg.dependencies.add(dep);
          }
 else           if (className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId="String_Node_Str";
            pkg.dependencies.add(dep);
          }
 else           if (className.startsWith("String_Node_Str") || className.startsWith("String_Node_Str")) {
          }
 else {
            throw new IllegalArgumentException("String_Node_Str" + packageName);
          }
        }
      }
    }
  }
}

Fixed version (ground truth):
private static void addPackageModels(int rootPathLength,File dir,SortedSet<PackageModel> pkgs) throws IOException {
  PackageModel pkg=null;
  for (  File file : dir.listFiles()) {
    if (file.isDirectory()) {
      addPackageModels(rootPathLength,file,pkgs);
    }
 else {
      if (file.getName().endsWith("String_Node_Str")) {
        if (pkg == null) {
          pkg=new PackageModel(file.getParentFile().getCanonicalPath().substring(1 + rootPathLength).replace('/','-'));
          pkgs.add(pkg);
        }
        String content=readFile(file);
        Matcher matcher=IMPORT_PATTERN.matcher(content);
        while (matcher.find()) {
          String className=matcher.group(1);
          String packageName=getPackageName(className);
          if (className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId=packageName.substring(4).replace('.','-');
            dep.version=VERSION_SNAPSHOT;
            if (!pkg.artifactId.equals(dep.artifactId)) {
              pkg.dependencies.add(dep);
            }
          }
 else           if (className.startsWith("String_Node_Str") || className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId="String_Node_Str";
            dep.scope="String_Node_Str";
            pkg.dependencies.add(dep);
          }
 else           if (className.startsWith("String_Node_Str")) {
            DependencyModel dep=new DependencyModel();
            dep.groupId="String_Node_Str";
            dep.artifactId="String_Node_Str";
            pkg.dependencies.add(dep);
          }
 else           if (className.startsWith("String_Node_Str") || className.startsWith("String_Node_Str")) {
          }
 else {
            throw new IllegalArgumentException("String_Node_Str" + packageName);
          }
        }
      }
    }
  }
}