<commit_before><?php
/**
 * SimpleComplex PHP Utils
 * @link      https://github.com/simplecomplex/php-utils
 * @copyright Copyright (c) 2017 <NAME>
 * @license   https://github.com/simplecomplex/php-utils/blob/master/LICENSE (MIT License)
 */
declare(strict_types=1);

namespace SimpleComplex\Utils;

use Psr\Container\ContainerInterface;
use SimpleComplex\Utils\Exception\ContainerLogicException;
use SimpleComplex\Utils\Exception\ContainerInvalidArgumentException;
use SimpleComplex\Utils\Exception\ContainerNotFoundException;
use SimpleComplex\Utils\Exception\ContainerRuntimeException;

/**
 * PSR-11 Container wrapper - interface to an external or internal dependency
 * injection container.
 *
 * Can only refer a single container.
 *
 * External container must have a set() method, or be \ArrayAccess (having
 * offsetSet method). Otherwise pass setMethod arg to injectExternalContainer().
 *
 * @see Dependency::injectExternalContainer()
 *
 * The internal container is very a simple implementation.
 * The only extra feature is that it (like Pimple) rejects setting/overwriting
 * a dependency which already have been requested for (used).
 *
 *
 * Known environment-specific entry IDs
 * ------------------------------------
 * @dependency-injection-container
 *
 * Slim:
 * - settings
 * - environment
 * - request
 * - response
 * - router
 * - foundHandler
 * - phpErrorHandler
 * - errorHandler
 * - notFoundHandler
 * - notAllowedHandler
 * - callableResolver
 *
 * SimpleComplex packages:
 * - cache-broker
 * - config
 * - logger
 * - inspect
 * - locale
 * - validator
 *
 *
 * @package SimpleComplex\Utils
 */
class Dependency implements ContainerInterface
{
    /**
     * @var ContainerInterface
     */
    protected static $externalContainer;

    /**
     * @var Dependency
     */
    protected static $internalContainer;<commit_msg>Validate dependency injection container ID renamed to 'validate'; from 'validator'.<commit_after><?php
/**
 * SimpleComplex PHP Utils
 * @link      https://github.com/simplecomplex/php-utils
 * @copyright Copyright (c) 2017 <NAME>
 * @license   https://github.com/simplecomplex/php-utils/blob/master/LICENSE (MIT License)
 */
declare(strict_types=1);

namespace SimpleComplex\Utils;

use Psr\Container\ContainerInterface;
use SimpleComplex\Utils\Exception\ContainerLogicException;
use SimpleComplex\Utils\Exception\ContainerInvalidArgumentException;
use SimpleComplex\Utils\Exception\ContainerNotFoundException;
use SimpleComplex\Utils\Exception\ContainerRuntimeException;

/**
 * PSR-11 Container wrapper - interface to an external or internal dependency
 * injection container.
 *
 * Can only refer a single container.
 *
 * External container must have a set() method, or be \ArrayAccess (having
 * offsetSet method). Otherwise pass setMethod arg to injectExternalContainer().
 *
 * @see Dependency::injectExternalContainer()
 *
 * The internal container is very a simple implementation.
 * The only extra feature is that it (like Pimple) rejects setting/overwriting
 * a dependency which already have been requested for (used).
 *
 *
 * Known environment-specific entry IDs
 * ------------------------------------
 * @dependency-injection-container
 *
 * Slim:
 * - settings
 * - environment
 * - request
 * - response
 * - router
 * - foundHandler
 * - phpErrorHandler
 * - errorHandler
 * - notFoundHandler
 * - notAllowedHandler
 * - callableResolver
 *
 * SimpleComplex packages:
 * - cache-broker
 * - config
 * - logger
 * - inspect
 * - locale
 * - validate
 *
 *
 * @package SimpleComplex\Utils
 */
class Dependency implements ContainerInterface
{
    /**
     * @var ContainerInterface
     */
    protected static $externalContainer;

    /**
     * @var Dependency
     */
    protected static $internalContainer;
{'fraction_non_alphanumeric': 0.11724320042249801, 'fraction_numerical': 0.0036968576709796672, 'mean_word_length': 3.5365269461077844, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '1503391', 'n_tokens_mistral': 995, 'n_tokens_neox': 959, 'n_words': 280}