Program: 171085
Project: 171085
Buggy source:
public static AtlasTypesDef defineHiveTypes(){
  String _description="String_Node_Str";
  AtlasEntityDef superTypeDefinition=AtlasTypeUtil.createClassTypeDef(SUPER_TYPE_NAME,"String_Node_Str",ImmutableSet.<String>of(),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"));
  AtlasEntityDef databaseTypeDefinition=AtlasTypeUtil.createClassTypeDef(DATABASE_TYPE,DATABASE_TYPE + _description,ImmutableSet.of(SUPER_TYPE_NAME),AtlasTypeUtil.createUniqueRequiredAttrDef(NAME,"String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  AtlasStructDef structTypeDefinition=new AtlasStructDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str")));
  AtlasEnumElementDef values[]={new AtlasEnumElementDef("String_Node_Str","String_Node_Str",1),new AtlasEnumElementDef("String_Node_Str","String_Node_Str",2)};
  AtlasEnumDef enumTypeDefinition=new AtlasEnumDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(values));
  AtlasEntityDef columnsDefinition=AtlasTypeUtil.createClassTypeDef(COLUMN_TYPE,COLUMN_TYPE + "String_Node_Str",ImmutableSet.<String>of(),AtlasTypeUtil.createUniqueRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  AtlasStructDef partitionDefinition=new AtlasStructDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str")));
  AtlasAttributeDef[] attributeDefinitions=new AtlasAttributeDef[]{new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())};
  AtlasEntityDef storageDescClsDef=new AtlasEntityDef(STORAGE_DESC_TYPE,STORAGE_DESC_TYPE + _description,"String_Node_Str",Arrays.asList(attributeDefinitions),ImmutableSet.of(SUPER_TYPE_NAME));
  AtlasAttributeDef[] partClsAttributes=new AtlasAttributeDef[]{new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",TABLE_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",STORAGE_DESC_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())};
  AtlasEntityDef partClsDef=new AtlasEntityDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(partClsAttributes),ImmutableSet.of(SUPER_TYPE_NAME));
  AtlasEntityDef processClsType=new AtlasEntityDef(PROCESS_TYPE,PROCESS_TYPE + _description,"String_Node_Str",Arrays.asList(new AtlasAttributeDef("String_Node_Str","String_Node_Str" + TABLE_TYPE + "String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())),ImmutableSet.<String>of());
  AtlasEntityDef tableTypeDefinition=AtlasTypeUtil.createClassTypeDef(TABLE_TYPE,TABLE_TYPE + _description,ImmutableSet.of(SUPER_TYPE_NAME),AtlasTypeUtil.createUniqueRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),new AtlasAttributeDef("String_Node_Str","String_Node_Str",false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef(COLUMNS_MAP,String.format("String_Node_Str","String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",DATABASE_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",DATABASE_TYPE,true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()));
  AtlasClassificationDef piiTypeDefinition=AtlasTypeUtil.createTraitTypeDef(PII,PII + _description,ImmutableSet.<String>of());
  AtlasClassificationDef classificationTypeDefinition=AtlasTypeUtil.createTraitTypeDef(CLASSIFICATION,CLASSIFICATION + _description,ImmutableSet.<String>of(),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  AtlasClassificationDef fetlClassificationTypeDefinition=AtlasTypeUtil.createTraitTypeDef("String_Node_Str" + CLASSIFICATION,"String_Node_Str" + CLASSIFICATION + _description,ImmutableSet.of(CLASSIFICATION),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  return AtlasTypeUtil.getTypesDef(ImmutableList.of(enumTypeDefinition),ImmutableList.of(structTypeDefinition,partitionDefinition),ImmutableList.of(classificationTypeDefinition,fetlClassificationTypeDefinition,piiTypeDefinition),ImmutableList.of(superTypeDefinition,databaseTypeDefinition,columnsDefinition,tableTypeDefinition,storageDescClsDef,partClsDef,processClsType));
}

Fixed version (ground truth):
public static AtlasTypesDef defineHiveTypes(){
  String _description="String_Node_Str";
  AtlasEntityDef superTypeDefinition=AtlasTypeUtil.createClassTypeDef(SUPER_TYPE_NAME,"String_Node_Str",ImmutableSet.<String>of(),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"));
  AtlasEntityDef databaseTypeDefinition=AtlasTypeUtil.createClassTypeDef(DATABASE_TYPE,DATABASE_TYPE + _description,ImmutableSet.of(SUPER_TYPE_NAME),AtlasTypeUtil.createUniqueRequiredAttrDef(NAME,"String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  AtlasStructDef structTypeDefinition=new AtlasStructDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str")));
  AtlasEnumElementDef values[]={new AtlasEnumElementDef("String_Node_Str","String_Node_Str",1),new AtlasEnumElementDef("String_Node_Str","String_Node_Str",2)};
  AtlasEnumDef enumTypeDefinition=new AtlasEnumDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(values));
  AtlasEntityDef columnsDefinition=AtlasTypeUtil.createClassTypeDef(COLUMN_TYPE,COLUMN_TYPE + "String_Node_Str",ImmutableSet.<String>of(),AtlasTypeUtil.createUniqueRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),new AtlasAttributeDef("String_Node_Str",TABLE_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,new ArrayList<AtlasStructDef.AtlasConstraintDef>(){
{
      add(new AtlasStructDef.AtlasConstraintDef(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_FOREIGN_KEY,new HashMap<String,Object>(){
{
          put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_ON_DELETE,AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_VAL_CASCADE);
        }
      }
));
    }
  }
));
  AtlasStructDef partitionDefinition=new AtlasStructDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str")));
  AtlasAttributeDef[] attributeDefinitions=new AtlasAttributeDef[]{new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())};
  AtlasEntityDef storageDescClsDef=new AtlasEntityDef(STORAGE_DESC_TYPE,STORAGE_DESC_TYPE + _description,"String_Node_Str",Arrays.asList(attributeDefinitions),ImmutableSet.of(SUPER_TYPE_NAME));
  AtlasAttributeDef[] partClsAttributes=new AtlasAttributeDef[]{new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",TABLE_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",STORAGE_DESC_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())};
  AtlasEntityDef partClsDef=new AtlasEntityDef("String_Node_Str","String_Node_Str" + _description,"String_Node_Str",Arrays.asList(partClsAttributes),ImmutableSet.of(SUPER_TYPE_NAME));
  AtlasEntityDef processClsType=new AtlasEntityDef(PROCESS_TYPE,PROCESS_TYPE + _description,"String_Node_Str",Arrays.asList(new AtlasAttributeDef("String_Node_Str","String_Node_Str" + TABLE_TYPE + "String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList())),ImmutableSet.<String>of());
  AtlasEntityDef tableTypeDefinition=AtlasTypeUtil.createClassTypeDef(TABLE_TYPE,TABLE_TYPE + _description,ImmutableSet.of(SUPER_TYPE_NAME),AtlasTypeUtil.createUniqueRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"),AtlasTypeUtil.createOptionalAttrDef("String_Node_Str","String_Node_Str"),new AtlasAttributeDef("String_Node_Str","String_Node_Str",false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,new ArrayList<AtlasStructDef.AtlasConstraintDef>(){
{
      add(new AtlasStructDef.AtlasConstraintDef(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_TYPE_MAPPED_FROM_REF,new HashMap<String,Object>(){
{
          put(AtlasStructDef.AtlasConstraintDef.CONSTRAINT_PARAM_REF_ATTRIBUTE,"String_Node_Str");
        }
      }
));
    }
  }
),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef(COLUMNS_MAP,String.format("String_Node_Str","String_Node_Str",COLUMN_TYPE),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasStructDef.AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",String.format("String_Node_Str","String_Node_Str","String_Node_Str"),true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str","String_Node_Str",true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",DATABASE_TYPE,false,AtlasAttributeDef.Cardinality.SINGLE,1,1,false,false,Collections.<AtlasConstraintDef>emptyList()),new AtlasAttributeDef("String_Node_Str",DATABASE_TYPE,true,AtlasAttributeDef.Cardinality.SINGLE,0,1,false,false,Collections.<AtlasConstraintDef>emptyList()));
  AtlasClassificationDef piiTypeDefinition=AtlasTypeUtil.createTraitTypeDef(PII,PII + _description,ImmutableSet.<String>of());
  AtlasClassificationDef classificationTypeDefinition=AtlasTypeUtil.createTraitTypeDef(CLASSIFICATION,CLASSIFICATION + _description,ImmutableSet.<String>of(),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  AtlasClassificationDef fetlClassificationTypeDefinition=AtlasTypeUtil.createTraitTypeDef("String_Node_Str" + CLASSIFICATION,"String_Node_Str" + CLASSIFICATION + _description,ImmutableSet.of(CLASSIFICATION),AtlasTypeUtil.createRequiredAttrDef("String_Node_Str","String_Node_Str"));
  return AtlasTypeUtil.getTypesDef(ImmutableList.of(enumTypeDefinition),ImmutableList.of(structTypeDefinition,partitionDefinition),ImmutableList.of(classificationTypeDefinition,fetlClassificationTypeDefinition,piiTypeDefinition),ImmutableList.of(superTypeDefinition,databaseTypeDefinition,columnsDefinition,tableTypeDefinition,storageDescClsDef,partClsDef,processClsType));
}