<commit_before><?php

namespace SkautisBundle\Profiler;

use Skautis\Skautis;
use Skautis\SkautisQuery;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
 * Sbira data o skautisu pro zobrazeni v profileru
 */
class SkautisDataCollector extends DataCollector
{

    /**
     * @var Skautis
     */
    protected $skautis;

    public function __construct(Skautis $skautis)
    {
        $this->skautis = $skautis;
    }

    /**
     * @inheritdoc
     */
    public function collect(Request $request, Response $response, \Exception $exception = null)
    {
	    $config = $this->skautis->getConfig();
        $this->data = [
    	    'queries'           => $this->skautis->getDebugLog(),
            'app_id'            => $config->getAppId(),<commit_msg>PhpDoc methods added to SkautisDataCollector<commit_after><?php

namespace SkautisBundle\Profiler;

use Skautis\Skautis;
use Skautis\SkautisQuery;
use Symfony\Component\HttpKernel\DataCollector\DataCollector;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

/**
 * Sbira data o skautisu pro zobrazeni v profileru
 */
class SkautisDataCollector extends DataCollector
{

    /**
     * @var Skautis
     *
     * @method string app_id
     * @method bool test_mode
     * @method bool cache
     * @method bool compression
     * @method string role_id
     * @method string unit_id
     * @method string token
     * @method bool is_logged_in
     * @method \DateTime logout_date
     * @method bool maintenance
     */
    protected $skautis;

    public function __construct(Skautis $skautis)
    {
        $this->skautis = $skautis;
    }

    /**
     * @inheritdoc
     */
    public function collect(Request $request, Response $response, \Exception $exception = null)
    {
	    $config = $this->skautis->getConfig();
        $this->data = [
    	    'queries'           => $this->skautis->getDebugLog(),
            'app_id'            => $config->getAppId(),
{'fraction_non_alphanumeric': 0.11180722891566265, 'fraction_numerical': 0.0, 'mean_word_length': 2.8161764705882355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '343072', 'n_tokens_mistral': 664, 'n_tokens_neox': 657, 'n_words': 137}