nus-yam/ex-repair huggingface dataset:
Program: 151602
Project: 151602
Buggy source:
@Override public String readLine(final String mask) throws IOException {
  String line=null;
  if (mask != null) {
    line=reader.readLine(mask);
  }
 else {
    line=reader.readLine();
  }
  if (isExecuting() && (line == null)) {
    reader.println();
    reader.flush();
    throw new AbortedException();
  }
 else   if (line == null) {
    String eofs=(String)environment.getProperty(PROP_IGNORE_EOF);
    int propEOFs;
    try {
      propEOFs=Integer.parseInt(eofs);
    }
 catch (    NumberFormatException e) {
      if (isVerbose())       ShellMessages.info(this,"String_Node_Str" + PROP_IGNORE_EOF + "String_Node_Str");
      propEOFs=DEFAULT_IGNORE_EOF;
    }
    if (this.numEOF < propEOFs) {
      println();
      println("String_Node_Str");
      this.numEOF++;
    }
 else {
      print("String_Node_Str");
      shutdown.fire(new Shutdown());
    }
    reader.flush();
  }
 else {
    numEOF=0;
  }
  return line;
}

Fixed version (ground truth):
@Override public String readLine(final Character mask) throws IOException {
  String line=null;
  if (mask != null) {
    line=reader.readLine(mask);
  }
 else {
    line=reader.readLine();
  }
  if (isExecuting() && (line == null)) {
    reader.println();
    reader.flush();
    throw new AbortedException();
  }
 else   if (line == null) {
    String eofs=(String)environment.getProperty(PROP_IGNORE_EOF);
    int propEOFs;
    try {
      propEOFs=Integer.parseInt(eofs);
    }
 catch (    NumberFormatException e) {
      if (isVerbose())       ShellMessages.info(this,"String_Node_Str" + PROP_IGNORE_EOF + "String_Node_Str");
      propEOFs=DEFAULT_IGNORE_EOF;
    }
    if (this.numEOF < propEOFs) {
      println();
      println("String_Node_Str");
      this.numEOF++;
    }
 else {
      print("String_Node_Str");
      shutdown.fire(new Shutdown());
    }
    reader.flush();
  }
 else {
    numEOF=0;
  }
  return line;
}
Program: 151603
Project: 151603
Buggy source:
@Override public String getName(){
  return file.getName();
}

Fixed version (ground truth):
@Override public String getName(){
  String fileName=file.getName();
  return (OSUtils.isWindows() && fileName.length() == 0) ? file.getPath() : fileName;
}
Program: 151604
Project: 151604
Buggy source:
/** 
 * Add the given event to the queue; this event will be fired with the supplied qualifiers.
 */
public void enqueue(final Object event,final Annotation[] qualifiers){
  map.put(event,qualifiers);
}

Fixed version (ground truth):
/** 
 * Add the given event to the queue; this event will be fired with the supplied qualifiers.
 */
public void enqueue(final Object event,final Annotation[] qualifiers){
  if (!firing)   map.put(event,qualifiers);
}
Program: 151605
Project: 151605
Buggy source:
/** 
 * Fire all queued events.
 */
public void fireAll(){
  List<Exception> thrown=new ArrayList<Exception>();
  try {
    for (    Entry<Object,Annotation[]> e : map.entrySet()) {
      try {
        Object key=e.getKey();
        Annotation[] value=e.getValue();
        List<Annotation> toFire=new ArrayList<Annotation>();
        List<BusManaged> qualifiers=extension.getEventQualifiers(key.getClass());
        toFire.addAll(qualifiers);
        toFire.addAll(Arrays.asList(value));
        manager.fireEvent(key,toFire.toArray(new Annotation[]{}));
      }
 catch (      Exception e1) {
        thrown.add(e1);
      }
    }
  }
  finally {
    map.clear();
  }
  if (!thrown.isEmpty())   throw new EventBusQueuedException(thrown);
}

Fixed version (ground truth):
/** 
 * Fire all queued events.
 */
public void fireAll(){
  firing=true;
  List<Exception> thrown=new ArrayList<Exception>();
  try {
    for (    Entry<Object,Annotation[]> e : map.entrySet()) {
      try {
        Object key=e.getKey();
        Annotation[] value=e.getValue();
        fireSingle(key,value);
      }
 catch (      Exception e1) {
        thrown.add(e1);
      }
    }
  }
  finally {
    firing=false;
    map.clear();
  }
  if (!thrown.isEmpty())   throw new EventBusQueuedException(thrown);
}
Program: 151606
Project: 151606
Buggy source:
public void scan(@Observes final ProcessAnnotatedType<Object> event){
  AnnotatedType<Object> originalType=event.getAnnotatedType();
  AnnotatedType<Object> newType;
  List<AnnotatedMethod> obsoleteMethods=new ArrayList<AnnotatedMethod>();
  List<AnnotatedMethod> replacementMethods=new ArrayList<AnnotatedMethod>();
  for (  AnnotatedMethod<?> method : getOrderedMethods(originalType)) {
    for (    AnnotatedParameter<?> param : method.getParameters()) {
      if (param.isAnnotationPresent(Observes.class)) {
        Set<Type> typeClosure=param.getTypeClosure();
        for (        Type type : typeClosure) {
          if (type instanceof Class) {
            if (((Class<?>)type).isAnnotationPresent(BusEvent.class)) {
              replacementMethods.add(qualifyObservedEvent(method,param));
              obsoleteMethods.add(method);
              break;
            }
          }
 else           if (type instanceof ParameterizedType) {
            Type rawType=((ParameterizedType)type).getRawType();
            if (rawType instanceof Class) {
              if (((Class<?>)rawType).isAnnotationPresent(BusEvent.class)) {
                replacementMethods.add(qualifyObservedEvent(method,param));
                obsoleteMethods.add(method);
                break;
              }
            }
          }
        }
      }
    }
  }
  newType=removeMethodsFromType(originalType,obsoleteMethods);
  newType=addReplacementMethodsToType(newType,replacementMethods);
  event.setAnnotatedType(newType);
}

Fixed version (ground truth):
public void scan(@Observes final ProcessAnnotatedType<Object> event){
  AnnotatedType<Object> originalType=event.getAnnotatedType();
  AnnotatedType<Object> newType;
  List<AnnotatedMethod> obsoleteMethods=new ArrayList<AnnotatedMethod>();
  List<AnnotatedMethod> replacementMethods=new ArrayList<AnnotatedMethod>();
  for (  AnnotatedMethod<?> method : getOrderedMethods(originalType)) {
    for (    AnnotatedParameter<?> param : method.getParameters()) {
      if (param.isAnnotationPresent(Observes.class)) {
        Set<Type> typeClosure=param.getTypeClosure();
        for (        Type type : typeClosure) {
          if (type instanceof Class) {
            if (Annotations.isAnnotationPresent((Class<?>)type,BusEvent.class)) {
              replacementMethods.add(qualifyObservedEvent(method,param));
              obsoleteMethods.add(method);
              break;
            }
          }
 else           if (type instanceof ParameterizedType) {
            Type rawType=((ParameterizedType)type).getRawType();
            if (rawType instanceof Class) {
              if (Annotations.isAnnotationPresent((Class<?>)rawType,(BusEvent.class))) {
                replacementMethods.add(qualifyObservedEvent(method,param));
                obsoleteMethods.add(method);
                break;
              }
            }
          }
        }
      }
    }
  }
  newType=removeMethodsFromType(originalType,obsoleteMethods);
  newType=addReplacementMethodsToType(newType,replacementMethods);
  event.setAnnotatedType(newType);
}
Program: 151607
Project: 151607
Buggy source:
private AnnotatedMethod<Object> qualifyObservedEvent(final AnnotatedMethod method,final AnnotatedParameter param){
  final List<AnnotatedParameter> parameters=new ArrayList<AnnotatedParameter>();
  parameters.addAll(method.getParameters());
  parameters.remove(param);
  parameters.add(addUniqueQualifier(method,param));
  return new AnnotatedMethod(){
    @Override public List<AnnotatedParameter> getParameters(){
      return parameters;
    }
    @Override public AnnotatedType<Object> getDeclaringType(){
      return method.getDeclaringType();
    }
    @Override public boolean isStatic(){
      return method.isStatic();
    }
    @Override public <T extends Annotation>T getAnnotation(    final Class<T> annotation){
      return method.getAnnotation(annotation);
    }
    @Override public Set<Annotation> getAnnotations(){
      return method.getAnnotations();
    }
    @Override public Type getBaseType(){
      return method.getBaseType();
    }
    @Override public Set<Type> getTypeClosure(){
      return method.getTypeClosure();
    }
    @Override public boolean isAnnotationPresent(    final Class<? extends Annotation> annotation){
      return method.isAnnotationPresent(annotation);
    }
    @Override public Method getJavaMember(){
      return method.getJavaMember();
    }
  }
;
}

Fixed version (ground truth):
private AnnotatedMethod<Object> qualifyObservedEvent(final AnnotatedMethod method,final AnnotatedParameter param){
  final List<AnnotatedParameter> parameters=new ArrayList<AnnotatedParameter>();
  parameters.addAll(method.getParameters());
  parameters.set(parameters.indexOf(param),addUniqueQualifier(method,param));
  parameters.remove(param);
  return new AnnotatedMethod(){
    @Override public List<AnnotatedParameter> getParameters(){
      return parameters;
    }
    @Override public AnnotatedType<Object> getDeclaringType(){
      return method.getDeclaringType();
    }
    @Override public boolean isStatic(){
      return method.isStatic();
    }
    @Override public <T extends Annotation>T getAnnotation(    final Class<T> annotation){
      return method.getAnnotation(annotation);
    }
    @Override public Set<Annotation> getAnnotations(){
      return method.getAnnotations();
    }
    @Override public Type getBaseType(){
      return method.getBaseType();
    }
    @Override public Set<Type> getTypeClosure(){
      return method.getTypeClosure();
    }
    @Override public boolean isAnnotationPresent(    final Class<? extends Annotation> annotation){
      return method.isAnnotationPresent(annotation);
    }
    @Override public Method getJavaMember(){
      return method.getJavaMember();
    }
  }
;
}
Program: 151608
Project: 151608
Buggy source:
@Before @SuppressWarnings("String_Node_Str") public void postConstruct() throws IOException {
  if (project == null) {
    tempFolder=File.createTempFile(PKG,null);
    tempFolder.delete();
    tempFolder.mkdirs();
    File classesDir=new File(tempFolder.getAbsolutePath() + "String_Node_Str");
    classesDir.mkdirs();
    InputStream resourceAsStream=this.getClass().getResourceAsStream("String_Node_Str");
    FileOutputStream out=new FileOutputStream(classesDir + "String_Node_Str");
    int b;
    while ((b=resourceAsStream.read()) != -1) {
      out.write(b);
    }
    out.close();
    resourceAsStream.close();
    project=projectFactory.createProject(ResourceUtil.getContextDirectory(resourceFactory.getResourceFrom(tempFolder)),MavenCoreFacet.class,JavaSourceFacet.class,ResourceFacet.class,WebResourceFacet.class,DependencyFacet.class,PackagingFacet.class,JavaExecutionFacet.class);
    startupEvent.fire(new Startup());
  }
  executionFacet=project.getFacet(JavaExecutionFacet.class);
}

Fixed version (ground truth):
@Before @SuppressWarnings("String_Node_Str") public void postConstruct() throws IOException {
  if (project == null) {
    tempFolder=File.createTempFile(PKG,null);
    tempFolder.delete();
    tempFolder.mkdirs();
    File classesDir=new File(tempFolder.getAbsolutePath() + "String_Node_Str");
    classesDir.mkdirs();
    InputStream resourceAsStream=this.getClass().getResourceAsStream("String_Node_Str");
    FileOutputStream out=new FileOutputStream(classesDir + "String_Node_Str");
    int b;
    while ((b=resourceAsStream.read()) != -1) {
      out.write(b);
    }
    out.close();
    resourceAsStream.close();
    project=projectFactory.createProject(ResourceUtil.getContextDirectory(resourceFactory.getResourceFrom(tempFolder)),MavenCoreFacet.class,JavaSourceFacet.class,ResourceFacet.class,WebResourceFacet.class,DependencyFacet.class,PackagingFacet.class,JavaExecutionFacet.class);
    beanManager.fireEvent(new Startup());
    beanManager.fireEvent(new PostStartup());
  }
  executionFacet=project.getFacet(JavaExecutionFacet.class);
}
Program: 151609
Project: 151609
Buggy source:
@Test public void testCDintoProjectRegistersFacets() throws Exception {
  Shell shell=getShell();
  initializeJavaProject();
  Project project=getProject();
  assertNotNull(project);
  shell.execute("String_Node_Str");
  project=getProject();
  shell.execute("String_Node_Str");
  project=getProject();
  assertNotNull(project);
  JavaSourceFacet javaSourceFacet=project.getFacet(JavaSourceFacet.class);
  assertNotNull(javaSourceFacet);
}

Fixed version (ground truth):
@Test public void testCDintoProjectRegistersFacets() throws Exception {
  Shell shell=getShell();
  initializeJavaProject();
  Project project=getProject();
  Assert.assertTrue(project instanceof Project);
  Resource<?> projectResource=shell.getCurrentResource();
  shell.execute("String_Node_Str");
  Resource<?> newResource=shell.getCurrentResource();
  Assert.assertNotSame(projectResource,newResource);
  shell.execute("String_Node_Str");
  Resource<?> currentResource=shell.getCurrentResource();
  Assert.assertEquals(projectResource,currentResource);
  project=getProject();
  Assert.assertTrue(project.getProjectRoot() instanceof DirectoryResource);
  JavaSourceFacet javaSourceFacet=project.getFacet(JavaSourceFacet.class);
  assertNotNull(javaSourceFacet);
}
Program: 151610
Project: 151610
Buggy source:
public ProjectBuildingRequest getRequest(){
  try {
    Settings settings=getSettings();
    request=new DefaultProjectBuildingRequest();
    ArtifactRepository localRepository=new MavenArtifactRepository("String_Node_Str",new File(settings.getLocalRepository()).toURI().toURL().toString(),container.lookup(ArtifactRepositoryLayout.class),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN));
    request.setLocalRepository(localRepository);
    request.setRemoteRepositories(new ArrayList<ArtifactRepository>());
    MavenRepositorySystemSession repositorySession=new MavenRepositorySystemSession();
    Proxy activeProxy=settings.getActiveProxy();
    if (activeProxy != null) {
      DefaultProxySelector dps=new DefaultProxySelector();
      dps.add(RepositoryUtils.convertFromMavenProxy(activeProxy),activeProxy.getNonProxyHosts());
      repositorySession.setProxySelector(dps);
    }
    repositorySession.setLocalRepositoryManager(new SimpleLocalRepositoryManager(settings.getLocalRepository()));
    repositorySession.setOffline(environment.isOnline() == false);
    request.setRepositorySession(repositorySession);
    request.setProcessPlugins(false);
    request.setPluginArtifactRepositories(Arrays.asList(localRepository));
    request.setResolveDependencies(true);
    return request;
  }
 catch (  Exception e) {
    throw new ProjectModelException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
public ProjectBuildingRequest getRequest(){
  return getBuildingRequest(environment.isOnline() == false);
}
Program: 151611
Project: 151611
Buggy source:
@Inject public MavenCoreFacetImpl(final MavenContainer container,final ShellPrintWriter writer,final BeanManager manager){
  this.container=container;
  this.writer=writer;
  this.manager=manager;
}

Fixed version (ground truth):
public MavenCoreFacetImpl(){
}
Program: 151612
Project: 151612
Buggy source:
@Override public ProjectBuildingResult getProjectBuildingResult(){
  try {
    if (this.buildingResult == null) {
      buildingResult=container.getBuilder().build(getPOMFile().getUnderlyingResourceObject(),container.getRequest());
    }
    return buildingResult;
  }
 catch (  ProjectBuildingException e) {
    throw new ProjectModelException(e);
  }
}

Fixed version (ground truth):
@Override public ProjectBuildingResult getProjectBuildingResult(){
  if (this.buildingResult == null) {
    ProjectBuildingRequest request=null;
    File pomFile=getPOMFile().getUnderlyingResourceObject();
    try {
      request=container.getRequest();
      buildingResult=container.getBuilder().build(pomFile,request);
    }
 catch (    ProjectBuildingException partial) {
      if (request != null) {
        try {
          request.setResolveDependencies(true);
          buildingResult=container.getBuilder().build(pomFile,request);
        }
 catch (        Exception full) {
          throw new ProjectModelException(full);
        }
      }
 else {
        throw new ProjectModelException(partial);
      }
    }
  }
  return buildingResult;
}
Program: 151614
Project: 151614
Buggy source:
private ConfigurationElement getConfigElementRecursiveByContent(ConfigurationElement parent,String filter,FilterType filterType,boolean directChildsOnly){
  List<PluginElement> children=parent.getChildren();
  for (  PluginElement child : children) {
    if (child instanceof ConfigurationElement) {
      ConfigurationElement element=(ConfigurationElement)child;
      if (!directChildsOnly && element.hasChilderen()) {
        try {
          return getConfigElementRecursiveByContent(element,filter,filterType,directChildsOnly);
        }
 catch (        ConfigurationElementNotFoundException ex) {
        }
      }
 else {
        if (filterType.equals(FilterType.CONTENT) && filter.equals(element.getText())) {
          return parent;
        }
 else         if (filterType.equals(FilterType.NAME) && filter.equals(element.getName())) {
          return element;
        }
      }
    }
 else {
      throw new RuntimeException("String_Node_Str" + child.getClass() + "String_Node_Str"+ parent.getName());
    }
  }
  throw new ConfigurationElementNotFoundException(filter);
}

Fixed version (ground truth):
private ConfigurationElement getConfigElementRecursiveByContent(ConfigurationElement parent,String filter,FilterType filterType,boolean directChildsOnly){
  List<PluginElement> children=parent.getChildren();
  for (  PluginElement child : children) {
    if (child instanceof ConfigurationElement) {
      ConfigurationElement element=(ConfigurationElement)child;
      if (filterType.equals(FilterType.CONTENT) && filter.equals(element.getText())) {
        return parent;
      }
 else       if (filterType.equals(FilterType.NAME) && filter.equals(element.getName())) {
        return element;
      }
      if (!directChildsOnly && element.hasChilderen()) {
        try {
          return getConfigElementRecursiveByContent(element,filter,filterType,directChildsOnly);
        }
 catch (        ConfigurationElementNotFoundException ex) {
        }
      }
    }
 else {
      throw new RuntimeException("String_Node_Str" + child.getClass() + "String_Node_Str"+ parent.getName());
    }
  }
  throw new ConfigurationElementNotFoundException(filter);
}
Program: 151615
Project: 151615
Buggy source:
@Override public boolean hasChilderen(){
  return false;
}

Fixed version (ground truth):
@Override public boolean hasChilderen(){
  return children != null && children.size() > 0;
}
Program: 151616
Project: 151616
Buggy source:
public ProjectBuildingRequest getRequest(){
  return request;
}

Fixed version (ground truth):
public ProjectBuildingRequest getRequest(){
  try {
    String localRepositoryPath=OSUtils.getUserHomeDir().getAbsolutePath() + "String_Node_Str";
    request=new DefaultProjectBuildingRequest();
    ArtifactRepository localRepository=new MavenArtifactRepository("String_Node_Str",new File(localRepositoryPath).toURI().toURL().toString(),container.lookup(ArtifactRepositoryLayout.class),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN));
    request.setLocalRepository(localRepository);
    request.setRemoteRepositories(new ArrayList<ArtifactRepository>());
    DefaultRepositorySystemSession repositorySession=new DefaultRepositorySystemSession();
    repositorySession.setLocalRepositoryManager(new SimpleLocalRepositoryManager(localRepositoryPath));
    repositorySession.setOffline(true);
    request.setRepositorySession(repositorySession);
    request.setProcessPlugins(false);
    request.setPluginArtifactRepositories(Arrays.asList(localRepository));
    request.setResolveDependencies(true);
    return request;
  }
 catch (  Exception e) {
    throw new ProjectModelException("String_Node_Str",e);
  }
}
Program: 151617
Project: 151617
Buggy source:
@PostConstruct public void bootstrapMaven(){
  try {
    container=new DefaultPlexusContainer();
    ConsoleLoggerManager loggerManager=new ConsoleLoggerManager();
    loggerManager.setThreshold("String_Node_Str");
    container.setLoggerManager(loggerManager);
    builder=container.lookup(ProjectBuilder.class);
    String localRepositoryPath=OSUtils.getUserHomeDir().getAbsolutePath() + "String_Node_Str";
    request=new DefaultProjectBuildingRequest();
    ArtifactRepository localRepository=new MavenArtifactRepository("String_Node_Str",new File(localRepositoryPath).toURI().toURL().toString(),container.lookup(ArtifactRepositoryLayout.class),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN),new ArtifactRepositoryPolicy(true,ArtifactRepositoryPolicy.UPDATE_POLICY_NEVER,ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN));
    request.setLocalRepository(localRepository);
    request.setRemoteRepositories(new ArrayList<ArtifactRepository>());
    DefaultRepositorySystemSession repositorySession=new DefaultRepositorySystemSession();
    repositorySession.setLocalRepositoryManager(new SimpleLocalRepositoryManager(localRepositoryPath));
    repositorySession.setOffline(true);
    request.setRepositorySession(repositorySession);
    request.setProcessPlugins(false);
    request.setPluginArtifactRepositories(Arrays.asList(localRepository));
    request.setResolveDependencies(true);
  }
 catch (  Exception e) {
    throw new ProjectModelException("String_Node_Str",e);
  }
}

Fixed version (ground truth):
@PostConstruct public void bootstrapMaven(){
  try {
    container=new DefaultPlexusContainer();
    ConsoleLoggerManager loggerManager=new ConsoleLoggerManager();
    loggerManager.setThreshold("String_Node_Str");
    container.setLoggerManager(loggerManager);
    builder=container.lookup(ProjectBuilder.class);
  }
 catch (  Exception e) {
    throw new ProjectModelException("String_Node_Str",e);
  }
}
Program: 151618
Project: 151618
Buggy source:
private String formatSourcedError(final Object obj){
  return (obj == null ? "String_Node_Str" : ("String_Node_Str" + obj.toString() + "String_Node_Str"));
}

Fixed version (ground truth):
private String formatSourcedError(final CommandMetadata cmd){
  String out=null;
  if (cmd != null) {
    out=cmd.getPluginMetadata().getName();
    if (!cmd.isDefault())     out+="String_Node_Str" + cmd.getName();
    out="String_Node_Str" + out + "String_Node_Str";
  }
 else   out="String_Node_Str";
  return out;
}
Program: 151619
Project: 151619
Buggy source:
public static Enum<?> valueOf(final Class<?> type,final Object value){
  List<?> enums=Arrays.asList(type.getEnumConstants());
  for (  Object e : enums) {
    if (e.toString().equals(value.toString())) {
      return (Enum<?>)e;
    }
  }
  return null;
}

Fixed version (ground truth):
public static Enum<?> valueOf(final Class<?> type,final Object value){
  if (value != null) {
    List<?> enums=Arrays.asList(type.getEnumConstants());
    for (    Object e : enums) {
      if (e.toString().equals(value.toString())) {
        return (Enum<?>)e;
      }
    }
  }
  return null;
}
Program: 151620
Project: 151620
Buggy source:
public static void downloadFromURL(final PipeOut out,final URL url,final FileResource<?> resource) throws IOException {
  DefaultHttpClient client=new DefaultHttpClient();
  HttpGet httpGetManifest=new HttpGet(url.toExternalForm());
  out.print("String_Node_Str");
  HttpResponse response=client.execute(httpGetManifest);
switch (response.getStatusLine().getStatusCode()) {
case 200:
    out.println("String_Node_Str");
  try {
    resource.setContents(response.getEntity().getContent());
    out.println("String_Node_Str");
  }
 catch (  IOException e) {
    out.println("String_Node_Str" + e.getMessage());
  }
default :
out.println("String_Node_Str" + response.getStatusLine().getStatusCode());
}
}

Fixed version (ground truth):
public static void downloadFromURL(final PipeOut out,final URL url,final FileResource<?> resource) throws IOException {
  HttpGet httpGetManifest=new HttpGet(url.toExternalForm());
  out.print("String_Node_Str");
  HttpResponse response=new DefaultHttpClient().execute(httpGetManifest);
switch (response.getStatusLine().getStatusCode()) {
case 200:
    out.println("String_Node_Str");
  try {
    resource.setContents(response.getEntity().getContent());
    out.println("String_Node_Str");
  }
 catch (  IOException e) {
    out.println("String_Node_Str" + e.getMessage());
  }
default :
out.println("String_Node_Str" + response.getStatusLine().getStatusCode());
}
}
Program: 151622
Project: 151622
Buggy source:
@SuppressWarnings("String_Node_Str") public static List<PluginRef> findPlugin(Shell sh,String searchString,PipeOut out) throws Exception {
  DefaultHttpClient client=new DefaultHttpClient();
  String defaultRepo=getDefaultRepo(sh);
  HttpGet httpGet=new HttpGet(defaultRepo);
  out.print("String_Node_Str" + defaultRepo + "String_Node_Str");
  HttpResponse httpResponse=client.execute(httpGet);
switch (httpResponse.getStatusLine().getStatusCode()) {
case 200:
    out.println("String_Node_Str");
  break;
case 404:
out.println("String_Node_Str" + defaultRepo + "String_Node_Str");
return Collections.emptyList();
default :
out.println("String_Node_Str" + httpResponse.getStatusLine().getStatusCode());
return Collections.emptyList();
}
Pattern pattern=Pattern.compile(GeneralUtils.pathspecToRegEx("String_Node_Str" + searchString + "String_Node_Str"));
List<PluginRef> pluginList=new ArrayList<PluginRef>();
Yaml yaml=new Yaml();
for (Object o : yaml.loadAll(httpResponse.getEntity().getContent())) {
if (o == null) {
continue;
}
Map<String,String> map=(Map<String,String>)o;
String name=map.get(PROP_NAME);
if (pattern.matcher(name).matches()) {
pluginList.add(bindToPuginRef(map));
}
}
return pluginList;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public static List<PluginRef> findPlugin(Shell sh,String searchString,PipeOut out) throws Exception {
  String defaultRepo=getDefaultRepo(sh);
  HttpGet httpGet=new HttpGet(defaultRepo);
  out.print("String_Node_Str" + defaultRepo + "String_Node_Str");
  HttpResponse httpResponse=new DefaultHttpClient().execute(httpGet);
switch (httpResponse.getStatusLine().getStatusCode()) {
case 200:
    out.println("String_Node_Str");
  break;
case 404:
out.println("String_Node_Str" + defaultRepo + "String_Node_Str");
return Collections.emptyList();
default :
out.println("String_Node_Str" + httpResponse.getStatusLine().getStatusCode());
return Collections.emptyList();
}
Pattern pattern=Pattern.compile(GeneralUtils.pathspecToRegEx("String_Node_Str" + searchString + "String_Node_Str"));
List<PluginRef> pluginList=new ArrayList<PluginRef>();
Yaml yaml=new Yaml();
for (Object o : yaml.loadAll(httpResponse.getEntity().getContent())) {
if (o == null) {
continue;
}
Map<String,String> map=(Map<String,String>)o;
String name=map.get(PROP_NAME);
if (pattern.matcher(name).matches()) {
pluginList.add(bindToPuginRef(map));
}
}
return pluginList;
}
Program: 151624
Project: 151624
Buggy source:
@Override public PersistenceUnit setupConnection(PersistenceUnit unit,JPADataSource dataSource){
  unit.setTransactionType(TransactionType.RESOURCE_LOCAL);
  if (dataSource.getJndiDataSource() != null) {
    ShellMessages.info(writer,"String_Node_Str" + dataSource.getJndiDataSource() + "String_Node_Str");
  }
  if (!dataSource.hasNonDefaultDatabase()) {
    throw new RuntimeException("String_Node_Str");
  }
  unit.setNonJtaDataSource(null);
  unit.setJtaDataSource(null);
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getJdbcDriver()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getDatabaseURL()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getUsername()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getPassword()));
  return unit;
}

Fixed version (ground truth):
@Override public PersistenceUnit setupConnection(PersistenceUnit unit,JPADataSource dataSource){
  unit.setTransactionType(TransactionType.RESOURCE_LOCAL);
  if (dataSource.getJndiDataSource() != null) {
    ShellMessages.info(writer,"String_Node_Str" + dataSource.getJndiDataSource() + "String_Node_Str");
  }
  if (!dataSource.hasNonDefaultDatabase()) {
    throw new RuntimeException("String_Node_Str");
  }
  if (Strings.isNullOrEmpty(dataSource.getDatabaseURL())) {
    throw new RuntimeException("String_Node_Str");
  }
  if (Strings.isNullOrEmpty(dataSource.getUsername())) {
    throw new RuntimeException("String_Node_Str");
  }
  if (Strings.isNullOrEmpty(dataSource.getPassword())) {
    throw new RuntimeException("String_Node_Str");
  }
  unit.setNonJtaDataSource(null);
  unit.setJtaDataSource(null);
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getJdbcDriver()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getDatabaseURL()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getUsername()));
  unit.getProperties().add(new Property("String_Node_Str",dataSource.getPassword()));
  return unit;
}
Program: 151626
Project: 151626
Buggy source:
@Test public void testBeansXMLMovedWhenPackagingTypeChanged() throws Exception {
  Project project=initializeJavaProject();
  getShell().execute("String_Node_Str");
  assertTrue(project.hasFacet(CDIFacet.class));
  FileResource<?> config=project.getFacet(CDIFacet.class).getConfigFile();
  queueInputLines("String_Node_Str");
  getShell().execute("String_Node_Str");
  FileResource<?> newConfig=project.getFacet(CDIFacet.class).getConfigFile();
  assertNotNull(config);
  assertNotNull(newConfig);
  assertNotSame(config.getFullyQualifiedName(),newConfig.getFullyQualifiedName());
}

Fixed version (ground truth):
@Test public void testBeansXMLMovedWhenPackagingTypeChanged() throws Exception {
  Project project=initializeJavaProject();
  getShell().execute("String_Node_Str");
  FileResource<?> config=project.getFacet(CDIFacet.class).getConfigFile();
  queueInputLines("String_Node_Str");
  getShell().execute("String_Node_Str");
  FileResource<?> newConfig=project.getFacet(CDIFacet.class).getConfigFile();
  assertNotNull(config);
  assertNotNull(newConfig);
  assertTrue(config.getFullyQualifiedName().contains("String_Node_Str"));
  assertTrue(newConfig.getFullyQualifiedName().contains("String_Node_Str"));
  assertFalse(config.getFullyQualifiedName().equals(newConfig.getFullyQualifiedName()));
}
Program: 151630
Project: 151630
Buggy source:
public boolean isAvailable(final Project currentProject,final PluginMetadata plugin){
  try {
    verifyAvailable(null,plugin);
  }
 catch (  ConstraintException e) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
public boolean isAvailable(final Project currentProject,final PluginMetadata plugin){
  try {
    verifyAvailable(currentProject,plugin);
  }
 catch (  ConstraintException e) {
    return false;
  }
  return true;
}
Program: 151632
Project: 151632
Buggy source:
void more(InputStream stream,PipeOut out,boolean noAutoExit) throws IOException {
  byte[] buffer=new byte[128];
  int read;
  byte c;
  int height=shell.getHeight() - 1;
  int width=shell.getWidth();
  int lCounter=width;
  int y=0;
  LineBuffer lineBuffer=new LineBuffer(stream,width);
  StringBuilder lastPattern=new StringBuilder();
  do {
    Mainloop:     while ((read=lineBuffer.read(buffer)) != -1) {
      Bufferloop:       for (int i=0; i < read; i++) {
        if (--lCounter == 0) {
          lineBuffer.seenLine();
          lCounter=width;
          ++y;
        }
switch (c=buffer[i]) {
case '\r':
          i++;
case '\n':
        lineBuffer.seenLine();
      lCounter=width;
    ++y;
default :
  if (y == height) {
    out.println();
switch (prompt(lineBuffer,out,lastPattern)) {
case -1:
      y=0;
    continue Mainloop;
case -2:
  y--;
continue Bufferloop;
case -3:
y=0;
continue Bufferloop;
case 0:
noAutoExit=true;
break Mainloop;
}
}
}
out.write(c);
}
}
if (noAutoExit) {
switch (prompt(lineBuffer,out,lastPattern)) {
case -1:
y=0;
break;
case -2:
y--;
break;
case -3:
y=0;
break;
case 0:
noAutoExit=false;
break;
}
}
}
 while (noAutoExit);
}

Fixed version (ground truth):
void more(InputStream stream,PipeOut out,boolean noAutoExit) throws IOException {
  byte[] buffer=new byte[128];
  int read;
  byte c;
  int height=shell.getHeight() - 1;
  int width=shell.getWidth();
  int lCounter=width;
  int y=0;
  LineBuffer lineBuffer=new LineBuffer(stream,width);
  StringBuilder lastPattern=new StringBuilder();
  do {
    Mainloop:     while ((read=lineBuffer.read(buffer)) != -1) {
      Bufferloop:       for (int i=0; i < read; i++) {
        if (--lCounter == 0) {
          lineBuffer.seenLine();
          lCounter=width;
          ++y;
        }
switch (c=buffer[i]) {
case '\r':
          i++;
case '\n':
        lineBuffer.seenLine();
      lCounter=width;
    ++y;
default :
  if (y == height) {
    out.println();
switch (prompt(lineBuffer,out,lastPattern)) {
case -1:
      y=0;
    continue Mainloop;
case -2:
  y--;
continue Bufferloop;
case -3:
y=0;
continue Bufferloop;
case 0:
noAutoExit=false;
break Mainloop;
}
}
}
out.write(c);
}
}
if (noAutoExit) {
switch (prompt(lineBuffer,out,lastPattern)) {
case -1:
y=0;
break;
case -2:
y--;
break;
case -3:
y=0;
break;
case 0:
noAutoExit=false;
break;
}
}
}
 while (noAutoExit);
}
Program: 151633
Project: 151633
Buggy source:
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    if (c == 127) {
      if (buf.length() != 0) {
        buf.deleteCharAt(buf.length() - 1);
        cursorLeft(1);
        print("String_Node_Str");
        cursorLeft(1);
      }
      continue;
    }
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}

Fixed version (ground truth):
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    if (c == 127) {
      if (buf.length() > 0) {
        buf.deleteCharAt(buf.length() - 1);
        cursorLeft(1);
        print("String_Node_Str");
        cursorLeft(1);
      }
      continue;
    }
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}
Program: 151634
Project: 151634
Buggy source:
public int findPattern(String pattern,boolean backwards) throws IOException {
  Pattern p=Pattern.compile("String_Node_Str" + pattern + "String_Node_Str");
  int currentBuffer=bufferPos;
  int currentLine=bufferLine;
  int startLine;
  int cursor=0;
  if (backwards) {
    bufferLine=0;
    startLine=0;
    bufferPos=0;
  }
 else {
    cursor=startLine=bufferPos=findLine(bufferLine);
  }
  int line=bufferLine;
  int lCount=lineWidth;
  byte[] buffer=new byte[1024];
  int read;
  while ((read=read(buffer)) != -1) {
    for (int i=0; i < read; i++) {
      cursor++;
switch (buffer[i]) {
case '\r':
        i++;
case '\n':
      String l=new String(curr.getChars(startLine,cursor - startLine - 1));
    if (p.matcher(l).matches()) {
      return line;
    }
  line++;
startLine=cursor;
}
if (--lCount == 0) {
line++;
lCount=lineWidth;
}
}
}
bufferPos=currentBuffer;
bufferLine=currentLine;
return -1;
}

Fixed version (ground truth):
public int findPattern(String pattern,boolean backwards) throws IOException {
  Pattern p=Pattern.compile("String_Node_Str" + pattern + "String_Node_Str");
  int currentBuffer=bufferPos;
  int currentLine=bufferLine;
  int startLine;
  int cursor=0;
  if (backwards) {
    bufferLine=0;
    startLine=0;
    bufferPos=0;
  }
 else {
    cursor=startLine=bufferPos=findLine(bufferLine);
  }
  int line=bufferLine;
  int lCount=lineWidth;
  byte[] buffer=new byte[1024];
  int read;
  while ((read=read(buffer)) != -1) {
    for (int i=0; i < read; i++) {
      cursor++;
switch (buffer[i]) {
case '\r':
        i++;
case '\n':
      line++;
    lCount=lineWidth;
  String l=new String(curr.getChars(startLine,cursor - startLine - 1));
if (p.matcher(l).matches()) {
  return line;
}
startLine=cursor;
}
if (--lCount == 0) {
line++;
lCount=lineWidth;
}
}
}
bufferPos=currentBuffer;
bufferLine=currentLine;
return -1;
}
Program: 151635
Project: 151635
Buggy source:
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}

Fixed version (ground truth):
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    if (c == 127) {
      buf.deleteCharAt(buf.length() - 1);
      cursorLeft(1);
      print("String_Node_Str");
      cursorLeft(1);
      continue;
    }
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}
Program: 151636
Project: 151636
Buggy source:
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    if (c == 127) {
      buf.deleteCharAt(buf.length() - 1);
      cursorLeft(1);
      print("String_Node_Str");
      cursorLeft(1);
      continue;
    }
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}

Fixed version (ground truth):
public String promptAndSwallowCR(){
  int c;
  StringBuilder buf=new StringBuilder();
  while ((c=scan()) != '\n') {
    if (c == 127) {
      if (buf.length() != 0) {
        buf.deleteCharAt(buf.length() - 1);
        cursorLeft(1);
        print("String_Node_Str");
        cursorLeft(1);
      }
      continue;
    }
    write((byte)c);
    buf.append((char)c);
  }
  return buf.toString();
}
Program: 151638
Project: 151638
Buggy source:
public int findPattern(String pattern,boolean backwards) throws IOException {
  Pattern p=Pattern.compile("String_Node_Str" + pattern + "String_Node_Str");
  int currentBuffer=bufferPos;
  int currentLine=bufferLine;
  int startLine;
  int cursor=0;
  if (backwards) {
    bufferLine=0;
    startLine=0;
    bufferPos=0;
  }
 else {
    cursor=startLine=bufferPos=findLine(bufferLine);
  }
  int line=bufferLine;
  int lCount=lineWidth;
  byte[] buffer=new byte[1024];
  int read;
  while ((read=read(buffer)) != -1) {
    for (int i=0; i < read; i++) {
      cursor++;
switch (buffer[i]) {
case '\r':
        i++;
case '\n':
      line++;
    lCount=lineWidth;
  String l=new String(curr.getChars(startLine,cursor - startLine - 1));
if (p.matcher(l).matches()) {
  return line;
}
startLine=cursor;
}
if (--lCount == 0) {
line++;
lCount=lineWidth;
}
}
}
bufferPos=currentBuffer;
bufferLine=currentLine;
return -1;
}

Fixed version (ground truth):
public int findPattern(String pattern,boolean backwards) throws IOException {
  Pattern p=Pattern.compile("String_Node_Str" + pattern + "String_Node_Str");
  int currentBuffer=bufferPos;
  int currentLine=bufferLine;
  int startLine;
  int cursor=0;
  if (backwards) {
    bufferLine=0;
    startLine=0;
    bufferPos=0;
  }
 else {
    cursor=startLine=bufferPos=findLine(bufferLine);
  }
  int line=bufferLine;
  int lCount=lineWidth;
  byte[] buffer=new byte[1024];
  int read;
  while ((read=read(buffer)) != -1) {
    for (int i=0; i < read; i++) {
      cursor++;
switch (buffer[i]) {
case '\r':
        i++;
case '\n':
      line++;
    lCount=lineWidth;
  if (p.matcher(new String(curr.getChars(startLine,cursor - startLine - 1))).matches()) {
    return line;
  }
startLine=cursor;
}
if (--lCount == 0) {
line++;
lCount=lineWidth;
}
}
}
bufferPos=currentBuffer;
bufferLine=currentLine;
return -1;
}
Program: 151639
Project: 151639
Buggy source:
@Override public String format(final int column,final String value){
  return value.endsWith("String_Node_Str") ? shell.renderColor(ShellColor.BOLD,value) : value;
}

Fixed version (ground truth):
@Override public String format(final int column,final String value){
  return value.endsWith("String_Node_Str") ? pipeOut.renderColor(ShellColor.BOLD,value) : value;
}
Program: 151641
Project: 151641
Buggy source:
@Override public boolean isInstalled(){
  return getEntityPackageFile().exists() && getConfigFile().exists();
}

Fixed version (ground truth):
@Override public boolean isInstalled(){
  DependencyFacet deps=project.getFacet(DependencyFacet.class);
  boolean hasDependency=deps.hasDependency(dep);
  return hasDependency && getEntityPackageFile().exists() && getConfigFile().exists();
}
Program: 151642
Project: 151642
Buggy source:
private List<JavaClass> findEntitiesInFolder(final File packageFile){
  List<JavaClass> result=new ArrayList<JavaClass>();
  if (packageFile.exists()) {
    for (    File source : packageFile.listFiles(entityFileFilter)) {
      try {
        JavaClass javaClass=JavaParser.parse(source);
        if (javaClass.hasAnnotation(Entity.class)) {
          result.add(javaClass);
        }
      }
 catch (      FileNotFoundException e) {
      }
    }
    for (    File source : packageFile.listFiles(directoryFilter)) {
      List<JavaClass> subResults=findEntitiesInFolder(source);
      result.addAll(subResults);
    }
  }
  return result;
}

Fixed version (ground truth):
private List<JavaClass> findEntitiesInFolder(final File packageFile){
  List<JavaClass> result=new ArrayList<JavaClass>();
  if (packageFile.exists()) {
    for (    File source : packageFile.listFiles(entityFileFilter))     try {
      JavaClass javaClass=JavaParser.parse(source);
      if (javaClass.hasAnnotation(Entity.class))       result.add(javaClass);
    }
 catch (    FileNotFoundException e) {
    }
    for (    File source : packageFile.listFiles(directoryFilter)) {
      List<JavaClass> subResults=findEntitiesInFolder(source);
      result.addAll(subResults);
    }
  }
  return result;
}
Program: 151643
Project: 151643
Buggy source:
@Override public Facet install(){
  if (!isInstalled()) {
    File entityRoot=getEntityPackageFile();
    if (!entityRoot.exists()) {
      project.mkdirs(entityRoot);
      entityRoot.mkdirs();
    }
    File descriptor=getConfigFile();
    if (!descriptor.exists()) {
      PersistenceUnitDef unit=Descriptors.create(PersistenceDescriptor.class).persistenceUnit("String_Node_Str").description("String_Node_Str").transactionType(TransactionType.JTA).provider(ProviderType.HIBERNATE).jtaDataSource("String_Node_Str").includeUnlistedClasses().schemaGenerationMode(SchemaGenerationModeType.CREATE_DROP).showSql().formatSql().property("String_Node_Str",true);
      project.writeFile(unit.exportAsString(),descriptor);
    }
  }
  project.registerFacet(this);
  return this;
}

Fixed version (ground truth):
@Override public Facet install(){
  if (!isInstalled()) {
    DependencyFacet deps=project.getFacet(DependencyFacet.class);
    if (!deps.hasDependency(dep))     deps.addDependency(dep);
    File entityRoot=getEntityPackageFile();
    if (!entityRoot.exists()) {
      project.mkdirs(entityRoot);
      entityRoot.mkdirs();
    }
    File descriptor=getConfigFile();
    if (!descriptor.exists()) {
      PersistenceUnitDef unit=Descriptors.create(PersistenceDescriptor.class).persistenceUnit("String_Node_Str").description("String_Node_Str").transactionType(TransactionType.JTA).provider(ProviderType.HIBERNATE).jtaDataSource("String_Node_Str").includeUnlistedClasses().schemaGenerationMode(SchemaGenerationModeType.CREATE_DROP).showSql().formatSql().property("String_Node_Str",true);
      project.writeFile(unit.exportAsString(),descriptor);
    }
  }
  project.registerFacet(this);
  return this;
}
Program: 151644
Project: 151644
Buggy source:
@DefaultCommand public void listCommands(@Option(name="String_Node_Str",shortName="String_Node_Str",flagOnly=true) boolean showAll){
  List<String> listData=new ArrayList<String>();
  Set<String> displayed=new HashSet<String>();
  Class currResource=shell.getCurrentResource().getClass();
  for (  List<PluginMetadata> lpm : registry.getPlugins().values()) {
    for (    PluginMetadata pluginMetadata : lpm) {
      for (      CommandMetadata commandMetadata : pluginMetadata.getAllCommands()) {
        render(listData,showAll,currResource,commandMetadata,displayed.contains(commandMetadata.getName()));
        displayed.add(commandMetadata.getName());
      }
    }
  }
  printOutColumns(listData,shell,true);
}

Fixed version (ground truth):
@DefaultCommand public void listCommands(@Option(name="String_Node_Str",shortName="String_Node_Str",flagOnly=true) boolean showAll){
  List<String> listData=new ArrayList<String>();
  Class currResource=shell.getCurrentResource().getClass();
  for (  List<PluginMetadata> lpm : registry.getPlugins().values()) {
    for (    PluginMetadata pluginMetadata : lpm) {
      for (      CommandMetadata commandMetadata : pluginMetadata.getAllCommands()) {
        String name=render(listData,showAll,currResource,commandMetadata);
        if (name.endsWith("String_Node_Str")) {
          listData.remove(name.substring(0,name.length() - 1));
        }
        listData.add(name);
      }
    }
  }
  if (showAll)   shell.println("String_Node_Str");
  printOutColumns(listData,shell,true);
}
Program: 151645
Project: 151645
Buggy source:
private static void render(List<String> listData,boolean showAll,Class currResource,CommandMetadata cmdMeta,boolean overloaded){
  boolean contextual=cmdMeta.usableWithScope(currResource);
  if (showAll) {
    if (!cmdMeta.isDefault()) {
      listData.add(cmdMeta.getPluginMetadata().getName() + "String_Node_Str" + cmdMeta.getName()+ (contextual ? "String_Node_Str" : "String_Node_Str")+ (overloaded ? "String_Node_Str" : "String_Node_Str"));
    }
 else {
      listData.add(cmdMeta.getName() + (contextual ? "String_Node_Str" : "String_Node_Str") + (overloaded ? "String_Node_Str" : "String_Node_Str"));
    }
  }
 else   if (contextual) {
    listData.add(cmdMeta.getName());
  }
}

Fixed version (ground truth):
private static String render(List<String> listData,boolean showAll,Class currResource,CommandMetadata cmdMeta){
  boolean contextual=cmdMeta.usableWithScope(currResource);
  if (showAll) {
    if (!cmdMeta.isDefault()) {
      return (cmdMeta.getPluginMetadata().getName() + "String_Node_Str" + cmdMeta.getName()+ (contextual ? "String_Node_Str" : "String_Node_Str"));
    }
 else {
      return (cmdMeta.getName() + (contextual ? "String_Node_Str" : "String_Node_Str"));
    }
  }
 else   if (contextual) {
    return cmdMeta.getName();
  }
  return "String_Node_Str";
}
Program: 151646
Project: 151646
Buggy source:
@DefaultCommand public void run(@Option(flagOnly=true,name="String_Node_Str",shortName="String_Node_Str",required=false) final boolean showAll,@Option(flagOnly=true,name="String_Node_Str",shortName="String_Node_Str",required=false) final boolean list,@Option(description="String_Node_Str",defaultValue="String_Node_Str") String... path){
}

Fixed version (ground truth):
@DefaultCommand public void run(@Option(flagOnly=true,name="String_Node_Str",shortName="String_Node_Str",required=false) final boolean showAll,@Option(flagOnly=true,name="String_Node_Str",shortName="String_Node_Str",required=false) final boolean list,@Option(description="String_Node_Str",defaultValue="String_Node_Str") String... path){
  System.out.println("String_Node_Str");
}
Program: 151647
Project: 151647
Buggy source:
@Override public String format(int column,String value){
  if (column == 7 && value.endsWith("String_Node_Str"))   return shell.renderColor(ShellColor.BLUE,value);
  return value;
}

Fixed version (ground truth):
@Override public String format(int column,String value){
  if (column == 7 && value.endsWith("String_Node_Str")) {
    return shell.renderColor(ShellColor.BLUE,value);
  }
 else {
    return value;
  }
}