<commit_before><?php

namespace AppBundle\Tests\API\Bitstamp;

use AppBundle\Tests\GuzzleTestTrait;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

/**
 * Standard tests that can be run on all public API classes.
 */
abstract class APITest extends WebTestCase
{
    protected $domain = 'https://www.bitstamp.net/api/';
    protected $serviceNamespace = 'bitstamp';

    // These properties must be set on child classes.
    protected $endpoint;

    use GuzzleTestTrait;

    /**
     * Returns an API object from $this->className with Mocks preconfigured.
     *
     * @return mixed
     */
    protected function getClass($mockType = null)
    {
            return new $this->className($this->client($mockType), $this->mockLogger());<commit_msg>Update APITest.php<commit_after><?php

namespace AppBundle\Tests\API\Bitstamp;

use AppBundle\Tests\GuzzleTestTrait;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

/**
 * Standard tests that can be run on all public API classes.
 */
abstract class APITest extends WebTestCase
{
    protected $domain = 'https://www.bitstamp.net/api/';
    protected $serviceNamespace = 'bitstamp';

    // These properties must be set on child classes.
    protected $endpoint;

    use GuzzleTestTrait;

    /**
     * Returns an API object from $this->className with Mocks preconfigured.
     *
     * @return mixed
     */
    protected function getClass($mockType = null)
    {
        return new $this->className($this->client($mockType), $this->mockLogger());
{'fraction_non_alphanumeric': 0.1119946984758118, 'fraction_numerical': 0.0, 'mean_word_length': 3.3768115942028984, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1074964', 'n_tokens_mistral': 440, 'n_tokens_neox': 431, 'n_words': 120}