<commit_before><?php

namespace OpenCoders\PODB\API;


use OpenCoders\PODB\helper\Doctrine;
use OpenCoders\PODB\Repository\ProjectRepository;

abstract class AbstractBaseApi {

    /**
     * @var string EntityClassName (FQN)
     */
    protected $entityName = 'OpenCoders\PODB\Entity\Project';

    /**
     * @var string Api Version
     */
    protected $apiVersion = 'v1';

    /**
     * @var
     */
    private $em;

    function __construct()
    {
        $this->em = Doctrine::getEntityManager();
    }

    /**
     * Returns the ProjectsRepository
     * @return ProjectRepository
     */
    protected function getRepository()
    {
        $repository = $this->getEntityManager()->getRepository($this->entityName);
        return $repository;
    }

    /**
     * Returns the Singleton Instance of the EntityManger
     * @return \Doctrine\ORM\EntityManager<commit_msg>Default entityName removed<commit_after><?php

namespace OpenCoders\PODB\API;


use OpenCoders\PODB\helper\Doctrine;
use OpenCoders\PODB\Repository\ProjectRepository;

abstract class AbstractBaseApi {

    /**
     * @var string EntityClassName (FQN)
     */
    protected $entityName;

    /**
     * @var string Api Version
     */
    protected $apiVersion = 'v1';

    /**
     * @var
     */
    private $em;

    function __construct()
    {
        $this->em = Doctrine::getEntityManager();
    }

    /**
     * Returns the ProjectsRepository
     * @return ProjectRepository
     */
    protected function getRepository()
    {
        $repository = $this->getEntityManager()->getRepository($this->entityName);
        return $repository;
    }

    /**
     * Returns the Singleton Instance of the EntityManger
     * @return \Doctrine\ORM\EntityManager
{'fraction_non_alphanumeric': 0.11784897025171624, 'fraction_numerical': 0.0011441647597254005, 'mean_word_length': 2.5404858299595143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4881915', 'n_tokens_mistral': 526, 'n_tokens_neox': 515, 'n_words': 104}