nus-yam/ex-repair huggingface dataset:
Program: 146032
Project: 146032
Buggy source:
private static void resolveAdditionalSuperTypes(MetadataRepository repository,ValidationHandler handler){
  Collection<ComplexTypeMetadata> types=repository.getUserComplexTypes();
  for (  TypeMetadata current : types) {
    String complexTypeName=current.getData(COMPLEX_TYPE_NAME);
    if (complexTypeName != null) {
      TypeMetadata nonInstantiableType=repository.getNonInstantiableType(USER_NAMESPACE,complexTypeName);
      if (!nonInstantiableType.getSuperTypes().isEmpty()) {
        if (nonInstantiableType.getSuperTypes().size() > 1) {
          handler.error(nonInstantiableType,"String_Node_Str",nonInstantiableType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),nonInstantiableType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.MULTIPLE_INHERITANCE_NOT_ALLOWED);
        }
        TypeMetadata superType=nonInstantiableType.getSuperTypes().iterator().next();
        ComplexTypeMetadata entitySuperType=null;
        for (        TypeMetadata entity : types) {
          if (superType.getName().equals(entity.getData(COMPLEX_TYPE_NAME))) {
            entitySuperType=(ComplexTypeMetadata)entity;
            break;
          }
        }
        if (entitySuperType != null) {
          current.addSuperType(entitySuperType,repository);
        }
      }
    }
  }
}

Fixed version (ground truth):
private static void resolveAdditionalSuperTypes(MetadataRepository repository,ValidationHandler handler){
  Collection<ComplexTypeMetadata> types=repository.getUserComplexTypes();
  for (  TypeMetadata current : types) {
    String complexTypeName=current.getData(COMPLEX_TYPE_NAME);
    if (complexTypeName != null) {
      TypeMetadata nonInstantiableType=repository.getNonInstantiableType(USER_NAMESPACE,complexTypeName);
      if (!nonInstantiableType.getSuperTypes().isEmpty()) {
        if (nonInstantiableType.getSuperTypes().size() > 1) {
          handler.error(nonInstantiableType,"String_Node_Str",nonInstantiableType.<Element>getData(MetadataRepository.XSD_DOM_ELEMENT),nonInstantiableType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),nonInstantiableType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.MULTIPLE_INHERITANCE_NOT_ALLOWED);
        }
        TypeMetadata superType=nonInstantiableType.getSuperTypes().iterator().next();
        ComplexTypeMetadata entitySuperType=null;
        for (        TypeMetadata entity : types) {
          if (superType.getName().equals(entity.getData(COMPLEX_TYPE_NAME))) {
            entitySuperType=(ComplexTypeMetadata)entity;
            break;
          }
        }
        if (entitySuperType != null) {
          current.addSuperType(entitySuperType,repository);
        }
      }
    }
  }
}
Program: 146033
Project: 146033
Buggy source:
@Override public void error(FieldMetadata field,String message,int lineNumber,int columnNumber,ValidationError error){
}

Fixed version (ground truth):
@Override public void error(FieldMetadata field,String message,Element element,int lineNumber,int columnNumber,ValidationError error){
}
Program: 146034
Project: 146034
Buggy source:
@Override public void fatal(TypeMetadata type,String message,int lineNumber,int columnNumber,ValidationError error){
}

Fixed version (ground truth):
@Override public void fatal(TypeMetadata type,String message,Element element,int lineNumber,int columnNumber,ValidationError error){
}
Program: 146035
Project: 146035
Buggy source:
public void load(InputStream inputStream,ValidationHandler handler){
  if (inputStream == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Map<String,Object> options=new HashMap<String,Object>();
  options.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED,Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
  XSDParser parse=new XSDParser(options);
  parse.setDocumentLocator(new LocatorImpl());
  parse.parse(inputStream);
  XSDSchema schema=parse.getSchema();
  schema.validate();
  EList<XSDDiagnostic> diagnostics=schema.getDiagnostics();
  for (  XSDDiagnostic diagnostic : diagnostics) {
    XSDDiagnosticSeverity severity=diagnostic.getSeverity();
    if (severity.equals(XSDDiagnosticSeverity.ERROR_LITERAL)) {
      handler.error((TypeMetadata)null,"String_Node_Str" + diagnostic.getMessage(),-1,-1,ValidationError.XML_SCHEMA);
    }
 else     if (severity.equals(XSDDiagnosticSeverity.WARNING_LITERAL)) {
      handler.error((TypeMetadata)null,"String_Node_Str" + diagnostic.getMessage(),-1,-1,ValidationError.XML_SCHEMA);
    }
  }
  XmlSchemaWalker.walk(schema,this);
  resolveAdditionalSuperTypes(this,handler);
  for (  TypeMetadata type : getUserComplexTypes()) {
    type.validate(handler);
  }
  for (  TypeMetadata type : getNonInstantiableTypes()) {
    type.validate(handler);
  }
  handler.end();
  if (handler.getErrorCount() == 0) {
    for (    TypeMetadata type : getTypes()) {
      type.freeze(handler);
    }
  }
 else {
    LOGGER.error("String_Node_Str" + handler.getErrorCount() + "String_Node_Str");
  }
}

Fixed version (ground truth):
public void load(InputStream inputStream,ValidationHandler handler){
  if (inputStream == null) {
    throw new IllegalArgumentException("String_Node_Str");
  }
  Map<String,Object> options=new HashMap<String,Object>();
  options.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED,Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER);
  XSDParser parse=new XSDParser(options);
  parse.setDocumentLocator(new LocatorImpl());
  parse.parse(inputStream);
  XSDSchema schema=parse.getSchema();
  schema.validate();
  EList<XSDDiagnostic> diagnostics=schema.getDiagnostics();
  for (  XSDDiagnostic diagnostic : diagnostics) {
    XSDDiagnosticSeverity severity=diagnostic.getSeverity();
    if (severity.equals(XSDDiagnosticSeverity.ERROR_LITERAL)) {
      handler.error((TypeMetadata)null,"String_Node_Str" + diagnostic.getMessage(),null,-1,-1,ValidationError.XML_SCHEMA);
    }
 else     if (severity.equals(XSDDiagnosticSeverity.WARNING_LITERAL)) {
      handler.error((TypeMetadata)null,"String_Node_Str" + diagnostic.getMessage(),null,-1,-1,ValidationError.XML_SCHEMA);
    }
  }
  XmlSchemaWalker.walk(schema,this);
  resolveAdditionalSuperTypes(this,handler);
  for (  TypeMetadata type : getUserComplexTypes()) {
    type.validate(handler);
  }
  for (  TypeMetadata type : getNonInstantiableTypes()) {
    type.validate(handler);
  }
  handler.end();
  if (handler.getErrorCount() == 0) {
    for (    TypeMetadata type : getTypes()) {
      type.freeze(handler);
    }
  }
 else {
    LOGGER.error("String_Node_Str" + handler.getErrorCount() + "String_Node_Str");
  }
}
Program: 146036
Project: 146036
Buggy source:
@Override public void warning(TypeMetadata type,String message,int lineNumber,int columnNumber,ValidationError error){
}

Fixed version (ground truth):
@Override public void warning(TypeMetadata type,String message,Element element,int lineNumber,int columnNumber,ValidationError error){
}
Program: 146038
Project: 146038
Buggy source:
@Override public void validate(ValidationHandler handler){
  if (!superTypes.isEmpty()) {
    List<TypeMetadata> thisSuperTypes=new LinkedList<TypeMetadata>(superTypes);
    superTypes.clear();
    for (    TypeMetadata superType : thisSuperTypes) {
      if (isInstantiable() == superType.isInstantiable()) {
        superType=superType.freeze(handler);
        superTypes.add(superType);
      }
 else {
        handler.error(superType,"String_Node_Str",superType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),superType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.ENTITY_CANNOT_INHERIT_FROM_REUSABLE_TYPE);
      }
    }
  }
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  if (!superTypes.isEmpty()) {
    List<TypeMetadata> thisSuperTypes=new LinkedList<TypeMetadata>(superTypes);
    superTypes.clear();
    for (    TypeMetadata superType : thisSuperTypes) {
      if (isInstantiable() == superType.isInstantiable()) {
        superType=superType.freeze(handler);
        superTypes.add(superType);
      }
 else {
        handler.error(superType,"String_Node_Str",superType.<Element>getData(MetadataRepository.XSD_DOM_ELEMENT),superType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),superType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.ENTITY_CANNOT_INHERIT_FROM_REUSABLE_TYPE);
      }
    }
  }
}
Program: 146040
Project: 146040
Buggy source:
@Override public FieldMetadata freeze(ValidationHandler handler){
  if (frozenField != null) {
    return frozenField;
  }
  ComplexTypeMetadata type=(ComplexTypeMetadata)repository.getType(typeName);
  if (type == null) {
    type=(ComplexTypeMetadata)repository.getNonInstantiableType(repository.getUserNamespace(),typeName);
  }
  if (type == null) {
    handler.fatal((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str",-1,-1,ValidationError.TYPE_DOES_NOT_EXIST);
    return this;
  }
  Collection<FieldMetadata> keyFields=type.getKeyFields();
  if (fieldName == null) {
    if (keyFields.size() == 1) {
      frozenField=keyFields.iterator().next();
    }
 else {
      frozenField=new CompoundFieldMetadata(keyFields.toArray(new FieldMetadata[keyFields.size()]));
    }
  }
 else {
    frozenField=type.getField(fieldName);
  }
  Set<Map.Entry<String,Object>> data=additionalData.entrySet();
  for (  Map.Entry<String,Object> currentData : data) {
    frozenField.setData(currentData.getKey(),currentData.getValue());
  }
  return frozenField;
}

Fixed version (ground truth):
@Override public FieldMetadata freeze(ValidationHandler handler){
  if (frozenField != null) {
    return frozenField;
  }
  ComplexTypeMetadata type=(ComplexTypeMetadata)repository.getType(typeName);
  if (type == null) {
    type=(ComplexTypeMetadata)repository.getNonInstantiableType(repository.getUserNamespace(),typeName);
  }
  if (type == null) {
    handler.fatal((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str",null,-1,-1,ValidationError.TYPE_DOES_NOT_EXIST);
    return this;
  }
  Collection<FieldMetadata> keyFields=type.getKeyFields();
  if (fieldName == null) {
    if (keyFields.size() == 1) {
      frozenField=keyFields.iterator().next();
    }
 else {
      frozenField=new CompoundFieldMetadata(keyFields.toArray(new FieldMetadata[keyFields.size()]));
    }
  }
 else {
    frozenField=type.getField(fieldName);
  }
  Set<Map.Entry<String,Object>> data=additionalData.entrySet();
  for (  Map.Entry<String,Object> currentData : data) {
    frozenField.setData(currentData.getKey(),currentData.getValue());
  }
  return frozenField;
}
Program: 146041
Project: 146041
Buggy source:
@Override public void validate(ValidationHandler handler){
  ComplexTypeMetadata type=(ComplexTypeMetadata)repository.getType(typeName);
  if (type == null) {
    type=(ComplexTypeMetadata)repository.getNonInstantiableType(repository.getUserNamespace(),typeName);
  }
  if (type == null) {
    handler.error(this,"String_Node_Str" + typeName + "String_Node_Str",(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    return;
  }
  Collection<FieldMetadata> keyFields=type.getKeyFields();
  if (keyFields.isEmpty()) {
    handler.error(type,"String_Node_Str" + typeName + "String_Node_Str",type.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),type.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_OWN_KEY);
  }
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  ComplexTypeMetadata type=(ComplexTypeMetadata)repository.getType(typeName);
  if (type == null) {
    type=(ComplexTypeMetadata)repository.getNonInstantiableType(repository.getUserNamespace(),typeName);
  }
  if (type == null) {
    handler.error(this,"String_Node_Str" + typeName + "String_Node_Str",(Element)additionalData.get(MetadataRepository.XSD_DOM_ELEMENT),(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    return;
  }
  Collection<FieldMetadata> keyFields=type.getKeyFields();
  if (keyFields.isEmpty()) {
    handler.error(type,"String_Node_Str" + typeName + "String_Node_Str",type.<Element>getData(MetadataRepository.XSD_DOM_ELEMENT),type.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),type.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_OWN_KEY);
  }
}
Program: 146042
Project: 146042
Buggy source:
@Override public void validate(ValidationHandler handler){
  TypeMetadata type;
  if (instantiable) {
    type=repository.getType(namespace,typeName);
  }
 else {
    type=repository.getNonInstantiableType(namespace,typeName);
  }
  if (type == null) {
    if (instantiable) {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    }
 else {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    }
  }
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  TypeMetadata type;
  if (instantiable) {
    type=repository.getType(namespace,typeName);
  }
 else {
    type=repository.getNonInstantiableType(namespace,typeName);
  }
  if (type == null) {
    if (instantiable) {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Element)additionalData.get(MetadataRepository.XSD_DOM_ELEMENT),(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    }
 else {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Element)additionalData.get(MetadataRepository.XSD_DOM_ELEMENT),(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER),ValidationError.TYPE_DOES_NOT_EXIST);
    }
  }
}
Program: 146043
Project: 146043
Buggy source:
/** 
 * Validates the type: performs assertions on content specific to MDM (this method should not raise XSD compliance issues).
 * @param handler A {@link ValidationHandler} to be used for error / warning reporting.
 * @see ValidationHandler#error(TypeMetadata,String,int,int,ValidationError)
 */
void validate(ValidationHandler handler);

Fixed version (ground truth):
/** 
 * Validates the type: performs assertions on content specific to MDM (this method should not raise XSD compliance issues).
 * @param handler A {@link ValidationHandler} to be used for error / warning reporting.
 * @see ValidationHandler#error(TypeMetadata,String,org.w3c.dom.Element,int,int,ValidationError)
 */
void validate(ValidationHandler handler);
Program: 146045
Project: 146045
Buggy source:
@Override public void validate(ValidationHandler handler){
  if (containingType != null) {
    ComplexTypeMetadata type=repository.getComplexType(containingType.getName());
    Integer lineNumberObject=(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER);
    Integer columnNumberObject=(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER);
    if (type == null) {
      handler.error(this,"String_Node_Str" + containingType + "String_Node_Str",lineNumberObject == null ? containingType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER) : lineNumberObject,columnNumberObject == null ? containingType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER) : columnNumberObject);
      return;
    }
    if (!type.hasField(fieldName)) {
      handler.error(this,"String_Node_Str" + containingType + "String_Node_Str"+ fieldName+ "String_Node_Str",lineNumberObject == null ? containingType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER) : lineNumberObject,columnNumberObject == null ? containingType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER) : columnNumberObject);
    }
  }
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  Integer lineNumberObject=(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER);
  Integer columnNumberObject=(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER);
  TypeMetadata validationContainingType;
  if (containingType != null) {
    validationContainingType=containingType;
  }
 else {
    validationContainingType=containingField.getContainingType();
  }
  ComplexTypeMetadata type=repository.getComplexType(validationContainingType.getName());
  if (type == null) {
    handler.error(this,"String_Node_Str" + validationContainingType + "String_Node_Str",lineNumberObject == null ? validationContainingType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER) : lineNumberObject,columnNumberObject == null ? validationContainingType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER) : columnNumberObject);
    return;
  }
  if (!type.hasField(fieldName)) {
    handler.error(this,"String_Node_Str" + validationContainingType + "String_Node_Str"+ fieldName+ "String_Node_Str",lineNumberObject == null ? validationContainingType.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER) : lineNumberObject,columnNumberObject == null ? validationContainingType.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER) : columnNumberObject);
  }
}
Program: 146047
Project: 146047
Buggy source:
@Override public void validate(ValidationHandler handler){
  TypeMetadata currentType=fieldType;
  if (!XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(currentType.getNamespace())) {
    while (!currentType.getSuperTypes().isEmpty()) {
      TypeMetadata superType=currentType.getSuperTypes().iterator().next();
      if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(superType.getNamespace()) && ("String_Node_Str".equals(superType.getName()) || "String_Node_Str".equals(superType.getName()))) {
        break;
      }
      currentType=superType;
    }
  }
  if (!"String_Node_Str".equals(currentType.getName())) {
    handler.error(containingType,"String_Node_Str" + getName() + "String_Node_Str",-1,-1);
  }
  referencedField.validate(handler);
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  int errorCount=handler.getErrorCount();
  fieldType.validate(handler);
  if (handler.getErrorCount() > errorCount) {
    return;
  }
  TypeMetadata currentType=fieldType;
  if (!XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(currentType.getNamespace())) {
    while (!currentType.getSuperTypes().isEmpty()) {
      TypeMetadata superType=currentType.getSuperTypes().iterator().next();
      if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(superType.getNamespace()) && ("String_Node_Str".equals(superType.getName()) || "String_Node_Str".equals(superType.getName()))) {
        break;
      }
      currentType=superType;
      errorCount=handler.getErrorCount();
      currentType.validate(handler);
      if (handler.getErrorCount() > errorCount) {
        return;
      }
    }
  }
  if (!"String_Node_Str".equals(currentType.getName())) {
    handler.error(this,"String_Node_Str" + getName() + "String_Node_Str",this.<Integer>getData(MetadataRepository.XSD_LINE_NUMBER),this.<Integer>getData(MetadataRepository.XSD_COLUMN_NUMBER));
  }
  referencedField.validate(handler);
}
Program: 146048
Project: 146048
Buggy source:
@Override public TypeMetadata freeze(ValidationHandler handler){
  return getType().freeze(handler);
}

Fixed version (ground truth):
@Override public TypeMetadata freeze(ValidationHandler handler){
  if (frozenType == null) {
    frozenType=getType().freeze(handler);
    Set<Map.Entry<String,Object>> data=additionalData.entrySet();
    for (    Map.Entry<String,Object> currentData : data) {
      frozenType.setData(currentData.getKey(),currentData.getValue());
    }
  }
  return frozenType;
}
Program: 146049
Project: 146049
Buggy source:
@Override public <X>X getData(String key){
  return getType().<X>getData(key);
}

Fixed version (ground truth):
@Override public <X>X getData(String key){
  return (X)additionalData.get(key);
}
Program: 146050
Project: 146050
Buggy source:
@Override public void validate(ValidationHandler handler){
  TypeMetadata type;
  if (instantiable) {
    type=repository.getType(namespace,typeName);
  }
 else {
    type=repository.getNonInstantiableType(namespace,typeName);
  }
  if (type == null) {
    if (instantiable) {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",-1,-1);
    }
 else {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",-1,-1);
    }
  }
}

Fixed version (ground truth):
@Override public void validate(ValidationHandler handler){
  TypeMetadata type;
  if (instantiable) {
    type=repository.getType(namespace,typeName);
  }
 else {
    type=repository.getNonInstantiableType(namespace,typeName);
  }
  if (type == null) {
    if (instantiable) {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER));
    }
 else {
      handler.error((TypeMetadata)null,"String_Node_Str" + typeName + "String_Node_Str"+ namespace+ "String_Node_Str",(Integer)additionalData.get(MetadataRepository.XSD_LINE_NUMBER),(Integer)additionalData.get(MetadataRepository.XSD_COLUMN_NUMBER));
    }
  }
}
Program: 146051
Project: 146051
Buggy source:
@Override public synchronized void setData(String key,Object data){
  getType().setData(key,data);
}

Fixed version (ground truth):
@Override public synchronized void setData(String key,Object data){
  additionalData.put(key,data);
}
Program: 146052
Project: 146052
Buggy source:
private static String serializeConfiguration(SmtpConfigurationBean configuration) throws Exception {
  try {
    String xml="String_Node_Str";
    xml+="String_Node_Str" + ("String_Node_Str".equals(StringEscapeUtils.escapeXml(configuration.getSmtpServer())) ? "String_Node_Str" : StringEscapeUtils.escapeXml(configuration.getSmtpServer())) + "String_Node_Str";
    xml+="String_Node_Str" + ((configuration.getSmtpPort() <= 0) ? "String_Node_Str" : String.valueOf(configuration.getSmtpPort())) + "String_Node_Str";
    xml+="String_Node_Str" + (("String_Node_Str".equals(StringEscapeUtils.escapeXml(configuration.getSmtpUsername()))) ? "String_Node_Str" : StringEscapeUtils.escapeXml(configuration.getSmtpUsername())) + "String_Node_Str"+ "String_Node_Str"+ (("String_Node_Str".equals(StringEscapeUtils.escapeXml(configuration.getSmtpPassword()))) ? "String_Node_Str" : StringEscapeUtils.escapeXml(configuration.getSmtpPassword()))+ "String_Node_Str"+ "String_Node_Str"+ (("String_Node_Str".equals(StringEscapeUtils.escapeXml(configuration.getSmtpBCC()))) ? "String_Node_Str" : StringEscapeUtils.escapeXml(configuration.getSmtpBCC()).replaceAll("String_Node_Str","String_Node_Str"));
    xml+="String_Node_Str";
    return xml;
  }
 catch (  Exception e) {
    Matcher m=Pattern.compile("String_Node_Str",Pattern.DOTALL).matcher(e.getLocalizedMessage());
    if (m.matches())     throw new Exception(m.group(2));
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}

Fixed version (ground truth):
private static String serializeConfiguration(SmtpConfigurationBean configuration) throws Exception {
  try {
    String xml="String_Node_Str";
    xml+="String_Node_Str" + ("String_Node_Str".equals(configuration.getSmtpServer()) ? "String_Node_Str" : configuration.getSmtpServer()) + "String_Node_Str";
    xml+="String_Node_Str" + ((configuration.getSmtpPort() <= 0) ? "String_Node_Str" : String.valueOf(configuration.getSmtpPort())) + "String_Node_Str";
    xml+="String_Node_Str" + (("String_Node_Str".equals(configuration.getSmtpUsername())) ? "String_Node_Str" : configuration.getSmtpUsername()) + "String_Node_Str"+ "String_Node_Str"+ (("String_Node_Str".equals(configuration.getSmtpPassword())) ? "String_Node_Str" : configuration.getSmtpPassword())+ "String_Node_Str"+ "String_Node_Str"+ (("String_Node_Str".equals(configuration.getSmtpBCC())) ? "String_Node_Str" : configuration.getSmtpBCC()).replaceAll("String_Node_Str","String_Node_Str");
    xml+="String_Node_Str";
    return xml;
  }
 catch (  Exception e) {
    Matcher m=Pattern.compile("String_Node_Str",Pattern.DOTALL).matcher(e.getLocalizedMessage());
    if (m.matches())     throw new Exception(m.group(2));
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}
Program: 146053
Project: 146053
Buggy source:
public static void deleteDirectory(File dir){
  File[] entries=dir.listFiles();
  int sz=entries.length;
  for (int i=0; i < sz; i++) {
    if (entries[i].isDirectory()) {
      deleteDirectory(entries[i]);
    }
 else {
      entries[i].delete();
    }
  }
  dir.delete();
}

Fixed version (ground truth):
public static void deleteDirectory(File dir){
  if (!dir.exists() || dir.isFile())   return;
  File[] entries=dir.listFiles();
  int sz=entries.length;
  for (int i=0; i < sz; i++) {
    if (entries[i].isDirectory()) {
      deleteDirectory(entries[i]);
    }
 else {
      entries[i].delete();
    }
  }
  dir.delete();
}
Program: 146055
Project: 146055
Buggy source:
public static void main(String[] args){
  try {
    zipFile("String_Node_Str","String_Node_Str");
    unZipFile("String_Node_Str","String_Node_Str");
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public static void main(String[] args){
  try {
    File barf=new File("String_Node_Str");
    removeTalendLibsFromBarFile(barf);
  }
 catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 146057
Project: 146057
Buggy source:
public static EDBType getDBType(){
  Object dbtype=getConfiguration().get("String_Node_Str");
  if (dbtype != null && dbtype.toString().equals(EDBType.ORACLE.getName())) {
    return EDBType.ORACLE;
  }
  if (dbtype != null && dbtype.toString().equals(EDBType.BERKELEY.getName())) {
    return EDBType.BERKELEY;
  }
  return EDBType.EXIST;
}

Fixed version (ground truth):
public static EDBType getDBType(){
  Object dbtype=getConfiguration().get("String_Node_Str");
  if (dbtype != null && dbtype.toString().equals(EDBType.ORACLE.getName())) {
    return EDBType.ORACLE;
  }
  if (dbtype != null && dbtype.toString().equals(EDBType.BERKELEY.getName())) {
    return EDBType.BERKELEY;
  }
  if (dbtype != null && dbtype.toString().equals(EDBType.QIZX.getName())) {
    return EDBType.QIZX;
  }
  return EDBType.EXIST;
}
Program: 146058
Project: 146058
Buggy source:
/** 
 * DOC aiming Comment method "unZipFile".
 * @param zipfile
 * @param unzipdir
 * @throws Exception
 */
public static void unZipFile(String zipfile,String unzipdir) throws Exception {
  File unzipF=new File(unzipdir);
  if (!unzipF.exists()) {
    unzipF.mkdirs();
  }
  ZipFile zfile=new ZipFile(zipfile);
  Enumeration zList=zfile.entries();
  ZipEntry ze=null;
  byte[] buf=new byte[1024];
  while (zList.hasMoreElements()) {
    ze=(ZipEntry)zList.nextElement();
    if (ze.isDirectory()) {
      File f=new File(unzipdir + ze.getName());
      f.mkdirs();
      continue;
    }
    unzipdir=unzipdir.replace('\\','/');
    if (!unzipdir.endsWith("String_Node_Str")) {
      unzipdir=unzipdir + "String_Node_Str";
    }
    String filename=unzipdir + ze.getName();
    File zeF=new File(filename);
    if (!zeF.getParentFile().exists()) {
      zeF.getParentFile().mkdirs();
    }
    OutputStream os=new BufferedOutputStream(new FileOutputStream(zeF));
    InputStream is=new BufferedInputStream(zfile.getInputStream(ze));
    int readLen=0;
    while ((readLen=is.read(buf,0,1024)) != -1) {
      os.write(buf,0,readLen);
    }
    is.close();
    os.close();
  }
  zfile.close();
}

Fixed version (ground truth):
/** 
 * DOC hbhong Comment method "unZipFile". same with unZipFile(String zipfile, String unzipdir) method except having a progressMonitor
 * @param zipfile
 * @param unzipdir
 * @param totalProgress
 * @param monitor
 * @throws Exception
 */
public static void unZipFile(String zipfile,String unzipdir,int totalProgress,IProgressMonitor monitor) throws Exception {
  monitor.setTaskName("String_Node_Str");
  File unzipF=new File(unzipdir);
  if (!unzipF.exists()) {
    unzipF.mkdirs();
  }
  ZipFile zfile=new ZipFile(zipfile);
  int total=zfile.size();
  int interval, step;
  if (totalProgress / total > 0) {
    interval=1;
    step=Math.round(totalProgress / total);
  }
 else {
    step=1;
    interval=Math.round(total / totalProgress + 0.5f);
  }
  Enumeration zList=zfile.entries();
  ZipEntry ze=null;
  byte[] buf=new byte[1024];
  int tmp=1;
  while (zList.hasMoreElements()) {
    ze=(ZipEntry)zList.nextElement();
    monitor.subTask(ze.getName());
    if (ze.isDirectory()) {
      File f=new File(unzipdir + ze.getName());
      f.mkdirs();
      continue;
    }
    unzipdir=unzipdir.replace('\\','/');
    if (!unzipdir.endsWith("String_Node_Str")) {
      unzipdir=unzipdir + "String_Node_Str";
    }
    String filename=unzipdir + ze.getName();
    File zeF=new File(filename);
    if (!zeF.getParentFile().exists()) {
      zeF.getParentFile().mkdirs();
    }
    OutputStream os=new BufferedOutputStream(new FileOutputStream(zeF));
    InputStream is=new BufferedInputStream(zfile.getInputStream(ze));
    int readLen=0;
    while ((readLen=is.read(buf,0,1024)) != -1) {
      os.write(buf,0,readLen);
    }
    is.close();
    os.close();
    if (interval == 1) {
      monitor.worked(step);
    }
 else {
      if (tmp >= interval) {
        monitor.worked(step);
        tmp=1;
      }
 else {
        tmp++;
      }
    }
  }
  zfile.close();
}
Program: 146059
Project: 146059
Buggy source:
public ArrayList<ArrayList<String>> getCrossReferencingContent(String tableName) throws XtentisWebappException {
  try {
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(Configuration.datacluster),tableName,null,-1,0,-1)).getStrings();
    DocumentBuilder documentBuilder=DocumentBuilderFactory.newInstance().newDocumentBuilder();
    XPath xpath=XPathFactory.newInstance().newXPath();
    ArrayList<ArrayList<String>> list=new ArrayList<ArrayList<String>>();
    for (int i=1; i < results.length; i++) {
      Element lineElement=documentBuilder.parse(new InputSource(new StringReader(results[i]))).getDocumentElement();
      NodeList rowList=(NodeList)xpath.evaluate("String_Node_Str",lineElement,XPathConstants.NODESET);
      ArrayList<String> fields=new ArrayList<String>();
      for (int j=0; j < rowList.getLength(); j++) {
{
          NodeList textNodes=rowList.item(j).getChildNodes();
          String val="String_Node_Str";
          if (textNodes.getLength() > 0) {
            String text=textNodes.item(0).getNodeValue();
            if (text != null)             val=text;
          }
          fields.add(val);
        }
      }
      list.add(fields);
    }
    if (results.length > 0)     return list;
 else     return null;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
public ArrayList<ArrayList<String>> getCrossReferencingContent(String tableName) throws XtentisWebappException {
  try {
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(Configuration.datacluster),tableName,null,-1,0,-1)).getStrings();
    DocumentBuilder documentBuilder=DocumentBuilderFactory.newInstance().newDocumentBuilder();
    XPath xpath=XPathFactory.newInstance().newXPath();
    ArrayList<ArrayList<String>> list=new ArrayList<ArrayList<String>>();
    for (int i=0; i < results.length; i++) {
      Element lineElement=documentBuilder.parse(new InputSource(new StringReader(results[i]))).getDocumentElement();
      NodeList rowList=(NodeList)xpath.evaluate("String_Node_Str",lineElement,XPathConstants.NODESET);
      ArrayList<String> fields=new ArrayList<String>();
      for (int j=0; j < rowList.getLength(); j++) {
{
          NodeList textNodes=rowList.item(j).getChildNodes();
          String val="String_Node_Str";
          if (textNodes.getLength() > 0) {
            String text=textNodes.item(0).getNodeValue();
            if (text != null)             val=text;
          }
          fields.add(val);
        }
      }
      list.add(fields);
    }
    if (results.length > 0)     return list;
 else     return null;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return null;
  }
}
Program: 146060
Project: 146060
Buggy source:
public ListRange getUsers(String regex,String language) throws Exception {
  org.apache.log4j.Logger.getLogger(this.getClass()).debug("String_Node_Str" + regex + "String_Node_Str"+ language);
  try {
    WSWhereItem wi=new WSWhereItem();
    if ((regex == null) || ("String_Node_Str".equals(regex)) || "String_Node_Str".equals(regex)) {
      wi=null;
    }
 else {
      WSWhereCondition wc=new WSWhereCondition("String_Node_Str",WSWhereOperator.CONTAINS,regex,WSStringPredicate.NONE,true);
      wi.setWhereCondition(wc);
    }
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(dataclusterPK),"String_Node_Str",wi,0,0,Integer.MAX_VALUE)).getStrings();
    ArrayList<User> names=new ArrayList<User>();
    for (int i=1; i < results.length; i++) {
      User user=User.parse(results[i]);
      names.add(user);
    }
    ListRange listRange=new ListRange();
    listRange.setData(names.toArray(new User[names.size()]));
    listRange.setTotalSize(names.size());
    return listRange;
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}

Fixed version (ground truth):
public ListRange getUsers(String regex,String language) throws Exception {
  org.apache.log4j.Logger.getLogger(this.getClass()).debug("String_Node_Str" + regex + "String_Node_Str"+ language);
  try {
    WSWhereItem wi=new WSWhereItem();
    if ((regex == null) || ("String_Node_Str".equals(regex)) || "String_Node_Str".equals(regex)) {
      wi=null;
    }
 else {
      WSWhereCondition wc=new WSWhereCondition("String_Node_Str",WSWhereOperator.CONTAINS,regex,WSStringPredicate.NONE,true);
      wi.setWhereCondition(wc);
    }
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(dataclusterPK),"String_Node_Str",wi,0,0,Integer.MAX_VALUE)).getStrings();
    ArrayList<User> names=new ArrayList<User>();
    for (int i=0; i < results.length; i++) {
      User user=User.parse(results[i]);
      names.add(user);
    }
    ListRange listRange=new ListRange();
    listRange.setData(names.toArray(new User[names.size()]));
    listRange.setTotalSize(names.size());
    return listRange;
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}
Program: 146061
Project: 146061
Buggy source:
public ArrayList<ArrayList<String>> getCrossReferencingContent(String tableName) throws XtentisWebappException {
  try {
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(Configuration.datacluster),tableName,null,-1,0,-1)).getStrings();
    DocumentBuilder documentBuilder=DocumentBuilderFactory.newInstance().newDocumentBuilder();
    XPath xpath=XPathFactory.newInstance().newXPath();
    ArrayList<ArrayList<String>> list=new ArrayList<ArrayList<String>>();
    for (int i=0; i < results.length; i++) {
      Element lineElement=documentBuilder.parse(new InputSource(new StringReader(results[i]))).getDocumentElement();
      NodeList rowList=(NodeList)xpath.evaluate("String_Node_Str",lineElement,XPathConstants.NODESET);
      ArrayList<String> fields=new ArrayList<String>();
      for (int j=0; j < rowList.getLength(); j++) {
{
          NodeList textNodes=rowList.item(j).getChildNodes();
          String val="String_Node_Str";
          if (textNodes.getLength() > 0) {
            String text=textNodes.item(0).getNodeValue();
            if (text != null)             val=text;
          }
          fields.add(val);
        }
      }
      list.add(fields);
    }
    if (results.length > 0)     return list;
 else     return null;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return null;
  }
}

Fixed version (ground truth):
public ArrayList<ArrayList<String>> getCrossReferencingContent(String tableName) throws XtentisWebappException {
  try {
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(Configuration.datacluster),tableName,null,-1,0,-1)).getStrings();
    DocumentBuilder documentBuilder=DocumentBuilderFactory.newInstance().newDocumentBuilder();
    XPath xpath=XPathFactory.newInstance().newXPath();
    ArrayList<ArrayList<String>> list=new ArrayList<ArrayList<String>>();
    for (int i=1; i < results.length; i++) {
      Element lineElement=documentBuilder.parse(new InputSource(new StringReader(results[i]))).getDocumentElement();
      NodeList rowList=(NodeList)xpath.evaluate("String_Node_Str",lineElement,XPathConstants.NODESET);
      ArrayList<String> fields=new ArrayList<String>();
      for (int j=0; j < rowList.getLength(); j++) {
{
          NodeList textNodes=rowList.item(j).getChildNodes();
          String val="String_Node_Str";
          if (textNodes.getLength() > 0) {
            String text=textNodes.item(0).getNodeValue();
            if (text != null)             val=text;
          }
          fields.add(val);
        }
      }
      list.add(fields);
    }
    if (results.length > 0)     return list;
 else     return null;
  }
 catch (  Exception e) {
    e.printStackTrace();
    return null;
  }
}
Program: 146062
Project: 146062
Buggy source:
public ListRange getUsers(String regex,String language) throws Exception {
  org.apache.log4j.Logger.getLogger(this.getClass()).debug("String_Node_Str" + regex + "String_Node_Str"+ language);
  try {
    WSWhereItem wi=new WSWhereItem();
    if ((regex == null) || ("String_Node_Str".equals(regex)) || "String_Node_Str".equals(regex)) {
      wi=null;
    }
 else {
      WSWhereCondition wc=new WSWhereCondition("String_Node_Str",WSWhereOperator.CONTAINS,regex,WSStringPredicate.NONE,true);
      wi.setWhereCondition(wc);
    }
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(dataclusterPK),"String_Node_Str",wi,0,0,Integer.MAX_VALUE)).getStrings();
    ArrayList<User> names=new ArrayList<User>();
    for (int i=0; i < results.length; i++) {
      User user=User.parse(results[i]);
      names.add(user);
    }
    ListRange listRange=new ListRange();
    listRange.setData(names.toArray(new User[names.size()]));
    listRange.setTotalSize(names.size());
    return listRange;
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}

Fixed version (ground truth):
public ListRange getUsers(String regex,String language) throws Exception {
  org.apache.log4j.Logger.getLogger(this.getClass()).debug("String_Node_Str" + regex + "String_Node_Str"+ language);
  try {
    WSWhereItem wi=new WSWhereItem();
    if ((regex == null) || ("String_Node_Str".equals(regex)) || "String_Node_Str".equals(regex)) {
      wi=null;
    }
 else {
      WSWhereCondition wc=new WSWhereCondition("String_Node_Str",WSWhereOperator.CONTAINS,regex,WSStringPredicate.NONE,true);
      wi.setWhereCondition(wc);
    }
    String[] results=Util.getPort().getItems(new WSGetItems(new WSDataClusterPK(dataclusterPK),"String_Node_Str",wi,0,0,Integer.MAX_VALUE)).getStrings();
    ArrayList<User> names=new ArrayList<User>();
    for (int i=1; i < results.length; i++) {
      User user=User.parse(results[i]);
      names.add(user);
    }
    ListRange listRange=new ListRange();
    listRange.setData(names.toArray(new User[names.size()]));
    listRange.setTotalSize(names.size());
    return listRange;
  }
 catch (  Exception e) {
    e.printStackTrace();
    throw new Exception(e.getClass().getName() + "String_Node_Str" + e.getLocalizedMessage());
  }
}
Program: 146063
Project: 146063
Buggy source:
@Override public void fillContextMenu(TreeObject xobject,IMenuManager manager){
switch (xobject.getType()) {
case TreeObject._SERVER_:
    manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_TAGUNIVERSE));
  break;
default :
if (xobject.getType() != TreeObject.WORKFLOW_PROCESS && xobject.getType() != TreeObject.JOB && Util.hasTags(xobject)) manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_VERSIONS));
break;
}
}

Fixed version (ground truth):
@Override public void fillContextMenu(TreeObject xobject,IMenuManager manager){
switch (xobject.getType()) {
case TreeObject._SERVER_:
    manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_TAGUNIVERSE));
  break;
default :
if (xobject.getType() != TreeObject.WORKFLOW_PROCESS && xobject.getType() != TreeObject.JOB && Util.hasTags(xobject) && xobject.getType() != TreeObject.DATA_MODEL_TYPES_RESOURCE && xobject.getType() != TreeObject.DATA_MODEL_RESOURCE) manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_VERSIONS));
break;
}
}
Program: 146065
Project: 146065
Buggy source:
@Override public void fillContextMenu(TreeObject xobject,IMenuManager manager){
switch (xobject.getType()) {
case TreeObject._SERVER_:
    manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_VERSIONS));
  break;
default :
if (xobject.getType() != TreeObject.WORKFLOW_PROCESS && xobject.getType() != TreeObject.JOB && Util.hasTags(xobject)) manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_TAGUNIVERSE));
break;
}
}

Fixed version (ground truth):
@Override public void fillContextMenu(TreeObject xobject,IMenuManager manager){
switch (xobject.getType()) {
case TreeObject._SERVER_:
    manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_TAGUNIVERSE));
  break;
default :
if (xobject.getType() != TreeObject.WORKFLOW_PROCESS && xobject.getType() != TreeObject.JOB && Util.hasTags(xobject)) manager.add(new VersioningXObjectAction(ServerView.show(),VersioningXObjectAction.ACTION_TYPE_VERSIONS));
break;
}
}
Program: 146067
Project: 146067
Buggy source:
public ProcessWidget add(String name){
  if (map.get(name) != null) {
    MessageDialog.openWarning(null,"String_Node_Str",name + "String_Node_Str");
    return null;
  }
  final ProcessWidget pw=new ProcessWidget(toolkit,parent,name,this,viewer);
  pw.getDelButton().addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      delete(pw.getName());
    }
  }
);
  map.put(name,pw);
  parent.layout(true);
  ccrollComposite.setMinSize(400,31 * map.size());
  return pw;
}

Fixed version (ground truth):
public ProcessWidget add(String name){
  if (map.get(name) != null) {
    MessageDialog.openWarning(null,"String_Node_Str",name + "String_Node_Str");
    return null;
  }
  final ProcessWidget pw=new ProcessWidget(toolkit,parent,name,this,viewer);
  pw.getDelButton().addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    SelectionEvent e){
      try {
        delete(pw.getName());
        port.workflowDeleteProcessInstances(new WSWorkflowDeleteProcessInstancesRequest(pw.getName()));
      }
 catch (      RemoteException e1) {
        e1.printStackTrace();
      }
    }
  }
);
  map.put(name,pw);
  parent.layout(true);
  ccrollComposite.setMinSize(400,31 * map.size());
  return pw;
}
Program: 146068
Project: 146068
Buggy source:
@Override public void widgetSelected(SelectionEvent e){
  delete(pw.getName());
}

Fixed version (ground truth):
@Override public void widgetSelected(SelectionEvent e){
  try {
    delete(pw.getName());
    port.workflowDeleteProcessInstances(new WSWorkflowDeleteProcessInstancesRequest(pw.getName()));
  }
 catch (  RemoteException e1) {
    e1.printStackTrace();
  }
}
Program: 146069
Project: 146069
Buggy source:
public ProcessList(FormToolkit toolkit,Composite composite,ScrolledComposite ccrollComposite,TableViewer viewer){
  this.toolkit=toolkit;
  this.parent=composite;
  this.ccrollComposite=ccrollComposite;
  this.viewer=viewer;
}

Fixed version (ground truth):
public ProcessList(XtentisPort port,FormToolkit toolkit,Composite composite,ScrolledComposite ccrollComposite,TableViewer viewer){
  this.port=port;
  this.toolkit=toolkit;
  this.parent=composite;
  this.ccrollComposite=ccrollComposite;
  this.viewer=viewer;
}
Program: 146071
Project: 146071
Buggy source:
/** 
 * checkup the  configuration
 * @throws XtentisException
 * @ejb.interface-method view-type = "local"
 * @ejb.facade-method
 */
public boolean checkConfigure(String conf) throws com.amalto.core.util.XtentisException {
  try {
    Document doc=Util.parse(conf);
    Util.validate(doc.getDocumentElement(),getConfigurationSchema());
    start();
    configuration=(SvnConfiguration)Unmarshaller.unmarshal(SvnConfiguration.class,new InputSource(new StringReader(conf)));
    new SvnHandler(configuration).list("String_Node_Str",null);
  }
 catch (  Exception e) {
    String err="String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage();
    org.apache.log4j.Logger.getLogger(this.getClass()).error(err,e);
    throw new XtentisException(err);
  }
  return true;
}

Fixed version (ground truth):
/** 
 * checkup the  configuration
 * @throws XtentisException
 * @ejb.interface-method view-type = "local"
 * @ejb.facade-method
 */
public boolean checkConfigure(String conf) throws com.amalto.core.util.XtentisException {
  try {
    Document doc=Util.parse(conf);
    Util.validate(doc.getDocumentElement(),getConfigurationSchema());
    configuration=(SvnConfiguration)Unmarshaller.unmarshal(SvnConfiguration.class,new InputSource(new StringReader(conf)));
    start();
    new SvnHandler(configuration).list("String_Node_Str",null);
  }
 catch (  Exception e) {
    String err="String_Node_Str" + e.getClass().getName() + "String_Node_Str"+ e.getLocalizedMessage();
    org.apache.log4j.Logger.getLogger(this.getClass()).error(err,e);
    throw new XtentisException(err);
  }
  return true;
}
Program: 146072
Project: 146072
Buggy source:
public void onMessage(Message msg){
  if (msg instanceof TextMessage) {
    try {
      TextMessage tm=(TextMessage)msg;
      Logger.getLogger(this.getClass()).info("String_Node_Str" + tm.getText());
      AutoCommitToSvnMsg msg1=AutoCommitToSvnMsg.unmarshal(tm.getText());
      Util.getVersioningSystemCtrlLocal().commitItem(new VersioningSystemPOJOPK(msg1.getVersionSystemPk()),msg1.getItemPk(),msg1.getComment());
    }
 catch (    Throwable t) {
      t.printStackTrace();
    }
  }
}

Fixed version (ground truth):
public void onMessage(Message msg){
  TextMessage tm=null;
  if (msg instanceof TextMessage) {
    try {
      tm=(TextMessage)msg;
      Logger.getLogger(this.getClass()).info("String_Node_Str" + tm.getText());
      AutoCommitToSvnMsg msg1=AutoCommitToSvnMsg.unmarshal(tm.getText());
      Util.getVersioningSystemCtrlLocal().commitItem(new VersioningSystemPOJOPK(msg1.getVersionSystemPk()),msg1.getItemPk(),msg1.getComment());
    }
 catch (    Throwable t) {
      Logger.getLogger(this.getClass()).info("String_Node_Str");
      try {
        Util.getXmlServerCtrlLocal().putDocumentFromString(tm.getText(),tm.getJMSMessageID(),AutoCommitToSvnSendBean.FailedAutoCommitSvnMessage,null);
      }
 catch (      Exception e) {
      }
    }
  }
}