nus-yam/ex-repair huggingface dataset:
Program: 177091
Project: 177091
Buggy source:
/** 
 * Gets the embedded object.
 * @param obj the obj
 * @param fieldName the field name
 * @return the embedded object
 */
@SuppressWarnings("String_Node_Str") public static final Object getObject(Object obj,String fieldName) throws PropertyAccessException {
  Field embeddedField;
  try {
    embeddedField=obj.getClass().getDeclaredField(fieldName);
    if (embeddedField != null) {
      if (!embeddedField.isAccessible()) {
        embeddedField.setAccessible(true);
      }
      Object embededObject=embeddedField.get(obj);
      if (embededObject == null) {
        embededObject=embeddedField.getType().newInstance();
        embeddedField.set(obj,embededObject);
      }
      return embededObject;
    }
 else {
      throw new RuntimeException("String_Node_Str" + fieldName);
    }
  }
 catch (  SecurityException e) {
    throw new PropertyAccessException(e);
  }
catch (  NoSuchFieldException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalArgumentException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalAccessException e) {
    throw new PropertyAccessException(e);
  }
catch (  InstantiationException e) {
    throw new PropertyAccessException(e);
  }
}

Fixed version (ground truth):
/** 
 * Gets the embedded object.
 * @param obj the obj
 * @param fieldName the field name
 * @return the embedded object
 */
@SuppressWarnings("String_Node_Str") public static final Object getObject(Object obj,String fieldName) throws PropertyAccessException {
  Field embeddedField;
  try {
    embeddedField=obj.getClass().getDeclaredField(fieldName);
    if (embeddedField != null) {
      if (!embeddedField.isAccessible()) {
        embeddedField.setAccessible(true);
      }
      Object embededObject=embeddedField.get(obj);
      if (embededObject == null) {
        Class embeddedObjectClass=embeddedField.getType();
        if (Collection.class.isAssignableFrom(embeddedObjectClass)) {
          if (embeddedObjectClass.equals(List.class)) {
            return new ArrayList();
          }
 else           if (embeddedObjectClass.equals(Set.class)) {
            return new HashSet();
          }
        }
 else {
          embededObject=embeddedField.getType().newInstance();
          embeddedField.set(obj,embededObject);
        }
      }
      return embededObject;
    }
 else {
      throw new RuntimeException("String_Node_Str" + fieldName);
    }
  }
 catch (  SecurityException e) {
    throw new PropertyAccessException(e);
  }
catch (  NoSuchFieldException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalArgumentException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalAccessException e) {
    throw new PropertyAccessException(e);
  }
catch (  InstantiationException e) {
    throw new PropertyAccessException(e);
  }
}
Program: 177093
Project: 177093
Buggy source:
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!StringUtils.contains(token,fromArray[1] + "String_Node_Str")) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!StringUtils.containsAny(fromArray[1] + "String_Node_Str",token)) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}
Program: 177094
Project: 177094
Buggy source:
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!StringUtils.contains(fromArray[1] + "String_Node_Str",token)) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!StringUtils.contains(token,fromArray[1] + "String_Node_Str")) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}
Program: 177095
Project: 177095
Buggy source:
@Override public void writeColumns(HTable htable,String columnFamily,String rowKey,List<Column> columns,EnhancedEntity e) throws IOException {
  Put p=new Put(Bytes.toBytes(rowKey));
  for (  Column col : columns) {
    String qualifier=col.getName();
    try {
      PropertyAccessorHelper.getObject(e.getEntity(),col.getField());
      p.add(Bytes.toBytes(columnFamily),Bytes.toBytes(qualifier),PropertyAccessorHelper.get(e.getEntity(),col.getField()));
    }
 catch (    PropertyAccessException e1) {
      throw new IOException(e1.getMessage());
    }
  }
  htable.put(p);
}

Fixed version (ground truth):
@Override public void writeColumns(HTable htable,String columnFamily,String rowKey,List<Column> columns,EnhancedEntity e) throws IOException {
  Put p=new Put(Bytes.toBytes(rowKey));
  Object columnFamilyObj=null;
  try {
    columnFamilyObj=PropertyAccessorHelper.getObject(e.getEntity(),columnFamily);
  }
 catch (  PropertyAccessException e2) {
    log.error("String_Node_Str" + columnFamily + "String_Node_Str");
    return;
  }
  for (  Column column : columns) {
    String columnName=column.getName();
    try {
      p.add(Bytes.toBytes(columnFamily),Bytes.toBytes(columnName),PropertyAccessorHelper.get(columnFamilyObj,column.getField()));
    }
 catch (    PropertyAccessException e1) {
      throw new IOException(e1.getMessage());
    }
  }
  htable.put(p);
}
Program: 177097
Project: 177097
Buggy source:
/** 
 * Start solandra server.
 */
public void startSolandraServer(){
  log.info("String_Node_Str");
  new CassandraUtils();
  CassandraUtils.cacheInvalidationInterval=0;
  try {
    createCassSchema();
    Thread.sleep(10000);
    CassandraUtils.startupServer();
  }
 catch (  Throwable t) {
    log.error("String_Node_Str",t);
  }
}

Fixed version (ground truth):
/** 
 * Start solandra server.
 */
public void startSolandraServer(){
  log.info("String_Node_Str");
  new CassandraUtils();
  CassandraUtils.cacheInvalidationInterval=0;
  try {
    createCassSchema();
    Thread.sleep(10000);
  }
 catch (  Throwable t) {
    log.error("String_Node_Str",t);
  }
}
Program: 177098
Project: 177098
Buggy source:
/** 
 * Perform indexing.
 * @param metadata the metadata
 * @param object the object
 */
private void performIndexing(EntityMetadata metadata,Object object){
  Document currentDoc=null;
  if (metadata.getType().equals(EntityMetadata.Type.SUPER_COLUMN_FAMILY)) {
    Map<String,EntityMetadata.SuperColumn> superColMap=metadata.getSuperColumnsMap();
    for (    String superColumnName : superColMap.keySet()) {
      EntityMetadata.SuperColumn superColumn=superColMap.get(superColumnName);
      currentDoc=new Document();
      prepareIndexDocument(metadata,object,currentDoc);
      indexSuperColumnName(superColumnName,currentDoc);
      for (      EntityMetadata.Column col : superColumn.getColumns()) {
        java.lang.reflect.Field field=col.getField();
        String colName=col.getName();
        String indexName=metadata.getIndexName();
        try {
          indexField(PropertyAccessorHelper.getObject(object,superColumnName),currentDoc,field,colName,indexName);
        }
 catch (        PropertyAccessException e) {
          LOG.error("String_Node_Str" + superColumnName);
        }
      }
      addIndexProperties(metadata,object,currentDoc);
      onPersist(metadata,currentDoc);
    }
  }
 else {
    currentDoc=new Document();
    prepareIndexDocument(metadata,object,currentDoc);
    addIndexProperties(metadata,object,currentDoc);
    onPersist(metadata,currentDoc);
  }
}

Fixed version (ground truth):
/** 
 * Perform indexing.
 * @param metadata the metadata
 * @param object the object
 */
private void performIndexing(EntityMetadata metadata,Object object){
  Document currentDoc=null;
  Object embeddedObject=null;
  if (metadata.getType().equals(EntityMetadata.Type.SUPER_COLUMN_FAMILY)) {
    Map<String,EntityMetadata.SuperColumn> superColMap=metadata.getSuperColumnsMap();
    for (    String superColumnName : superColMap.keySet()) {
      EntityMetadata.SuperColumn superColumn=superColMap.get(superColumnName);
      currentDoc=new Document();
      prepareIndexDocument(metadata,object,currentDoc);
      indexSuperColumnName(superColumnName,currentDoc);
      try {
        embeddedObject=PropertyAccessorHelper.getObject(object,superColumnName);
        if (embeddedObject == null) {
          return;
        }
      }
 catch (      PropertyAccessException e) {
        LOG.error("String_Node_Str" + superColumnName);
      }
      for (      EntityMetadata.Column col : superColumn.getColumns()) {
        java.lang.reflect.Field field=col.getField();
        String colName=col.getName();
        String indexName=metadata.getIndexName();
        indexField(embeddedObject,currentDoc,field,colName,indexName);
      }
      addIndexProperties(metadata,object,currentDoc);
      onPersist(metadata,currentDoc);
    }
  }
 else {
    currentDoc=new Document();
    prepareIndexDocument(metadata,object,currentDoc);
    addIndexProperties(metadata,object,currentDoc);
    onPersist(metadata,currentDoc);
  }
}
Program: 177099
Project: 177099
Buggy source:
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!token.startsWith(fromArray[1])) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!token.startsWith(fromArray[1]) || !token.startsWith(fromArray[1] + "String_Node_Str")) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}
Program: 177100
Project: 177100
Buggy source:
private void populateSuperColumnInMetadata(EntityMetadata metadata,Field superColumnField,Class superColumnClass){
  Annotation ann=superColumnClass.getAnnotation(Embeddable.class);
  if (ann == null) {
    LOG.warn(superColumnClass + "String_Node_Str");
    return;
  }
  String superColumnName=superColumnField.getName();
  EntityMetadata.SuperColumn superColumn=metadata.getSuperColumn(superColumnName);
  if (null == superColumn) {
    superColumn=metadata.new SuperColumn(superColumnName,superColumnField);
  }
  for (  Field columnField : superColumnClass.getDeclaredFields()) {
    String columnName=columnField.getName();
    superColumn.addColumn(columnName,columnField);
  }
  metadata.addSuperColumn(superColumnName,superColumn);
}

Fixed version (ground truth):
private void populateSuperColumnInMetadata(EntityMetadata metadata,Field superColumnField,Class superColumnClass){
  Annotation ann=superColumnClass.getAnnotation(Embeddable.class);
  if (ann == null) {
    LOG.warn(superColumnClass + "String_Node_Str");
  }
  String superColumnName=superColumnField.getName();
  EntityMetadata.SuperColumn superColumn=metadata.getSuperColumn(superColumnName);
  if (null == superColumn) {
    superColumn=metadata.new SuperColumn(superColumnName,superColumnField);
  }
  for (  Field columnField : superColumnClass.getDeclaredFields()) {
    String columnName=columnField.getName();
    superColumn.addColumn(columnName,columnField);
  }
  metadata.addSuperColumn(superColumnName,superColumn);
}
Program: 177101
Project: 177101
Buggy source:
/** 
 * Creates a MongoDB document object wrt a given Java object. columns in the document correspond Columns provided as List.
 * @throws PropertyAccessException
 */
public static BasicDBObject getDocumentFromObject(Object obj,List<Column> columns) throws PropertyAccessException {
  BasicDBObject dBObj=new BasicDBObject();
  for (  Column column : columns) {
    Object val=PropertyAccessorHelper.getObject(obj,column.getField());
    dBObj.put(column.getName(),val);
  }
  return dBObj;
}

Fixed version (ground truth):
/** 
 * Creates a MongoDB document object wrt a given Java object. columns in the document correspond Columns provided as List.
 * @throws PropertyAccessException
 */
public static BasicDBObject getDocumentFromObject(Object obj,List<Column> columns) throws PropertyAccessException {
  BasicDBObject dBObj=new BasicDBObject();
  for (  Column column : columns) {
    Field f=column.getField();
    if (f.getType().isPrimitive() || f.getType().equals(String.class) || f.getType().equals(Integer.class)|| f.getType().equals(Long.class)|| f.getType().equals(Short.class)|| f.getType().equals(Float.class)|| f.getType().equals(Double.class)) {
      Object val=PropertyAccessorHelper.getObject(obj,column.getField());
      dBObj.put(column.getName(),val);
    }
 else {
      log.warn("String_Node_Str" + f.getName() + "String_Node_Str");
    }
  }
  return dBObj;
}
Program: 177103
Project: 177103
Buggy source:
/** 
 * Perform indexing.
 * @param metadata the metadata
 * @param object the object
 */
private void performIndexing(EntityMetadata metadata,Object object){
  Document currentDoc=null;
  Object embeddedObject=null;
  if (metadata.getType().equals(EntityMetadata.Type.SUPER_COLUMN_FAMILY)) {
    Map<String,EntityMetadata.SuperColumn> superColMap=metadata.getSuperColumnsMap();
    for (    String superColumnName : superColMap.keySet()) {
      EntityMetadata.SuperColumn superColumn=superColMap.get(superColumnName);
      currentDoc=new Document();
      prepareIndexDocument(metadata,object,currentDoc);
      indexSuperColumnName(superColumnName,currentDoc);
      try {
        embeddedObject=PropertyAccessorHelper.getObject(object,superColumnName);
        if (embeddedObject == null) {
          return;
        }
      }
 catch (      PropertyAccessException e) {
        LOG.error("String_Node_Str" + superColumnName);
      }
      for (      EntityMetadata.Column col : superColumn.getColumns()) {
        java.lang.reflect.Field field=col.getField();
        String colName=col.getName();
        String indexName=metadata.getIndexName();
        indexField(embeddedObject,currentDoc,field,colName,indexName);
      }
      addIndexProperties(metadata,object,currentDoc);
      onPersist(metadata,currentDoc);
    }
  }
 else {
    currentDoc=new Document();
    prepareIndexDocument(metadata,object,currentDoc);
    addIndexProperties(metadata,object,currentDoc);
    onPersist(metadata,currentDoc);
  }
}

Fixed version (ground truth):
/** 
 * Perform indexing.
 * @param metadata the metadata
 * @param object the object
 */
private void performIndexing(EntityMetadata metadata,Object object){
  Document currentDoc=null;
  Object embeddedObject=null;
  if (metadata.getType().equals(EntityMetadata.Type.SUPER_COLUMN_FAMILY)) {
    Map<String,EntityMetadata.SuperColumn> superColMap=metadata.getSuperColumnsMap();
    for (    String superColumnName : superColMap.keySet()) {
      EntityMetadata.SuperColumn superColumn=superColMap.get(superColumnName);
      try {
        embeddedObject=PropertyAccessorHelper.getObject(object,superColumnName);
        if (embeddedObject == null) {
          return;
        }
        if (embeddedObject instanceof Collection<?>) {
          for (          Object obj : (Collection<?>)embeddedObject) {
            currentDoc=prepareDocument(metadata,object,superColumnName);
            indexSuperColumn(metadata,object,currentDoc,obj,superColumn);
          }
          return;
        }
 else {
          currentDoc=prepareDocument(metadata,object,superColumnName);
        }
      }
 catch (      PropertyAccessException e) {
        LOG.error("String_Node_Str" + superColumnName);
      }
      indexSuperColumn(metadata,object,currentDoc,embeddedObject,superColumn);
    }
  }
 else {
    currentDoc=new Document();
    prepareIndexDocument(metadata,object,currentDoc);
    addIndexProperties(metadata,object,currentDoc);
    onPersist(metadata,currentDoc);
  }
}
Program: 177104
Project: 177104
Buggy source:
/** 
 * Gets the embedded object.
 * @param obj the obj
 * @param fieldName the field name
 * @return the embedded object
 */
public static final Object getObject(Object obj,String fieldName) throws PropertyAccessException {
  Field embeddedField;
  try {
    embeddedField=obj.getClass().getDeclaredField(fieldName);
    if (embeddedField != null) {
      if (!embeddedField.isAccessible()) {
        embeddedField.setAccessible(true);
      }
      return embeddedField.get(obj);
    }
 else {
      throw new RuntimeException("String_Node_Str" + fieldName);
    }
  }
 catch (  SecurityException e) {
    throw new PropertyAccessException(e);
  }
catch (  NoSuchFieldException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalArgumentException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalAccessException e) {
    throw new PropertyAccessException(e);
  }
}

Fixed version (ground truth):
/** 
 * Gets the embedded object.
 * @param obj the obj
 * @param fieldName the field name
 * @return the embedded object
 */
@SuppressWarnings("String_Node_Str") public static final Object getObject(Object obj,String fieldName) throws PropertyAccessException {
  Field embeddedField;
  try {
    embeddedField=obj.getClass().getDeclaredField(fieldName);
    if (embeddedField != null) {
      if (!embeddedField.isAccessible()) {
        embeddedField.setAccessible(true);
      }
      Object embededObject=embeddedField.get(obj);
      if (embededObject == null) {
        embededObject=embeddedField.getType().newInstance();
        embeddedField.set(obj,embededObject);
      }
      return embededObject;
    }
 else {
      throw new RuntimeException("String_Node_Str" + fieldName);
    }
  }
 catch (  SecurityException e) {
    throw new PropertyAccessException(e);
  }
catch (  NoSuchFieldException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalArgumentException e) {
    throw new PropertyAccessException(e);
  }
catch (  IllegalAccessException e) {
    throw new PropertyAccessException(e);
  }
catch (  InstantiationException e) {
    throw new PropertyAccessException(e);
  }
}
Program: 177105
Project: 177105
Buggy source:
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!token.startsWith(fromArray[1]) || !token.startsWith(fromArray[1] + "String_Node_Str")) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}

Fixed version (ground truth):
/** 
 * Inits the entity class.
 */
private void initEntityClass(){
  String fromArray[]=from.split("String_Node_Str");
  if (fromArray.length != 2) {
    throw new PersistenceException("String_Node_Str" + from);
  }
  StringTokenizer tokenizer=new StringTokenizer(getResult(),"String_Node_Str");
  while (tokenizer.hasMoreTokens()) {
    String token=tokenizer.nextToken();
    if (!StringUtils.contains(fromArray[1] + "String_Node_Str",token)) {
      throw new RuntimeException("String_Node_Str" + token);
    }
  }
  this.entityName=fromArray[0];
  this.entityAlias=fromArray[1];
  entityClass=metadataManager.getEntityClassByName(entityName);
  if (null == entityClass) {
    throw new PersistenceException("String_Node_Str" + entityName);
  }
  EntityMetadata metadata=metadataManager.getEntityMetadata(entityClass);
  if (!metadata.isIndexable()) {
    throw new PersistenceException(entityClass + "String_Node_Str");
  }
}
Program: 177106
Project: 177106
Buggy source:
@Override public void unindex(EntityMetadata metadata,String id){
  throw new PersistenceException("String_Node_Str");
}

Fixed version (ground truth):
@Override public void unindex(EntityMetadata metadata,String id){
  log.debug("String_Node_Str");
}
Program: 177107
Project: 177107
Buggy source:
public void test(){
  parametiarizedQuery();
}

Fixed version (ground truth):
public void test(){
  saveEmail();
  selectAllQuery();
  parametiarizedQuery();
  deleteEmail();
}
Program: 177108
Project: 177108
Buggy source:
public void createIndex(String collectionName,List<String> columnList,int order){
  DBCollection coll=mongoDb.getCollection(collectionName);
  connect();
  List<DBObject> indexes=coll.getIndexInfo();
  Set<String> indexNames=new HashSet<String>();
  for (  DBObject index : indexes) {
    BasicDBObject obj=(BasicDBObject)index.get("String_Node_Str");
    Set<String> set=obj.keySet();
    indexNames.addAll(set);
  }
  for (  String columnName : columnList) {
    if (!indexNames.contains(columnName)) {
      coll.createIndex(new BasicDBObject(columnName,order));
    }
  }
  shutdown();
}

Fixed version (ground truth):
public void createIndex(String collectionName,List<String> columnList,int order){
  DBCollection coll=mongoDb.getCollection(collectionName);
  List<DBObject> indexes=coll.getIndexInfo();
  Set<String> indexNames=new HashSet<String>();
  for (  DBObject index : indexes) {
    BasicDBObject obj=(BasicDBObject)index.get("String_Node_Str");
    Set<String> set=obj.keySet();
    indexNames.addAll(set);
  }
  for (  String columnName : columnList) {
    if (!indexNames.contains(columnName)) {
      coll.createIndex(new BasicDBObject(columnName,order));
    }
  }
}
Program: 177109
Project: 177109
Buggy source:
public ClasspathReader(List<String> classesToScan){
  this.classesToScan=classesToScan;
}

Fixed version (ground truth):
public ClasspathReader(List<String> classesToScan){
  this();
  this.classesToScan=classesToScan;
}
Program: 177110
Project: 177110
Buggy source:
@Override public void writeColumns(EntityManagerImpl em,EnhancedEntity e,EntityMetadata m) throws Exception {
  String dbName=m.getKeyspaceName();
  String documentName=m.getColumnFamilyName();
  String key=e.getId();
  log.debug("String_Node_Str" + dbName + "String_Node_Str"+ documentName+ "String_Node_Str"+ key);
  DBCollection dbCollection=mongoDb.getCollection(documentName);
  BasicDBObject document=new MongoDBDataHandler().getDocumentFromEntity(em,m,e.getEntity());
  dbCollection.insert(document);
}

Fixed version (ground truth):
@Override public void writeColumns(EntityManagerImpl em,EnhancedEntity e,EntityMetadata m) throws Exception {
  String dbName=m.getKeyspaceName();
  String documentName=m.getColumnFamilyName();
  String key=e.getId();
  log.debug("String_Node_Str" + dbName + "String_Node_Str"+ documentName+ "String_Node_Str"+ key);
  Object entity=loadColumns(em,m.getEntityClazz(),dbName,documentName,key,m);
  if (entity != null) {
    log.debug("String_Node_Str" + dbName + "String_Node_Str"+ documentName+ "String_Node_Str"+ key);
    DBCollection dbCollection=mongoDb.getCollection(documentName);
    BasicDBObject searchQuery=new BasicDBObject();
    searchQuery.put(m.getIdColumn().getName(),key);
    BasicDBObject updatedDocument=new MongoDBDataHandler().getDocumentFromEntity(em,m,e.getEntity());
    dbCollection.update(searchQuery,updatedDocument);
  }
 else {
    log.debug("String_Node_Str" + dbName + "String_Node_Str"+ documentName+ "String_Node_Str"+ key);
    DBCollection dbCollection=mongoDb.getCollection(documentName);
    BasicDBObject document=new MongoDBDataHandler().getDocumentFromEntity(em,m,e.getEntity());
    dbCollection.insert(document);
  }
}
Program: 177111
Project: 177111
Buggy source:
private static StringBuilder loadFile(File file) throws IOException {
  StringBuilder sb=new StringBuilder();
  FileReader fr=new FileReader(file);
  BufferedReader br=new BufferedReader(fr);
  try {
    for (String line; (line=br.readLine()) != null; ) {
      sb.append(line).append('\n');
    }
  }
  finally {
    br.close();
  }
  return sb;
}

Fixed version (ground truth):
private static List<String> loadFile(File file) throws IOException {
  return readAllLines(file.toPath());
}
Program: 177112
Project: 177112
Buggy source:
private static List<String> extractPropertyNames(CharSequence content){
  List<String> result=new ArrayList<String>();
  Pattern pattern=Pattern.compile("String_Node_Str");
  Matcher matcher=pattern.matcher(content);
  while (matcher.find()) {
    result.add(matcher.group(1));
  }
  return result;
}

Fixed version (ground truth):
private static List<String> extractPropertyNames(List<String> content){
  return extract(content,Pattern.compile("String_Node_Str"));
}
Program: 177113
Project: 177113
Buggy source:
private static List<String> extractDescriptions(CharSequence content){
  List<String> result=new ArrayList<String>();
  Pattern pattern=Pattern.compile("String_Node_Str");
  Matcher matcher=pattern.matcher(content);
  while (matcher.find()) {
    result.add(matcher.group(1));
  }
  return result;
}

Fixed version (ground truth):
private static List<String> extractDescriptions(List<String> content){
  return extract(content,Pattern.compile("String_Node_Str"));
}
Program: 177115
Project: 177115
Buggy source:
@Override public String getBody(){
  ObjectNode node=JsonNodeFactory.instance.objectNode();
  Context context=new Context();
  context.stack=new LinkedList<String>();
  build(node,this.type,context);
  if (this.type.getContext().isWrapRootValue()) {
    ObjectNode wrappedNode=JsonNodeFactory.instance.objectNode();
    wrappedNode.set(this.type.getJsonRootName(),node);
    node=wrappedNode;
  }
  JsonNode outer=node;
  for (  DataTypeReference.ContainerType container : this.containers) {
switch (container) {
case array:
case collection:
case list:
      ArrayNode arrayNode=JsonNodeFactory.instance.arrayNode();
    arrayNode.add(outer);
  outer=arrayNode;
break;
case map:
ObjectNode mapNode=JsonNodeFactory.instance.objectNode();
mapNode.set("String_Node_Str",outer);
outer=mapNode;
break;
}
}
ObjectMapper mapper=new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
try {
return mapper.writeValueAsString(outer);
}
 catch (JsonProcessingException e) {
throw new EnunciateException(e);
}
}

Fixed version (ground truth):
@Override public String getBody(){
  ObjectNode node=JsonNodeFactory.instance.objectNode();
  Context context=new Context();
  context.stack=new LinkedList<String>();
  build(node,this.type,this.type,context);
  if (this.type.getContext().isWrapRootValue()) {
    ObjectNode wrappedNode=JsonNodeFactory.instance.objectNode();
    wrappedNode.set(this.type.getJsonRootName(),node);
    node=wrappedNode;
  }
  JsonNode outer=node;
  for (  DataTypeReference.ContainerType container : this.containers) {
switch (container) {
case array:
case collection:
case list:
      ArrayNode arrayNode=JsonNodeFactory.instance.arrayNode();
    arrayNode.add(outer);
  outer=arrayNode;
break;
case map:
ObjectNode mapNode=JsonNodeFactory.instance.objectNode();
mapNode.set("String_Node_Str",outer);
outer=mapNode;
break;
}
}
ObjectMapper mapper=new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT);
try {
return mapper.writeValueAsString(outer);
}
 catch (JsonProcessingException e) {
throw new EnunciateException(e);
}
}
Program: 177117
Project: 177117
Buggy source:
public static List<JavaDoc.JavaDocTagList> getJavaDocTags(String tag,DecoratedElement el){
  if (el == null || (el instanceof TypeElement && Object.class.getName().equals(((TypeElement)el).getQualifiedName().toString()))) {
    return Collections.emptyList();
  }
  ArrayList<JavaDoc.JavaDocTagList> allTags=new ArrayList<JavaDoc.JavaDocTagList>();
  JavaDoc.JavaDocTagList tagList=new JavaDoc(el.getDocComment(),null,null,null).get(tag);
  if (tagList != null && !tagList.isEmpty()) {
    allTags.add(tagList);
  }
  allTags.addAll(getJavaDocTags(tag,(DecoratedElement)el.getEnclosingElement()));
  if (el instanceof TypeElement) {
    TypeMirror superclass=((TypeElement)el).getSuperclass();
    if (superclass instanceof DeclaredType) {
      allTags.addAll(getJavaDocTags(tag,(DecoratedElement)((DeclaredType)superclass).asElement()));
    }
  }
  return allTags;
}

Fixed version (ground truth):
public static List<JavaDoc.JavaDocTagList> getJavaDocTags(String tag,Element el){
  if (el == null || (el instanceof TypeElement && Object.class.getName().equals(((TypeElement)el).getQualifiedName().toString()))) {
    return Collections.emptyList();
  }
  ArrayList<JavaDoc.JavaDocTagList> allTags=new ArrayList<JavaDoc.JavaDocTagList>();
  JavaDoc.JavaDocTagList tagList=null;
  if (el instanceof ElementAdaptor) {
    tagList=new JavaDoc(((ElementAdaptor)el).getDocComment(),null,null,null).get(tag);
  }
 else   if (el instanceof DecoratedElement) {
    tagList=new JavaDoc(((DecoratedElement)el).getDocComment(),null,null,null).get(tag);
  }
  if (tagList != null && !tagList.isEmpty()) {
    allTags.add(tagList);
  }
  allTags.addAll(getJavaDocTags(tag,el.getEnclosingElement()));
  if (el instanceof TypeElement) {
    TypeMirror superclass=((TypeElement)el).getSuperclass();
    if (superclass instanceof DeclaredType) {
      Element element=((DeclaredType)superclass).asElement();
      allTags.addAll(getJavaDocTags(tag,element));
    }
  }
  return allTags;
}
Program: 177118
Project: 177118
Buggy source:
public static boolean isIgnored(Element element){
  if (element instanceof DecoratedElement) {
    List<JavaDocTagList> ignoreTags=AnnotationUtils.getJavaDocTags("String_Node_Str",(DecoratedElement<?>)element);
    if (!ignoreTags.isEmpty()) {
      return true;
    }
  }
  return element.getAnnotation(Ignore.class) != null;
}

Fixed version (ground truth):
public static boolean isIgnored(Element element){
  List<JavaDocTagList> ignoreTags=AnnotationUtils.getJavaDocTags("String_Node_Str",element);
  return !ignoreTags.isEmpty() || element.getAnnotation(Ignore.class) != null;
}
Program: 177119
Project: 177119
Buggy source:
@Override public String getDescription(){
  return this.param.getJavaDoc().toString();
}

Fixed version (ground truth):
@Override public String getDescription(){
  return this.param.getDocValue();
}
Program: 177120
Project: 177120
Buggy source:
/** 
 * Processes the specified template with the given model.
 * @param templateURL The template URL.
 * @param model       The root model.
 */
public String processTemplate(URL templateURL,Object model) throws IOException, TemplateException {
  debug("String_Node_Str",templateURL);
  Configuration configuration=new Configuration(Configuration.VERSION_2_3_22);
  configuration.setTemplateLoader(new URLTemplateLoader(){
    protected URL getURL(    String name){
      try {
        return new URL(name);
      }
 catch (      MalformedURLException e) {
        return null;
      }
    }
  }
);
  configuration.setTemplateExceptionHandler(new TemplateExceptionHandler(){
    public void handleTemplateException(    TemplateException templateException,    Environment environment,    Writer writer) throws TemplateException {
      throw templateException;
    }
  }
);
  configuration.setLocalizedLookup(false);
  configuration.setDefaultEncoding("String_Node_Str");
  Template template=configuration.getTemplate(templateURL.toString());
  StringWriter unhandledOutput=new StringWriter();
  template.process(model,unhandledOutput);
  unhandledOutput.close();
  return unhandledOutput.toString();
}

Fixed version (ground truth):
/** 
 * Processes the specified template with the given model.
 * @param templateURL The template URL.
 * @param model       The root model.
 */
public String processTemplate(URL templateURL,Object model) throws IOException, TemplateException {
  debug("String_Node_Str",templateURL);
  Configuration configuration=new Configuration(Configuration.VERSION_2_3_22);
  configuration.setTemplateLoader(new URLTemplateLoader(){
    protected URL getURL(    String name){
      try {
        return new URL(name);
      }
 catch (      MalformedURLException e) {
        return null;
      }
    }
  }
);
  configuration.setTemplateExceptionHandler(new TemplateExceptionHandler(){
    public void handleTemplateException(    TemplateException templateException,    Environment environment,    Writer writer) throws TemplateException {
      throw templateException;
    }
  }
);
  configuration.setLocalizedLookup(false);
  configuration.setDefaultEncoding("String_Node_Str");
  configuration.setObjectWrapper(new JavaXMLClientObjectWrapper());
  Template template=configuration.getTemplate(templateURL.toString());
  StringWriter unhandledOutput=new StringWriter();
  template.process(model,unhandledOutput);
  unhandledOutput.close();
  return unhandledOutput.toString();
}
Program: 177121
Project: 177121
Buggy source:
/** 
 * zip up directories to a specified zip file.
 * @param toFile The file to zip to.
 * @param dirs   The directories to zip up.
 */
public boolean zip(File toFile,File... dirs) throws IOException {
  if (!toFile.getParentFile().exists()) {
    getLogger().debug("String_Node_Str",toFile.getParentFile());
    toFile.getParentFile().mkdirs();
  }
  boolean anyFiles=false;
  byte[] buffer=new byte[2 * 1024];
  ZipOutputStream zipout=new ZipOutputStream(new FileOutputStream(toFile));
  for (  File dir : dirs) {
    URI baseURI=dir.toURI();
    getLogger().debug("String_Node_Str",dir,toFile);
    ArrayList<File> files=new ArrayList<File>();
    buildFileList(files,dir);
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(baseURI.relativize(file.toURI()).getPath());
      getLogger().debug("String_Node_Str",entry.getName());
      zipout.putNextEntry(entry);
      if (!file.isDirectory()) {
        anyFiles=true;
        FileInputStream in=new FileInputStream(file);
        int len;
        while ((len=in.read(buffer)) > 0) {
          zipout.write(buffer,0,len);
        }
        in.close();
      }
      zipout.closeEntry();
    }
  }
  zipout.close();
  return anyFiles;
}

Fixed version (ground truth):
/** 
 * zip up directories to a specified zip file.
 * @param toFile The file to zip to.
 * @param dirs   The directories to zip up.
 */
public boolean zip(File toFile,File... dirs) throws IOException {
  if (!toFile.getParentFile().exists()) {
    getLogger().debug("String_Node_Str",toFile.getParentFile());
    toFile.getParentFile().mkdirs();
  }
  boolean anyFiles=false;
  byte[] buffer=new byte[2 * 1024];
  ZipOutputStream zipout=new ZipOutputStream(new FileOutputStream(toFile));
  for (  File dir : dirs) {
    URI baseURI=dir.toURI();
    getLogger().debug("String_Node_Str",dir,toFile);
    ArrayList<File> files=new ArrayList<File>();
    buildFileList(files,dir);
    for (    File file : files) {
      ZipEntry entry=new ZipEntry(baseURI.relativize(file.toURI()).getPath());
      getLogger().debug("String_Node_Str",entry.getName());
      zipout.putNextEntry(entry);
      if (!file.isDirectory()) {
        anyFiles=true;
        FileInputStream in=new FileInputStream(file);
        int len;
        while ((len=in.read(buffer)) > 0) {
          zipout.write(buffer,0,len);
        }
        in.close();
      }
      zipout.closeEntry();
    }
  }
  if (!anyFiles) {
    ZipEntry entry=new ZipEntry("String_Node_Str");
    zipout.putNextEntry(entry);
    zipout.write("String_Node_Str".getBytes());
    zipout.closeEntry();
  }
  zipout.close();
  return anyFiles;
}
Program: 177123
Project: 177123
Buggy source:
@Override public TemplateModel wrap(Object obj) throws TemplateModelException {
  if (obj instanceof QName) {
    return new QNameModel((QName)obj,this,this.namespacePrefixes);
  }
 else   if (obj instanceof WebResult) {
    return new WebResultModel((WebResult)obj,this);
  }
 else {
    return super.wrap(obj);
  }
}

Fixed version (ground truth):
@Override public TemplateModel wrap(Object obj) throws TemplateModelException {
  if (obj instanceof QName) {
    return new QNameModel((QName)obj,this,this.namespacePrefixes);
  }
 else {
    return super.wrap(obj);
  }
}
Program: 177124
Project: 177124
Buggy source:
public JaxwsWsdlFile(WsdlInfo wsdlInfo,String baseUri,Map<String,String> namespacePrefixes,FacetFilter facetFilter){
  super(wsdlInfo.getFilename(),namespacePrefixes,facetFilter);
  this.wsdlInfo=wsdlInfo;
  this.baseUri=baseUri;
}

Fixed version (ground truth):
public JaxwsWsdlFile(WsdlInfo wsdlInfo,EnunciateJaxbContext context,String baseUri,Map<String,String> namespacePrefixes,FacetFilter facetFilter){
  super(wsdlInfo.getFilename(),namespacePrefixes,facetFilter);
  this.wsdlInfo=wsdlInfo;
  this.baseUri=baseUri;
  this.context=context;
}
Program: 177125
Project: 177125
Buggy source:
@Override protected Map<String,Object> createModel(){
  Map<String,Object> model=super.createModel();
  model.put("String_Node_Str",this.wsdlInfo);
  model.put("String_Node_Str",this.baseUri);
  return model;
}

Fixed version (ground truth):
@Override protected Map<String,Object> createModel(){
  Map<String,Object> model=super.createModel();
  model.put("String_Node_Str",this.wsdlInfo);
  model.put("String_Node_Str",this.baseUri);
  SchemaInfo schema=context.getSchemas().get(wsdlInfo.getNamespace());
  if (schema != null) {
    model.put("String_Node_Str",new IsDefinedGloballyMethod(schema));
  }
  model.put("String_Node_Str",new AccessorOverridesAnotherMethod());
  model.put("String_Node_Str",new QNameForTypeMethod(context));
  return model;
}
Program: 177126
Project: 177126
Buggy source:
/** 
 * Returns the qname of the element that has the first parameter as the namespace, the second as the element.
 * @param list The arguments.
 * @return The qname.
 */
public Object exec(List list) throws TemplateModelException {
  if (list.size() < 1) {
    throw new TemplateModelException("String_Node_Str");
  }
  String namespace=(String)list.get(0);
  String prefix=lookupPrefix(namespace);
  if (prefix == null) {
    throw new TemplateModelException("String_Node_Str" + namespace + "String_Node_Str");
  }
  return prefix;
}

Fixed version (ground truth):
/** 
 * Returns the qname of the element that has the first parameter as the namespace, the second as the element.
 * @param list The arguments.
 * @return The qname.
 */
public Object exec(List list) throws TemplateModelException {
  if (list.size() < 1) {
    throw new TemplateModelException("String_Node_Str");
  }
  String namespace=(String)new BeansWrapperBuilder(Configuration.getVersion()).build().unwrap((TemplateModel)list.get(0));
  String prefix=lookupPrefix(namespace);
  if (prefix == null) {
    throw new TemplateModelException("String_Node_Str" + namespace + "String_Node_Str");
  }
  return prefix;
}
Program: 177127
Project: 177127
Buggy source:
/** 
 * Add a facet exclude.
 * @param name The name.
 * @param value The value.
 */
public void addFacetExclude(String name,String value){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}

Fixed version (ground truth):
/** 
 * Add a facet exclude.
 * @param name The name.
 */
public void addFacetExclude(String name){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}
Program: 177128
Project: 177128
Buggy source:
/** 
 * Add a facet exclude.
 * @param name The name.
 */
public void addFacetExclude(String name,String value){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}

Fixed version (ground truth):
/** 
 * Add a facet exclude.
 * @param name The name.
 */
public void addFacetExclude(String name){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}
Program: 177129
Project: 177129
Buggy source:
/** 
 * Add a facet exclude.
 * @param name The name.
 * @param value The value.
 */
public void addFacetExclude(String name,String value){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}

Fixed version (ground truth):
/** 
 * Add a facet exclude.
 * @param name The name.
 */
public void addFacetExclude(String name){
  if (name != null) {
    this.facetExcludes.add(name);
  }
}
Program: 177130
Project: 177130
Buggy source:
/** 
 * @return A new {@link JerseyValidator}.
 */
@Override public Validator getValidator(){
  return new JerseyValidator(!isUseSubcontext() && !isDisableWildcardServletError());
}

Fixed version (ground truth):
/** 
 * @return A new {@link JerseyValidator}.
 */
@Override public Validator getValidator(){
  return new JerseyValidator(isUseSubcontext() || !isDisableWildcardServletError());
}
Program: 177131
Project: 177131
Buggy source:
/** 
 * The type of an element accessor can be specified by an annotation.
 * @return The accessor type.
 */
@Override public TypeMirror getAccessorType(){
  try {
    if ((xmlElementRef != null) && (xmlElementRef.type() != XmlElementRef.DEFAULT.class)) {
      Class clazz=xmlElementRef.type();
      return getAccessorType(clazz);
    }
  }
 catch (  MirroredTypeException e) {
    return TypeMirrorDecorator.decorate(e.getTypeMirror());
  }
  return super.getAccessorType();
}

Fixed version (ground truth):
/** 
 * The type of an element accessor can be specified by an annotation.
 * @return The accessor type.
 */
@Override public TypeMirror getAccessorType(){
  TypeMirror specifiedType=null;
  try {
    if ((xmlElementRef != null) && (xmlElementRef.type() != XmlElementRef.DEFAULT.class)) {
      Class clazz=xmlElementRef.type();
      specifiedType=getAccessorType(clazz);
    }
  }
 catch (  MirroredTypeException e) {
    specifiedType=TypeMirrorDecorator.decorate(e.getTypeMirror());
  }
  if (specifiedType != null) {
    if (!isChoice) {
      DecoratedTypeMirror accessorType=(DecoratedTypeMirror)super.getAccessorType();
      if (accessorType.isCollection()) {
        AnnotationProcessorEnvironment ape=Context.getCurrentEnvironment();
        Types types=ape.getTypeUtils();
        if (specifiedType instanceof PrimitiveType) {
          specifiedType=types.getPrimitiveType(((PrimitiveType)specifiedType).getKind());
        }
 else {
          specifiedType=types.getDeclaredType(ape.getTypeDeclaration(((DeclaredType)specifiedType).getDeclaration().getQualifiedName()));
        }
        specifiedType=TypeMirrorDecorator.decorate(types.getDeclaredType(ape.getTypeDeclaration(((DeclaredType)accessorType).getDeclaration().getQualifiedName()),specifiedType));
      }
 else       if (accessorType.isArray() && !(specifiedType instanceof ArrayType)) {
        Types types=Context.getCurrentEnvironment().getTypeUtils();
        if (specifiedType instanceof PrimitiveType) {
          specifiedType=types.getPrimitiveType(((PrimitiveType)specifiedType).getKind());
        }
 else {
          TypeDeclaration decl=((DeclaredType)specifiedType).getDeclaration();
          while (decl instanceof DecoratedTypeDeclaration) {
            decl=(TypeDeclaration)((DecoratedTypeDeclaration)decl).getDelegate();
          }
          specifiedType=types.getDeclaredType(decl);
        }
        specifiedType=TypeMirrorDecorator.decorate(types.getArrayType(specifiedType));
      }
    }
    return specifiedType;
  }
  return super.getAccessorType();
}
Program: 177132
Project: 177132
Buggy source:
/** 
 * Construct an element accessor with a specific base type.
 * @param delegate The delegate.
 * @param typedef  The type definition.
 * @param ref      The referenced root element.
 */
private ElementRef(MemberDeclaration delegate,TypeDefinition typedef,RootElementDeclaration ref){
  super(delegate,typedef);
  this.xmlElementRef=null;
  this.choices=new ArrayList<ElementRef>();
  this.choices.add(this);
  this.ref=new QName(ref.getNamespace(),ref.getName());
}

Fixed version (ground truth):
/** 
 * Construct an element accessor with a specific base type.
 * @param delegate The delegate.
 * @param typedef  The type definition.
 * @param ref      The referenced root element.
 */
private ElementRef(MemberDeclaration delegate,TypeDefinition typedef,RootElementDeclaration ref){
  super(delegate,typedef);
  this.xmlElementRef=null;
  this.choices=new ArrayList<ElementRef>();
  this.choices.add(this);
  this.ref=new QName(ref.getNamespace(),ref.getName());
  this.isChoice=true;
}
Program: 177133
Project: 177133
Buggy source:
@XmlElementWrapper(name="String_Node_Str") public List<BeanThree> getList1(){
  return list1;
}

Fixed version (ground truth):
@XmlElementWrapper(name="String_Node_Str") @XmlElementRef(type=BeanThree.class) public List<BeanThree> getList1(){
  return list1;
}
Program: 177134
Project: 177134
Buggy source:
@XmlElementWrapper(name="String_Node_Str") public List<BeanThree> getList2(){
  return list2;
}

Fixed version (ground truth):
@XmlElementWrapper(name="String_Node_Str") @XmlElementRef(type=BeanThree.class) public List<BeanThree> getList2(){
  return list2;
}