nus-yam/ex-repair huggingface dataset:
Program: 39331
Project: 39331
Buggy source:
private List<GanttChartItem> getCollisionsList(final List<GanttChartItem> sortedItems,final String row){
  List<GanttChartItem> collisionRow=new ArrayList<GanttChartItem>();
  GanttChartConflictItem collisionItem=null;
  GanttChartItem previousItem=null;
  for (  GanttChartItem item : sortedItems) {
    if (previousItem != null && item.getFrom() < previousItem.getTo()) {
      if (collisionItem != null && item.getFrom() < collisionItem.getTo()) {
        if (item.getTo() > collisionItem.getTo()) {
          collisionItem.setTo(item.getTo());
          collisionItem.setDateTo(item.getDateTo());
        }
      }
 else {
        if (collisionItem != null) {
          collisionRow.add(collisionItem);
        }
        if (item.getTo() < previousItem.getTo()) {
          collisionItem=new GanttChartConflictItem(row,item.getDateFrom(),item.getDateTo(),item.getFrom(),item.getTo());
        }
 else {
          collisionItem=new GanttChartConflictItem(row,item.getDateFrom(),previousItem.getDateTo(),item.getFrom(),previousItem.getTo());
        }
        collisionItem.addItem(previousItem);
      }
      collisionItem.addItem(item);
    }
    if (previousItem == null || item.getTo() > previousItem.getTo()) {
      previousItem=item;
    }
  }
  if (collisionItem != null) {
    collisionRow.add(collisionItem);
  }
  return collisionRow;
}

Fixed version (ground truth):
private List<GanttChartItem> getCollisionsList(final List<GanttChartItem> sortedItems,final String row){
  List<GanttChartItem> collisionRow=new ArrayList<GanttChartItem>();
  GanttChartConflictItem collisionItem=null;
  GanttChartItem previousItem=null;
  for (  GanttChartItem item : sortedItems) {
    if (previousItem != null && item.getFrom() < previousItem.getTo()) {
      if (collisionItem != null && item.getFrom() < collisionItem.getTo()) {
        if (item.getTo() > collisionItem.getTo()) {
          if (item.getTo() < previousItem.getTo()) {
            collisionItem.setTo(item.getTo());
            collisionItem.setDateTo(item.getDateTo());
          }
 else {
            collisionItem.setTo(previousItem.getTo());
            collisionItem.setDateTo(previousItem.getDateTo());
          }
        }
      }
 else {
        if (collisionItem != null) {
          collisionRow.add(collisionItem);
        }
        if (item.getTo() < previousItem.getTo()) {
          collisionItem=new GanttChartConflictItem(row,item.getDateFrom(),item.getDateTo(),item.getFrom(),item.getTo());
        }
 else {
          collisionItem=new GanttChartConflictItem(row,item.getDateFrom(),previousItem.getDateTo(),item.getFrom(),previousItem.getTo());
        }
        collisionItem.addItem(previousItem);
      }
      collisionItem.addItem(item);
    }
    if (previousItem == null || item.getTo() > previousItem.getTo()) {
      previousItem=item;
    }
  }
  if (collisionItem != null) {
    collisionRow.add(collisionItem);
  }
  return collisionRow;
}
Program: 39332
Project: 39332
Buggy source:
@Override public void disable(){
  if (basename == null || "String_Node_Str".equals(basename)) {
    basenames.removeAll(getAllFilesFromPath());
  }
 else {
    basenames.remove("String_Node_Str" + pluginIdentifier + "String_Node_Str"+ path+ "String_Node_Str"+ basename);
  }
  translationModuleService.removeTranslationModul(basenames);
}

Fixed version (ground truth):
@Override public void disable(){
  translationModuleService.removeTranslationModule(basenames);
}
Program: 39334
Project: 39334
Buggy source:
private void prepareWorkingDirectory() throws IOException {
  workingDirectory.mkdirs();
  FileUtils.cleanDirectory(workingDirectory);
  modulesWorkingDirectory.mkdirs();
  commonWorkingDirectory.mkdirs();
}

Fixed version (ground truth):
private void prepareWorkingDirectory() throws IOException {
  FileUtils.forceMkdir(workingDirectory);
  FileUtils.cleanDirectory(workingDirectory);
  FileUtils.forceMkdir(modulesWorkingDirectory);
  FileUtils.forceMkdir(commonWorkingDirectory);
}
Program: 39335
Project: 39335
Buggy source:
private void copyClassPathResource(final String resourceName) throws IOException {
  InputStreamFacade resource=new RawInputStreamFacade(new ClassPathResource("String_Node_Str" + resourceName).getInputStream());
  File target=new File(rootDirectory,resourceName);
  target.getParentFile().mkdirs();
  FileUtils.copyStreamToFile(resource,target);
}

Fixed version (ground truth):
private void copyClassPathResource(final String resourceName) throws IOException {
  InputStreamFacade resource=new RawInputStreamFacade(new ClassPathResource("String_Node_Str" + resourceName).getInputStream());
  FileUtils.copyStreamToFile(resource,new File(rootDirectory,resourceName));
}
Program: 39336
Project: 39336
Buggy source:
private void prepareWorkingDirectory() throws IOException {
  workingDirectory.mkdirs();
  FileUtils.cleanDirectory(workingDirectory);
  webappDirectory.mkdirs();
  libDirectory.mkdirs();
  configurationDirectory.mkdirs();
  binDirectory.mkdirs();
}

Fixed version (ground truth):
private void prepareWorkingDirectory() throws IOException {
  FileUtils.forceMkdir(workingDirectory);
  FileUtils.cleanDirectory(workingDirectory);
  FileUtils.forceMkdir(webappDirectory);
  FileUtils.forceMkdir(libDirectory);
  FileUtils.forceMkdir(configurationDirectory);
  FileUtils.forceMkdir(binDirectory);
}
Program: 39337
Project: 39337
Buggy source:
@Override public boolean equals(Object obj){
  if (this == obj)   return true;
  if (obj == null)   return false;
  if (getClass() != obj.getClass())   return false;
  EnumTypeKey other=(EnumTypeKey)obj;
  if (originPluginIdentifier == null) {
    if (other.originPluginIdentifier != null)     return false;
  }
 else   if (!originPluginIdentifier.equals(other.originPluginIdentifier))   return false;
  if (value == null) {
    if (other.value != null)     return false;
  }
 else   if (!value.equals(other.value))   return false;
  return true;
}

Fixed version (ground truth):
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  EnumTypeKey other=(EnumTypeKey)obj;
  if (originPluginIdentifier == null) {
    if (other.originPluginIdentifier != null) {
      return false;
    }
  }
 else   if (!originPluginIdentifier.equals(other.originPluginIdentifier)) {
    return false;
  }
  if (value == null) {
    if (other.value != null) {
      return false;
    }
  }
 else   if (!value.equals(other.value)) {
    return false;
  }
  return true;
}
Program: 39338
Project: 39338
Buggy source:
@Override public void onApplicationEvent(final ContextRefreshedEvent event){
  if (event != null && event.getSource() != null && event.getSource() instanceof XmlWebApplicationContext) {
    XmlWebApplicationContext eventSource=(XmlWebApplicationContext)event.getSource();
    if (eventSource.getParent() != null) {
      return;
    }
  }
  long time=System.currentTimeMillis();
  List<Plugin> sortedPlugins=pluginDependencyManager.sortPluginsInDependencyOrder(plugins.values(),plugins);
  moduleFactoryAccessor.init(sortedPlugins);
  for (  Plugin plugin : sortedPlugins) {
    if (plugin.hasState(PluginState.ENABLING)) {
      ((InternalPlugin)plugin).changeStateTo(PluginState.ENABLED);
      pluginDao.save(plugin);
    }
  }
  LOG.info("String_Node_Str" + (System.currentTimeMillis() - time) + "String_Node_Str");
}

Fixed version (ground truth):
@Override public void onApplicationEvent(final ContextRefreshedEvent event){
  if (event != null && event.getSource() instanceof XmlWebApplicationContext) {
    XmlWebApplicationContext eventSource=(XmlWebApplicationContext)event.getSource();
    if (eventSource.getParent() != null) {
      return;
    }
  }
  long time=System.currentTimeMillis();
  List<Plugin> sortedPlugins=pluginDependencyManager.sortPluginsInDependencyOrder(plugins.values(),plugins);
  moduleFactoryAccessor.init(sortedPlugins);
  for (  Plugin plugin : sortedPlugins) {
    if (plugin.hasState(PluginState.ENABLING)) {
      ((InternalPlugin)plugin).changeStateTo(PluginState.ENABLED);
      pluginDao.save(plugin);
    }
  }
  LOG.info("String_Node_Str" + (System.currentTimeMillis() - time) + "String_Node_Str");
}
Program: 39339
Project: 39339
Buggy source:
private void copyResource(final Resource resource){
  if (!resource.isReadable()) {
    return;
  }
  try {
    String path=resource.getURI().toString().split("String_Node_Str")[1];
    File file=new File(webappPath + "String_Node_Str" + path);
    if (resource.getInputStream().available() == 0) {
      file.mkdirs();
    }
 else {
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + path + "String_Node_Str"+ file.getAbsolutePath());
      }
      OutputStream output=null;
      try {
        output=new BufferedOutputStream(new FileOutputStream(file));
        IOUtils.copy(resource.getInputStream(),output);
      }
  finally {
        IOUtils.closeQuietly(output);
      }
    }
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str" + resource,e);
  }
}

Fixed version (ground truth):
private void copyResource(final Resource resource){
  if (!resource.isReadable()) {
    return;
  }
  try {
    String path=resource.getURI().toString().split("String_Node_Str")[1];
    File file=new File(webappPath + "String_Node_Str" + path);
    if (resource.getInputStream().available() == 0) {
      FileUtils.forceMkdir(file);
    }
 else {
      if (LOG.isDebugEnabled()) {
        LOG.debug("String_Node_Str" + path + "String_Node_Str"+ file.getAbsolutePath());
      }
      OutputStream output=null;
      try {
        output=new BufferedOutputStream(new FileOutputStream(file));
        IOUtils.copy(resource.getInputStream(),output);
      }
  finally {
        IOUtils.closeQuietly(output);
      }
    }
  }
 catch (  IOException e) {
    throw new IllegalStateException("String_Node_Str" + resource,e);
  }
}
Program: 39341
Project: 39341
Buggy source:
private void createHasManyField(final CtClass ctClass,final String pluginIdentifier,final XMLStreamReader reader){
  createField(ctClass,getStringAttribute(reader,"String_Node_Str"),"String_Node_Str");
}

Fixed version (ground truth):
private void createHasManyField(final CtClass ctClass,final XMLStreamReader reader){
  createField(ctClass,getStringAttribute(reader,"String_Node_Str"),"String_Node_Str");
}
Program: 39342
Project: 39342
Buggy source:
private FieldDefinition getFieldDefinition(final XMLStreamReader reader,final String pluginIdentifier,final DataDefinitionImpl dataDefinition,final FieldsTag fieldTag) throws XMLStreamException {
  String fieldType=reader.getLocalName();
  String name=getStringAttribute(reader,"String_Node_Str");
  FieldDefinitionImpl fieldDefinition=new FieldDefinitionImpl(dataDefinition,name);
  fieldDefinition.withReadOnly(getBooleanAttribute(reader,"String_Node_Str",false));
  fieldDefinition.withDefaultValue(getStringAttribute(reader,"String_Node_Str"));
  fieldDefinition.setPersistent(getBooleanAttribute(reader,"String_Node_Str",true));
  fieldDefinition.setExpression(getStringAttribute(reader,"String_Node_Str"));
  FieldType type=getFieldType(reader,dataDefinition,name,fieldTag,fieldType);
  fieldDefinition.withType(type);
  if (getBooleanAttribute(reader,"String_Node_Str",false)) {
    fieldDefinition.withValidator(getValidatorDefinition(reader,new RequiredValidator()));
  }
  if (getBooleanAttribute(reader,"String_Node_Str",false)) {
    fieldDefinition.withValidator(getValidatorDefinition(reader,new UniqueValidator()));
  }
  while (reader.hasNext() && reader.next() > 0) {
    if (isTagEnded(reader,fieldType)) {
      break;
    }
    String tag=getTagStarted(reader);
    if (tag == null) {
      continue;
    }
    addFieldElement(reader,fieldDefinition,type,tag);
  }
  return fieldDefinition;
}

Fixed version (ground truth):
private FieldDefinition getFieldDefinition(final XMLStreamReader reader,final DataDefinitionImpl dataDefinition,final FieldsTag fieldTag) throws XMLStreamException {
  String fieldType=reader.getLocalName();
  String name=getStringAttribute(reader,"String_Node_Str");
  FieldDefinitionImpl fieldDefinition=new FieldDefinitionImpl(dataDefinition,name);
  fieldDefinition.withReadOnly(getBooleanAttribute(reader,"String_Node_Str",false));
  fieldDefinition.withDefaultValue(getStringAttribute(reader,"String_Node_Str"));
  fieldDefinition.setPersistent(getBooleanAttribute(reader,"String_Node_Str",true));
  fieldDefinition.setExpression(getStringAttribute(reader,"String_Node_Str"));
  FieldType type=getFieldType(reader,dataDefinition,name,fieldTag,fieldType);
  fieldDefinition.withType(type);
  if (getBooleanAttribute(reader,"String_Node_Str",false)) {
    fieldDefinition.withValidator(getValidatorDefinition(reader,new RequiredValidator()));
  }
  if (getBooleanAttribute(reader,"String_Node_Str",false)) {
    fieldDefinition.withValidator(getValidatorDefinition(reader,new UniqueValidator()));
  }
  while (reader.hasNext() && reader.next() > 0) {
    if (isTagEnded(reader,fieldType)) {
      break;
    }
    String tag=getTagStarted(reader);
    if (tag == null) {
      continue;
    }
    addFieldElement(reader,fieldDefinition,type,tag);
  }
  return fieldDefinition;
}
Program: 39344
Project: 39344
Buggy source:
private void addOtherElement(final XMLStreamReader reader,final String pluginIdentifier,final DataDefinitionImpl dataDefinition,final String tag) throws XMLStreamException {
  OtherTag otherTag=OtherTag.valueOf(tag.toUpperCase(Locale.ENGLISH));
switch (otherTag) {
case IDENTIFIER:
    dataDefinition.setIdentifierExpression(getIdentifierExpression(reader));
  break;
default :
break;
}
}

Fixed version (ground truth):
private void addOtherElement(final XMLStreamReader reader,final DataDefinitionImpl dataDefinition,final String tag) throws XMLStreamException {
  OtherTag otherTag=OtherTag.valueOf(tag.toUpperCase(Locale.ENGLISH));
switch (otherTag) {
case IDENTIFIER:
    dataDefinition.setIdentifierExpression(getIdentifierExpression(reader));
  break;
default :
break;
}
}
Program: 39345
Project: 39345
Buggy source:
private void addHookElement(final XMLStreamReader reader,final String pluginIdentifier,final DataDefinitionImpl dataDefinition,final String tag) throws XMLStreamException {
  HooksTag hooksTag=HooksTag.valueOf(tag.toUpperCase(Locale.ENGLISH));
switch (hooksTag) {
case ONVIEW:
    dataDefinition.addViewHook(getHookDefinition(reader));
  break;
case ONCREATE:
dataDefinition.addCreateHook(getHookDefinition(reader));
break;
case ONUPDATE:
dataDefinition.addUpdateHook(getHookDefinition(reader));
break;
case ONSAVE:
dataDefinition.addSaveHook(getHookDefinition(reader));
break;
case ONCOPY:
dataDefinition.addCopyHook(getHookDefinition(reader));
break;
case VALIDATESWITH:
dataDefinition.addValidatorHook(new CustomEntityValidator(getHookDefinition(reader)));
break;
default :
break;
}
}

Fixed version (ground truth):
private void addHookElement(final XMLStreamReader reader,final DataDefinitionImpl dataDefinition,final String tag) throws XMLStreamException {
  HooksTag hooksTag=HooksTag.valueOf(tag.toUpperCase(Locale.ENGLISH));
switch (hooksTag) {
case ONVIEW:
    dataDefinition.addViewHook(getHookDefinition(reader));
  break;
case ONCREATE:
dataDefinition.addCreateHook(getHookDefinition(reader));
break;
case ONUPDATE:
dataDefinition.addUpdateHook(getHookDefinition(reader));
break;
case ONSAVE:
dataDefinition.addSaveHook(getHookDefinition(reader));
break;
case ONCOPY:
dataDefinition.addCopyHook(getHookDefinition(reader));
break;
case VALIDATESWITH:
dataDefinition.addValidatorHook(new CustomEntityValidator(getHookDefinition(reader)));
break;
default :
break;
}
}
Program: 39346
Project: 39346
Buggy source:
private void addFields(){
  for (  Map.Entry<String,Set<Element>> modelFields : fields.entrySet()) {
    Document document=documents.get(modelFields.getKey());
    checkNotNull(document,"String_Node_Str" + modelFields.getKey());
    Element fields=(Element)document.getRootElement().getChildren().get(0);
    if (!"String_Node_Str".equals(fields.getName())) {
      throw new IllegalStateException("String_Node_Str" + fields.getName());
    }
    for (    Element field : modelFields.getValue()) {
      field=JdomUtils.replaceNamespace(field,document.getRootElement().getNamespace());
      fields.addContent(field.detach());
    }
  }
}

Fixed version (ground truth):
private void addFields(){
  for (  Map.Entry<String,Set<Element>> modelFields : fields.entrySet()) {
    Document document=documents.get(modelFields.getKey());
    checkNotNull(document,"String_Node_Str" + modelFields.getKey());
    Element fieldsElement=(Element)document.getRootElement().getChildren().get(0);
    if (!"String_Node_Str".equals(fieldsElement.getName())) {
      throw new IllegalStateException("String_Node_Str" + fieldsElement.getName());
    }
    for (    Element field : modelFields.getValue()) {
      field=JdomUtils.replaceNamespace(field,document.getRootElement().getNamespace());
      fieldsElement.addContent(field.detach());
    }
  }
}
Program: 39347
Project: 39347
Buggy source:
private void addHooks(){
  for (  Map.Entry<String,Set<Element>> modelHooks : hooks.entrySet()) {
    Document document=documents.get(modelHooks.getKey());
    checkNotNull(document,"String_Node_Str" + modelHooks.getKey());
    Element hooks=(Element)document.getRootElement().getChildren().get(1);
    if (!"String_Node_Str".equals(hooks.getName())) {
      throw new IllegalStateException("String_Node_Str" + hooks.getName());
    }
    for (    Element hook : modelHooks.getValue()) {
      hook=JdomUtils.replaceNamespace(hook,document.getRootElement().getNamespace());
      hooks.addContent(hook.detach());
    }
  }
}

Fixed version (ground truth):
private void addHooks(){
  for (  Map.Entry<String,Set<Element>> modelHooks : hooks.entrySet()) {
    Document document=documents.get(modelHooks.getKey());
    checkNotNull(document,"String_Node_Str" + modelHooks.getKey());
    Element hooksElement=(Element)document.getRootElement().getChildren().get(1);
    if (!"String_Node_Str".equals(hooksElement.getName())) {
      throw new IllegalStateException("String_Node_Str" + hooksElement.getName());
    }
    for (    Element hook : modelHooks.getValue()) {
      hook=JdomUtils.replaceNamespace(hook,document.getRootElement().getNamespace());
      hooksElement.addContent(hook.detach());
    }
  }
}
Program: 39348
Project: 39348
Buggy source:
@Override public CollectionPersister getCollectionPersister(final String role) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getCollectionPersister(role);
}

Fixed version (ground truth):
@Override public CollectionPersister getCollectionPersister(final String role){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getCollectionPersister(role);
}
Program: 39349
Project: 39349
Buggy source:
@Override public String[] getReturnAliases(final String queryString) throws HibernateException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReturnAliases(queryString);
}

Fixed version (ground truth):
@Override public String[] getReturnAliases(final String queryString){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReturnAliases(queryString);
}
Program: 39350
Project: 39350
Buggy source:
@Override public Type getIdentifierType(final String className) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getIdentifierType(className);
}

Fixed version (ground truth):
@Override public Type getIdentifierType(final String className){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getIdentifierType(className);
}
Program: 39351
Project: 39351
Buggy source:
@Override public QueryCache getQueryCache(final String regionName) throws HibernateException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getQueryCache(regionName);
}

Fixed version (ground truth):
@Override public QueryCache getQueryCache(final String regionName){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getQueryCache(regionName);
}
Program: 39352
Project: 39352
Buggy source:
@Override public String[] getImplementors(final String className) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getImplementors(className);
}

Fixed version (ground truth):
@Override public String[] getImplementors(final String className){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getImplementors(className);
}
Program: 39353
Project: 39353
Buggy source:
@Override public String getIdentifierPropertyName(final String className) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getIdentifierPropertyName(className);
}

Fixed version (ground truth):
@Override public String getIdentifierPropertyName(final String className){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getIdentifierPropertyName(className);
}
Program: 39354
Project: 39354
Buggy source:
@Override public Type[] getReturnTypes(final String queryString) throws HibernateException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReturnTypes(queryString);
}

Fixed version (ground truth):
@Override public Type[] getReturnTypes(final String queryString){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReturnTypes(queryString);
}
Program: 39355
Project: 39355
Buggy source:
@Override public Type getReferencedPropertyType(final String className,final String propertyName) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReferencedPropertyType(className,propertyName);
}

Fixed version (ground truth):
@Override public Type getReferencedPropertyType(final String className,final String propertyName){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getReferencedPropertyType(className,propertyName);
}
Program: 39356
Project: 39356
Buggy source:
@Override public EntityPersister getEntityPersister(final String entityName) throws MappingException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).getEntityPersister(entityName);
}

Fixed version (ground truth):
@Override public EntityPersister getEntityPersister(final String entityName){
  return ((SessionFactoryImplementor)getSessionFactory(false)).getEntityPersister(entityName);
}
Program: 39357
Project: 39357
Buggy source:
@Override public Session openSession(final Connection connection,final boolean flushBeforeCompletionEnabled,final boolean autoCloseSessionEnabled,final ConnectionReleaseMode connectionReleaseMode) throws HibernateException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).openTemporarySession();
}

Fixed version (ground truth):
@Override public Session openSession(final Connection connection,final boolean flushBeforeCompletionEnabled,final boolean autoCloseSessionEnabled,final ConnectionReleaseMode connectionReleaseMode){
  return ((SessionFactoryImplementor)getSessionFactory(false)).openTemporarySession();
}
Program: 39358
Project: 39358
Buggy source:
@Override public Session openTemporarySession() throws HibernateException {
  return ((SessionFactoryImplementor)getSessionFactory(false)).openTemporarySession();
}

Fixed version (ground truth):
@Override public Session openTemporarySession(){
  return ((SessionFactoryImplementor)getSessionFactory(false)).openTemporarySession();
}
Program: 39359
Project: 39359
Buggy source:
public void addRestrictionToCategoriesGrid(final ViewDefinitionState viewDefinitionState){
  GridComponent categoriesGrid=(GridComponent)viewDefinitionState.getComponentByReference("String_Node_Str");
  Restriction[] categoryRestrictions=new Restriction[disabledCategories.size()];
  int index=0;
  for (  Pair<String,String> category : disabledCategories) {
    Restriction pluginEquals=Restrictions.eq("String_Node_Str",category.getKey());
    Restriction nameEquals=Restrictions.eq("String_Node_Str",category.getValue());
    Restriction sameCategory=Restrictions.and(pluginEquals,nameEquals);
    categoryRestrictions[index++]=Restrictions.not(sameCategory);
  }
  Restriction restriction=Restrictions.and(categoryRestrictions);
  categoriesGrid.setCustomRestriction(new SimpleCustomRestriction(restriction));
}

Fixed version (ground truth):
public void addRestrictionToCategoriesGrid(final ViewDefinitionState viewDefinitionState){
  GridComponent categoriesGrid=(GridComponent)viewDefinitionState.getComponentByReference("String_Node_Str");
  Restriction[] categoryRestrictions=new Restriction[DISABLED_CATEGORIES.size()];
  int index=0;
  for (  Pair<String,String> category : DISABLED_CATEGORIES) {
    Restriction pluginEquals=Restrictions.eq("String_Node_Str",category.getKey());
    Restriction nameEquals=Restrictions.eq("String_Node_Str",category.getValue());
    Restriction sameCategory=Restrictions.and(pluginEquals,nameEquals);
    categoryRestrictions[index++]=Restrictions.not(sameCategory);
  }
  Restriction restriction=Restrictions.and(categoryRestrictions);
  categoriesGrid.setCustomRestriction(new SimpleCustomRestriction(restriction));
}
Program: 39360
Project: 39360
Buggy source:
@Override public boolean hasPermission(Authentication authentication,Serializable targetId,String targetType,Object permission){
  QcadooPermisionEvaluator evaluator=evaluators.get(targetType);
  if (evaluator == null) {
    throw new IllegalArgumentException("String_Node_Str" + targetType + "String_Node_Str");
  }
  return evaluator.hasPermission(authentication,(String)permission,(String)targetId);
}

Fixed version (ground truth):
@Override public boolean hasPermission(final Authentication authentication,final Serializable targetId,final String targetType,final Object permission){
  QcadooPermisionEvaluator evaluator=evaluators.get(targetType);
  if (evaluator == null) {
    throw new IllegalArgumentException("String_Node_Str" + targetType + "String_Node_Str");
  }
  return evaluator.hasPermission(authentication,(String)permission,(String)targetId);
}
Program: 39361
Project: 39361
Buggy source:
public UserModule(final String login,final String email,final String firstName,final String lastName,final String password,final String groupName,final boolean useHardPassword,final DataDefinitionService dataDefinitionService){
  this.login=login;
  this.email=email;
  this.firstName=firstName;
  this.lastName=lastName;
  this.password=password;
  this.groupName=groupName;
  this.dataDefinitionService=dataDefinitionService;
}

Fixed version (ground truth):
public UserModule(final String login,final String email,final String firstName,final String lastName,final String password,final String groupName,final DataDefinitionService dataDefinitionService){
  this.login=login;
  this.email=email;
  this.firstName=firstName;
  this.lastName=lastName;
  this.password=password;
  this.groupName=groupName;
  this.dataDefinitionService=dataDefinitionService;
}
Program: 39362
Project: 39362
Buggy source:
@Override public UserModule parse(final String pluginIdentifier,final Element element){
  String login=element.getAttributeValue("String_Node_Str");
  String email=element.getAttributeValue("String_Node_Str");
  String firstName=element.getAttributeValue("String_Node_Str");
  String lastName=element.getAttributeValue("String_Node_Str");
  String password=element.getAttributeValue("String_Node_Str");
  String groupName=element.getAttributeValue("String_Node_Str");
  checkNotNull(login,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  checkNotNull(password,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  checkNotNull(groupName,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  return new UserModule(login,email,firstName,lastName,password,groupName,setAsDemoEnviroment,dataDefinitionService);
}

Fixed version (ground truth):
@Override public UserModule parse(final String pluginIdentifier,final Element element){
  String login=element.getAttributeValue("String_Node_Str");
  String email=element.getAttributeValue("String_Node_Str");
  String firstName=element.getAttributeValue("String_Node_Str");
  String lastName=element.getAttributeValue("String_Node_Str");
  String password=element.getAttributeValue("String_Node_Str");
  String groupName=element.getAttributeValue("String_Node_Str");
  checkNotNull(login,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  checkNotNull(password,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  checkNotNull(groupName,"String_Node_Str" + getIdentifier() + "String_Node_Str");
  return new UserModule(login,email,firstName,lastName,password,groupName,dataDefinitionService);
}
Program: 39366
Project: 39366
Buggy source:
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((identifier == null) ? 0 : identifier.hashCode());
  result=prime * result + ((version == null) ? 0 : version.hashCode());
  return result;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((identifier == null) ? 0 : identifier.hashCode());
  result=prime * result + ((version == null) ? 0 : version.hashCode());
  return result;
}
Program: 39367
Project: 39367
Buggy source:
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof PluginDependencyInformation)) {
    return false;
  }
  PluginDependencyInformation other=(PluginDependencyInformation)obj;
  if (identifier == null) {
    if (other.identifier != null) {
      return false;
    }
  }
 else   if (!identifier.equals(other.identifier)) {
    return false;
  }
  if (version == null) {
    if (other.version != null) {
      return false;
    }
  }
 else   if (!version.equals(other.version)) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof PluginDependencyInformation)) {
    return false;
  }
  PluginDependencyInformation other=(PluginDependencyInformation)obj;
  if (identifier == null) {
    if (other.identifier != null) {
      return false;
    }
  }
 else   if (!identifier.equals(other.identifier)) {
    return false;
  }
  if (version == null) {
    if (other.version != null) {
      return false;
    }
  }
 else   if (!version.equals(other.version)) {
    return false;
  }
  return true;
}
Program: 39368
Project: 39368
Buggy source:
@Override public String toString(){
  return identifier + "String_Node_Str" + version;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String toString(){
  return identifier + "String_Node_Str" + version;
}
Program: 39369
Project: 39369
Buggy source:
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((description == null) ? 0 : description.hashCode());
  result=prime * result + ((name == null) ? 0 : name.hashCode());
  result=prime * result + ((vendor == null) ? 0 : vendor.hashCode());
  result=prime * result + ((vendorUrl == null) ? 0 : vendorUrl.hashCode());
  return result;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + ((description == null) ? 0 : description.hashCode());
  result=prime * result + ((name == null) ? 0 : name.hashCode());
  result=prime * result + ((vendor == null) ? 0 : vendor.hashCode());
  result=prime * result + ((vendorUrl == null) ? 0 : vendorUrl.hashCode());
  return result;
}
Program: 39370
Project: 39370
Buggy source:
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  PluginInformation other=(PluginInformation)obj;
  if (description == null) {
    if (other.description != null) {
      return false;
    }
  }
 else   if (!description.equals(other.description)) {
    return false;
  }
  if (name == null) {
    if (other.name != null) {
      return false;
    }
  }
 else   if (!name.equals(other.name)) {
    return false;
  }
  if (vendor == null) {
    if (other.vendor != null) {
      return false;
    }
  }
 else   if (!vendor.equals(other.vendor)) {
    return false;
  }
  if (vendorUrl == null) {
    if (other.vendorUrl != null) {
      return false;
    }
  }
 else   if (!vendorUrl.equals(other.vendorUrl)) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (getClass() != obj.getClass()) {
    return false;
  }
  PluginInformation other=(PluginInformation)obj;
  if (description == null) {
    if (other.description != null) {
      return false;
    }
  }
 else   if (!description.equals(other.description)) {
    return false;
  }
  if (name == null) {
    if (other.name != null) {
      return false;
    }
  }
 else   if (!name.equals(other.name)) {
    return false;
  }
  if (vendor == null) {
    if (other.vendor != null) {
      return false;
    }
  }
 else   if (!vendor.equals(other.vendor)) {
    return false;
  }
  if (vendorUrl == null) {
    if (other.vendorUrl != null) {
      return false;
    }
  }
 else   if (!vendorUrl.equals(other.vendorUrl)) {
    return false;
  }
  return true;
}
Program: 39371
Project: 39371
Buggy source:
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + branch;
  result=prime * result + major;
  result=prime * result + minor;
  return result;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + branch;
  result=prime * result + major;
  result=prime * result + minor;
  return result;
}
Program: 39372
Project: 39372
Buggy source:
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof Version)) {
    return false;
  }
  Version other=(Version)obj;
  if (branch != other.branch) {
    return false;
  }
  if (major != other.major) {
    return false;
  }
  if (minor != other.minor) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof Version)) {
    return false;
  }
  Version other=(Version)obj;
  if (branch != other.branch) {
    return false;
  }
  if (major != other.major) {
    return false;
  }
  if (minor != other.minor) {
    return false;
  }
  return true;
}
Program: 39373
Project: 39373
Buggy source:
@Override public String toString(){
  return major + "String_Node_Str" + minor+ "String_Node_Str"+ branch;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String toString(){
  return major + "String_Node_Str" + minor+ "String_Node_Str"+ branch;
}
Program: 39374
Project: 39374
Buggy source:
@Override public int compareTo(final Version otherVersion){
  if (major < otherVersion.major) {
    return -1;
  }
 else   if (major > otherVersion.major) {
    return 1;
  }
  if (minor < otherVersion.minor) {
    return -1;
  }
 else   if (minor > otherVersion.minor) {
    return 1;
  }
  if (branch < otherVersion.branch) {
    return -1;
  }
 else   if (branch > otherVersion.branch) {
    return 1;
  }
  return 0;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int compareTo(final Version otherVersion){
  if (major < otherVersion.major) {
    return -1;
  }
 else   if (major > otherVersion.major) {
    return 1;
  }
  if (minor < otherVersion.minor) {
    return -1;
  }
 else   if (minor > otherVersion.minor) {
    return 1;
  }
  if (branch < otherVersion.branch) {
    return -1;
  }
 else   if (branch > otherVersion.branch) {
    return 1;
  }
  return 0;
}
Program: 39375
Project: 39375
Buggy source:
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + (includeMaxVersion ? 1231 : 1237);
  result=prime * result + (includeMinVersion ? 1231 : 1237);
  result=prime * result + ((maxVersion == null) ? 0 : maxVersion.hashCode());
  result=prime * result + ((minVersion == null) ? 0 : minVersion.hashCode());
  return result;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public int hashCode(){
  final int prime=31;
  int result=1;
  result=prime * result + (includeMaxVersion ? 1231 : 1237);
  result=prime * result + (includeMinVersion ? 1231 : 1237);
  result=prime * result + ((maxVersion == null) ? 0 : maxVersion.hashCode());
  result=prime * result + ((minVersion == null) ? 0 : minVersion.hashCode());
  return result;
}
Program: 39376
Project: 39376
Buggy source:
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof VersionOfDependency)) {
    return false;
  }
  VersionOfDependency other=(VersionOfDependency)obj;
  if (includeMaxVersion != other.includeMaxVersion) {
    return false;
  }
  if (includeMinVersion != other.includeMinVersion) {
    return false;
  }
  if (maxVersion == null) {
    if (other.maxVersion != null) {
      return false;
    }
  }
 else   if (!maxVersion.equals(other.maxVersion)) {
    return false;
  }
  if (minVersion == null) {
    if (other.minVersion != null) {
      return false;
    }
  }
 else   if (!minVersion.equals(other.minVersion)) {
    return false;
  }
  return true;
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public boolean equals(final Object obj){
  if (this == obj) {
    return true;
  }
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof VersionOfDependency)) {
    return false;
  }
  VersionOfDependency other=(VersionOfDependency)obj;
  if (includeMaxVersion != other.includeMaxVersion) {
    return false;
  }
  if (includeMinVersion != other.includeMinVersion) {
    return false;
  }
  if (maxVersion == null) {
    if (other.maxVersion != null) {
      return false;
    }
  }
 else   if (!maxVersion.equals(other.maxVersion)) {
    return false;
  }
  if (minVersion == null) {
    if (other.minVersion != null) {
      return false;
    }
  }
 else   if (!minVersion.equals(other.minVersion)) {
    return false;
  }
  return true;
}
Program: 39377
Project: 39377
Buggy source:
@Override public String toString(){
  if (minVersion == null) {
    if (maxVersion == null) {
      return "String_Node_Str";
    }
 else {
      return maxVersion.toString() + (includeMaxVersion ? "String_Node_Str" : "String_Node_Str");
    }
  }
 else {
    if (maxVersion == null) {
      return (includeMinVersion ? "String_Node_Str" : "String_Node_Str") + minVersion.toString();
    }
 else {
      if (minVersion.equals(maxVersion)) {
        return minVersion.toString();
      }
 else {
        return (includeMinVersion ? "String_Node_Str" : "String_Node_Str") + minVersion.toString() + "String_Node_Str"+ maxVersion.toString()+ (includeMaxVersion ? "String_Node_Str" : "String_Node_Str");
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public String toString(){
  if (minVersion == null) {
    if (maxVersion == null) {
      return "String_Node_Str";
    }
 else {
      return maxVersion.toString() + (includeMaxVersion ? "String_Node_Str" : "String_Node_Str");
    }
  }
 else {
    if (maxVersion == null) {
      return (includeMinVersion ? "String_Node_Str" : "String_Node_Str") + minVersion.toString();
    }
 else {
      if (minVersion.equals(maxVersion)) {
        return minVersion.toString();
      }
 else {
        return (includeMinVersion ? "String_Node_Str" : "String_Node_Str") + minVersion.toString() + "String_Node_Str"+ maxVersion.toString()+ (includeMaxVersion ? "String_Node_Str" : "String_Node_Str");
      }
    }
  }
}
Program: 39379
Project: 39379
Buggy source:
/** 
 * Performs event on specified view and returns the result
 * @param pluginIdentifier identifier of plugin
 * @param viewName name of view
 * @param body request json body
 * @param locale current locale
 * @return JSONObject generated by performing event
 */
Object performEvent(String pluginIdentifier,String viewName,JSONObject body,Locale locale);

Fixed version (ground truth):
/** 
 * Performs event on specified view and returns the result
 * @param pluginIdentifier identifier of plugin
 * @param viewName name of view
 * @param body request json body
 * @param locale current locale
 * @return JSONObject generated by performing event
 */
JSONObject performEvent(String pluginIdentifier,String viewName,JSONObject body,Locale locale);
Program: 39380
Project: 39380
Buggy source:
public Object performEvent(final String pluginIdentifier,final String viewName,final JSONObject body,final Locale locale){
  InternalViewDefinition viewDefinition=(InternalViewDefinition)viewDefinitionService.get(pluginIdentifier,viewName);
  try {
    return viewDefinition.performEvent(body,locale);
  }
 catch (  JSONException e) {
    throw new IllegalStateException(e.getMessage(),e);
  }
}

Fixed version (ground truth):
@Override public JSONObject performEvent(final String pluginIdentifier,final String viewName,final JSONObject body,final Locale locale){
  InternalViewDefinition viewDefinition=(InternalViewDefinition)viewDefinitionService.get(pluginIdentifier,viewName);
  try {
    return viewDefinition.performEvent(body,locale);
  }
 catch (  JSONException e) {
    throw new IllegalStateException(e.getMessage(),e);
  }
}
Program: 39381
Project: 39381
Buggy source:
public ModelAndView prepareView(final String pluginIdentifier,final String viewName,final Map<String,String> arguments,final Locale locale){
  InternalViewDefinition viewDefinition=(InternalViewDefinition)viewDefinitionService.get(pluginIdentifier,viewName);
  ModelAndView modelAndView=new ModelAndView("String_Node_Str");
  String context=viewDefinition.translateContextReferences(arguments.get("String_Node_Str"));
  JSONObject jsonContext=new JSONObject();
  if (StringUtils.hasText(context)) {
    try {
      jsonContext=new JSONObject(context);
    }
 catch (    JSONException e) {
      throw new IllegalStateException(e.getMessage(),e);
    }
  }
  modelAndView.addObject("String_Node_Str",viewDefinition.prepareView(jsonContext,locale));
  modelAndView.addObject("String_Node_Str",viewName);
  modelAndView.addObject("String_Node_Str",pluginIdentifier);
  modelAndView.addObject("String_Node_Str",context);
  boolean popup=false;
  if (arguments.containsKey("String_Node_Str")) {
    popup=Boolean.parseBoolean(arguments.get("String_Node_Str"));
  }
  modelAndView.addObject("String_Node_Str",popup);
  modelAndView.addObject("String_Node_Str",locale.getLanguage());
  return modelAndView;
}

Fixed version (ground truth):
@Override public ModelAndView prepareView(final String pluginIdentifier,final String viewName,final Map<String,String> arguments,final Locale locale){
  InternalViewDefinition viewDefinition=(InternalViewDefinition)viewDefinitionService.get(pluginIdentifier,viewName);
  ModelAndView modelAndView=new ModelAndView("String_Node_Str");
  String context=viewDefinition.translateContextReferences(arguments.get("String_Node_Str"));
  JSONObject jsonContext=new JSONObject();
  if (StringUtils.hasText(context)) {
    try {
      jsonContext=new JSONObject(context);
    }
 catch (    JSONException e) {
      throw new IllegalStateException(e.getMessage(),e);
    }
  }
  modelAndView.addObject("String_Node_Str",viewDefinition.prepareView(jsonContext,locale));
  modelAndView.addObject("String_Node_Str",viewName);
  modelAndView.addObject("String_Node_Str",pluginIdentifier);
  modelAndView.addObject("String_Node_Str",context);
  boolean popup=false;
  if (arguments.containsKey("String_Node_Str")) {
    popup=Boolean.parseBoolean(arguments.get("String_Node_Str"));
  }
  modelAndView.addObject("String_Node_Str",popup);
  modelAndView.addObject("String_Node_Str",locale.getLanguage());
  return modelAndView;
}
Program: 39382
Project: 39382
Buggy source:
@Override @Monitorable public String getCurrentUserName(){
  String login=SecurityContextHolder.getContext().getAuthentication().getName();
  Entity entity=getUserEntity(SecurityContextHolder.getContext().getAuthentication().getName());
  checkNotNull(entity,"String_Node_Str",login);
  return entity.getStringField("String_Node_Str");
}

Fixed version (ground truth):
@Override @Monitorable public String getCurrentUserName(){
  if (SecurityContextHolder.getContext() == null || SecurityContextHolder.getContext().getAuthentication() == null || SecurityContextHolder.getContext().getAuthentication().getName() == null) {
    return null;
  }
  String login=SecurityContextHolder.getContext().getAuthentication().getName();
  Entity entity=getUserEntity(SecurityContextHolder.getContext().getAuthentication().getName());
  checkNotNull(entity,"String_Node_Str",login);
  return entity.getStringField("String_Node_Str");
}
Program: 39383
Project: 39383
Buggy source:
BeanManager beanManager(){
  if (lookupInJNDI() == null) {
    BeanContainer beanContainer=BeanContainerManager.getInstance();
    return ((BeanManagerLocator)beanContainer).getBeanManager();
  }
 else {
    return this.beanManager;
  }
}

Fixed version (ground truth):
BeanManager beanManager(){
  if (this.beanManager != null) {
    return this.beanManager;
  }
  if (lookupInJNDI() == null) {
    BeanContainer beanContainer=BeanContainerManager.getInstance();
    this.beanManager=((BeanManagerLocator)beanContainer).getBeanManager();
  }
  if (this.beanManager == null) {
    throw new IllegalStateException("String_Node_Str");
  }
  return this.beanManager;
}
Program: 39384
Project: 39384
Buggy source:
private BeanManager lookupInJNDI(){
  if (beanManager == null) {
    try {
      InitialContext ic=new InitialContext();
      return (BeanManager)ic.lookup(BEAN_MANAGER_LOCATION);
    }
 catch (    Exception e) {
      return null;
    }
  }
  return this.beanManager;
}

Fixed version (ground truth):
private BeanManager lookupInJNDI(){
  try {
    InitialContext ic=new InitialContext();
    return (this.beanManager=(BeanManager)ic.lookup(BEAN_MANAGER_LOCATION));
  }
 catch (  Exception e) {
    return null;
  }
}
Program: 39385
Project: 39385
Buggy source:
@Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
  DefaultListableBeanFactory factory=(DefaultListableBeanFactory)beanFactory;
  Set<Bean<?>> beans=beanManagerLocationUtil.beanManager().getBeans(Object.class);
  for (  Bean<?> bean : beans) {
    if (bean instanceof SpringIntegrationExtention.SpringBean) {
      continue;
    }
    if (bean.getName() != null && bean.getName().equals("String_Node_Str")) {
      continue;
    }
    BeanDefinitionBuilder definition=BeanDefinitionBuilder.rootBeanDefinition(CdiFactoryBean.class).addPropertyValue("String_Node_Str",bean.getBeanClass()).setLazyInit(true);
    String name=generateName(bean);
    factory.registerBeanDefinition(name,definition.getBeanDefinition());
  }
}

Fixed version (ground truth):
@Override public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
  DefaultListableBeanFactory factory=(DefaultListableBeanFactory)beanFactory;
  Set<Bean<?>> beans=beanManagerLocationUtil.beanManager().getBeans(Object.class);
  for (  Bean<?> bean : beans) {
    if (bean instanceof SpringIntegrationExtention.SpringBean) {
      continue;
    }
    if (bean.getName() != null && bean.getName().equals("String_Node_Str")) {
      continue;
    }
    BeanDefinitionBuilder definition=BeanDefinitionBuilder.rootBeanDefinition(CdiFactoryBean.class).addPropertyValue("String_Node_Str",bean.getBeanClass()).addPropertyValue("String_Node_Str",beanManagerLocationUtil.beanManager()).setLazyInit(true);
    String name=generateName(bean);
    factory.registerBeanDefinition(name,definition.getBeanDefinition());
  }
}
Program: 39386
Project: 39386
Buggy source:
@Override public Object getObject() throws Exception {
  return beanContainer().getBeanByType(beanClass);
}

Fixed version (ground truth):
@Override public Object getObject() throws Exception {
  return beanContainer.getBeanByType(beanClass);
}