<commit_before><?php
/**
 * This file is part of Railt package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
declare(strict_types=1);

namespace Railt\Parser;

use Railt\Parser\Exception\Exception;
use Railt\Parser\Grammar;
use Railt\Parser\Io\Readable;
use Railt\Parser\Rule\Analyzer;

/**
 * Class \Railt\Parser.
 *
 * This class provides a set of static helpers to manipulate (load and save) a
 * compiler more easily.
 *
 * @copyright Copyright © 2007-2017 Hoa community
 * @license New BSD License
 */
class Llk
{
    /**
     * @var Grammar
     */
    private $reader;

    /**
     * Llk constructor.
     * @param Readable $grammar
     */
    public function __construct(Readable $grammar)
    {
        $this->reader = new Grammar($grammar);
    }

    /**<commit_msg>Apply fixes from StyleCI<commit_after><?php
/**
 * This file is part of Railt package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
declare(strict_types=1);

namespace Railt\Parser;

use Railt\Parser\Exception\Exception;
use Railt\Parser\Io\Readable;
use Railt\Parser\Rule\Analyzer;

/**
 * Class \Railt\Parser.
 *
 * This class provides a set of static helpers to manipulate (load and save) a
 * compiler more easily.
 *
 * @copyright Copyright © 2007-2017 Hoa community
 * @license New BSD License
 */
class Llk
{
    /**
     * @var Grammar
     */
    private $reader;

    /**
     * Llk constructor.
     * @param Readable $grammar
     */
    public function __construct(Readable $grammar)
    {
        $this->reader = new Grammar($grammar);
    }

    /**
{'fraction_non_alphanumeric': 0.10981987216734457, 'fraction_numerical': 0.010459035444509006, 'mean_word_length': 2.9136363636363636, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3054241', 'n_tokens_mistral': 545, 'n_tokens_neox': 517, 'n_words': 171}