<commit_before><?php

namespace Joseki\LeanMapper;

use LeanMapper\Row;
use Nette\Utils\Strings;

class PackageMapper extends Mapper
{

    /** @var array */
    private $tableToRepository;

    /** @var array */
    private $tableToSchema;

    /** @var array */
    private $repositoryToTable;

    /** @var null */
    private $defaultSchema;



    public function registerTable($table, $repositoryClass, $schema = null)
    {
        $this->tableToRepository[$table] = $repositoryClass;
        $this->tableToSchema[$table] = $schema ?: $this->defaultSchema;
        $this->repositoryToTable[$repositoryClass] = $table;
    }



    /**
     * @inheritdoc
     */
    public function getEntityClass($table, Row $row = null)
    {<commit_msg>PackageMapper: mapping settings properties are now protected<commit_after><?php

namespace Joseki\LeanMapper;

use LeanMapper\Row;
use Nette\Utils\Strings;

class PackageMapper extends Mapper
{

    /** @var array */
    protected $tableToRepository;

    /** @var array */
    protected $tableToSchema;

    /** @var array */
    protected $repositoryToTable;

    /** @var null */
    protected $defaultSchema;



    public function registerTable($table, $repositoryClass, $schema = null)
    {
        $this->tableToRepository[$table] = $repositoryClass;
        $this->tableToSchema[$table] = $schema ?: $this->defaultSchema;
        $this->repositoryToTable[$repositoryClass] = $table;
    }



    /**
     * @inheritdoc
     */
    public function getEntityClass($table, Row $row = null)
    {
{'fraction_non_alphanumeric': 0.13122171945701358, 'fraction_numerical': 0.0, 'mean_word_length': 3.0417754569190603, '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': '1444673', 'n_tokens_mistral': 457, 'n_tokens_neox': 438, 'n_words': 100}