<commit_before><?php

namespace AlterPHP\Component\Form\ChoiceList;

use Symfony\Component\Form\Util\PropertyPath;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Extension\Core\ChoiceList\ArrayChoiceList;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\NoResultException;

class EntityBitChoiceList extends ArrayChoiceList
{

   /**
    * @var Doctrine\ORM\EntityManager
    */
   private $em;

   /**
    * @var Doctrine\ORM\Mapping\ClassMetadata
    */
   private $class;

   /**
    * The entities from which the user can choose
    *
    * This array is either indexed by ID (if the ID is a single field)
    * or by key in the choices array (if the ID consists of multiple fields)
    *
    * This property is initialized by initializeChoices(). It should only
    * be accessed through getEntity() and getEntities().
    *
    * @var Collection
    */
   private $entities = array ();

   /**<commit_msg>BitTools + EntityBit form field type<commit_after><?php

namespace AlterPHP\Component\Form\ChoiceList;

use Symfony\Component\Form\Util\PropertyPath;
use Symfony\Component\Form\Exception\FormException;
use Symfony\Component\Form\Exception\UnexpectedTypeException;
use Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\QueryBuilder;
use Doctrine\ORM\NoResultException;

class EntityBitChoiceList extends ObjectChoiceList
{

   /**
    * @var Doctrine\ORM\EntityManager
    */
   private $em;

   /**
    * @var Doctrine\ORM\Mapping\ClassMetadata
    */
   private $class;

   /**
    * The entities from which the user can choose
    *
    * This array is either indexed by ID (if the ID is a single field)
    * or by key in the choices array (if the ID consists of multiple fields)
    *
    * This property is initialized by initializeChoices(). It should only
    * be accessed through getEntity() and getEntities().
    *
    * @var Collection
    */
   private $entities = array ();

   /**
{'fraction_non_alphanumeric': 0.09489747257987602, 'fraction_numerical': 0.0, 'mean_word_length': 3.5021459227467813, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7390646', 'n_tokens_mistral': 600, 'n_tokens_neox': 593, 'n_words': 174}