<commit_before><?php

namespace BlueBear\AdminBundle\Admin;

use Symfony\Component\DependencyInjection\ContainerInterface;

class AdminConfig
{
    public $controllerName;

    public $entityName;

    public $managerConfiguration;

    public $formType;

    public $actions;

    public $maxPerPage = 25;

    public $routingNamePattern;

    public $routingUrlPattern;

    public function hydrateFromConfiguration(array $adminConfiguration, ContainerInterface $container)
    {
        $applicationConfiguration = $container->getParameter('bluebear.admin.application');
        // defaults values
        if (!array_key_exists('manager', $adminConfiguration)) {
            $adminConfiguration['manager'] = [];
        }
        if (!array_key_exists('max_per_page', $adminConfiguration)) {
            if (!array_key_exists('max_per_page', $applicationConfiguration)) {
                $generalConfiguration['max_per_page'] = 25;
            }
            // by default, we take the general value
            $adminConfiguration['max_per_page'] = $generalConfiguration['max_per_page'];
        }
        if (array_key_exists('routing', $applicationConfiguration)) {
            $adminConfiguration['routing'] = $applicationConfiguration['routing'];
        }
        // general values
        $this->controllerName = $adminConfiguration['controller'];
        $this->entityName = $adminConfiguration['entity'];<commit_msg>fixing bug in admin configuration<commit_after><?php

namespace BlueBear\AdminBundle\Admin;

use Symfony\Component\DependencyInjection\ContainerInterface;

class AdminConfig
{
    public $controllerName;

    public $entityName;

    public $managerConfiguration;

    public $formType;

    public $actions;

    public $maxPerPage = 25;

    public $routingNamePattern;

    public $routingUrlPattern;

    public function hydrateFromConfiguration(array $adminConfiguration, ContainerInterface $container)
    {
        $applicationConfiguration = $container->getParameter('bluebear.admin.application');
        // defaults values
        if (!array_key_exists('manager', $adminConfiguration)) {
            $adminConfiguration['manager'] = [];
        }
        if (!array_key_exists('max_per_page', $adminConfiguration)) {
            if (!array_key_exists('max_per_page', $applicationConfiguration)) {
                $applicationConfiguration['max_per_page'] = 25;
            }
            // by default, we take the general value
            $adminConfiguration['max_per_page'] = $applicationConfiguration['max_per_page'];
        }
        if (array_key_exists('routing', $applicationConfiguration)) {
            $adminConfiguration['routing'] = $applicationConfiguration['routing'];
        }
        // general values
        $this->controllerName = $adminConfiguration['controller'];
        $this->entityName = $adminConfiguration['entity'];
{'fraction_non_alphanumeric': 0.10964607911172797, 'fraction_numerical': 0.002775850104094379, 'mean_word_length': 3.3353383458646615, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4080028', 'n_tokens_mistral': 722, 'n_tokens_neox': 705, 'n_words': 135}