Program: 10286
Project: 10286
Buggy source:
public static Map<URL,Class<? extends KnowledgeSource>> getImportedFiles(ConfParser parser,String baseDir){
  List<List<String>> imports=parser.getFunctionCalls().get("String_Node_Str");
  Map<URL,Class<? extends KnowledgeSource>> importedFiles=new HashMap<URL,Class<? extends KnowledgeSource>>();
  if (imports != null) {
    for (    List<String> arguments : imports) {
      URL url=null;
      try {
        String fileString=arguments.get(0);
        if (fileString.startsWith("String_Node_Str")) {
          url=new URL(fileString);
        }
 else {
          File f=new File(baseDir,arguments.get(0));
          url=f.toURI().toURL();
        }
      }
 catch (      MalformedURLException e) {
        e.printStackTrace();
      }
      Class<? extends KnowledgeSource> ksClass;
      if (arguments.size() == 1) {
        String filename=url.getPath();
        String ending=filename.substring(filename.lastIndexOf("String_Node_Str") + 1);
        if (ending.equals("String_Node_Str") || ending.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (ending.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (ending.equals("String_Node_Str"))         ksClass=KBFile.class;
 else {
          System.err.println("String_Node_Str" + arguments.get(0) + "String_Node_Str");
          ksClass=OWLFile.class;
        }
        importedFiles.put(url,ksClass);
      }
 else {
        String formatString=arguments.get(1);
        if (formatString.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=KBFile.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=SparqlEndpoint.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else {
          throw new RuntimeException("String_Node_Str" + formatString + "String_Node_Str");
        }
        importedFiles.put(url,ksClass);
      }
    }
  }
  return importedFiles;
}

Fixed version (ground truth):
public static Map<URL,Class<? extends KnowledgeSource>> getImportedFiles(ConfParser parser,String baseDir){
  List<List<String>> imports=parser.getFunctionCalls().get("String_Node_Str");
  Map<URL,Class<? extends KnowledgeSource>> importedFiles=new HashMap<URL,Class<? extends KnowledgeSource>>();
  if (imports != null) {
    for (    List<String> arguments : imports) {
      URL url=null;
      try {
        String fileString=arguments.get(0);
        if (fileString.startsWith("String_Node_Str")) {
          url=new URL(fileString);
        }
 else {
          File f=new File(baseDir,arguments.get(0));
          url=f.toURI().toURL();
        }
      }
 catch (      MalformedURLException e) {
        e.printStackTrace();
      }
      Class<? extends KnowledgeSource> ksClass;
      if (arguments.size() == 1) {
        String filename=url.getPath();
        String ending=filename.substring(filename.lastIndexOf("String_Node_Str") + 1);
        if (ending.equals("String_Node_Str") || ending.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (ending.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (ending.equals("String_Node_Str"))         ksClass=KBFile.class;
 else {
          System.err.println("String_Node_Str" + arguments.get(0) + "String_Node_Str");
          ksClass=OWLFile.class;
        }
        importedFiles.put(url,ksClass);
      }
 else {
        String formatString=arguments.get(1);
        if (formatString.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=KBFile.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=SparqlKnowledgeSource.class;
 else         if (formatString.equals("String_Node_Str"))         ksClass=OWLFile.class;
 else {
          throw new RuntimeException("String_Node_Str" + formatString + "String_Node_Str");
        }
        importedFiles.put(url,ksClass);
      }
    }
  }
  return importedFiles;
}