<commit_before>package org.jboss.seam.forge.spec.jpa.api;

import javax.enterprise.inject.spi.BeanManager;

import org.jboss.seam.forge.shell.util.BeanManagerUtils;
import org.jboss.seam.forge.spec.jpa.container.CustomJDBCContainer;
import org.jboss.seam.forge.spec.jpa.container.CustomJTAContainer;
import org.jboss.seam.forge.spec.jpa.container.GlassFish3Container;
import org.jboss.seam.forge.spec.jpa.container.JBossAS6Container;
import org.jboss.seam.forge.spec.jpa.container.NonJTAContainer;

public enum JPAContainer
{
   JBOSS_AS6(JBossAS6Container.class),
   GLASSFISH_3(GlassFish3Container.class),
   CUSTOM_JDBC(CustomJDBCContainer.class),
   CUSTOM_JTA(CustomJTAContainer.class),
   CUSTOM_NON_JTA(NonJTAContainer.class);

   private Class<? extends PersistenceContainer> containerType;

   private JPAContainer(Class<? extends PersistenceContainer> containerType)
   {
      this.containerType = containerType;
   }

   public PersistenceContainer getContainer(BeanManager manager)
   {
      return BeanManagerUtils.getContextualInstance(manager, containerType);
   }
}<commit_msg>Added AS7 container<commit_after>package org.jboss.seam.forge.spec.jpa.api;

import javax.enterprise.inject.spi.BeanManager;

import org.jboss.seam.forge.shell.util.BeanManagerUtils;
import org.jboss.seam.forge.spec.jpa.container.CustomJDBCContainer;
import org.jboss.seam.forge.spec.jpa.container.CustomJTAContainer;
import org.jboss.seam.forge.spec.jpa.container.GlassFish3Container;
import org.jboss.seam.forge.spec.jpa.container.JBossAS6Container;
import org.jboss.seam.forge.spec.jpa.container.NonJTAContainer;

public enum JPAContainer
{
   JBOSS_AS6(JBossAS6Container.class),
   JBOSS_AS7(JBossAS6Container.class),
   GLASSFISH_3(GlassFish3Container.class),
   CUSTOM_JDBC(CustomJDBCContainer.class),
   CUSTOM_JTA(CustomJTAContainer.class),
   CUSTOM_NON_JTA(NonJTAContainer.class);

   private Class<? extends PersistenceContainer> containerType;

   private JPAContainer(final Class<? extends PersistenceContainer> containerType)
   {
      this.containerType = containerType;
   }

   public PersistenceContainer getContainer(final BeanManager manager)
   {
      return BeanManagerUtils.getContextualInstance(manager, containerType);
   }
}
{'fraction_non_alphanumeric': 0.09701824655095684, 'fraction_numerical': 0.006675567423230975, 'mean_word_length': 5.771084337349397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7252734', 'n_tokens_mistral': 795, 'n_tokens_neox': 768, 'n_words': 91}