nus-yam/ex-repair huggingface dataset:
Program: 9968
Project: 9968
Buggy source:
@FlexCompatibility(minVersion="String_Node_Str") public Integer getSwfVersion(){
  if (swfVersion != null) {
    return swfVersion;
  }
  Artifact global=getGlobalArtifact();
  if (AIR_GLOBAL.equals(global.getArtifactId())) {
    String airVersion=global.getVersion();
    if (VersionUtils.isMinVersionOK(airVersion,"String_Node_Str"))     return 13;
    if (VersionUtils.isMinVersionOK(airVersion,"String_Node_Str"))     return 12;
    if (VersionUtils.isMinVersionOK(airVersion,"String_Node_Str"))     return 11;
    if (VersionUtils.isMinVersionOK(airVersion,"String_Node_Str"))     return 10;
    getLog().warn("String_Node_Str" + global);
  }
 else   if (PLAYER_GLOBAL.equals(global.getArtifactId())) {
    String playerVersion=global.getVersion();
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 16;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 15;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 14;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 13;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 12;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 11;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 10;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 9;
    getLog().warn("String_Node_Str" + global);
  }
  return null;
}

Fixed version (ground truth):
@FlexCompatibility(minVersion="String_Node_Str") public Integer getSwfVersion(){
  if (swfVersion != null) {
    return swfVersion;
  }
  Artifact global=getGlobalArtifact();
  if (PLAYER_GLOBAL.equals(global.getArtifactId())) {
    String playerVersion=global.getVersion();
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 16;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 15;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 14;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 13;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 12;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 11;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 10;
    if (VersionUtils.isMinVersionOK(playerVersion,"String_Node_Str"))     return 9;
    getLog().warn("String_Node_Str" + global);
  }
  return null;
}
Program: 9969
Project: 9969
Buggy source:
@SuppressWarnings("String_Node_Str") public boolean getIsAirProject(){
  return getDependency(groupId(FLEX_GROUP_ID),artifactId(AIR_GLOBAL),type(SWC)) != null;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public boolean getIsAirProject(){
  return (getDependency(groupId(AIR_GROUP_ID),artifactId(AIR_GLOBAL),type(SWC)) != null) || (getDependency(groupId(FLEX_GROUP_ID),artifactId(AIR_GLOBAL),type(SWC)) != null);
}
Program: 9970
Project: 9970
Buggy source:
private void copyFolderTemplate(String path) throws MojoExecutionException {
  File source=new File(path);
  if (!source.isAbsolute()) {
    source=new File(project.getBasedir(),path);
  }
  if (!source.exists() || !source.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + source);
  }
  try {
    FileUtils.copyDirectory(source,templateOutputDirectory);
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + templateOutputDirectory,e);
  }
}

Fixed version (ground truth):
private void copyFolderTemplate(String path) throws MojoExecutionException {
  File source=new File(path);
  if (!source.isAbsolute()) {
    source=new File(project.getBasedir(),path);
  }
  if (!source.exists() || !source.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + source);
  }
  try {
    FileUtils.copyDirectoryStructure(source,templateOutputDirectory);
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + templateOutputDirectory,e);
  }
}
Program: 9971
Project: 9971
Buggy source:
public IIncludeFile[] getIncludeFile(){
  List<IIncludeFile> files=new ArrayList<IIncludeFile>();
  List<FileSet> patterns=new ArrayList<FileSet>();
  if (includeFiles == null && includeNamespaces == null && includeSources == null && includeClasses == null) {
    patterns.addAll(resources);
  }
 else   if (includeFiles == null) {
    return null;
  }
 else {
    patterns.addAll(includeFiles.getPatterns());
    for (    final String path : includeFiles.getIncludes()) {
      final File file=PathUtil.file(path,getResourcesTargetDirectories());
      files.add(new IIncludeFile(){
        public String name(){
          return path.replace('\\','/');
        }
        public String path(){
          return file.getAbsolutePath();
        }
      }
);
    }
  }
  for (  FileSet pattern : patterns) {
    final DirectoryScanner scan=scan(pattern);
    if (scan == null) {
      continue;
    }
    for (    final String file : scan.getIncludedFiles()) {
      files.add(new IIncludeFile(){
        public String name(){
          return file.replace('\\','/');
        }
        public String path(){
          return PathUtil.file(file,scan.getBasedir()).getAbsolutePath();
        }
      }
);
    }
  }
  return files.toArray(new IIncludeFile[0]);
}

Fixed version (ground truth):
public IIncludeFile[] getIncludeFile(){
  List<IIncludeFile> files=new ArrayList<IIncludeFile>();
  List<FileSet> patterns=new ArrayList<FileSet>();
  if (includeFiles == null && includeNamespaces == null && includeSources == null && includeClasses == null) {
    patterns.addAll(resources);
  }
 else   if (includeFiles == null) {
    return null;
  }
 else {
    patterns.addAll(includeFiles.getPatterns());
    for (    final String path : includeFiles.getIncludes()) {
      final File file=PathUtil.file(path,getResourcesTargetDirectories());
      if (file == null) {
        throw new IllegalStateException("String_Node_Str" + path + "String_Node_Str");
      }
      files.add(new IIncludeFile(){
        public String name(){
          return path.replace('\\','/');
        }
        public String path(){
          return file.getAbsolutePath();
        }
      }
);
    }
  }
  for (  FileSet pattern : patterns) {
    final DirectoryScanner scan=scan(pattern);
    if (scan == null) {
      continue;
    }
    for (    final String file : scan.getIncludedFiles()) {
      files.add(new IIncludeFile(){
        public String name(){
          return file.replace('\\','/');
        }
        public String path(){
          return PathUtil.file(file,scan.getBasedir()).getAbsolutePath();
        }
      }
);
    }
  }
  return files.toArray(new IIncludeFile[0]);
}
Program: 9972
Project: 9972
Buggy source:
@SuppressWarnings("String_Node_Str") public List<String> getTheme(){
  List<File> themes=new ArrayList<File>();
  Set<Artifact> themeDependencies=getDependencies(anyOf(type(SWC),type(CSS)),scope(THEME));
  themes.addAll(asList(MavenUtils.getFiles(themeDependencies)));
  if (this.themes != null) {
    themes.addAll(asList(files(this.themes,getResourcesTargetDirectories())));
  }
  if (themes.isEmpty()) {
    getLog().warn("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    configureThemeSparkCss(themes);
    configureThemeHaloSwc(themes);
  }
  return pathsList(themes);
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public List<String> getTheme(){
  List<File> themes=new ArrayList<File>();
  Set<Artifact> themeDependencies=getDependencies(anyOf(type(SWC),type(CSS)),scope(FlexScopes.THEME));
  themes.addAll(asList(MavenUtils.getFiles(themeDependencies)));
  if (this.themes != null) {
    themes.addAll(asList(files(this.themes,getResourcesTargetDirectories())));
  }
  if (themes.isEmpty()) {
    getLog().warn("String_Node_Str" + "String_Node_Str" + "String_Node_Str");
    configureThemeSparkCss(themes);
    configureThemeHaloSwc(themes);
  }
  return pathsList(themes);
}
Program: 9973
Project: 9973
Buggy source:
public Boolean getUseNetwork(){
  return userNetwork;
}

Fixed version (ground truth):
public Boolean getUseNetwork(){
  return useNetwork;
}
Program: 9974
Project: 9974
Buggy source:
@SuppressWarnings("String_Node_Str") public List<String> getTheme(){
  List<String> themes=new ArrayList<String>();
  if (this.themes != null) {
    themes.addAll(PathUtil.pathsList(this.themes));
  }
  themes.addAll(PathUtil.pathsList(MavenUtils.getFiles(getDependencies(anyOf(type(SWC),type(CSS)),scope(THEME)))));
  return themes;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public List<String> getTheme(){
  List<String> themes=new ArrayList<String>();
  if (this.themes != null) {
    themes.addAll(pathsList(files(this.themes,getResourcesTargetDirectories())));
  }
  themes.addAll(PathUtil.pathsList(MavenUtils.getFiles(getDependencies(anyOf(type(SWC),type(CSS)),scope(THEME)))));
  return themes;
}
Program: 9976
Project: 9976
Buggy source:
public void setOptimize(boolean optimize){
  this.optimize=optimize;
}

Fixed version (ground truth):
public void setOptimize(Boolean optimize){
  this.optimize=optimize;
}
Program: 9977
Project: 9977
Buggy source:
public boolean isOptimize(){
  return optimize;
}

Fixed version (ground truth):
public Boolean isOptimize(){
  return optimize;
}
Program: 9978
Project: 9978
Buggy source:
public String getCompatibilityVersion(){
  return compatibilityVersion;
}

Fixed version (ground truth):
public String getCompatibilityVersion(){
  if (compatibilityVersion == null) {
    return null;
  }
  String[] versionStringParts=compatibilityVersion.split("String_Node_Str");
  if (versionStringParts.length != 3) {
    throw new MavenRuntimeException("String_Node_Str" + compatibilityVersion + "String_Node_Str");
  }
 else {
    try {
      for (int i=0; i < 3; i++) {
        Integer.parseInt(versionStringParts[i]);
      }
    }
 catch (    NumberFormatException e) {
      throw new MavenRuntimeException("String_Node_Str",e);
    }
  }
  return compatibilityVersion;
}
Program: 9980
Project: 9980
Buggy source:
public String[] getLanguage(){
  if (this.metadata != null && this.metadata.getLanguage() != null) {
    return this.metadata.getLanguage();
  }
  return getLocale();
}

Fixed version (ground truth):
public String[] getLanguage(){
  if (this.metadata != null && this.metadata.getLanguage() != null) {
    return this.metadata.getLanguage();
  }
  if (getLocale() == null || getLocale().length == 0) {
    return null;
  }
  return getLocale();
}
Program: 9981
Project: 9981
Buggy source:
@SuppressWarnings("String_Node_Str") public File[] getLibraryPath(){
  if (SWC.equals(getProjectType())) {
    return MavenUtils.getFiles(getDependencies(type(SWC),scope(MERGED),not(GLOBAL_MATCHER)),getCompiledResouceBundles());
  }
 else {
    return MavenUtils.getFiles(getDependencies(type(SWC),anyOf(scope(MERGED),scope(COMPILE),scope(null)),not(GLOBAL_MATCHER)),getCompiledResouceBundles());
  }
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") private File[] getLibraryPath(boolean includeResourceBundle){
  Collection<Artifact> resourceBundle=includeResourceBundle ? getCompiledResouceBundles() : Collections.EMPTY_LIST;
  if (SWC.equals(getProjectType())) {
    return MavenUtils.getFiles(getDependencies(type(SWC),scope(MERGED),not(GLOBAL_MATCHER)),resourceBundle);
  }
 else {
    return MavenUtils.getFiles(getDependencies(type(SWC),anyOf(scope(MERGED),scope(COMPILE),scope(null)),not(GLOBAL_MATCHER)),resourceBundle);
  }
}
Program: 9982
Project: 9982
Buggy source:
@SuppressWarnings("String_Node_Str") protected void configureResourceBundle(String locale,AbstractFlexCompilerMojo<?,?> cfg){
  cfg.localesCompiled=new String[]{locale};
  cfg.localesRuntime=null;
  cfg.classifier=locale;
  cfg.includeResourceBundles=getResourceBundleListContent();
  cfg.getCache().put("String_Node_Str",MavenUtils.getFiles(getDependencies(type(SWC))));
  cfg.getCache().put("String_Node_Str",MavenUtils.getFiles(cfg.getCompiledResouceBundles()));
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") protected void configureResourceBundle(String locale,AbstractFlexCompilerMojo<?,?> cfg){
  cfg.localesCompiled=new String[]{locale};
  cfg.localesRuntime=null;
  if (locale.contains("String_Node_Str")) {
    cfg.classifier=locale.split("String_Node_Str")[0];
  }
 else {
    cfg.classifier=locale;
  }
  cfg.includeResourceBundles=getResourceBundleListContent();
  cfg.getCache().put("String_Node_Str",MavenUtils.getFiles(getDependencies(type(SWC))));
  cfg.getCache().put("String_Node_Str",MavenUtils.getFiles(cfg.getCompiledResouceBundles()));
}
Program: 9984
Project: 9984
Buggy source:
/** 
 * 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");
}

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
 */
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: 9985
Project: 9985
Buggy source:
public final Result doCompile(MxmlcConfigurationHolder cfg,boolean synchronize) throws Exception {
  try {
    return compiler.compileSwf(cfg,synchronize);
  }
  finally {
    if (isUpdateSecuritySandbox()) {
      truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()));
    }
  }
}

Fixed version (ground truth):
public final Result doCompile(MxmlcConfigurationHolder cfg,boolean synchronize) throws Exception {
  if (isUpdateSecuritySandbox()) {
    truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()).getParentFile());
    truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()));
  }
  return compiler.compileSwf(cfg,synchronize);
}
Program: 9986
Project: 9986
Buggy source:
/** 
 * Retrieves flash player trust folder, based on: http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_03.html #140756
 */
public File getTrustDir(){
  String trustPath;
  String home=System.getProperty("String_Node_Str");
  if (MavenUtils.isWindows()) {
    String appData=System.getenv("String_Node_Str");
    if (appData == null) {
      if (MavenUtils.isWindowsVista()) {
        appData=home + "String_Node_Str";
      }
 else {
        appData=home + "String_Node_Str";
      }
    }
    if (MavenUtils.isWindowsVista()) {
      trustPath=appData + "String_Node_Str";
    }
 else {
      trustPath=appData + "String_Node_Str";
    }
  }
 else   if (MavenUtils.isUnixBased()) {
    trustPath=home + "String_Node_Str";
  }
 else   if (MavenUtils.isMac()) {
    trustPath=home + "String_Node_Str";
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + MavenUtils.osString());
  }
  File trustDir=new File(trustPath);
  if (!trustDir.exists()) {
    trustDir.mkdirs();
  }
  return trustDir;
}

Fixed version (ground truth):
/** 
 * Retrieves flash player trust folder, based on: http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_03.html #140756
 */
public File getTrustDir(){
  String trustPath;
  String home=System.getProperty("String_Node_Str");
  if (MavenUtils.isWindows()) {
    String appData=System.getenv("String_Node_Str");
    if (appData == null) {
      if (MavenUtils.isWindowsVista()) {
        appData=home + "String_Node_Str";
      }
 else {
        appData=home + "String_Node_Str";
      }
    }
    trustPath=appData + "String_Node_Str";
  }
 else   if (MavenUtils.isUnixBased()) {
    trustPath=home + "String_Node_Str";
  }
 else   if (MavenUtils.isMac()) {
    trustPath=home + "String_Node_Str";
  }
 else {
    throw new IllegalArgumentException("String_Node_Str" + MavenUtils.osString());
  }
  File trustDir=new File(trustPath);
  if (!trustDir.exists()) {
    trustDir.mkdirs();
  }
  return trustDir;
}
Program: 9987
Project: 9987
Buggy source:
public final Result doCompile(MxmlcConfigurationHolder cfg,boolean synchronize) throws Exception {
  if (isUpdateSecuritySandbox()) {
    truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()).getParentFile());
    truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()));
  }
  return compiler.compileSwf(cfg,synchronize);
}

Fixed version (ground truth):
public final Result doCompile(MxmlcConfigurationHolder cfg,boolean synchronize) throws Exception {
  if (isUpdateSecuritySandbox()) {
    truster.updateSecuritySandbox(PathUtil.getCanonicalFile(cfg.getConfiguration().getOutput()));
  }
  return compiler.compileSwf(cfg,synchronize);
}
Program: 9988
Project: 9988
Buggy source:
private void performRuntimeLocalesCopy(MavenProject artifactProject) throws MojoExecutionException {
  List<Artifact> deps=getRuntimeLocalesDependencies(artifactProject);
  if (deps.isEmpty()) {
    return;
  }
  String runtimeLocaleOutputPath=getRuntimeLocaleOutputPath(artifactProject);
  for (  Artifact artifact : deps) {
    try {
      resolver.resolve(artifact,remoteRepositories,localRepository);
    }
 catch (    AbstractArtifactResolutionException e) {
      throw new MojoExecutionException("String_Node_Str" + artifact,e);
    }
    copy(artifact.getFile(),resolveRuntimeLocaleDestination(runtimeLocaleOutputPath,artifact));
  }
}

Fixed version (ground truth):
private void performRuntimeLocalesCopy(MavenProject artifactProject) throws MojoExecutionException {
  List<Artifact> deps=getRuntimeLocalesDependencies(artifactProject);
  if (deps.isEmpty()) {
    return;
  }
  String runtimeLocaleOutputPath=getRuntimeLocaleOutputPath(artifactProject);
  for (  Artifact artifact : deps) {
    artifact=replaceWithResolvedArtifact(artifact);
    copy(artifact.getFile(),resolveRuntimeLocaleDestination(runtimeLocaleOutputPath,artifact));
  }
}
Program: 9989
Project: 9989
Buggy source:
private void performRslCopy(MavenProject artifactProject) throws MojoExecutionException {
  List<Artifact> rslDeps=getRSLDependencies(artifactProject);
  if (rslDeps.isEmpty()) {
    return;
  }
  String[] rslUrls=getRslUrls(artifactProject);
  for (  Artifact rslArtifact : rslDeps) {
    String extension;
    if (RSL.equals(rslArtifact.getScope())) {
      extension=SWF;
    }
 else {
      extension=SWZ;
    }
    rslArtifact=artifactFactory.createArtifactWithClassifier(rslArtifact.getGroupId(),rslArtifact.getArtifactId(),rslArtifact.getVersion(),extension,null);
    try {
      resolver.resolve(rslArtifact,remoteRepositories,localRepository);
    }
 catch (    AbstractArtifactResolutionException e) {
      throw new MojoExecutionException("String_Node_Str" + rslArtifact,e);
    }
    File[] destFiles=resolveRslDestination(rslUrls,rslArtifact,extension);
    File sourceFile=rslArtifact.getFile();
    for (    File destFile : destFiles) {
      copy(sourceFile,destFile);
    }
  }
}

Fixed version (ground truth):
private void performRslCopy(MavenProject artifactProject) throws MojoExecutionException {
  List<Artifact> rslDeps=getRSLDependencies(artifactProject);
  if (rslDeps.isEmpty()) {
    return;
  }
  String[] rslUrls=getRslUrls(artifactProject);
  for (  Artifact rslArtifact : rslDeps) {
    String extension;
    if (RSL.equals(rslArtifact.getScope())) {
      extension=SWF;
    }
 else {
      extension=SWZ;
    }
    rslArtifact=artifactFactory.createArtifactWithClassifier(rslArtifact.getGroupId(),rslArtifact.getArtifactId(),rslArtifact.getVersion(),extension,null);
    rslArtifact=replaceWithResolvedArtifact(rslArtifact);
    File[] destFiles=resolveRslDestination(rslUrls,rslArtifact,extension);
    File sourceFile=rslArtifact.getFile();
    for (    File destFile : destFiles) {
      copy(sourceFile,destFile);
    }
  }
}
Program: 9990
Project: 9990
Buggy source:
/** 
 * Get dependency artifacts for given scope
 * @param scope for which to get artifacts
 * @return List of artifacts
 * @throws MojoExecutionException
 */
protected List<Artifact> getDependencyArtifacts(String... scopes) throws MojoExecutionException {
  if (scopes == null)   return null;
  if (scopes.length == 0) {
    return new ArrayList<Artifact>();
  }
  List<String> scopesList=Arrays.asList(scopes);
  List<Artifact> artifacts=new ArrayList<Artifact>();
  for (  Artifact artifact : getDependencyArtifacts()) {
    if ("String_Node_Str".equals(artifact.getType()) && scopesList.contains(artifact.getScope())) {
      artifacts.add(artifact);
    }
  }
  return artifacts;
}

Fixed version (ground truth):
/** 
 * Get dependency artifacts for given scope
 * @param scopes for which to get artifacts
 * @return List of artifacts
 * @throws MojoExecutionException
 */
protected List<Artifact> getDependencyArtifacts(String... scopes) throws MojoExecutionException {
  if (scopes == null)   return null;
  if (scopes.length == 0) {
    return new ArrayList<Artifact>();
  }
  List<String> scopesList=Arrays.asList(scopes);
  List<Artifact> artifacts=new ArrayList<Artifact>();
  for (  Artifact artifact : getDependencyArtifacts()) {
    if (FlexExtension.SWC.equals(artifact.getType()) && scopesList.contains(artifact.getScope())) {
      artifacts.add(artifact);
    }
  }
  return artifacts;
}
Program: 9991
Project: 9991
Buggy source:
/** 
 * Get resource bundles for the given locale
 * @param requestedLocales the locale for which you want bundles, null for all locales
 * @return Array of resource bundle files
 * @throws MojoExecutionException
 */
protected File[] getResourcesBundles(String... requestedLocales) throws MojoExecutionException {
  if (requestedLocales == null) {
    return new File[0];
  }
  List<File> resourceBundles=new ArrayList<File>();
  for (  Artifact resourceBundleBeacon : getDependencyArtifacts()) {
    if (!RB_SWC.equals(resourceBundleBeacon.getType())) {
      continue;
    }
    for (    String requestLocale : requestedLocales) {
      Artifact resolvedResourceBundle=artifactFactory.createArtifactWithClassifier(resourceBundleBeacon.getGroupId(),resourceBundleBeacon.getArtifactId(),resourceBundleBeacon.getVersion(),resourceBundleBeacon.getType(),requestLocale);
      MavenUtils.resolveArtifact(resolvedResourceBundle,resolver,localRepository,remoteRepositories);
      resourceBundles.add(resolvedResourceBundle.getFile());
    }
  }
  getLog().debug("String_Node_Str" + requestedLocales + "String_Node_Str"+ resourceBundles);
  return resourceBundles.toArray(new File[resourceBundles.size()]);
}

Fixed version (ground truth):
/** 
 * Get resource bundles for the given locale
 * @param requestedLocales the locale for which you want bundles, null for all locales
 * @return Array of resource bundle files
 * @throws MojoExecutionException
 */
protected File[] getResourcesBundles(String... requestedLocales) throws MojoExecutionException {
  if (requestedLocales == null) {
    return new File[0];
  }
  List<File> resourceBundles=new ArrayList<File>();
  for (  Artifact resourceBundleBeacon : getDependencyArtifacts()) {
    if (!RB_SWC.equals(resourceBundleBeacon.getType())) {
      continue;
    }
    for (    String requestLocale : requestedLocales) {
      Artifact resolvedResourceBundle=artifactFactory.createArtifactWithClassifier(resourceBundleBeacon.getGroupId(),resourceBundleBeacon.getArtifactId(),resourceBundleBeacon.getVersion(),resourceBundleBeacon.getType(),requestLocale);
      resolvedResourceBundle=MavenUtils.resolveArtifact(project,resolvedResourceBundle,resolver,localRepository,remoteRepositories);
      resourceBundles.add(resolvedResourceBundle.getFile());
    }
  }
  getLog().debug("String_Node_Str" + requestedLocales + "String_Node_Str"+ resourceBundles);
  return resourceBundles.toArray(new File[resourceBundles.size()]);
}
Program: 9994
Project: 9994
Buggy source:
private List<IdeDependency> resolveResourceBundles(List<IdeDependency> dependencies) throws MojoExecutionException {
  Collection<String> locales=getLocales();
  List<IdeDependency> extraRbs=new ArrayList<IdeDependency>();
  for (Iterator<IdeDependency> it=dependencies.iterator(); it.hasNext(); ) {
    IdeDependency dependency=it.next();
    if ("String_Node_Str".equals(dependency.getArtifactId()) || "String_Node_Str".equals(dependency.getArtifactId())) {
      it.remove();
    }
 else     if (SWC.equals(dependency.getType())) {
      continue;
    }
 else     if (RB_SWC.equals(dependency.getType())) {
      for (      String locale : locales) {
        Artifact art=artifactFactory.createArtifactWithClassifier(dependency.getGroupId(),dependency.getArtifactId(),dependency.getVersion(),dependency.getType(),locale);
        MavenUtils.resolveArtifact(art,resolver,localRepository,remoteRepositories);
        IdeDependency dep=new IdeDependency(art.getGroupId(),art.getArtifactId(),art.getVersion(),art.getClassifier(),false,Artifact.SCOPE_TEST.equals(art.getScope()),false,false,false,art.getFile(),art.getType(),false,null,1);
        if (useM2Home) {
          dep.setFile(new File(dep.getFile().getPath().replace(localRepository.getBasedir(),"String_Node_Str")));
        }
        extraRbs.add(dep);
      }
      it.remove();
    }
 else {
      it.remove();
    }
  }
  return extraRbs;
}

Fixed version (ground truth):
private List<IdeDependency> resolveResourceBundles(List<IdeDependency> dependencies) throws MojoExecutionException {
  Collection<String> locales=getLocales();
  List<IdeDependency> extraRbs=new ArrayList<IdeDependency>();
  for (Iterator<IdeDependency> it=dependencies.iterator(); it.hasNext(); ) {
    IdeDependency dependency=it.next();
    if ("String_Node_Str".equals(dependency.getArtifactId()) || "String_Node_Str".equals(dependency.getArtifactId())) {
      it.remove();
    }
 else     if (SWC.equals(dependency.getType())) {
      continue;
    }
 else     if (RB_SWC.equals(dependency.getType())) {
      for (      String locale : locales) {
        Artifact art=artifactFactory.createArtifactWithClassifier(dependency.getGroupId(),dependency.getArtifactId(),dependency.getVersion(),dependency.getType(),locale);
        art=MavenUtils.resolveArtifact(project,art,resolver,localRepository,remoteRepositories);
        IdeDependency dep=new IdeDependency(art.getGroupId(),art.getArtifactId(),art.getVersion(),art.getClassifier(),false,Artifact.SCOPE_TEST.equals(art.getScope()),false,false,false,art.getFile(),art.getType(),false,null,1);
        if (useM2Home) {
          dep.setFile(new File(dep.getFile().getPath().replace(localRepository.getBasedir(),"String_Node_Str")));
        }
        extraRbs.add(dep);
      }
      it.remove();
    }
 else {
      it.remove();
    }
  }
  return extraRbs;
}
Program: 9995
Project: 9995
Buggy source:
/** 
 * Use the resolver to resolve the given artifact in the local or remote repositories.
 * @param artifact Artifact to be resolved
 * @param resolver ArtifactResolver to use for resolving the artifact
 * @param localRepository ArtifactRepository
 * @param remoteRepositories List of remote artifact repositories
 * @throws MojoExecutionException thrown if an exception occured during artifact resolving
 */
@SuppressWarnings("String_Node_Str") public static void resolveArtifact(Artifact artifact,ArtifactResolver resolver,ArtifactRepository localRepository,List remoteRepositories) throws MojoExecutionException {
  try {
    resolver.resolve(artifact,remoteRepositories,localRepository);
  }
 catch (  AbstractArtifactResolutionException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
/** 
 * Use the resolver to resolve the given artifact in the local or remote repositories.
 * @param project Active project
 * @param artifact Artifact to be resolved
 * @param resolver ArtifactResolver to use for resolving the artifact
 * @param localRepository ArtifactRepository
 * @param remoteRepositories List of remote artifact repositories
 * @throws MojoExecutionException thrown if an exception occured during artifact resolving
 * @return resolved artifact
 */
@SuppressWarnings("String_Node_Str") public static Artifact resolveArtifact(MavenProject project,Artifact artifact,ArtifactResolver resolver,ArtifactRepository localRepository,List remoteRepositories) throws MojoExecutionException {
  try {
    artifact=project.replaceWithActiveArtifact(artifact);
    if (!artifact.isResolved()) {
      resolver.resolve(artifact,remoteRepositories,localRepository);
    }
    return artifact;
  }
 catch (  AbstractArtifactResolutionException e) {
    throw new MojoExecutionException(e.getMessage(),e);
  }
}
Program: 9996
Project: 9996
Buggy source:
/** 
 * Get the file reference of an SWC artifact.<br> If the artifact file does not exist in the [build-dir]/libraries/[scope] directory, the artifact file is copied to that location.
 * @param a artifact for which to retrieve the file reference
 * @param scope scope of the library
 * @param build build for which to get the artifact
 * @return swc artifact file reference
 * @throws MojoExecutionException thrown if an IOException occurs while copying the file to the[build-dir]/libraries/[scope] directory
 */
public static File getArtifactFile(Artifact a,Build build) throws MojoExecutionException {
  File dest=new File(build.getOutputDirectory(),"String_Node_Str" + a.getArtifactId() + "String_Node_Str");
  if (!dest.exists()) {
    try {
      FileUtils.copyFile(a.getFile(),dest);
    }
 catch (    IOException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
  return dest;
}

Fixed version (ground truth):
/** 
 * Get the file reference of an SWC artifact.<br> If the artifact file does not exist in the [build-dir]/libraries/[scope] directory, the artifact file is copied to that location.
 * @param a artifact for which to retrieve the file reference
 * @param build build for which to get the artifact
 * @return swc artifact file reference
 * @throws MojoExecutionException thrown if an IOException occurs while copying the file to the[build-dir]/libraries/[scope] directory
 */
public static File getArtifactFile(Artifact a,Build build) throws MojoExecutionException {
  File dest=new File(build.getOutputDirectory(),"String_Node_Str" + a.getArtifactId() + "String_Node_Str");
  if (!dest.exists()) {
    try {
      FileUtils.copyFile(a.getFile(),dest);
    }
 catch (    IOException e) {
      throw new MojoExecutionException(e.getMessage(),e);
    }
  }
  return dest;
}
Program: 9997
Project: 9997
Buggy source:
public static boolean isMaxVersionOK(int[] fdkVersion,int[] maxVersion){
  int lenght=getSmaller(fdkVersion.length,maxVersion.length);
  for (int i=0; i < lenght; i++) {
    int max=maxVersion[i];
    int current=fdkVersion[i];
    if (current > max) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
public static boolean isMaxVersionOK(int[] fdkVersion,int[] maxVersion){
  return isVersionOK(maxVersion,fdkVersion);
}
Program: 9998
Project: 9998
Buggy source:
public static boolean isMinVersionOK(int[] fdkVersion,int[] minVersion){
  int lenght=getSmaller(fdkVersion.length,minVersion.length);
  for (int i=0; i < lenght; i++) {
    int min=minVersion[i];
    int current=fdkVersion[i];
    if (current < min) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
public static boolean isMinVersionOK(int[] fdkVersion,int[] minVersion){
  return isVersionOK(fdkVersion,minVersion);
}
Program: 9999
Project: 9999
Buggy source:
@Test public void testMaxVersion(){
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
}

Fixed version (ground truth):
@Test public void testMaxVersion(){
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMaxVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
}
Program: 10000
Project: 10000
Buggy source:
@Test public void testMinVersion(){
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
}

Fixed version (ground truth):
@Test public void testMinVersion(){
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertTrue(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
  Assert.assertFalse(isMinVersionOK(splitVersion("String_Node_Str"),splitVersion("String_Node_Str")));
}
Program: 10001
Project: 10001
Buggy source:
@BeforeClass public void createRoot() throws URISyntaxException {
  root=new File(new File(getClass().getResource("String_Node_Str").toURI()),"String_Node_Str");
}

Fixed version (ground truth):
@BeforeClass public void createRoot() throws IOException {
  root=new File("String_Node_Str").getCanonicalFile();
}
Program: 10002
Project: 10002
Buggy source:
@Test public void resolveAbsolute(){
  File file=new File(root,"String_Node_Str");
  Assert.assertTrue(file.exists());
  File rfile=SourceFileResolver.resolveSourceFile(file.getAbsolutePath(),null,null,null);
  Assert.assertTrue(rfile.exists());
  MatcherAssert.assertThat(rfile.getName(),CoreMatchers.equalTo("String_Node_Str"));
  MatcherAssert.assertThat(rfile,CoreMatchers.equalTo(file));
}

Fixed version (ground truth):
@Test public void resolveAbsolute() throws IOException {
  File file=new File(root,"String_Node_Str").getCanonicalFile();
  Assert.assertTrue(file.exists());
  File rfile=SourceFileResolver.resolveSourceFile(file.getAbsolutePath(),null,null,null);
  Assert.assertTrue(rfile.exists());
  MatcherAssert.assertThat(rfile.getName(),CoreMatchers.equalTo("String_Node_Str"));
  MatcherAssert.assertThat(rfile,CoreMatchers.equalTo(file));
}
Program: 10004
Project: 10004
Buggy source:
/** 
 * Get RslUrls
 * @param artifact
 * @param extension
 * @return Array of url's
 */
private String[] getRslUrls(Artifact artifact,String extension){
  String[] rsls=new String[rslUrls.length];
  for (int i=0; i < rslUrls.length; i++) {
    String rsl=rslUrls[i];
    if (contextRoot != null) {
      rsl=rsl.replace("String_Node_Str",contextRoot);
    }
    rsl=rsl.replace("String_Node_Str",artifact.getGroupId());
    rsl=rsl.replace("String_Node_Str",artifact.getArtifactId());
    rsl=rsl.replace("String_Node_Str",artifact.getVersion());
    rsl=rsl.replace("String_Node_Str",extension);
    rsls[i]=rsl;
  }
  return rsls;
}

Fixed version (ground truth):
/** 
 * Get RslUrls
 * @param artifact
 * @param extension
 * @return Array of url's
 */
private String[] getRslUrls(Artifact artifact,String extension){
  String[] rsls=new String[rslUrls.length];
  for (int i=0; i < rslUrls.length; i++) {
    String rsl=rslUrls[i];
    if (contextRoot == null || "String_Node_Str".equals(contextRoot)) {
      rsl=rsl.replace("String_Node_Str","String_Node_Str");
    }
 else {
      rsl=rsl.replace("String_Node_Str",contextRoot);
    }
    rsl=MavenUtils.getRslUrl(rsl,artifact,extension);
    rsls[i]=rsl;
  }
  return rsls;
}
Program: 10005
Project: 10005
Buggy source:
/** 
 * Get array of files for dependency artfacts for given scope
 * @param scope for which to get files
 * @return Array of dependency artifact files
 * @throws MojoExecutionException
 */
protected File[] getDependenciesPath(String scope) throws MojoExecutionException {
  if (scope == null)   return null;
  List<File> files=new ArrayList<File>();
  for (  Artifact a : getDependencyArtifacts(scope)) {
    if ("String_Node_Str".equals(a.getArtifactId()) || "String_Node_Str".equals(a.getArtifactId())) {
      continue;
    }
    files.add(a.getFile());
  }
  return files.toArray(new File[files.size()]);
}

Fixed version (ground truth):
/** 
 * Get array of files for dependency artifacts for given scope
 * @param scope for which to get files
 * @return Array of dependency artifact files
 * @throws MojoExecutionException
 */
protected File[] getDependenciesPath(String scope) throws MojoExecutionException {
  if (scope == null)   return null;
  List<File> files=new ArrayList<File>();
  for (  Artifact a : getDependencyArtifacts(scope)) {
    if ("String_Node_Str".equals(a.getArtifactId()) || "String_Node_Str".equals(a.getArtifactId())) {
      continue;
    }
    files.add(a.getFile());
  }
  return files.toArray(new File[files.size()]);
}
Program: 10006
Project: 10006
Buggy source:
protected File getRuntimeLocaleOutputFile(String locale,String extension){
  String path=runtimeLocaleOutputPath;
  path=path.replace("String_Node_Str",locale);
  path=path.replace("String_Node_Str",extension);
  File output=new File(path);
  output.getParentFile().mkdirs();
  return output;
}

Fixed version (ground truth):
protected File getRuntimeLocaleOutputFile(String locale,String extension){
  String path=runtimeLocaleOutputPath.replace("String_Node_Str",project.getBuild().getDirectory());
  File output=new File(MavenUtils.getRuntimeLocaleOutputPath(path,project.getArtifact(),locale,extension));
  output.getParentFile().mkdirs();
  return output;
}
Program: 10007
Project: 10007
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[]{getOutput()});
  setLocales(new String[]{locale});
  configuration.setSourcePath(new File[]{localePath});
  for (  String bundle : bundles) {
    localized.addResourceBundle(bundle);
  }
  configuration.addLibraryPath(getResourcesBundles(locale));
  File output=getRuntimeLocaleOutputFile(locale,RB_SWC);
  localized.setOutput(output);
  build(localized);
  projectHelper.attachArtifact(project,RB_SWC,locale,output);
}

Fixed version (ground truth):
@Override protected void writeResourceBundle(String[] bundles,String locale,File localePath) throws MojoExecutionException {
  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=getRuntimeLocaleOutputFile(locale,RB_SWC);
  localized.setOutput(output);
  build(localized);
  projectHelper.attachArtifact(project,RB_SWC,locale,output);
}
Program: 10008
Project: 10008
Buggy source:
private void copyFolderTemplate(String path) throws MojoExecutionException {
  File source=new File(path);
  if (!source.exists() || !source.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + source);
  }
  try {
    FileUtils.copyDirectory(source,templateOutputDirectory,FileFilterUtils.makeSVNAware(FileFilterUtils.makeCVSAware(null)));
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + templateOutputDirectory,e);
  }
}

Fixed version (ground truth):
private void copyFolderTemplate(String path) throws MojoExecutionException {
  File source=new File(path);
  if (!source.isAbsolute()) {
    source=new File(project.getBasedir(),path);
  }
  if (!source.exists() || !source.isDirectory()) {
    throw new MojoExecutionException("String_Node_Str" + source);
  }
  try {
    FileUtils.copyDirectory(source,templateOutputDirectory,FileFilterUtils.makeSVNAware(FileFilterUtils.makeCVSAware(null)));
  }
 catch (  IOException e) {
    throw new MojoExecutionException("String_Node_Str" + templateOutputDirectory,e);
  }
}
Program: 10009
Project: 10009
Buggy source:
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  isSetProjectFile=false;
  linkReport=false;
  loadExterns=null;
  if (includeTestFiles == null) {
    includeTestFiles=new String[]{"String_Node_Str","String_Node_Str"};
  }
  File outputFolder=new File(build.getTestOutputDirectory());
  if (!outputFolder.exists()) {
    outputFolder.mkdirs();
  }
  testClasses=getTestClasses();
  File testSourceFile;
  try {
    testSourceFile=generateTester(testClasses);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  sourceFile=null;
  source=testSourceFile;
  outputFile=new File(build.getTestOutputDirectory(),"String_Node_Str");
  super.setUp();
}

Fixed version (ground truth):
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  isSetProjectFile=false;
  linkReport=false;
  loadExterns=null;
  if (includeTestFiles == null) {
    includeTestFiles=new String[]{"String_Node_Str","String_Node_Str"};
  }
  File outputFolder=new File(build.getTestOutputDirectory());
  if (!outputFolder.exists()) {
    outputFolder.mkdirs();
  }
  testClasses=getTestClasses();
  File testSourceFile;
  try {
    testSourceFile=generateTester(testClasses);
  }
 catch (  Exception e) {
    throw new MojoExecutionException("String_Node_Str",e);
  }
  sourceFile=null;
  source=testSourceFile;
  super.setUp();
}
Program: 10010
Project: 10010
Buggy source:
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  isSetProjectFile=false;
  File outputFolder=new File(build.getTestOutputDirectory());
  if (!outputFolder.exists()) {
    outputFolder.mkdirs();
  }
  outputFile=new File(build.getDirectory(),build.getFinalName() + "String_Node_Str");
  includeSources=getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]);
  super.setUp();
}

Fixed version (ground truth):
@Override public void setUp() throws MojoExecutionException, MojoFailureException {
  isSetProjectFile=false;
  File outputFolder=new File(build.getTestOutputDirectory());
  if (!outputFolder.exists()) {
    outputFolder.mkdirs();
  }
  includeSources=getValidSourceRoots(project.getTestCompileSourceRoots()).toArray(new File[0]);
  super.setUp();
}
Program: 10011
Project: 10011
Buggy source:
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  super.tearDown();
  projectHelper.attachArtifact(project,"String_Node_Str","String_Node_Str",outputFile);
}

Fixed version (ground truth):
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  super.tearDown();
  projectHelper.attachArtifact(project,"String_Node_Str","String_Node_Str",getOutput());
}
Program: 10014
Project: 10014
Buggy source:
/** 
 * Perform actions after compilation has run
 */
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  if (isSetProjectFile) {
    project.getArtifact().setFile(outputFile);
  }
  Report report=builder.getReport();
  if (linkReport) {
    writeLinkReport(report);
  }
  if (configurationReport) {
    writeConfigurationReport(report);
  }
  if (runtimeLocales != null) {
    writeResourceBundle(report);
  }
}

Fixed version (ground truth):
/** 
 * Perform actions after compilation has run
 */
@Override protected void tearDown() throws MojoExecutionException, MojoFailureException {
  if (isSetProjectFile) {
    project.getArtifact().setFile(getOutput());
  }
  Report report=builder.getReport();
  if (linkReport) {
    writeLinkReport(report);
  }
  if (configurationReport) {
    writeConfigurationReport(report);
  }
  if (runtimeLocales != null) {
    writeResourceBundle(report);
  }
}