Program: 94205
Project: 94205
Buggy source:
@TaskAction public void generate() throws Exception {
  if (outputKind == null) {
    throw new RuntimeException("String_Node_Str");
  }
  if (jsonLibrary == null) {
    throw new RuntimeException("String_Node_Str");
  }
  TypeScriptGenerator.printVersion();
  final List<URL> urls=new ArrayList<>();
  for (  String taskName : Arrays.asList("String_Node_Str","String_Node_Str")) {
    for (    Task task : getProject().getTasksByName(taskName,false)) {
      for (      File file : task.getOutputs().getFiles()) {
        urls.add(file.toURI().toURL());
      }
    }
  }
  for (  File file : getProject().getConfigurations().getAt("String_Node_Str").getFiles()) {
    urls.add(file.toURI().toURL());
  }
  final URLClassLoader classLoader=Settings.createClassLoader(getProject().getName(),urls.toArray(new URL[0]),Thread.currentThread().getContextClassLoader());
  final Settings settings=new Settings();
  if (outputFileType != null) {
    settings.outputFileType=outputFileType;
  }
  settings.outputKind=outputKind;
  settings.module=module;
  settings.namespace=namespace;
  settings.mapPackagesToNamespaces=mapPackagesToNamespaces;
  settings.umdNamespace=umdNamespace;
  settings.setExcludeFilter(excludeClasses,excludeClassPatterns);
  settings.jsonLibrary=jsonLibrary;
  settings.declarePropertiesAsOptional=declarePropertiesAsOptional;
  settings.optionalProperties=optionalProperties;
  settings.declarePropertiesAsReadOnly=declarePropertiesAsReadOnly;
  settings.removeTypeNamePrefix=removeTypeNamePrefix;
  settings.removeTypeNameSuffix=removeTypeNameSuffix;
  settings.addTypeNamePrefix=addTypeNamePrefix;
  settings.addTypeNameSuffix=addTypeNameSuffix;
  settings.customTypeNaming=Settings.convertToMap(customTypeNaming);
  settings.customTypeNamingFunction=customTypeNamingFunction;
  settings.referencedFiles=referencedFiles;
  settings.importDeclarations=importDeclarations;
  settings.customTypeMappings=Settings.convertToMap(customTypeMappings);
  settings.mapDate=mapDate;
  settings.mapEnum=mapEnum;
  settings.nonConstEnums=nonConstEnums;
  settings.mapClasses=mapClasses;
  settings.mapClassesAsClassesPatterns=mapClassesAsClassesPatterns;
  settings.disableTaggedUnions=disableTaggedUnions;
  settings.ignoreSwaggerAnnotations=ignoreSwaggerAnnotations;
  settings.generateJaxrsApplicationInterface=generateJaxrsApplicationInterface;
  settings.generateJaxrsApplicationClient=generateJaxrsApplicationClient;
  settings.jaxrsNamespacing=jaxrsNamespacing;
  settings.setJaxrsNamespacingAnnotation(classLoader,jaxrsNamespacingAnnotation);
  settings.restResponseType=restResponseType;
  settings.setRestOptionsType(restOptionsType);
  settings.loadCustomTypeProcessor(classLoader,customTypeProcessor);
  settings.sortDeclarations=sortDeclarations;
  settings.sortTypeDeclarations=sortTypeDeclarations;
  settings.noFileComment=noFileComment;
  settings.javadocXmlFiles=javadocXmlFiles;
  settings.loadExtensions(classLoader,Utils.concat(extensionClasses,extensions),extensionsWithConfiguration);
  settings.loadIncludePropertyAnnotations(classLoader,includePropertyAnnotations);
  settings.loadOptionalAnnotations(classLoader,optionalAnnotations);
  settings.generateNpmPackageJson=generateNpmPackageJson;
  settings.npmName=npmName != null ? npmName : getProject().getName();
  settings.npmVersion=npmVersion != null ? npmVersion : settings.getDefaultNpmVersion();
  settings.setStringQuotes(stringQuotes);
  settings.setIndentString(indentString);
  settings.displaySerializerWarning=displaySerializerWarning;
  settings.disableJackson2ModuleDiscovery=disableJackson2ModuleDiscovery;
  settings.jackson2ModuleDiscovery=jackson2ModuleDiscovery;
  settings.loadJackson2Modules(classLoader,jackson2Modules);
  settings.classLoader=classLoader;
  final File output=outputFile != null ? getProject().file(outputFile) : new File(new File(getProject().getBuildDir(),"String_Node_Str"),getProject().getName() + settings.getExtension());
  settings.validateFileName(output);
  new TypeScriptGenerator(settings).generateTypeScript(Input.fromClassNamesAndJaxrsApplication(classes,classPatterns,classesFromJaxrsApplication,classesFromAutomaticJaxrsApplication,settings.getExcludeFilter(),classLoader,debug),Output.to(output));
}

Fixed version (ground truth):
@TaskAction public void generate() throws Exception {
  if (outputKind == null) {
    throw new RuntimeException("String_Node_Str");
  }
  if (jsonLibrary == null) {
    throw new RuntimeException("String_Node_Str");
  }
  TypeScriptGenerator.printVersion();
  final List<URL> urls=new ArrayList<>();
  for (  String taskName : Arrays.asList("String_Node_Str","String_Node_Str")) {
    for (    Task task : getProject().getTasksByName(taskName,false)) {
      for (      File file : task.getOutputs().getFiles()) {
        urls.add(file.toURI().toURL());
      }
    }
  }
  for (  File file : getProject().getConfigurations().getAt("String_Node_Str").getFiles()) {
    urls.add(file.toURI().toURL());
  }
  final URLClassLoader classLoader=Settings.createClassLoader(getProject().getName(),urls.toArray(new URL[0]),Thread.currentThread().getContextClassLoader());
  final Settings settings=new Settings();
  if (outputFileType != null) {
    settings.outputFileType=outputFileType;
  }
  settings.outputKind=outputKind;
  settings.module=module;
  settings.namespace=namespace;
  settings.mapPackagesToNamespaces=mapPackagesToNamespaces;
  settings.umdNamespace=umdNamespace;
  settings.setExcludeFilter(excludeClasses,excludeClassPatterns);
  settings.jsonLibrary=jsonLibrary;
  settings.declarePropertiesAsOptional=declarePropertiesAsOptional;
  settings.optionalProperties=optionalProperties;
  settings.declarePropertiesAsReadOnly=declarePropertiesAsReadOnly;
  settings.removeTypeNamePrefix=removeTypeNamePrefix;
  settings.removeTypeNameSuffix=removeTypeNameSuffix;
  settings.addTypeNamePrefix=addTypeNamePrefix;
  settings.addTypeNameSuffix=addTypeNameSuffix;
  settings.customTypeNaming=Settings.convertToMap(customTypeNaming);
  settings.customTypeNamingFunction=customTypeNamingFunction;
  settings.referencedFiles=referencedFiles;
  settings.importDeclarations=importDeclarations;
  settings.customTypeMappings=Settings.convertToMap(customTypeMappings);
  settings.mapDate=mapDate;
  settings.mapEnum=mapEnum;
  settings.nonConstEnums=nonConstEnums;
  settings.mapClasses=mapClasses;
  settings.mapClassesAsClassesPatterns=mapClassesAsClassesPatterns;
  settings.disableTaggedUnions=disableTaggedUnions;
  settings.ignoreSwaggerAnnotations=ignoreSwaggerAnnotations;
  settings.generateJaxrsApplicationInterface=generateJaxrsApplicationInterface;
  settings.generateJaxrsApplicationClient=generateJaxrsApplicationClient;
  settings.jaxrsNamespacing=jaxrsNamespacing;
  settings.setJaxrsNamespacingAnnotation(classLoader,jaxrsNamespacingAnnotation);
  settings.restResponseType=restResponseType;
  settings.setRestOptionsType(restOptionsType);
  settings.loadCustomTypeProcessor(classLoader,customTypeProcessor);
  settings.sortDeclarations=sortDeclarations;
  settings.sortTypeDeclarations=sortTypeDeclarations;
  settings.noFileComment=noFileComment;
  settings.javadocXmlFiles=javadocXmlFiles;
  settings.loadExtensions(classLoader,Utils.concat(extensionClasses,extensions),extensionsWithConfiguration);
  settings.loadIncludePropertyAnnotations(classLoader,includePropertyAnnotations);
  settings.loadOptionalAnnotations(classLoader,optionalAnnotations);
  settings.generateNpmPackageJson=generateNpmPackageJson;
  settings.npmName=npmName == null && generateNpmPackageJson ? getProject().getName() : npmName;
  settings.npmVersion=npmVersion == null && generateNpmPackageJson ? settings.getDefaultNpmVersion() : npmVersion;
  settings.setStringQuotes(stringQuotes);
  settings.setIndentString(indentString);
  settings.displaySerializerWarning=displaySerializerWarning;
  settings.disableJackson2ModuleDiscovery=disableJackson2ModuleDiscovery;
  settings.jackson2ModuleDiscovery=jackson2ModuleDiscovery;
  settings.loadJackson2Modules(classLoader,jackson2Modules);
  settings.classLoader=classLoader;
  final File output=outputFile != null ? getProject().file(outputFile) : new File(new File(getProject().getBuildDir(),"String_Node_Str"),getProject().getName() + settings.getExtension());
  settings.validateFileName(output);
  new TypeScriptGenerator(settings).generateTypeScript(Input.fromClassNamesAndJaxrsApplication(classes,classPatterns,classesFromJaxrsApplication,classesFromAutomaticJaxrsApplication,settings.getExcludeFilter(),classLoader,debug),Output.to(output));
}