<commit_before><?php
/**
 * Copyright (c) 2015 WePay
 *
 * http://opensource.org/licenses/Apache2.0
 */

namespace WePay\Test\Signer;

use \PHPUnit_Framework_TestCase;
use WePay\Signer\Signer;

class SignerTest extends PHPUnit_Framework_TestCase
{
    /** @var string */
    const DEFAULT_CLIENT_ID = 'k3qDQy0Tr56v1ceo';

    /** @var string */
    const DEFAULT_CLIENT_SECRET = '<KEY>';

    /** @var string */
    const DEFAULT_SIGNATURE = '1f3bac3e0ecdc2c613ece06c6c6d8646f83f6d985c287a7a4a23f4b936379450c0cdc9b1784951576b3d412f37f4578a755e56abdbf637359290e344ff31d1de';

    /** @var string */
    const DEFAULT_PAGE = 'https://wepay.com/account/12345';

    /** @var string */
    const DEFAULT_REDIRECT_URI = 'https://partnersite.com/home';

    /** @var string */
    const DEFAULT_QS = 'client_id=%s&page=%s&redirect_uri=%s&token=%s';

    /** @var \WePay\Signer\Signer */
    public $signer;

    public function setUp()
    {
        $this->signer = new Signer(self::DEFAULT_CLIENT_ID, self::DEFAULT_CLIENT_SECRET);
    }

    public function testAttributes()
    {
        $this->assertEquals(self::DEFAULT_CLIENT_ID, $this->readAttribute($this->signer, 'client_id'));
        $this->assertEquals(self::DEFAULT_CLIENT_SECRET, $this->readAttribute($this->signer, 'client_secret'));
    }

    public function testGetClientKey()
    {
        $this->assertEquals(self::DEFAULT_CLIENT_ID, $this->signer->getClientId());<commit_msg>Tweaked one of the tests.<commit_after><?php
/**
 * Copyright (c) 2015 WePay
 *
 * http://opensource.org/licenses/Apache2.0
 */

namespace WePay\Test\Signer;

use \PHPUnit_Framework_TestCase;
use WePay\Signer\Signer;

class SignerTest extends PHPUnit_Framework_TestCase
{
    /** @var string */
    const DEFAULT_CLIENT_ID = 'k3qDQy0Tr56v1ceo';

    /** @var string */
    const DEFAULT_CLIENT_SECRET = '<KEY>';

    /** @var string */
    const DEFAULT_SIGNATURE = 'f083db795a34994a173435f73657e2c5cc2e318daae6bc15df8d76a6edd5b0fb4ce442f1f85a66d0e20ebc5e2f57eb3334d12f55661f1bad20953c05fbc2db16';

    /** @var string */
    const DEFAULT_PAGE = 'https://wepay.com/account/12345';

    /** @var string */
    const DEFAULT_REDIRECT_URI = 'https://partnersite.com/home';

    /** @var string */
    const DEFAULT_QS = 'client_id=%s&page=%s&redirect_uri=%s&token=%s';

    /** @var \WePay\Signer\Signer */
    public $signer;

    public function setUp()
    {
        $this->signer = new Signer(self::DEFAULT_CLIENT_ID, self::DEFAULT_CLIENT_SECRET);
    }

    public function testAttributes()
    {
        $this->assertEquals(self::DEFAULT_CLIENT_ID, $this->readAttribute($this->signer, 'client_id'));
        $this->assertEquals(self::DEFAULT_CLIENT_SECRET, $this->readAttribute($this->signer, 'client_secret'));
    }

    public function testGetClientKey()
    {
        $this->assertEquals(self::DEFAULT_CLIENT_ID, $this->signer->getClientId());
{'fraction_non_alphanumeric': 0.1422145328719723, 'fraction_numerical': 0.06505190311418685, 'mean_word_length': 3.9844827586206897, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 25, 'https://': 4, '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': '1753820', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1039, 'n_words': 145}