<commit_before><?php

/*
 * This file is part of the Tika package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Funstaff\Tika;

use Psr\Log\LoggerInterface;
use Symfony\Component\Process\Process;

/**
 * Wrapper
 *
 * @author <NAME> <<EMAIL>>
 */
class Wrapper implements WrapperInterface
{
    protected $logger;
    protected $config;
    protected $document;

    /**
     * Constructor
     *
     * @param ConfigurationInterface $config
     */
    public function __construct(ConfigurationInterface $config)
    {
        $this->config = $config;
    }

    /**
     * Get Configuration
     *
     * @return ConfigurationInterface
     */
    public function getConfiguration()
    {
        return $this->config;
    }

    /**<commit_msg>PHPdoc updated. correct initialization.<commit_after><?php

/*
 * This file is part of the Tika package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Funstaff\Tika;

use Psr\Log\LoggerInterface;
use Symfony\Component\Process\Process;

/**
 * Wrapper
 *
 * @author <NAME> <<EMAIL>>
 */
class Wrapper implements WrapperInterface
{
    /**
     * @var LoggerInterface
     */
    protected $logger;

    /**
     * @var ConfigurationInterface
     */
    protected $config;

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

    /**
     * Constructor
     *
     * @param ConfigurationInterface $config
     */
    public function __construct(ConfigurationInterface $config)
    {
        $this->config = $config;
        $this->document = array();
    }

    /**
     * Get Configuration
     *
     * @return ConfigurationInterface
     */
    public function getConfiguration()
    {
        return $this->config;
    }

    /**
{'fraction_non_alphanumeric': 0.11649484536082474, 'fraction_numerical': 0.0, 'mean_word_length': 2.447602131438721, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 20, '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': '4014052', 'n_tokens_mistral': 549, 'n_tokens_neox': 542, 'n_words': 151}