<commit_before><?php

namespace Dhii\Di;

use Dhii\Di\Exception\NotFoundException;
use Dhii\Di\Exception\ContainerException;
use Interop\Container\ContainerInterface as BaseContainerInterface;

/**
 * Common public functionality.
 *
 * @since [*next-version*]
 */
abstract class AbstractContainerBase
{
    /**
     * Checks if a service exists with a specific ID.
     *
     * @since [*next-version*]
     * @see BaseContainerInterface::has()
     *
     * @param string $id The ID of the service to check for.
     *
     * @return bool True if a service exists with the given ID; false otherwise.
     */
    public function has($id)
    {
        return $this->_has($id);
    }

    /**
     * Retrieves the service with a specific ID.
     *
     * @since [*next-version*]
     * @see BaseContainerInterface::get()
     *
     * @param string $id The ID of the service to retrieve.
     *
     * @throws NotFoundException If no service with the given ID exists in the container.
     *
     * @return mixed The service with the matching ID.
     */
    public function get($id)
    {
        return $this->_get($id);
    }

    /**
     * {@inheritdoc}
     *
     * @since [*next-version*]
     *
     * @return NotFoundException The new exception instance.
     */
    protected function _createNotFoundException($message, $code = 0, Exception $innerException = null)
    {
        return new NotFoundException($message, $code, $innerException);
    }

    /**
     * {@inheritdoc}
     *
     * @since [*next-version*]
     *
     * @return ContainerException The new exception instance.
     */
    protected function _createContainerException($message, $code = 0, Exception $innerException = null)
    {
        return new ContainerException($message, $code, $innerException);
    }
}
<commit_msg>Fixed class using ancestor methods but not extending<commit_after><?php

namespace Dhii\Di;

use Dhii\Di\Exception\NotFoundException;
use Dhii\Di\Exception\ContainerException;
use Interop\Container\ContainerInterface as BaseContainerInterface;

/**
 * Common public functionality.
 *
 * @since [*next-version*]
 */
abstract class AbstractContainerBase extends AbstractContainer
{
    /**
     * Checks if a service exists with a specific ID.
     *
     * @since [*next-version*]
     * @see BaseContainerInterface::has()
     *
     * @param string $id The ID of the service to check for.
     *
     * @return bool True if a service exists with the given ID; false otherwise.
     */
    public function has($id)
    {
        return $this->_has($id);
    }

    /**
     * Retrieves the service with a specific ID.
     *
     * @since [*next-version*]
     * @see BaseContainerInterface::get()
     *
     * @param string $id The ID of the service to retrieve.
     *
     * @throws NotFoundException If no service with the given ID exists in the container.
     *
     * @return mixed The service with the matching ID.
     */
    public function get($id)
    {
        return $this->_get($id);
    }

    /**
     * {@inheritdoc}
     *
     * @since [*next-version*]
     *
     * @return NotFoundException The new exception instance.
     */
    protected function _createNotFoundException($message, $code = 0, Exception $innerException = null)
    {
        return new NotFoundException($message, $code, $innerException);
    }

    /**
     * {@inheritdoc}
     *
     * @since [*next-version*]
     *
     * @return ContainerException The new exception instance.
     */
    protected function _createContainerException($message, $code = 0, Exception $innerException = null)
    {
        return new ContainerException($message, $code, $innerException);
    }
}

{'fraction_non_alphanumeric': 0.11083944580277098, 'fraction_numerical': 0.0010866612333604998, 'mean_word_length': 2.5817120622568095, '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': '5976039', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1018, 'n_words': 313}