<commit_before><?php
/**
 * TagCest.php
 * \Phalcon\Tag
 *
 * Tests the \Phalcon\Tag component
 *
 * PhalconPHP Framework
 *
 * @copyright (c) 2011-2014 Phalcon Team
 * @link      http://www.phalconphp.com
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 *
 * The contents of this file are subject to the New BSD License that is
 * bundled with this package in the file docs/LICENSE.txt
 *
 * If you did not receive a copy of the license and are unable to obtain it
 * through the world-wide-web, please send an email to <EMAIL>
 * so that we can send you a copy immediately.
 */

use \CodeGuy;
use \Phalcon\Tag as PhTag;

class TagCest
{
    /**
     * Tests the get
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-04
     *
     * @param CodeGuy $I
     */
    public function testGet(CodeGuy $I)
    {
        $actual = Version::get();

        $I->assertTrue(
            is_string($actual),
            'get() does not return a string'
        );
    }

    // -------------------------------------------------------------------------
    // passwordField
    // -------------------------------------------------------------------------
    /**
     * Tests passwordField with string as a parameter
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldBasic()
    {
        $options  = 'some_field_name';
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="">';
        $actual   = \Phalcon\Tag::passwordField($options);

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField basic')
        );
    }

    /**
     * Tests passwordField with array as parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldWithArrayBasic()
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
        );
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class">';
        $actual   = \Phalcon\Tag::passwordField($options);

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField basic with array')
        );
    }

    /**
     * Tests passwordField with id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldWithIdInParameters()
    {
        $options = array(
            'some_field_name',
            'id'    => 'some_id',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_id" name="some_field_name" value="" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField with id in parameters')
        );
    }

    /**
     * Tests passwordField with name and not id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldWithNameAndNotIdInParameters()
    {
        $options = array(
            'some_field_name',
            'name'  => 'some_other_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field_name" name="some_other_name" value="" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);

        $this->assertEquals(
            $expected,
            $actual,
            sprintf(
                $this->message,
                'passwordField with name and id in parameters'
            )
        );
    }

    /**
     * Tests passwordField with setDefault
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldSetDefault()
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::setDefault('some_field_name', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="some_default_value" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDefault('some_field_name', '');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField with setDefault')
        );
    }

    /**
     * Tests passwordField with displayTo
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldDisplayTo()
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::displayTo('some_field_name', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="some_default_value" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::displayTo('some_field_name', '');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField with displayTo')
        );
    }

    /**
     * Tests passwordField with setDefault to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldSetDefaultElementNotPresent()
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::setDefault('some_field', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDefault('some_field', '');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField with setDefault')
        );
    }

    /**
     * Tests passwordField with displayTo to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-11-29
     */
    public function testPasswordFieldDisplayToElementNotPresent()
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::displayTo('some_field', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class" size="10">';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::displayTo('some_field', '');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'passwordField with displayTo')
        );
    }

    /**
     * Tests passwordField with string as a parameter
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldBasicXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options  = 'some_field_name';
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField basic')
        );
    }

    /**
     * Tests passwordField with array as parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldWithArrayBasicXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'class' => 'some_class',
        );
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField basic with array')
        );
    }

    /**
     * Tests passwordField with id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldWithIdInParametersXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'id'    => 'some_id',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_id" name="some_field_name" value="" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField with id in parameters')
        );
    }

    /**
     * Tests passwordField with name and not id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldWithNameAndNotIdInParametersXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'name'  => 'some_other_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field_name" name="some_other_name" value="" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf(
                $this->message,
                'passwordField with name and id in parameters'
            )
        );
    }

    /**
     * Tests passwordField with setDefault
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldSetDefaultXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::setDefault('some_field_name', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="some_default_value" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDefault('some_field_name', '');
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField with setDefault')
        );
    }

    /**
     * Tests passwordField with displayTo
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldDisplayToXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::displayTo('some_field_name', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="some_default_value" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::displayTo('some_field_name', '');
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField with displayTo')
        );
    }

    /**
     * Tests passwordField with setDefault to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldSetDefaultElementNotPresentXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::setDefault('some_field', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::setDefault('some_field', '');
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField with setDefault')
        );
    }

    /**
     * Tests passwordField with displayTo to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2012-10-26
     */
    public function testPasswordFieldDisplayToElementNotPresentXHTML()
    {
        \Phalcon\Tag::setDoctype(\Phalcon\Tag::XHTML10_STRICT);
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        \Phalcon\Tag::displayTo('some_field', 'some_default_value');
        $expected = '<input type="password" id="some_field_name" name="some_field_name" value="" class="some_class" size="10" />';
        $actual   = \Phalcon\Tag::passwordField($options);
        \Phalcon\Tag::displayTo('some_field', '');
        \Phalcon\Tag::setDoctype('');

        $this->assertEquals(
            $expected,
            $actual,
            sprintf($this->message, 'XHTML passwordField with displayTo')
        );
    }

}<commit_msg>Converted Tag:passwordField tests to Codeception<commit_after><?php
/**
 * TagPasswordFieldCest.php
 * \Phalcon\Tag
 *
 * Tests the \Phalcon\Tag component
 *
 * PhalconPHP Framework
 *
 * @copyright (c) 2011-2014 Phalcon Team
 * @link      http://www.phalconphp.com
 * @author    <NAME> <<EMAIL>>
 * @author    <NAME> <<EMAIL>>
 *
 * The contents of this file are subject to the New BSD License that is
 * bundled with this package in the file docs/LICENSE.txt
 *
 * If you did not receive a copy of the license and are unable to obtain it
 * through the world-wide-web, please send an email to <EMAIL>
 * so that we can send you a copy immediately.
 */

namespace Phalcon\Tests\unit\Phalcon\Tag;

use \CodeGuy;
use \Phalcon\Tag as PhTag;

class TagPasswordFieldCest extends TagBase
{
    /**
     * Tests passwordField with string as a parameter
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldBasic(CodeGuy $I)
    {
        $this->passwordFieldBasic($I, false);
    }

    /**
     * Tests passwordField with string as a parameter XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldBasicXHTML(CodeGuy $I)
    {
        $this->passwordFieldBasic($I, true);
    }

    /**
     * Tests passwordField with array as parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithArrayBasic(CodeGuy $I)
    {
        $this->passwordFieldWithArrayBasic($I, false);
    }

    /**
     * Tests passwordField with array as parameters XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithArrayBasicXHTML(CodeGuy $I)
    {
        $this->passwordFieldWithArrayBasic($I, true);
    }

    /**
     * Tests passwordField with id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithIdInParameters(CodeGuy $I)
    {
        $this->passwordFieldWithIdInParameters($I, false);
    }

    /**
     * Tests passwordField with id in parameters XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithIdInParametersXHTML(CodeGuy $I)
    {
        $this->passwordFieldWithIdInParameters($I, true);
    }

    /**
     * Tests passwordField with name and no id in parameters
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithNameAndNotIdInParameters(CodeGuy $I)
    {
        $this->passwordFieldWithNameAndNotIdInParameters($I, false);
    }

    /**
     * Tests passwordField with name and no id in parameters XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldWithNameAndNotIdInParametersXHTML(CodeGuy $I)
    {
        $this->passwordFieldWithNameAndNotIdInParameters($I, true);
    }

    /**
     * Tests passwordField with setDefault
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldSetDefault(CodeGuy $I)
    {
        $this->passwordFieldSetDefault($I, false);
    }

    /**
     * Tests passwordField with setDefault XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldSetDefaultXHTML(CodeGuy $I)
    {
        $this->passwordFieldSetDefault($I, true);
    }

    /**
     * Tests passwordField with displayTo
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldDisplayTo(CodeGuy $I)
    {
        $this->passwordFieldDisplayTo($I, false);
    }

    /**
     * Tests passwordField with displayTo XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldDisplayToXHTML(CodeGuy $I)
    {
        $this->passwordFieldDisplayTo($I, true);
    }

    /**
     * Tests passwordField with setDefault to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldSetDefaultElementNotPresent(CodeGuy $I)
    {
        $this->passwordFieldSetDefaultElementNotPresent($I, false);
    }

    /**
     * Tests passwordField with setDefault to an non existent element XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldSetDefaultElementNotPresentXHTML(CodeGuy $I)
    {
        $this->passwordFieldSetDefaultElementNotPresent($I, true);
    }

    /**
     * Tests passwordField with displayTo to an non existent element
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldDisplayToElementNotPresent(CodeGuy $I)
    {
        $this->passwordFieldDisplayToElementNotPresent($I, false);
    }

    /**
     * Tests passwordField with displayTo to an non existent element XHTML
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     */
    public function testPasswordFieldDisplayToElementNotPresentXHTML(CodeGuy $I)
    {
        $this->passwordFieldDisplayToElementNotPresent($I, true);
    }


    /**
     * PRIVATE METHODS
     */
    /**
     * Runs tests with string as a parameter for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldBasic(CodeGuy $I, $xhtml)
    {
        $options  = 'some_field_name';
        $expected = '<input type="password" id="some_field_name" '
                  . 'name="some_field_name"';

        $this->runBasic('passwordField', $I, $options, $expected, $xhtml);
    }

    /**
     * Runs tests with array as parameters for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldWithArrayBasic(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
        );
        $expected = '<input type="password" id="some_field_name" '
                  . 'name="some_field_name" class="some_class"';

        $this->runWithArrayBasic('passwordField', $I, $options, $expected, $xhtml);
    }

    /**
     * Runs tests with id in parameters for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldWithIdInParameters(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field_name',
            'id'    => 'some_id',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_id" name="some_field_name" '
                  . 'class="some_class" size="10"';

        $this->runWithIdInParameters('passwordField', $I, $options, $expected, $xhtml);
    }

    /**
     * Runs tests with name and no id in parameters for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldWithNameAndNotIdInParameters(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field_name',
            'name'  => 'some_other_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field_name" '
                  . 'name="some_other_name" class="some_class" size="10"';

        $this->runWithNameAndNotIdInParameters(
            'passwordField',
            $I,
            $options,
            $expected,
            $xhtml
        );
    }

    /**
     * Runs tests with setDefault for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldSetDefault(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field_name" '
                  . 'name="some_field_name" value="some_default_value" '
                  . 'class="some_class" size="10"';

        $this->runSetDefault(
            'passwordField',
            $I,
            $options,
            $expected,
            $xhtml
        );
    }

    /**
     * Runs tests with displayTo for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldDisplayTo(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field_name',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field_name" '
                  . 'name="some_field_name" value="some_default_value" '
                  . 'class="some_class" size="10"';

        $this->runDisplayTo(
            'passwordField',
            $I,
            $options,
            $expected,
            $xhtml
        );
    }

    /**
     * Runs tests with setDefault to an non existent element for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldSetDefaultElementNotPresent(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field" '
                  . 'name="some_field" class="some_class" '
                  . 'size="10"';

        $this->runSetDefault(
            'passwordField',
            $I,
            $options,
            $expected,
            $xhtml
        );
    }

    /**
     * Runs tests with displayTo to an non existent element for XHTML or not
     *
     * @author <NAME> <<EMAIL>>
     * @since  2014-09-05
     *
     * @param CodeGuy $I
     * @param Boolean $xhtml
     */
    private function passwordFieldDisplayToElementNotPresent(CodeGuy $I, $xhtml)
    {
        $options = array(
            'some_field',
            'class' => 'some_class',
            'size'  => '10',
        );
        $expected = '<input type="password" id="some_field" '
                  . 'name="some_field" class="some_class" '
                  . 'size="10"';

        $this->runDisplayTo(
            'passwordField',
            $I,
            $options,
            $expected,
            $xhtml
        );
    }
}
{'fraction_non_alphanumeric': 0.1410736087590091, 'fraction_numerical': 0.017013902563900594, 'mean_word_length': 2.0067495559502664, 'pattern_counts': {'":': 0, '<': 166, '<?xml version=': 0, '>': 258, 'https://': 0, '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': '1453139', 'n_tokens_mistral': 8047, 'n_tokens_neox': 7615, 'n_words': 1584}