<commit_before><?php

namespace SearchAPI2;

use CultuurNet\Auth\ConsumerCredentials;
use CultuurNet\Auth\Guzzle\HttpClientFactory;
use CultuurNet\Auth\TokenCredentials;
use CultuurNet\Search\Parameter\FilterQuery;
use CultuurNet\Search\Parameter\Group;
use CultuurNet\Search\Parameter\Query;
use CultuurNet\UDB3\SearchAPI2\DefaultSearchService;
use Guzzle\Http\ClientInterface;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response;
use Guzzle\Http\QueryString;

class DefaultSearchServiceTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var ConsumerCredentials
     */
    protected $consumerCredentials;

    /**
     * @var DefaultSearchService
     */
    protected $searchService;

    protected $baseUrl = 'http://acc.uitid.be/uitid/rest/searchv2';

    /**
     * @var HttpClientFactory | \PHPUnit_Framework_MockObject_MockObject
     */
    protected $clientFactory;

    public function setUp()
    {
        $this->consumerCredentials = new ConsumerCredentials();
        $this->searchService = new DefaultSearchService(
            $this->baseUrl,
            $this->consumerCredentials
        );
        $this->clientFactory = $this->getMock(HttpClientFactory::class);
    }

    /**
     * @test
     */
    public function it_is_initializable_with_at_least_a_base_url_and_consumer_credentials()
    {
        $this->assertInstanceOf(DefaultSearchService::class, $this->searchService);
    }
<commit_msg>III-401: Add missing doc block<commit_after><?php

namespace SearchAPI2;

use CultuurNet\Auth\ConsumerCredentials;
use CultuurNet\Auth\Guzzle\HttpClientFactory;
use CultuurNet\Auth\TokenCredentials;
use CultuurNet\Search\Parameter\FilterQuery;
use CultuurNet\Search\Parameter\Group;
use CultuurNet\Search\Parameter\Query;
use CultuurNet\UDB3\SearchAPI2\DefaultSearchService;
use Guzzle\Http\ClientInterface;
use Guzzle\Http\Message\RequestInterface;
use Guzzle\Http\Message\Response;
use Guzzle\Http\QueryString;

class DefaultSearchServiceTest extends \PHPUnit_Framework_TestCase
{
    /**
     * @var ConsumerCredentials
     */
    protected $consumerCredentials;

    /**
     * @var DefaultSearchService
     */
    protected $searchService;

    /**
     * @var string
     */
    protected $baseUrl = 'http://acc.uitid.be/uitid/rest/searchv2';

    /**
     * @var HttpClientFactory | \PHPUnit_Framework_MockObject_MockObject
     */
    protected $clientFactory;

    public function setUp()
    {
        $this->consumerCredentials = new ConsumerCredentials();
        $this->searchService = new DefaultSearchService(
            $this->baseUrl,
            $this->consumerCredentials
        );
        $this->clientFactory = $this->getMock(HttpClientFactory::class);
    }

    /**
     * @test
     */
    public function it_is_initializable_with_at_least_a_base_url_and_consumer_credentials()
    {
        $this->assertInstanceOf(DefaultSearchService::class, $this->searchService);
    }

{'fraction_non_alphanumeric': 0.10467479674796748, 'fraction_numerical': 0.0037262872628726286, 'mean_word_length': 3.5782945736434106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '6531150', 'n_tokens_mistral': 898, 'n_tokens_neox': 877, 'n_words': 134}