nus-yam/ex-repair huggingface dataset:
Program: 10015
Project: 10015
Buggy source:
private void updateSecuritySandbox() throws MojoExecutionException {
  File fpTrustFolder=FlashPlayerUtils.getTrustDir();
  File mavenCfg=new File(fpTrustFolder,"String_Node_Str");
  if (!mavenCfg.exists()) {
    try {
      mavenCfg.createNewFile();
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
    }
  }
  try {
    FileReader input=new FileReader(mavenCfg);
    String cfg=IOUtils.toString(input);
    input.close();
    String trustedFile=outputFile.getAbsolutePath();
    if (cfg.contains(trustedFile)) {
      getLog().info("String_Node_Str" + trustedFile);
      return;
    }
 else {
      getLog().info("String_Node_Str" + trustedFile);
    }
    if (!cfg.endsWith("String_Node_Str")) {
      cfg=cfg + '\n';
    }
    cfg=cfg + trustedFile + '\n';
    FileWriter output=new FileWriter(mavenCfg);
    IOUtils.write(cfg,output);
    output.flush();
    output.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
  }
}

Fixed version (ground truth):
private void updateSecuritySandbox() throws MojoExecutionException {
  File fpTrustFolder=FlashPlayerUtils.getTrustDir();
  File mavenCfg=new File(fpTrustFolder,"String_Node_Str");
  if (!mavenCfg.exists()) {
    try {
      mavenCfg.createNewFile();
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
    }
  }
  try {
    FileReader input=new FileReader(mavenCfg);
    String cfg=IOUtils.toString(input);
    input.close();
    String trustedFile=getOutput().getAbsolutePath();
    if (cfg.contains(trustedFile)) {
      getLog().info("String_Node_Str" + trustedFile);
      return;
    }
 else {
      getLog().info("String_Node_Str" + trustedFile);
    }
    if (!cfg.endsWith("String_Node_Str")) {
      cfg=cfg + '\n';
    }
    cfg=cfg + trustedFile + '\n';
    FileWriter output=new FileWriter(mavenCfg);
    IOUtils.write(cfg,output);
    output.flush();
    output.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
  }
}
Program: 10016
Project: 10016
Buggy source:
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  File sourceDirectory=new File(build.getSourceDirectory());
  if (!sourceDirectory.exists()) {
    throw new MojoExecutionException("String_Node_Str" + sourceDirectory);
  }
  if (source == null) {
    getLog().warn("String_Node_Str");
    source=resolveSourceFile(project,sourceFile);
  }
  if (source == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!source.exists()) {
    throw new MojoFailureException("String_Node_Str" + sourceFile);
  }
  try {
    builder=new Application(source);
  }
 catch (  FileNotFoundException e) {
    throw new MojoFailureException("String_Node_Str" + source);
  }
  if (moduleFiles != null) {
    modules=new ArrayList<File>();
    for (    String modulePath : moduleFiles) {
      File module=new File(sourceDirectory,modulePath);
      if (!module.exists()) {
        throw new MojoExecutionException("String_Node_Str" + module + "String_Node_Str");
      }
      modules.add(module);
    }
    if (loadExternsOnModules) {
      super.linkReport=true;
    }
  }
  super.setUp();
  if (outputFile == null) {
    if (output == null) {
      outputFile=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str");
    }
 else {
      outputFile=new File(build.getDirectory(),output);
    }
  }
  builder.setOutput(outputFile);
}

Fixed version (ground truth):
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  File sourceDirectory=new File(build.getSourceDirectory());
  if (!sourceDirectory.exists()) {
    throw new MojoExecutionException("String_Node_Str" + sourceDirectory);
  }
  if (source == null) {
    getLog().warn("String_Node_Str");
    source=resolveSourceFile(project,sourceFile);
  }
  if (source == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!source.exists()) {
    throw new MojoFailureException("String_Node_Str" + sourceFile);
  }
  try {
    builder=new Application(source);
  }
 catch (  FileNotFoundException e) {
    throw new MojoFailureException("String_Node_Str" + source);
  }
  if (moduleFiles != null) {
    modules=new ArrayList<File>();
    for (    String modulePath : moduleFiles) {
      File module=new File(sourceDirectory,modulePath);
      if (!module.exists()) {
        throw new MojoExecutionException("String_Node_Str" + module + "String_Node_Str");
      }
      modules.add(module);
    }
    if (loadExternsOnModules) {
      super.linkReport=true;
    }
  }
  super.setUp();
  builder.setOutput(getOutput());
}
Program: 10017
Project: 10017
Buggy source:
@Override protected void writeResourceBundle(String[] bundles,String locale,File localePath) throws MojoExecutionException {
  getLog().info("String_Node_Str" + locale);
  Library localized=new Library();
  localized.setConfiguration(configuration);
  configuration.setLibraryPath(new File[0]);
  localized.setLogger(new CompileLogger(getLog()));
  configuration.addLibraryPath(new File[]{outputFile});
  setLocales(new String[]{locale});
  configuration.setSourcePath(new File[]{localePath});
  for (  String bundle : bundles) {
    localized.addResourceBundle(bundle);
  }
  configuration.addLibraryPath(getResourcesBundles(locale));
  File output=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str" + locale+ "String_Node_Str");
  localized.setOutput(output);
  build(localized);
  projectHelper.attachArtifact(project,"String_Node_Str",locale,output);
}

Fixed version (ground truth):
@Override protected void writeResourceBundle(String[] bundles,String locale,File localePath) throws MojoExecutionException {
  getLog().info("String_Node_Str" + locale);
  Library localized=new Library();
  localized.setConfiguration(configuration);
  configuration.setLibraryPath(new File[0]);
  localized.setLogger(new CompileLogger(getLog()));
  configuration.addLibraryPath(new File[]{getOutput()});
  setLocales(new String[]{locale});
  configuration.setSourcePath(new File[]{localePath});
  for (  String bundle : bundles) {
    localized.addResourceBundle(bundle);
  }
  configuration.addLibraryPath(getResourcesBundles(locale));
  File output=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str" + locale+ "String_Node_Str");
  localized.setOutput(output);
  build(localized);
  projectHelper.attachArtifact(project,"String_Node_Str",locale,output);
}
Program: 10019
Project: 10019
Buggy source:
@SuppressWarnings("String_Node_Str") private File getResourceFolder(File file){
  String absolutePath=file.getAbsolutePath();
  for (  File sourcePath : sourcePaths) {
    if (absolutePath.startsWith(sourcePath.getAbsolutePath())) {
      return sourcePath;
    }
  }
  for (  String sourcePath : (List<String>)project.getCompileSourceRoots()) {
    if (absolutePath.startsWith(sourcePath)) {
      return new File(sourcePath);
    }
  }
  for (  Resource resource : (List<Resource>)project.getResources()) {
    if (absolutePath.startsWith(resource.getDirectory())) {
      return new File(resource.getDirectory());
    }
  }
  return project.getBasedir();
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private File getResourceFolder(File file){
  String absolutePath=file.getAbsolutePath();
  for (  File sourcePath : sourcePaths) {
    if (absolutePath.startsWith(sourcePath.getAbsolutePath())) {
      return sourcePath;
    }
  }
  List<String> sourceRoots;
  if (project.getExecutionProject() != null) {
    sourceRoots=project.getExecutionProject().getCompileSourceRoots();
  }
 else {
    sourceRoots=project.getCompileSourceRoots();
  }
  for (  String sourcePath : sourceRoots) {
    if (absolutePath.startsWith(sourcePath)) {
      return new File(sourcePath);
    }
  }
  for (  Resource resource : (List<Resource>)project.getResources()) {
    if (absolutePath.startsWith(resource.getDirectory())) {
      return new File(resource.getDirectory());
    }
  }
  return project.getBasedir();
}
Program: 10020
Project: 10020
Buggy source:
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  super.tearDown();
  if (updateSecuritySandbox) {
    updateSecuritySandbox();
  }
  if (modules != null) {
    configuration.addExterns(new File[]{linkReportFile});
    for (    File module : modules) {
      getLog().info("String_Node_Str" + module);
      String moduleName=module.getName();
      moduleName=moduleName.substring(0,moduleName.lastIndexOf('.'));
      Application moduleBuilder;
      try {
        moduleBuilder=new Application(module);
      }
 catch (      FileNotFoundException e) {
        throw new MojoFailureException("String_Node_Str" + module);
      }
      moduleBuilder.setConfiguration(configuration);
      moduleBuilder.setLogger(new CompileLogger(getLog()));
      File outputModule=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str" + moduleName+ "String_Node_Str"+ project.getPackaging());
      moduleBuilder.setOutput(outputModule);
      build(moduleBuilder);
      projectHelper.attachArtifact(project,"String_Node_Str",moduleName,outputModule);
    }
  }
}

Fixed version (ground truth):
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  super.tearDown();
  if (updateSecuritySandbox) {
    updateSecuritySandbox();
  }
  if (modules != null) {
    compileModules();
  }
}
Program: 10021
Project: 10021
Buggy source:
/** 
 * Run the SWF that contains the FlexUnit tests.
 * @param swf the SWF.
 * @throws Exception if there is an error launching the tests.
 */
public void runTests(File swf) throws Exception {
  System.err.println("String_Node_Str" + Arrays.asList(launcherCommand));
  if (launcherCommand != null) {
    launcherCommand=StringUtils.concat(launcherCommand,new String[]{swf.getAbsolutePath()});
    System.err.println("String_Node_Str" + Arrays.asList(launcherCommand));
    Runtime.getRuntime().exec(launcherCommand);
  }
 else   if (MavenUtils.isWindows()) {
    Runtime.getRuntime().exec(StringUtils.concat(WINDOWS_CMD,new String[]{swf.getAbsolutePath()}));
  }
 else   if (MavenUtils.isMac()) {
    Runtime.getRuntime().exec(StringUtils.concat(MAC_CMD,new String[]{swf.getAbsolutePath()}));
  }
 else {
    Process p=Runtime.getRuntime().exec(StringUtils.concat(UNIX_CMD,new String[]{swf.getAbsolutePath()}));
    int exitValue=p.waitFor();
    if (exitValue != 0) {
      Runtime.getRuntime().exec(StringUtils.concat(UNIX_CMD,new String[]{swf.getAbsolutePath()}));
    }
  }
}

Fixed version (ground truth):
/** 
 * Run the SWF that contains the FlexUnit tests.
 * @param swf the SWF.
 * @throws Exception if there is an error launching the tests.
 */
public void runTests(File swf) throws Exception {
  if (launcherCommand != null) {
    launcherCommand=StringUtils.concat(launcherCommand,new String[]{swf.getAbsolutePath()});
    log.debug("String_Node_Str" + Arrays.asList(launcherCommand));
    Commandline cl=new Commandline();
    cl.setExecutable(launcherCommand[0]);
    for (int i=1; i < launcherCommand.length; i++) {
      cl.createArg().setValue(launcherCommand[i]);
    }
    StreamConsumer stdout=new StreamConsumer(){
      public void consumeLine(      String line){
        log.debug("String_Node_Str" + line);
      }
    }
;
    StreamConsumer stderr=new StreamConsumer(){
      public void consumeLine(      String line){
        log.debug("String_Node_Str" + line);
      }
    }
;
    log.debug("String_Node_Str" + cl);
    int result=CommandLineUtils.executeCommandLine(cl,stdout,stderr);
    log.debug("String_Node_Str" + result);
  }
 else   if (MavenUtils.isWindows()) {
    Runtime.getRuntime().exec(StringUtils.concat(WINDOWS_CMD,new String[]{swf.getAbsolutePath()}));
  }
 else   if (MavenUtils.isMac()) {
    Runtime.getRuntime().exec(StringUtils.concat(MAC_CMD,new String[]{swf.getAbsolutePath()}));
  }
 else {
    Process p=Runtime.getRuntime().exec(StringUtils.concat(UNIX_CMD,new String[]{swf.getAbsolutePath()}));
    int exitValue=p.waitFor();
    if (exitValue != 0) {
      Runtime.getRuntime().exec(StringUtils.concat(UNIX_CMD,new String[]{swf.getAbsolutePath()}));
    }
  }
}
Program: 10022
Project: 10022
Buggy source:
public FlexUnitLauncher(List<String> command){
  if (command != null) {
    launcherCommand=command.toArray(new String[]{});
  }
 else {
    launcherCommand=getPlatformDefaultCommand();
  }
}

Fixed version (ground truth):
public FlexUnitLauncher(List<String> command,Log logger){
  if (command != null) {
    launcherCommand=command.toArray(new String[]{});
  }
 else {
    launcherCommand=getPlatformDefaultCommand();
  }
  log=logger;
}
Program: 10023
Project: 10023
Buggy source:
@Override protected void run() throws MojoExecutionException, MojoFailureException {
  receiveFlexUnitResults();
  getLog().info("String_Node_Str" + flexUnitCommand);
  final FlexUnitLauncher browser=new FlexUnitLauncher(flexUnitCommand);
  try {
    browser.runTests(swf);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  while (!complete) {
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
}

Fixed version (ground truth):
@Override protected void run() throws MojoExecutionException, MojoFailureException {
  receiveFlexUnitResults();
  getLog().info("String_Node_Str" + flexUnitCommand);
  final FlexUnitLauncher browser=new FlexUnitLauncher(flexUnitCommand,getLog());
  try {
    browser.runTests(swf);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  while (!complete) {
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
}
Program: 10024
Project: 10024
Buggy source:
private String get0(String[] a){
  return a == null ? null : (a.length < 1 ? null : a[0]);
}

Fixed version (ground truth):
private String get0(String[] a){
  return this.get0Or1(a,0);
}
Program: 10025
Project: 10025
Buggy source:
private String get1(String[] a){
  return a == null ? null : (a.length < 2 ? null : a[1]);
}

Fixed version (ground truth):
private String get1(String[] a){
  return this.get0Or1(a,1);
}
Program: 10027
Project: 10027
Buggy source:
private void updateSecuritySandbox() throws MojoExecutionException {
  File userHome=new File(System.getProperty("String_Node_Str"));
  File fpTrustFolder=new File(userHome,getFPTrustFolder());
  if (!fpTrustFolder.exists()) {
    fpTrustFolder.mkdirs();
  }
  File mavenCfg=new File(fpTrustFolder,"String_Node_Str");
  if (!mavenCfg.exists()) {
    try {
      mavenCfg.createNewFile();
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
    }
  }
  try {
    FileReader input=new FileReader(mavenCfg);
    String cfg=IOUtils.toString(input);
    input.close();
    String trustedFile=outputFile.getAbsolutePath();
    if (cfg.contains(trustedFile)) {
      getLog().info("String_Node_Str" + trustedFile);
      return;
    }
 else {
      getLog().info("String_Node_Str" + trustedFile);
    }
    if (!cfg.endsWith("String_Node_Str")) {
      cfg=cfg + '\n';
    }
    cfg=cfg + trustedFile + '\n';
    FileWriter output=new FileWriter(mavenCfg);
    IOUtils.write(cfg,output);
    output.flush();
    output.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
  }
}

Fixed version (ground truth):
private void updateSecuritySandbox() throws MojoExecutionException {
  File fpTrustFolder=FlashPlayerUtils.getTrustDir();
  File mavenCfg=new File(fpTrustFolder,"String_Node_Str");
  if (!mavenCfg.exists()) {
    try {
      mavenCfg.createNewFile();
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
    }
  }
  try {
    FileReader input=new FileReader(mavenCfg);
    String cfg=IOUtils.toString(input);
    input.close();
    String trustedFile=outputFile.getAbsolutePath();
    if (cfg.contains(trustedFile)) {
      getLog().info("String_Node_Str" + trustedFile);
      return;
    }
 else {
      getLog().info("String_Node_Str" + trustedFile);
    }
    if (!cfg.endsWith("String_Node_Str")) {
      cfg=cfg + '\n';
    }
    cfg=cfg + trustedFile + '\n';
    FileWriter output=new FileWriter(mavenCfg);
    IOUtils.write(cfg,output);
    output.flush();
    output.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + mavenCfg.getAbsolutePath(),e);
  }
}
Program: 10028
Project: 10028
Buggy source:
@Override protected void configure() throws MojoExecutionException {
  compiledLocales=getLocales();
  runtimeLocales=null;
  super.configure();
  configuration.addSourcePath(new File[]{new File(build.getTestOutputDirectory())});
  configuration.addSourcePath(getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]));
  configuration.allowSourcePathOverlap(true);
  configuration.enableDebugging(true,super.debugPassword);
}

Fixed version (ground truth):
@Override protected void configure() throws MojoExecutionException, MojoFailureException {
  compiledLocales=getLocales();
  runtimeLocales=null;
  super.configure();
  configuration.addSourcePath(new File[]{new File(build.getTestOutputDirectory())});
  configuration.addSourcePath(getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]));
  configuration.allowSourcePathOverlap(true);
  configuration.enableDebugging(true,super.debugPassword);
}
Program: 10029
Project: 10029
Buggy source:
@Override protected void resolveDependencies() throws MojoExecutionException {
  configuration.setExternalLibraryPath(getGlobalDependency());
  configuration.setLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(merge(getResourcesBundles(getDefaultLocale()),getResourcesBundles(runtimeLocales),getResourcesBundles(compiledLocales)));
  configuration.includeLibraries(merge(getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str")));
}

Fixed version (ground truth):
@Override protected void resolveDependencies() throws MojoExecutionException, MojoFailureException {
  configuration.setExternalLibraryPath(getGlobalDependency());
  configuration.setLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(merge(getResourcesBundles(getDefaultLocale()),getResourcesBundles(runtimeLocales),getResourcesBundles(compiledLocales)));
  configuration.includeLibraries(merge(getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str"),getDependenciesPath("String_Node_Str")));
  configuration.setTheme(getThemes());
}
Program: 10030
Project: 10030
Buggy source:
@Override protected void configure() throws MojoExecutionException {
  super.configure();
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addSourcePath(getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]));
}

Fixed version (ground truth):
@Override protected void configure() throws MojoExecutionException, MojoFailureException {
  super.configure();
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addSourcePath(getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]));
}
Program: 10032
Project: 10032
Buggy source:
protected void resolveDependencies() throws MojoExecutionException {
  configuration.setExternalLibraryPath(getGlobalDependency());
  configuration.addExternalLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.includeLibraries(getDependenciesPath("String_Node_Str"));
  configuration.setLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  if (compiledLocales == null && runtimeLocales == null && isApplication()) {
    configuration.addLibraryPath(getResourcesBundles(getDefaultLocale()));
  }
 else   if (compiledLocales != null) {
    configuration.addLibraryPath(getResourcesBundles(compiledLocales));
  }
  resolveRuntimeLibraries();
  configuration.setTheme(getDependenciesPath("String_Node_Str"));
}

Fixed version (ground truth):
protected void resolveDependencies() throws MojoExecutionException, MojoFailureException {
  configuration.setExternalLibraryPath(getGlobalDependency());
  configuration.addExternalLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.includeLibraries(getDependenciesPath("String_Node_Str"));
  configuration.setLibraryPath(getDependenciesPath("String_Node_Str"));
  configuration.addLibraryPath(getDependenciesPath("String_Node_Str"));
  if (compiledLocales == null && runtimeLocales == null && isApplication()) {
    configuration.addLibraryPath(getResourcesBundles(getDefaultLocale()));
  }
 else   if (compiledLocales != null) {
    configuration.addLibraryPath(getResourcesBundles(compiledLocales));
  }
  resolveRuntimeLibraries();
  configuration.setTheme(getThemes());
}
Program: 10034
Project: 10034
Buggy source:
/** 
 * Resolve a resource file in a maven project resources folders
 * @param project maven project
 * @param resourceFile sugested name on pom
 * @return source file or null if source not found
 */
@SuppressWarnings("String_Node_Str") public static File resolveResourceFile(MavenProject project,String resourceFile){
  List<Resource> resources=project.getBuild().getResources();
  for (  Resource resourceFolder : resources) {
    File resource=new File(resourceFolder.getDirectory(),resourceFile);
    if (resource.exists()) {
      return resource;
    }
  }
  return null;
}

Fixed version (ground truth):
/** 
 * Resolve a resource file in a maven project resources folders
 * @param project maven project
 * @param fileName sugested name on pom
 * @return source file or null if source not found
 * @throws MojoFailureException
 */
@SuppressWarnings("String_Node_Str") public static File resolveResourceFile(MavenProject project,String fileName) throws MojoFailureException {
  File file=new File(fileName);
  if (file.exists()) {
    return file;
  }
  if (file.isAbsolute()) {
    throw new MojoFailureException("String_Node_Str" + fileName + "String_Node_Str");
  }
  List<Resource> resources=project.getBuild().getResources();
  for (  Resource resourceFolder : resources) {
    File resource=new File(resourceFolder.getDirectory(),fileName);
    if (resource.exists()) {
      return resource;
    }
  }
  throw new MojoFailureException("String_Node_Str" + fileName + "String_Node_Str");
}
Program: 10035
Project: 10035
Buggy source:
@Override protected void run() throws MojoExecutionException, MojoFailureException {
  receiveFlexUnitResults();
  getLog().info("String_Node_Str" + flexUnitCommand);
  final FlexUnitLauncher browser=new FlexUnitLauncher();
  try {
    browser.runTests(swf);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  while (!complete) {
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
}

Fixed version (ground truth):
@Override protected void run() throws MojoExecutionException, MojoFailureException {
  receiveFlexUnitResults();
  getLog().info("String_Node_Str" + flexUnitCommand);
  final FlexUnitLauncher browser=new FlexUnitLauncher(flexUnitCommand);
  try {
    browser.runTests(swf);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  while (!complete) {
    try {
      Thread.sleep(1000);
    }
 catch (    InterruptedException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
}
Program: 10037
Project: 10037
Buggy source:
@SuppressWarnings("String_Node_Str") private File[] listAllResources(){
  List<File> resources=new ArrayList<File>();
  List<Resource> resourcesDirs=project.getResources();
  for (  Resource resource : resourcesDirs) {
    File resourceDir=new File(resource.getDirectory());
    if (!resourceDir.exists()) {
      continue;
    }
    Collection<File> files=FileUtils.listFiles(resourceDir,null,true);
    resources.addAll(files);
  }
  return resources.toArray(new File[resources.size()]);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private File[] listAllResources(){
  List<File> resources=new ArrayList<File>();
  List<Resource> resourcesDirs=project.getResources();
  for (  Resource resource : resourcesDirs) {
    File resourceDir=new File(resource.getDirectory());
    if (!resourceDir.exists()) {
      continue;
    }
    Collection<File> files=FileUtils.listFiles(resourceDir,HiddenFileFilter.VISIBLE,TrueFileFilter.INSTANCE);
    resources.addAll(files);
  }
  return resources.toArray(new File[resources.size()]);
}
Program: 10038
Project: 10038
Buggy source:
private String getFPTrustFolder() throws MojoExecutionException {
  if (MavenUtils.isWindows()) {
    if (MavenUtils.isWindowsVista()) {
      return "String_Node_Str";
    }
    return "String_Node_Str";
  }
  if (MavenUtils.isLinux()) {
    return "String_Node_Str";
  }
  if (MavenUtils.isMac()) {
    return "String_Node_Str";
  }
  throw new MojoExecutionException("String_Node_Str" + MavenUtils.osString());
}

Fixed version (ground truth):
private String getFPTrustFolder() throws MojoExecutionException {
  if (MavenUtils.isWindows()) {
    if (MavenUtils.isWindowsVista()) {
      return "String_Node_Str";
    }
    return "String_Node_Str";
  }
  if (MavenUtils.isUnixBased()) {
    return "String_Node_Str";
  }
  if (MavenUtils.isMac()) {
    return "String_Node_Str";
  }
  throw new MojoExecutionException("String_Node_Str" + MavenUtils.osString());
}
Program: 10041
Project: 10041
Buggy source:
protected void run() throws MojoExecutionException, MojoFailureException {
  List<String> args=new ArrayList<String>();
  addDocSources(args);
  addDocClasses(args);
  addDocNamespaces(args);
  addSourcePath(args);
  addLibraries(args);
  addCompatibility(args);
  addPackageDescriptions(args);
  addDefines(args);
  addExcludeClasses(args);
  addFooter(args);
  args.add("String_Node_Str" + templatesPath.getAbsolutePath());
  args.add("String_Node_Str" + windowTitle);
  args.add("String_Node_Str" + mainTitle);
  args.add("String_Node_Str" + leftFramesetWidth);
  args.add("String_Node_Str" + excludeDependencies);
  args.add("String_Node_Str" + fontsSnapshot.getAbsolutePath());
  if (headlessServer) {
    args.add("String_Node_Str");
  }
  args.add("String_Node_Str" + configFile.getAbsolutePath());
  args.add("String_Node_Str" + output.getAbsolutePath());
  getLog().info(args.toString());
  ASDoc.asdoc(args.toArray(new String[args.size()]));
  int errorCount=ThreadLocalToolkit.errorCount();
  if (errorCount > 0) {
    throw new MojoExecutionException("String_Node_Str");
  }
}

Fixed version (ground truth):
protected void run() throws MojoExecutionException, MojoFailureException {
  List<String> args=new ArrayList<String>();
  addNamespaces(args);
  addDocSources(args);
  addDocClasses(args);
  addDocNamespaces(args);
  addSourcePath(args);
  addLibraries(args);
  addCompatibility(args);
  addPackageDescriptions(args);
  addDefines(args);
  addExcludeClasses(args);
  addFooter(args);
  args.add("String_Node_Str" + templatesPath.getAbsolutePath());
  args.add("String_Node_Str" + windowTitle);
  args.add("String_Node_Str" + mainTitle);
  args.add("String_Node_Str" + leftFramesetWidth);
  args.add("String_Node_Str" + excludeDependencies);
  args.add("String_Node_Str" + fontsSnapshot.getAbsolutePath());
  if (headlessServer) {
    args.add("String_Node_Str");
  }
  args.add("String_Node_Str" + configFile.getAbsolutePath());
  args.add("String_Node_Str" + output.getAbsolutePath());
  getLog().info(args.toString());
  ASDoc.asdoc(args.toArray(new String[args.size()]));
  int errorCount=ThreadLocalToolkit.errorCount();
  if (errorCount > 0) {
    throw new MojoExecutionException("String_Node_Str");
  }
}
Program: 10043
Project: 10043
Buggy source:
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  File sourceDirectory=new File(build.getSourceDirectory());
  if (!sourceDirectory.exists()) {
    throw new MojoExecutionException("String_Node_Str" + sourceDirectory);
  }
  if (source == null) {
    source=resolveSourceFile(project,sourceFile);
  }
  if (source == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!source.exists()) {
    throw new MojoFailureException("String_Node_Str" + sourceFile);
  }
  try {
    builder=new Application(source);
  }
 catch (  FileNotFoundException e) {
    throw new MojoFailureException("String_Node_Str" + source);
  }
  if (moduleFiles != null) {
    modules=new ArrayList<File>();
    for (    String modulePath : moduleFiles) {
      File module=new File(sourceDirectory,modulePath);
      if (!module.exists()) {
        throw new MojoExecutionException("String_Node_Str" + module + "String_Node_Str");
      }
      modules.add(module);
    }
    if (loadExternsOnModules) {
      super.linkReport=true;
    }
  }
  super.setUp();
  if (outputFile == null) {
    if (output == null) {
      outputFile=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str");
    }
 else {
      outputFile=new File(build.getDirectory(),output);
    }
  }
  builder.setOutput(outputFile);
}

Fixed version (ground truth):
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  File sourceDirectory=new File(build.getSourceDirectory());
  if (!sourceDirectory.exists()) {
    throw new MojoExecutionException("String_Node_Str" + sourceDirectory);
  }
  if (source == null) {
    getLog().warn("String_Node_Str");
    source=resolveSourceFile(project,sourceFile);
  }
  if (source == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!source.exists()) {
    throw new MojoFailureException("String_Node_Str" + sourceFile);
  }
  try {
    builder=new Application(source);
  }
 catch (  FileNotFoundException e) {
    throw new MojoFailureException("String_Node_Str" + source);
  }
  if (moduleFiles != null) {
    modules=new ArrayList<File>();
    for (    String modulePath : moduleFiles) {
      File module=new File(sourceDirectory,modulePath);
      if (!module.exists()) {
        throw new MojoExecutionException("String_Node_Str" + module + "String_Node_Str");
      }
      modules.add(module);
    }
    if (loadExternsOnModules) {
      super.linkReport=true;
    }
  }
  super.setUp();
  if (outputFile == null) {
    if (output == null) {
      outputFile=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str");
    }
 else {
      outputFile=new File(build.getDirectory(),output);
    }
  }
  builder.setOutput(outputFile);
}
Program: 10044
Project: 10044
Buggy source:
private void installFlexFrameworkArtifacts() throws MojoExecutionException {
  getLog().info("String_Node_Str");
  Collection<Artifact> swcArtifacts=new ArrayList<Artifact>();
  File swcLibFolder=new File(sdkFolder,"String_Node_Str");
  Collection<File> swcs=listFiles(swcLibFolder,SWCS,true);
  for (  File swc : swcs) {
    Artifact artifact=createArtifact(swc,FRAMEWORK_GROUP_ID);
    if ("String_Node_Str".equals(artifact.getArtifactId())) {
      if (artifact.getVersion().startsWith(defaultPlayerVersion)) {
        swcArtifacts.add(artifact);
      }
    }
 else {
      swcArtifacts.add(artifact);
    }
    installArtifact(swc,artifact);
    Artifact pomArtifact=createPomArtifact(artifact);
    generatePom(pomArtifact);
  }
  installResourceBundleArtifacts(swcArtifacts);
  installRslArtifacts();
  installConfigFiles(swcArtifacts);
  Collection<Artifact> flexArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str","String_Node_Str"});
  Artifact flexSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(flexSdk,flexArtifacts);
  Collection<Artifact> airArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str"});
  Artifact airSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(airSdk,airArtifacts);
}

Fixed version (ground truth):
private void installFlexFrameworkArtifacts() throws MojoExecutionException {
  getLog().info("String_Node_Str");
  Collection<Artifact> swcArtifacts=new ArrayList<Artifact>();
  File swcLibFolder=new File(sdkFolder,"String_Node_Str");
  IOFileFilter dirFilter=new NotFileFilter(new NameFileFilter("String_Node_Str"));
  Collection<File> swcs=listFiles(swcLibFolder,new SuffixFileFilter(SWCS),dirFilter);
  for (  File swc : swcs) {
    Artifact artifact=createArtifact(swc,FRAMEWORK_GROUP_ID);
    if ("String_Node_Str".equals(artifact.getArtifactId())) {
      if (artifact.getVersion().startsWith(defaultPlayerVersion)) {
        swcArtifacts.add(artifact);
      }
    }
 else {
      swcArtifacts.add(artifact);
    }
    installArtifact(swc,artifact);
    Artifact pomArtifact=createPomArtifact(artifact);
    generatePom(pomArtifact);
  }
  installResourceBundleArtifacts(swcArtifacts);
  installRslArtifacts();
  installConfigFiles(swcArtifacts);
  Collection<Artifact> flexArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str","String_Node_Str"});
  Artifact flexSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(flexSdk,flexArtifacts);
  Collection<Artifact> airArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str"});
  Artifact airSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(airSdk,airArtifacts);
}
Program: 10045
Project: 10045
Buggy source:
private void installResourceBundleBeacon(File swcLocalesFolder,Collection<Artifact> flexArtifacts) throws MojoExecutionException {
  Collection<File> localizedSwcs=listFiles(swcLocalesFolder,SWCS,true);
  Set<String> localizedSwcsNames=new HashSet<String>();
  for (  File localizedSwc : localizedSwcs) {
    String name=getResourceName(localizedSwc);
    localizedSwcsNames.add(name);
  }
  for (  String swcName : localizedSwcsNames) {
    Artifact artifact=artifactFactory.createArtifactWithClassifier(FRAMEWORK_GROUP_ID,swcName,version,"String_Node_Str","String_Node_Str");
    File tempFile=createTempFile(swcName,"String_Node_Str");
    try {
      FileUtils.copyURLToFile(getClass().getResource("String_Node_Str"),tempFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + artifact,e);
    }
    installArtifact(tempFile,artifact);
    flexArtifacts.add(artifact);
  }
}

Fixed version (ground truth):
private void installResourceBundleBeacon(File swcLocalesFolder,Collection<Artifact> flexArtifacts) throws MojoExecutionException {
  if (!swcLocalesFolder.exists()) {
    throw new MojoExecutionException("String_Node_Str");
  }
  Collection<File> localizedSwcs=listFiles(swcLocalesFolder,SWCS,true);
  Set<String> localizedSwcsNames=new HashSet<String>();
  for (  File localizedSwc : localizedSwcs) {
    String name=getResourceName(localizedSwc);
    localizedSwcsNames.add(name);
  }
  for (  String swcName : localizedSwcsNames) {
    Artifact artifact=artifactFactory.createArtifactWithClassifier(FRAMEWORK_GROUP_ID,swcName,version,"String_Node_Str","String_Node_Str");
    File tempFile=createTempFile(swcName,"String_Node_Str");
    try {
      FileUtils.copyURLToFile(getClass().getResource("String_Node_Str"),tempFile);
    }
 catch (    IOException e) {
      throw new MojoExecutionException("String_Node_Str" + artifact,e);
    }
    installArtifact(tempFile,artifact);
    flexArtifacts.add(artifact);
  }
}
Program: 10046
Project: 10046
Buggy source:
private void installConfigFiles(Collection<Artifact> swcArtifacts) throws MojoExecutionException {
  File frameworks=new File(sdkFolder,"String_Node_Str");
  Collection<File> files=listFiles(frameworks,new String[]{"String_Node_Str","String_Node_Str"},false);
  File zipFile=createTempFile("String_Node_Str","String_Node_Str");
  try {
    ZipOutputStream outStream=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(file.getName());
      outStream.putNextEntry(entry);
      byte[] content=FileUtils.readFileToByteArray(file);
      IOUtils.write(content,outStream);
      outStream.flush();
    }
    outStream.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  Artifact artifact=artifactFactory.createArtifactWithClassifier(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  installArtifact(zipFile,artifact);
  swcArtifacts.add(artifact);
}

Fixed version (ground truth):
private void installConfigFiles(Collection<Artifact> swcArtifacts) throws MojoExecutionException {
  File frameworks=new File(sdkFolder,"String_Node_Str");
  Collection<File> files=listFiles(frameworks,new String[]{"String_Node_Str","String_Node_Str"},false);
  if (files.isEmpty()) {
    return;
  }
  File zipFile=createTempFile("String_Node_Str","String_Node_Str");
  try {
    ZipOutputStream outStream=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(file.getName());
      outStream.putNextEntry(entry);
      byte[] content=FileUtils.readFileToByteArray(file);
      IOUtils.write(content,outStream);
      outStream.flush();
    }
    outStream.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  Artifact artifact=artifactFactory.createArtifactWithClassifier(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  installArtifact(zipFile,artifact);
  swcArtifacts.add(artifact);
}
Program: 10048
Project: 10048
Buggy source:
public Namespace(){
  super();
}

Fixed version (ground truth):
public Namespace(String uri,File manifest){
  super();
  this.uri=uri;
  this.manifest=manifest;
}
Program: 10049
Project: 10049
Buggy source:
private void generatePom(Artifact artifact,Collection<Artifact> artifacts) throws MojoExecutionException {
  Model model=new Model();
  model.setModelVersion("String_Node_Str");
  model.setGroupId(artifact.getGroupId());
  model.setArtifactId(artifact.getArtifactId());
  model.setVersion(artifact.getVersion());
  model.setPackaging(artifact.getType());
  model.setDescription("String_Node_Str");
  for (  Artifact artifactDependency : artifacts) {
    Dependency dep=new Dependency();
    dep.setGroupId(artifactDependency.getGroupId());
    dep.setArtifactId(artifactDependency.getArtifactId());
    dep.setVersion(artifactDependency.getVersion());
    dep.setType(artifactDependency.getType());
    model.addDependency(dep);
  }
  try {
    File tempFile=createTempFile(artifact.getArtifactId(),"String_Node_Str");
    FileWriter fw=new FileWriter(tempFile);
    tempFile.deleteOnExit();
    new MavenXpp3Writer().write(fw,model);
    fw.flush();
    fw.close();
    installArtifact(tempFile,artifact);
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + e.getMessage(),e);
  }
}

Fixed version (ground truth):
private void generatePom(Artifact artifact,Collection<Artifact> artifacts) throws MojoExecutionException {
  Model model=new Model();
  model.setModelVersion("String_Node_Str");
  model.setGroupId(artifact.getGroupId());
  model.setArtifactId(artifact.getArtifactId());
  model.setVersion(artifact.getVersion());
  model.setPackaging(artifact.getType());
  model.setDescription("String_Node_Str");
  for (  Artifact artifactDependency : artifacts) {
    Dependency dep=new Dependency();
    dep.setGroupId(artifactDependency.getGroupId());
    dep.setArtifactId(artifactDependency.getArtifactId());
    dep.setVersion(artifactDependency.getVersion());
    dep.setType(artifactDependency.getType());
    dep.setClassifier(artifactDependency.getClassifier());
    model.addDependency(dep);
  }
  try {
    File tempFile=createTempFile(artifact.getArtifactId(),"String_Node_Str");
    FileWriter fw=new FileWriter(tempFile);
    tempFile.deleteOnExit();
    new MavenXpp3Writer().write(fw,model);
    fw.flush();
    fw.close();
    installArtifact(tempFile,artifact);
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + e.getMessage(),e);
  }
}
Program: 10050
Project: 10050
Buggy source:
private void installFlexFrameworkArtifacts() throws MojoExecutionException {
  getLog().info("String_Node_Str");
  Collection<Artifact> swcArtifacts=new ArrayList<Artifact>();
  File swcLibFolder=new File(sdkFolder,"String_Node_Str");
  Collection<File> swcs=listFiles(swcLibFolder,SWCS,true);
  for (  File swc : swcs) {
    Artifact artifact=createArtifact(swc,FRAMEWORK_GROUP_ID);
    if ("String_Node_Str".equals(artifact.getArtifactId())) {
      if (artifact.getVersion().startsWith(defaultPlayerVersion)) {
        swcArtifacts.add(artifact);
      }
    }
 else {
      swcArtifacts.add(artifact);
    }
    installArtifact(swc,artifact);
    Artifact pomArtifact=createPomArtifact(artifact);
    generatePom(pomArtifact);
  }
  installResourceBundleArtifacts(swcArtifacts);
  installRslArtifacts();
  Collection<Artifact> flexArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str","String_Node_Str"});
  Artifact flexSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(flexSdk,flexArtifacts);
  Collection<Artifact> airArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str"});
  Artifact airSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(airSdk,airArtifacts);
}

Fixed version (ground truth):
private void installFlexFrameworkArtifacts() throws MojoExecutionException {
  getLog().info("String_Node_Str");
  Collection<Artifact> swcArtifacts=new ArrayList<Artifact>();
  File swcLibFolder=new File(sdkFolder,"String_Node_Str");
  Collection<File> swcs=listFiles(swcLibFolder,SWCS,true);
  for (  File swc : swcs) {
    Artifact artifact=createArtifact(swc,FRAMEWORK_GROUP_ID);
    if ("String_Node_Str".equals(artifact.getArtifactId())) {
      if (artifact.getVersion().startsWith(defaultPlayerVersion)) {
        swcArtifacts.add(artifact);
      }
    }
 else {
      swcArtifacts.add(artifact);
    }
    installArtifact(swc,artifact);
    Artifact pomArtifact=createPomArtifact(artifact);
    generatePom(pomArtifact);
  }
  installResourceBundleArtifacts(swcArtifacts);
  installRslArtifacts();
  installConfigFiles(swcArtifacts);
  Collection<Artifact> flexArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str","String_Node_Str"});
  Artifact flexSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(flexSdk,flexArtifacts);
  Collection<Artifact> airArtifacts=filter(swcArtifacts,null,new String[]{"String_Node_Str"});
  Artifact airSdk=artifactFactory.createArtifact(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  generatePom(airSdk,airArtifacts);
}
Program: 10051
Project: 10051
Buggy source:
public void execute() throws MojoExecutionException, MojoFailureException {
  if (sdkFolder == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!sdkFolder.exists() || !sdkFolder.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + sdkFolder.getAbsolutePath());
  }
  installCompilerArtifacts();
  installAsdocTemplateArtifact();
  installConfigFiles();
  installFlexFrameworkArtifacts();
}

Fixed version (ground truth):
public void execute() throws MojoExecutionException, MojoFailureException {
  if (sdkFolder == null) {
    throw new MojoExecutionException("String_Node_Str");
  }
  if (!sdkFolder.exists() || !sdkFolder.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + sdkFolder.getAbsolutePath());
  }
  installCompilerArtifacts();
  installAsdocTemplateArtifact();
  installFlexFrameworkArtifacts();
}
Program: 10052
Project: 10052
Buggy source:
private void installConfigFiles() throws MojoExecutionException {
  File frameworks=new File(sdkFolder,"String_Node_Str");
  Collection<File> files=listFiles(frameworks,new String[]{"String_Node_Str","String_Node_Str"},false);
  File zipFile=createTempFile("String_Node_Str","String_Node_Str");
  try {
    ZipOutputStream outStream=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(file.getName());
      outStream.putNextEntry(entry);
      byte[] content=FileUtils.readFileToByteArray(file);
      IOUtils.write(content,outStream);
      outStream.flush();
    }
    outStream.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  Artifact artifact=artifactFactory.createArtifactWithClassifier(COMPILER_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  installArtifact(zipFile,artifact);
}

Fixed version (ground truth):
private void installConfigFiles(Collection<Artifact> swcArtifacts) throws MojoExecutionException {
  File frameworks=new File(sdkFolder,"String_Node_Str");
  Collection<File> files=listFiles(frameworks,new String[]{"String_Node_Str","String_Node_Str"},false);
  File zipFile=createTempFile("String_Node_Str","String_Node_Str");
  try {
    ZipOutputStream outStream=new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(zipFile)));
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(file.getName());
      outStream.putNextEntry(entry);
      byte[] content=FileUtils.readFileToByteArray(file);
      IOUtils.write(content,outStream);
      outStream.flush();
    }
    outStream.close();
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  Artifact artifact=artifactFactory.createArtifactWithClassifier(FRAMEWORK_GROUP_ID,"String_Node_Str",version,"String_Node_Str","String_Node_Str");
  installArtifact(zipFile,artifact);
  swcArtifacts.add(artifact);
}