<commit_before><?php
namespace Concrete\Core\Database;

use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\DBAL\Schema\SchemaDiff;
use Doctrine\ORM\EntityManager;
use Core;
use Doctrine\ORM\Tools\SchemaTool;

class DatabaseStructureManager
{
    /**
     * The entity manager instance.
     *
     * @var \Doctrine\ORM\EntityManager
     */
    protected $entityManager;

    /**
     * The entity classes and their metadata.
     * 
     * @var \Doctrine\Common\Persistence\Mapping\ClassMetadata[]
     */
    protected $metadatas;

    /**
     * Create a new structure manager.
     * 
     * @param \Doctrine\ORM\EntityManager $em
     */
    public function __construct(EntityManager $em)
    {
        $this->entityManager = $em;
    }

    /**
     * Get the entity manager object for this structure manager.
     * 
     * @return \Doctrine\ORM\EntityManager
     */
    public function getEntityManager()
    {
        return $this->entityManager;
    }

    /**
     * Returns the proxies path.<commit_msg>Enfore instance of EntityManagerInterface instead of EntityManager<commit_after><?php
namespace Concrete\Core\Database;

use Doctrine\Common\Persistence\Mapping\MappingException;
use Doctrine\DBAL\Schema\SchemaDiff;
use Doctrine\ORM\EntityManagerInterface;
use Core;
use Doctrine\ORM\Tools\SchemaTool;

class DatabaseStructureManager
{
    /**
     * The entity manager instance.
     *
     * @var \Doctrine\ORM\EntityManagerInterface
     */
    protected $entityManager;

    /**
     * The entity classes and their metadata.
     * 
     * @var \Doctrine\Common\Persistence\Mapping\ClassMetadata[]
     */
    protected $metadatas;

    /**
     * Create a new structure manager.
     * 
     * @param \Doctrine\ORM\EntityManagerInterface $em
     */
    public function __construct(EntityManagerInterface $em)
    {
        $this->entityManager = $em;
    }

    /**
     * Get the entity manager object for this structure manager.
     * 
     * @return \Doctrine\ORM\EntityManagerInterface
     */
    public function getEntityManager()
    {
        return $this->entityManager;
    }

    /**
     * Returns the proxies path.
{'fraction_non_alphanumeric': 0.10230414746543778, 'fraction_numerical': 0.0, 'mean_word_length': 2.5766062602965403, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2488943', 'n_tokens_mistral': 625, 'n_tokens_neox': 608, 'n_words': 139}