nus-yam/ex-repair huggingface dataset:
Program: 6553
Project: 6553
Buggy source:
/** 
 * Private helper method to generate code that adds value-tags to one single list in an XML document.
 * @throws Exception Error during code generation
 */
protected JMethod generateAddTagToList() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PRIVATE,"String_Node_Str","String_Node_Str",jms);
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(methodBody);
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  return jm;
}

Fixed version (ground truth):
/** 
 * Private helper method to generate code that adds value-tags to one single list in an XML document.
 * @throws Exception Error during code generation
 */
protected JMethod generateAddTagToList() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PRIVATE | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms);
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(methodBody);
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  return jm;
}
Program: 6554
Project: 6554
Buggy source:
/** 
 * Private helper method to generate code that adds value-tags to one single element in an XML document.
 * @throws Exception Error during code generation
 */
protected JMethod generateAddTagToElement() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PRIVATE,"String_Node_Str","String_Node_Str",jms);
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(methodBody);
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  return jm;
}

Fixed version (ground truth):
/** 
 * Private helper method to generate code that adds value-tags to one single element in an XML document.
 * @throws Exception Error during code generation
 */
protected JMethod generateAddTagToElement() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"),JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PRIVATE | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms);
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(methodBody);
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  addRequiredImport("String_Node_Str");
  return jm;
}
Program: 6556
Project: 6556
Buggy source:
/** 
 * Private helper method to check XMLLibrary implementations.
 * @param xmlLibraryClassName Fully qualified class name ofthe XMLLibrary implementation
 */
private void testXMLLibrary(final String xmlLibraryClassName) throws Exception {
  XMLLibrary xmlLibrary=XMLLibraryFactory.getInstance().createXMLLibrary(xmlLibraryClassName,BEAN_CLASS_NAME);
  ArrayList<ElementData> fixElements=new ArrayList<ElementData>();
  ArrayList<ArrayData> fixArrays=new ArrayList<ArrayData>();
  ArrayList<SimpleListData> fixSimpleLists=new ArrayList<SimpleListData>();
  ArrayList<NonSimpleListData> fixNonSimpleLists=new ArrayList<NonSimpleListData>();
  JClass classObject=xmlLibrary.init(fixElements,fixArrays,fixSimpleLists,fixNonSimpleLists);
  assertNotNull("String_Node_Str",classObject);
  assertEquals(String.format("String_Node_Str",BEAN_CLASS_NAME),BEAN_CLASS_NAME + "String_Node_Str",classObject.getName());
  TestHelper.checkMethodExistence(classObject,"String_Node_Str","String_Node_Str",BEAN_CLASS_NAME);
  TestHelper.checkMethodExistence(classObject,"String_Node_Str",BEAN_CLASS_NAME,"String_Node_Str");
  TestHelper.checkMethodExistence(classObject,JModifier.PRIVATE,"String_Node_Str","String_Node_Str","String_Node_Str",null);
  TestHelper.checkMethodExistence(classObject,JModifier.PRIVATE,"String_Node_Str","String_Node_Str","String_Node_Str",null);
}

Fixed version (ground truth):
/** 
 * Private helper method to check XMLLibrary implementations.
 * @param xmlLibraryClassName Fully qualified class name ofthe XMLLibrary implementation
 */
private void testXMLLibrary(final String xmlLibraryClassName) throws Exception {
  XMLLibrary xmlLibrary=XMLLibraryFactory.getInstance().createXMLLibrary(xmlLibraryClassName,BEAN_CLASS_NAME);
  ArrayList<ElementData> fixElements=new ArrayList<ElementData>();
  ArrayList<ArrayData> fixArrays=new ArrayList<ArrayData>();
  ArrayList<SimpleListData> fixSimpleLists=new ArrayList<SimpleListData>();
  ArrayList<NonSimpleListData> fixNonSimpleLists=new ArrayList<NonSimpleListData>();
  JClass classObject=xmlLibrary.init(fixElements,fixArrays,fixSimpleLists,fixNonSimpleLists);
  assertNotNull("String_Node_Str",classObject);
  assertEquals(String.format("String_Node_Str",BEAN_CLASS_NAME),BEAN_CLASS_NAME + "String_Node_Str",classObject.getName());
  TestHelper.checkMethodExistence(classObject,"String_Node_Str","String_Node_Str",BEAN_CLASS_NAME);
  TestHelper.checkMethodExistence(classObject,"String_Node_Str",BEAN_CLASS_NAME,"String_Node_Str");
  TestHelper.checkMethodExistence(classObject,JModifier.PRIVATE | JModifier.STATIC,"String_Node_Str","String_Node_Str","String_Node_Str",null);
  TestHelper.checkMethodExistence(classObject,JModifier.PRIVATE | JModifier.STATIC,"String_Node_Str","String_Node_Str","String_Node_Str",null);
}
Program: 6557
Project: 6557
Buggy source:
private void fixLocalElementsInComplexTypes(FElement element,boolean isTopLevel){
  if (!isTopLevel) {
    String typeName="String_Node_Str";
    if (SchemaHelper.isBuiltinTypedElement(element)) {
      typeName=this.mapper.lookup(JavaTypeGen.getFabricTypeName(element.getSchemaType()));
      LOGGER.debug(String.format("String_Node_Str",typeName));
    }
 else {
      typeName=element.getSchemaType().getName();
      LOGGER.debug(String.format("String_Node_Str",typeName));
      if (!element.getSchemaType().isTopLevel() && !element.getSchemaType().isSimple()) {
        typeName+="String_Node_Str";
      }
    }
    LOGGER.debug("String_Node_Str" + element.getName() + "String_Node_Str");
    if (FSchemaTypeHelper.isArray(element)) {
      LOGGER.debug("String_Node_Str");
      this.fixArrays.add(new ArrayData(element.getName(),typeName,"String_Node_Str",typeName));
    }
 else {
      LOGGER.debug("String_Node_Str");
      this.fixElements.add(new ElementData(element.getName()));
    }
  }
}

Fixed version (ground truth):
private void fixLocalElementsInComplexTypes(FElement element,boolean isTopLevel){
  if (!isTopLevel) {
    String typeName="String_Node_Str";
    boolean isCustomType=false;
    if (SchemaHelper.isBuiltinTypedElement(element)) {
      typeName=this.mapper.lookup(JavaTypeGen.getFabricTypeName(element.getSchemaType()));
      LOGGER.debug(String.format("String_Node_Str",typeName));
    }
 else {
      typeName=element.getSchemaType().getName();
      LOGGER.debug(String.format("String_Node_Str",typeName));
      if (!element.getSchemaType().isTopLevel() && !element.getSchemaType().isSimple()) {
        typeName+="String_Node_Str";
      }
      isCustomType=true;
    }
    LOGGER.debug("String_Node_Str" + element.getName() + "String_Node_Str");
    if (isCustomType) {
      if (FSchemaTypeHelper.isArray(element)) {
        LOGGER.debug("String_Node_Str");
        this.fixArrays.add(new ArrayData(element.getName(),typeName,"String_Node_Str",typeName));
      }
 else {
        LOGGER.debug("String_Node_Str");
        this.fixElements.add(new ElementData(element.getName()));
      }
    }
  }
}
Program: 6561
Project: 6561
Buggy source:
/** 
 * Handle start of a top-level simple type. We need to collect the names of all simple types here to fix the corresponding value-tags in the XML document later on.
 * @param type FSimpleType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelSimpleType(FSimpleType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  if (null != type) {
    this.fixElements.add(type.getName());
  }
}

Fixed version (ground truth):
/** 
 * Handle start of a top-level simple type. We need to collect the names of all simple types here to fix the corresponding value-tags in the XML document later on.
 * @param type FSimpleType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelSimpleType(FSimpleType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  if (null != type && !FSchemaTypeHelper.isList(type)) {
    this.fixElements.add(type.getName());
  }
}
Program: 6562
Project: 6562
Buggy source:
/** 
 * This method generates code that translates a plain XML document to a Java class instance.
 * @throws Exception Error during code generation
 */
@Override public void generateXMLToInstanceCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,this.beanClassName,"String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName,this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method generates code that translates a plain XML document to a Java class instance.
 * @throws Exception Error during code generation
 */
@Override public void generateXMLToInstanceCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,"String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,this.beanClassName,"String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName,this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}
Program: 6563
Project: 6563
Buggy source:
/** 
 * This method generates code that translates an annotated Java object to a plain XML document.
 * @throws Exception Error during code generation
 */
@Override public void generateJavaToXMLCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,this.beanClassName,"String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName.toLowerCase(),this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method generates code that translates an annotated Java object to a plain XML document.
 * @throws Exception Error during code generation
 */
@Override public void generateJavaToXMLCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,this.beanClassName,"String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}
Program: 6566
Project: 6566
Buggy source:
/** 
 * Parameterized constructor initializes properties object and various other member variables.
 * @param properties Properties object with module options
 */
public JavaEXIConverter(Properties properties){
  this.properties=properties;
  this.xsdDocumentPath=this.properties.getProperty("String_Node_Str");
  this.serializerClassName="String_Node_Str";
}

Fixed version (ground truth):
/** 
 * Parameterized constructor initializes properties object and various other member variables.
 * @param properties Properties object with module options
 */
public JavaEXIConverter(Properties properties){
  this.properties=properties;
  this.xsdDocumentPath=this.properties.getProperty(FabricEXIModule.XSD_DOCUMENT_PATH_KEY);
  this.serializerClassName="String_Node_Str";
}
Program: 6567
Project: 6567
Buggy source:
/** 
 * This method generates code that translates an annotated Java object to a plain XML document.
 * @throws Exception Error during code generation
 */
@Override public void generateJavaToXMLCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,this.beanClassName,"String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * This method generates code that translates an annotated Java object to a plain XML document.
 * @throws Exception Error during code generation
 */
@Override public void generateJavaToXMLCode() throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL,this.beanClassName,"String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms,new String[]{"String_Node_Str"});
  String methodBody="String_Node_Str" + "String_Node_Str" + "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str"+ "String_Node_Str";
  jm.getBody().appendSource(String.format(methodBody,this.beanClassName));
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  this.converterClass.add(jm);
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
  this.addRequiredImport("String_Node_Str");
}
Program: 6569
Project: 6569
Buggy source:
/** 
 * Finish the construction of the current container class by building it. As soon as a container is built, no more new member variables can be added to it. This function is usually called, when the closing XML tag of a type definition is reached.
 * @throws Exception Error while building container
 */
@Override public void buildCurrentContainer() throws Exception {
  if (!this.incompleteBuilders.empty()) {
    AnnotationMapper xmlMapper=new AnnotationMapper(this.properties.getProperty("String_Node_Str"));
    JavaClassGenerationStrategy javaStrategy=new JavaClassGenerationStrategy(xmlMapper);
    JClass classObject=(JClass)this.incompleteBuilders.pop().build().asClassObject(javaStrategy);
    if (null != this.incompleteLocalBuilder) {
      JClass innerClassObject=(JClass)javaStrategy.generateClassObject(this.incompleteLocalBuilder.build(),JModifier.PUBLIC | JModifier.STATIC);
      classObject.add(innerClassObject);
      this.incompleteLocalBuilder=null;
      LOGGER.debug(String.format("String_Node_Str",innerClassObject.getName(),classObject.getName()));
    }
    if (!this.generatedElements.containsKey(classObject.getName())) {
      this.generatedElements.put(classObject.getName(),new JavaTypeGen.SourceFileData(classObject,javaStrategy.getRequiredDependencies()));
    }
    LOGGER.debug(String.format("String_Node_Str",classObject.getName()));
  }
}

Fixed version (ground truth):
/** 
 * Finish the construction of the current container class by building it. As soon as a container is built, no more new member variables can be added to it. This function is usually called, when the closing XML tag of a type definition is reached.
 * @throws Exception Error while building container
 */
@Override public void buildCurrentContainer() throws Exception {
  if (!this.incompleteBuilders.empty()) {
    AnnotationMapper xmlMapper=new AnnotationMapper(this.properties.getProperty("String_Node_Str"));
    JavaClassGenerationStrategy javaStrategy=new JavaClassGenerationStrategy(xmlMapper);
    JClass classObject=(JClass)this.incompleteBuilders.pop().build().asClassObject(javaStrategy);
    while (this.stackIsNotEmpty(classObject.getName())) {
      JClass innerClassObject=(JClass)javaStrategy.generateClassObject(this.incompleteLocalBuilders.get(classObject.getName()).pop().build(),JModifier.PUBLIC | JModifier.STATIC);
      classObject.add(innerClassObject);
      LOGGER.debug(String.format("String_Node_Str",innerClassObject.getName(),classObject.getName()));
    }
    if (!this.generatedElements.containsKey(classObject.getName())) {
      this.generatedElements.put(classObject.getName(),new JavaTypeGen.SourceFileData(classObject,javaStrategy.getRequiredDependencies()));
    }
    LOGGER.debug(String.format("String_Node_Str",classObject.getName()));
  }
}
Program: 6570
Project: 6570
Buggy source:
/** 
 * Create a new container class that represents a complex type of the XML schema document. All elements and attributes that belong to this type should be added to the container as member variables.
 * @param type FComplexType object
 */
@Override public void createNewContainer(FComplexType type){
  AttributeContainer.Builder newBuilder=AttributeContainer.newBuilder();
  if (type.isTopLevel()) {
    this.incompleteBuilders.push(newBuilder.setName(type.getName()));
    LOGGER.debug(String.format("String_Node_Str",type.getName()));
  }
 else {
    this.incompleteLocalBuilder=newBuilder.setName(type.getName() + "String_Node_Str");
    LOGGER.debug(String.format("String_Node_Str",type.getName()));
  }
}

Fixed version (ground truth):
/** 
 * Create a new container class that represents a complex type of the XML schema document. All elements and attributes that belong to this type should be added to the container as member variables.
 * @param type FComplexType object
 */
@Override public void createNewContainer(FComplexType type){
  AttributeContainer.Builder newBuilder=AttributeContainer.newBuilder();
  if (type.isTopLevel()) {
    this.incompleteBuilders.push(newBuilder.setName(type.getName()));
    LOGGER.debug(String.format("String_Node_Str",type.getName()));
  }
 else   if (!this.incompleteBuilders.empty()) {
    String parentContainerName=this.incompleteBuilders.peek().getName();
    String typeName=type.getName() + "String_Node_Str";
    Stack<AttributeContainer.Builder> currentStack=this.incompleteLocalBuilders.get(parentContainerName);
    if (null == currentStack) {
      currentStack=new Stack<AttributeContainer.Builder>();
    }
    currentStack.push(newBuilder.setName(typeName));
    this.incompleteLocalBuilders.put(parentContainerName,currentStack);
    LOGGER.debug(String.format("String_Node_Str",typeName));
  }
}
Program: 6571
Project: 6571
Buggy source:
/** 
 * Constructor creates mapper for simple data types and initializes various member variables.
 * @param workspace Workspace object for source code write-out
 * @param properties Properties object with module options
 */
public JavaTypeGen(Workspace workspace,Properties properties) throws Exception {
  mapper=MapperFactory.getInstance().createMapper(properties.getProperty("String_Node_Str"));
  this.workspace=workspace;
  this.properties=properties;
  this.incompleteBuilders=new Stack<AttributeContainer.Builder>();
  this.incompleteLocalBuilder=null;
  this.generatedElements=new HashMap<String,SourceFileData>();
}

Fixed version (ground truth):
/** 
 * Constructor creates mapper for simple data types and initializes various member variables.
 * @param workspace Workspace object for source code write-out
 * @param properties Properties object with module options
 */
public JavaTypeGen(Workspace workspace,Properties properties) throws Exception {
  mapper=MapperFactory.getInstance().createMapper(properties.getProperty("String_Node_Str"));
  this.workspace=workspace;
  this.properties=properties;
  this.incompleteBuilders=new Stack<AttributeContainer.Builder>();
  this.incompleteLocalBuilders=new HashMap<String,Stack<AttributeContainer.Builder>>();
  this.generatedElements=new HashMap<String,SourceFileData>();
}
Program: 6572
Project: 6572
Buggy source:
@Override public void endTopLevelComplexType(FComplexType type,FElement parent){
}

Fixed version (ground truth):
@Override public void endTopLevelComplexType(FComplexType type,FElement parent) throws Exception {
}
Program: 6573
Project: 6573
Buggy source:
/** 
 * Handle start of a top-level complex type. Complex types are currently not supported by the Fabric type generator module.
 * @param type FComplexType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelComplexType(FComplexType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Handle start of a top-level complex type. Complex types are currently not supported by the Fabric type generator module.
 * @param type FComplexType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelComplexType(FComplexType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  if (null != type) {
    typeGenerator.createNewContainer(type);
  }
}
Program: 6574
Project: 6574
Buggy source:
/** 
 * Handle end of a top-level complex type.
 * @param type FComplexType object
 * @param parent Parent FElement object
 */
@Override public void endTopLevelComplexType(FComplexType type,FElement parent){
  LOGGER.debug("String_Node_Str");
}

Fixed version (ground truth):
/** 
 * Handle end of a top-level complex type.
 * @param type FComplexType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing* 
 */
@Override public void endTopLevelComplexType(FComplexType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  try {
    typeGenerator.buildCurrentContainer();
  }
 catch (  Exception e) {
    if (null != type && null != type.getName()) {
      LOGGER.error(String.format("String_Node_Str",type.getName()));
    }
 else {
      LOGGER.error("String_Node_Str");
    }
    throw e;
  }
}
Program: 6575
Project: 6575
Buggy source:
/** 
 * Handle end of a top-level simple type. As soon as the construction of a simple type is finished, we can close the current container by building it.
 * @param type FSimpleType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void endTopLevelSimpleType(FSimpleType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  try {
    typeGenerator.buildCurrentContainer();
  }
 catch (  Exception e) {
    if (null != type && null != type.getName()) {
      LOGGER.error(String.format("String_Node_Str",type.getName()));
    }
 else {
      LOGGER.error("String_Node_Str");
    }
    throw e;
  }
}

Fixed version (ground truth):
/** 
 * Handle end of a top-level simple type. As soon as the construction of a simple type is finished, we can close the current container by building it.
 * @param type FSimpleType object
 * @param parent Parent FElement object
 * @throws Exception Error during processing
 */
@Override public void endTopLevelSimpleType(FSimpleType type,FElement parent) throws Exception {
  LOGGER.debug("String_Node_Str");
  try {
    if (!FSchemaTypeHelper.isEnum(type)) {
      typeGenerator.buildCurrentContainer();
    }
  }
 catch (  Exception e) {
    if (null != type && null != type.getName()) {
      LOGGER.error(String.format("String_Node_Str",type.getName()));
    }
 else {
      LOGGER.error("String_Node_Str");
    }
    throw e;
  }
}
Program: 6576
Project: 6576
Buggy source:
/** 
 * Handle start of a top-level schema element. Each top-level element is equivalent to a member variable in the corresponding container class.
 * @param element FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelElement(FElement element) throws Exception {
  LOGGER.debug("String_Node_Str");
  if (null != element) {
    if (element.getSchemaType().getClass() == FSequence.class) {
      return;
    }
    typeGenerator.addMemberVariable(element);
  }
}

Fixed version (ground truth):
/** 
 * Handle start of a top-level schema element. Each top-level element is equivalent to a member variable in the corresponding container class.
 * @param element FElement object
 * @throws Exception Error during processing
 */
@Override public void startTopLevelElement(FElement element) throws Exception {
  LOGGER.debug("String_Node_Str");
  if (null != element) {
    if (element.getSchemaType().getClass() == FSequence.class) {
      LOGGER.debug("String_Node_Str");
    }
    typeGenerator.addMemberVariable(element);
  }
}
Program: 6577
Project: 6577
Buggy source:
/** 
 * Create a new container class that represents a simple type of the XML schema document. All elements and attributes that belong to this type should be added to the container as member variables.
 * @param type FSimpleType object
 */
public void createNewContainer(FSimpleType type);

Fixed version (ground truth):
public void createNewContainer(FComplexType type);
Program: 6578
Project: 6578
Buggy source:
@Override public void createNewContainer(FSimpleType type){
  throw new UnsupportedOperationException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void createNewContainer(FComplexType type){
  throw new UnsupportedOperationException("String_Node_Str");
}
Program: 6581
Project: 6581
Buggy source:
/** 
 * Create a new container class that represents a simple type of the XML schema document. All elements and attributes that belong to this type should be added to the container as member variables.
 * @param type FSimpleType object
 */
@Override public void createNewContainer(FSimpleType type){
  if (null != type) {
    if (FSchemaTypeHelper.isEnum(type)) {
      try {
        this.createTopLevelEnum(type);
      }
 catch (      Exception e) {
        LOGGER.error(String.format("String_Node_Str",type.getName()));
      }
      LOGGER.debug(String.format("String_Node_Str",type.getName()));
    }
 else {
      AttributeContainer.Builder newBuilder=AttributeContainer.newBuilder().setName(type.getName());
      if (FSchemaTypeHelper.isList(type)) {
        FList listType=(FList)type;
        newBuilder.addElementArray(this.mapper.lookup(this.getFabricTypeName(listType.getItemType())),"String_Node_Str",FSchemaTypeHelper.getMinLength(listType),FSchemaTypeHelper.getMaxLength(listType));
      }
 else {
        newBuilder.addElement(this.mapper.lookup(this.getFabricTypeName(type)),"String_Node_Str",this.createRestrictions(type));
      }
      this.incompleteBuilders.push(newBuilder);
      LOGGER.debug(String.format("String_Node_Str",type.getName()));
    }
  }
}

Fixed version (ground truth):
@Override public void createNewContainer(FComplexType type){
  AttributeContainer.Builder newBuilder=AttributeContainer.newBuilder().setName(type.getName());
  this.incompleteBuilders.push(newBuilder);
  LOGGER.debug(String.format("String_Node_Str",type.getName()));
}
Program: 6582
Project: 6582
Buggy source:
/** 
 * Translate identifiers for 'whiteSpace' restriction from XMLBeans constants to textual representations (e.g. 'preserve' instead of Schema.WS_PRESERVE).
 * @param xmlBeansConstant XMLBeans constant
 * @return String representation of identifier
 */
private String translateWhiteSpaceRestriction(final int xmlBeansConstant){
  String result="String_Node_Str";
switch (xmlBeansConstant) {
case SchemaType.WS_PRESERVE:
    result="String_Node_Str";
  break;
case SchemaType.WS_REPLACE:
result="String_Node_Str";
break;
case SchemaType.WS_COLLAPSE:
result="String_Node_Str";
break;
default :
result=null;
break;
}
return result;
}

Fixed version (ground truth):
/** 
 * Translate identifiers for 'whiteSpace' restriction from weird XMLBeans values to proper textual representation. XMLBeans may either deliver strings or numeric identifiers, when we call schemaRestrictions.getStringValue(facet), so we need this rather dirty hack to get a clean textual representation of the current 'whiteSpace' value.
 * @param xmlBeansConstant XMLBeans identifier for 'whiteSpace' value
 * @return Proper string representation of identifier or 'null', if'whiteSpace' restriction is not set or has unknown value
 */
private String translateWhiteSpaceRestriction(final String xmlBeansConstant){
  String result="String_Node_Str";
  if (("String_Node_Str").equals(xmlBeansConstant) || ("String_Node_Str").equals(xmlBeansConstant)) {
    result="String_Node_Str";
  }
 else   if (("String_Node_Str").equals(xmlBeansConstant) || ("String_Node_Str").equals(xmlBeansConstant)) {
    result="String_Node_Str";
  }
 else   if (("String_Node_Str").equals(xmlBeansConstant) || ("String_Node_Str").equals(xmlBeansConstant)) {
    result="String_Node_Str";
  }
 else {
    result=null;
  }
  return result;
}
Program: 6583
Project: 6583
Buggy source:
/** 
 * Finish the construction of the current container class by building it. As soon as a container is built, no more new member variables can be added to it. This function is usually called, when the closing XML tag of a type definition is reached.
 * @throws Exception Error while building container
 */
@Override public void buildCurrentContainer() throws Exception {
  if (!this.incompleteBuilders.empty()) {
    AnnotationMapper xmlMapper=new AnnotationMapper(this.properties.getProperty("String_Node_Str"));
    JavaClassGenerationStrategy javaStrategy=new JavaClassGenerationStrategy(xmlMapper);
    JClass classObject=(JClass)this.incompleteBuilders.pop().build().asClassObject(javaStrategy);
    if (null != this.incompleteLocalBuilder) {
      JClass innerClassObject=(JClass)this.incompleteLocalBuilder.build().asClassObject(javaStrategy);
      classObject.add(innerClassObject);
      this.incompleteLocalBuilder=null;
      LOGGER.debug(String.format("String_Node_Str",innerClassObject.getName(),classObject.getName()));
    }
    if (!this.generatedElements.containsKey(classObject.getName())) {
      this.generatedElements.put(classObject.getName(),new JavaTypeGen.SourceFileData(classObject,javaStrategy.getRequiredDependencies()));
    }
    LOGGER.debug(String.format("String_Node_Str",classObject.getName()));
  }
}

Fixed version (ground truth):
/** 
 * Finish the construction of the current container class by building it. As soon as a container is built, no more new member variables can be added to it. This function is usually called, when the closing XML tag of a type definition is reached.
 * @throws Exception Error while building container
 */
@Override public void buildCurrentContainer() throws Exception {
  if (!this.incompleteBuilders.empty()) {
    AnnotationMapper xmlMapper=new AnnotationMapper(this.properties.getProperty("String_Node_Str"));
    JavaClassGenerationStrategy javaStrategy=new JavaClassGenerationStrategy(xmlMapper);
    JClass classObject=(JClass)this.incompleteBuilders.pop().build().asClassObject(javaStrategy);
    if (null != this.incompleteLocalBuilder) {
      JClass innerClassObject=(JClass)javaStrategy.generateClassObject(this.incompleteLocalBuilder.build(),JModifier.PUBLIC | JModifier.STATIC);
      classObject.add(innerClassObject);
      this.incompleteLocalBuilder=null;
      LOGGER.debug(String.format("String_Node_Str",innerClassObject.getName(),classObject.getName()));
    }
    if (!this.generatedElements.containsKey(classObject.getName())) {
      this.generatedElements.put(classObject.getName(),new JavaTypeGen.SourceFileData(classObject,javaStrategy.getRequiredDependencies()));
    }
    LOGGER.debug(String.format("String_Node_Str",classObject.getName()));
  }
}
Program: 6585
Project: 6585
Buggy source:
/** 
 * Adds an annotation to this class.
 * @param annotations The annotation's name.
 * @return This object.
 */
public JClass addAnnotation(JClassAnnotation... annotations);

Fixed version (ground truth):
/** 
 * Adds an annotation to this class.
 * @param annotations The Java class annotation.
 * @return This object.
 */
public JClass addAnnotation(JClassAnnotation... annotations);
Program: 6586
Project: 6586
Buggy source:
/** 
 * @see de.uniluebeck.sourcegen.java.JClass#addAnnotation(de.uniluebeck.sourcegen.java.JClassAnnotation[])
 */
public JClass addAnnotation(JClassAnnotation... annotation){
  for (  JClassAnnotation ann : annotation) {
    this.annotations.add(ann);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * @see de.uniluebeck.sourcegen.java.JClass#addAnnotation(de.uniluebeck.sourcegen.java.JClassAnnotation[])
 */
public JClass addAnnotation(JClassAnnotation... annotations){
  for (  JClassAnnotation ann : annotations) {
    this.annotations.add(ann);
  }
  return this;
}
Program: 6587
Project: 6587
Buggy source:
/** 
 * Adds an annotation to this class.
 * @param annotations The annotation's name.
 * @return This object.
 */
public JConstructor addAnnotation(JConstructorAnnotation... annotations);

Fixed version (ground truth):
/** 
 * Adds an annotation to this class.
 * @param annotations The Java constructor's annotation.
 * @return This object.
 */
public JConstructor addAnnotation(JConstructorAnnotation... annotations);
Program: 6588
Project: 6588
Buggy source:
/** 
 * @see de.uniluebeck.sourcegen.java.JConstructor#addAnnotation(de.uniluebeck.sourcegen.java.JConstructorAnnotation[])
 */
public JConstructor addAnnotation(JConstructorAnnotation... annotation){
  for (  JConstructorAnnotation ann : annotation) {
    this.annotations.add(ann);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * @see de.uniluebeck.sourcegen.java.JConstructor#addAnnotation(de.uniluebeck.sourcegen.java.JConstructorAnnotation[])
 */
public JConstructor addAnnotation(JConstructorAnnotation... annotations){
  for (  JConstructorAnnotation ann : annotations) {
    this.annotations.add(ann);
  }
  return this;
}
Program: 6589
Project: 6589
Buggy source:
/** 
 * Adds an annotation to this enum.
 * @param annotations The annotation's name.
 * @return This object.
 */
public JEnum addAnnotation(JEnumAnnotation... annotations);

Fixed version (ground truth):
/** 
 * Adds an annotation to this enum.
 * @param annotations The Java enum annotation.
 * @return This object.
 */
public JEnum addAnnotation(JEnumAnnotation... annotations);
Program: 6590
Project: 6590
Buggy source:
/** 
 * @see de.uniluebeck.sourcegen.java.JEnum#addAnnotation(de.uniluebeck.sourcegen.java.JEnumAnnotation[])
 */
public JEnum addAnnotation(JEnumAnnotation... annotation){
  for (  JEnumAnnotation ann : annotation) {
    this.annotations.add(ann);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * @see de.uniluebeck.sourcegen.java.JEnum#addAnnotation(de.uniluebeck.sourcegen.java.JEnumAnnotation[])
 */
public JEnum addAnnotation(JEnumAnnotation... annotations){
  for (  JEnumAnnotation ann : annotations) {
    this.annotations.add(ann);
  }
  return this;
}
Program: 6591
Project: 6591
Buggy source:
/** 
 * @see de.uniluebeck.sourcegen.java.JField#addAnnotation(de.uniluebeck.sourcegen.java.JFieldAnnotation[])
 */
public JField addAnnotation(JFieldAnnotation... annotation){
  for (  JFieldAnnotation ann : annotation) {
    this.annotations.add(ann);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * @see de.uniluebeck.sourcegen.java.JField#addAnnotation(de.uniluebeck.sourcegen.java.JFieldAnnotation[])
 */
public JField addAnnotation(JFieldAnnotation... annotations){
  for (  JFieldAnnotation ann : annotations) {
    this.annotations.add(ann);
  }
  return this;
}
Program: 6592
Project: 6592
Buggy source:
/** 
 * Adds an annotation to this method.
 * @param annotations The annotation's name.
 * @return This object.
 */
public JInterfaceMethod addAnnotation(JMethodAnnotation... annotations);

Fixed version (ground truth):
/** 
 * Adds an annotation to this method.
 * @param annotations The Java method annotation.
 * @return This object.
 */
public JInterfaceMethod addAnnotation(JMethodAnnotation... annotations);
Program: 6593
Project: 6593
Buggy source:
/** 
 * @see de.uniluebeck.sourcegen.java.JInterfaceMethod#addAnnotation(de.uniluebeck.sourcegen.java.JMethodAnnotation[])
 */
public JInterfaceMethod addAnnotation(JMethodAnnotation... annotation){
  for (  JMethodAnnotation ann : annotation) {
    this.annotations.add(ann);
  }
  return this;
}

Fixed version (ground truth):
/** 
 * @see de.uniluebeck.sourcegen.java.JInterfaceMethod#addAnnotation(de.uniluebeck.sourcegen.java.JMethodAnnotation[])
 */
public JInterfaceMethod addAnnotation(JMethodAnnotation... annotations){
  for (  JMethodAnnotation ann : annotations) {
    this.annotations.add(ann);
  }
  return this;
}
Program: 6594
Project: 6594
Buggy source:
@Override public void startTopLevelElement(FElement element) throws Exception {
  JMethodSignature jms=JMethodSignature.factory.create(JParameter.factory.create("String_Node_Str","String_Node_Str"));
  JMethod jm=JMethod.factory.create(JModifier.PUBLIC | JModifier.STATIC,"String_Node_Str","String_Node_Str",jms);
  jm.getBody().appendSource("String_Node_Str");
  jm.setComment(new JMethodCommentImpl("String_Node_Str"));
  JClass jc=JClass.factory.create(JModifier.PUBLIC,"String_Node_Str");
  jc.add(jm);
  this.helloWorldSource.add(jc);
  this.helloWorldSource.addImport("String_Node_Str");
}

Fixed version (ground truth):
@Override public void startTopLevelElement(FElement element) throws Exception {
}
Program: 6595
Project: 6595
Buggy source:
public void testIntegration() throws IOException {
  Resource resource=new ClassPathResource("String_Node_Str",ContextGeneratorTest.class);
  JavaDocBuilder builder=new JavaDocBuilder();
  builder.addSourceTree(new File(getBaseDir(),"String_Node_Str"));
  SpringConfigurationLoader loader=new SpringConfigurationLoader(new QDoxAugmentation(builder));
  Configuration configuration=loader.load(resource);
  InMemoryDestination dest=new InMemoryDestination();
  BeanFactoryGenerator generator=new BeanFactoryGenerator();
  generator.generate(dest,configuration,BeanFactoryTypes.MinimalJavaSE);
  System.out.println(dest.getAsText());
}

Fixed version (ground truth):
public void testIntegration() throws IOException {
  Resource resource=new ClassPathResource("String_Node_Str",ContextGeneratorTest.class);
  JavaDocBuilder builder=new JavaDocBuilder();
  builder.addSourceTree(new File(getBaseDir(),"String_Node_Str"));
  SpringConfigurationLoader loader=new SpringConfigurationLoader(new QDoxAugmentation(builder));
  Configuration configuration=loader.load(resource);
  InMemoryDestination dest=new InMemoryDestination();
  BeanFactoryGenerator generator=new BeanFactoryGenerator();
  generator.generate(dest,configuration,BeanFactoryTypes.MINIMAL_JAVA_SE);
  System.out.println(dest.getAsText());
}
Program: 6596
Project: 6596
Buggy source:
private List<JavaMethod> findMatchingConstructors(final JavaClass cl,final MutableInstance instance,final Map<String,MutableInstance> allInstances){
  final ArrayList<JavaMethod> constructors=new ArrayList<JavaMethod>();
  final List<MutableConstructorArgument> arguments=instance.getConstructorArguments();
  if (instance.getFactoryMethod() == null) {
    for (    final JavaMethod method : cl.getMethods()) {
      if (method.isConstructor() && matches(arguments,method.getParameters())) {
        constructors.add(method);
      }
    }
    if (constructors.size() == 0) {
      throw new RuntimeException("String_Node_Str" + instance.getName());
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + instance.getName());
  }
  return constructors;
}

Fixed version (ground truth):
private List<JavaMethod> findMatchingConstructors(final JavaClass cl,final MutableInstance instance,final Map<String,MutableInstance> allInstances){
  final ArrayList<JavaMethod> constructors=new ArrayList<JavaMethod>();
  final List<MutableConstructorArgument> arguments=instance.getConstructorArguments();
  if (instance.getFactoryMethod() == null) {
    for (    final JavaMethod method : cl.getMethods()) {
      if (method.isConstructor() && (arguments == null || matches(arguments,method.getParameters()))) {
        constructors.add(method);
      }
    }
    if (constructors.size() == 0) {
      throw new RuntimeException("String_Node_Str" + instance.getName());
    }
  }
 else {
    throw new RuntimeException("String_Node_Str" + instance.getName());
  }
  return constructors;
}
Program: 6598
Project: 6598
Buggy source:
private boolean matches(final List<MutableConstructorArgument> arguments,final JavaParameter[] parameters){
  int i;
  final int j;
  if (parameters.length < arguments.size()) {
    return false;
  }
  for (i=0; i < arguments.size(); i++) {
    if (!(((parameters[i].getType().isPrimitive() || "String_Node_Str".equals(parameters[i].getType().getValue())) && arguments.get(i).getType() == null) || parameters[i].getType().getValue().equals(arguments.get(i).getType()))) {
      return false;
    }
  }
  return true;
}

Fixed version (ground truth):
private boolean matches(final List<MutableConstructorArgument> arguments,final JavaParameter[] parameters){
  int i;
  if (parameters.length < arguments.size()) {
    return false;
  }
  for (i=0; i < arguments.size(); i++) {
    if (!(((parameters[i].getType().isPrimitive() || "String_Node_Str".equals(parameters[i].getType().getValue())) && arguments.get(i).getType() == null) || parameters[i].getType().getValue().equals(arguments.get(i).getType()))) {
      return false;
    }
  }
  return true;
}
Program: 6599
Project: 6599
Buggy source:
public void testAttributionDefaultAutowire() throws FileNotFoundException, IOException {
  attributionPropertyTester("String_Node_Str",4);
}

Fixed version (ground truth):
public void testAttributionDefaultAutowire() throws FileNotFoundException, IOException {
  Configuration configuration=configurationLoader("String_Node_Str");
  commonPropertyTester(configuration,4);
}
Program: 6600
Project: 6600
Buggy source:
public void testAttributionTwoTypesFail() throws FileNotFoundException, IOException {
  try {
    attributionPropertyTester("String_Node_Str",5);
    fail();
  }
 catch (  final Exception e) {
  }
}

Fixed version (ground truth):
public void testAttributionTwoTypesFail() throws FileNotFoundException, IOException {
  try {
    Configuration configuration=configurationLoader("String_Node_Str");
    fail();
  }
 catch (  final Exception e) {
  }
}
Program: 6601
Project: 6601
Buggy source:
public void testAttributionNoCandidate() throws FileNotFoundException, IOException {
  attributionPropertyTester("String_Node_Str",5);
}

Fixed version (ground truth):
public void testAttributionNoCandidate() throws FileNotFoundException, IOException {
  Configuration configuration=configurationLoader("String_Node_Str");
  commonPropertyTester(configuration,5);
}
Program: 6602
Project: 6602
Buggy source:
public void testAttributionConstructor() throws FileNotFoundException, IOException {
  attributionConstructorTester("String_Node_Str",4);
}

Fixed version (ground truth):
public void testAttributionConstructor() throws FileNotFoundException, IOException {
  Configuration configuration=configurationLoader("String_Node_Str");
  assertEquals(4,configuration.getPublicInstances().size());
  assertNotNull(configuration.get("String_Node_Str"));
  assertNotNull(configuration.get("String_Node_Str").getConstructorArguments());
  assertEquals(4,configuration.get("String_Node_Str").getConstructorArguments().size());
  assertEquals("String_Node_Str",configuration.get("String_Node_Str").getConstructorArguments().get(2).getType());
  assertEquals("String_Node_Str",configuration.get("String_Node_Str").getConstructorArguments().get(3).getType());
  final List<? extends ConstructorArgument> cr=configuration.get("String_Node_Str").getConstructorArguments();
  final List<? extends ConstructorArgument> c1=configuration.get("String_Node_Str").getConstructorArguments();
  for (int i=2; i < 4; i++) {
    assertEquals(((MutableInstanceReference)cr.get(i).getSource()).getName(),((MutableInstanceReference)c1.get(i).getSource()).getName());
    assertEquals(((MutableInstanceReference)cr.get(i).getSource()).getReferencedId(),((MutableInstanceReference)c1.get(i).getSource()).getReferencedId());
  }
}
Program: 6603
Project: 6603
Buggy source:
public void testAttributionByType() throws FileNotFoundException, IOException {
  attributionPropertyTester("String_Node_Str",4);
}

Fixed version (ground truth):
public void testAttributionByType() throws FileNotFoundException, IOException {
  Configuration configuration=configurationLoader("String_Node_Str");
  commonPropertyTester(configuration,4);
}
Program: 6604
Project: 6604
Buggy source:
public void testAttributionByName() throws FileNotFoundException, IOException {
  attributionPropertyTester("String_Node_Str",4);
}

Fixed version (ground truth):
public void testAttributionByName() throws FileNotFoundException, IOException {
  Configuration configuration=configurationLoader("String_Node_Str");
  commonPropertyTester(configuration,4);
}