<commit_before><?php

namespace UAM\Twig\Extension\I18n\Test;

use DateInterval;
use DateTime;
use PHPUnit_Framework_TestCase;
use Faker\Factory;
use UAM\Twig\Extension\I18n\DurationExtension;

class DurationExtensionTest extends PHPUnit_Framework_TestCase
{
    protected $extension;

    protected $faker;

        public function intervalData()
    {
        return array(
            // array($from, $to, $days, $y, $m, $d)
            array('2015-01-01', '2015-01-31', 31, 0, 1, 0),
            array('2015-01-01', '2015-02-28', 59, 0, 2, 0),
            array('2016-01-01', '2016-02-28', 59, 0, 1, 28),
            array('2016-01-01', '2016-02-29', 60, 0, 2, 0),
            array('2015-01-02', '2015-02-02', 32, 0, 1, 0),
            array('2015-01-15', '2015-02-15', 32, 0, 1, 0),
            array('2015-01-28', '2015-02-28', 32, 0, 1, 0),
            array('2016-01-28', '2016-02-28', 32, 0, 1, 0),
            array('2016-01-28', '2016-02-29', 33, 0, 1, 1),
            array('2016-01-29', '2016-02-29', 32, 0, 1, 0),<commit_msg>fixed code style<commit_after><?php

namespace UAM\Twig\Extension\I18n\Test;

use DateInterval;
use DateTime;
use PHPUnit_Framework_TestCase;
use Faker\Factory;
use UAM\Twig\Extension\I18n\DurationExtension;

class DurationExtensionTest extends PHPUnit_Framework_TestCase
{
    protected $extension;

    protected $faker;

    public function intervalData()
    {
        return array(
            // array($from, $to, $days, $y, $m, $d)
            array('2015-01-01', '2015-01-31', 31, 0, 1, 0),
            array('2015-01-01', '2015-02-28', 59, 0, 2, 0),
            array('2016-01-01', '2016-02-28', 59, 0, 1, 28),
            array('2016-01-01', '2016-02-29', 60, 0, 2, 0),
            array('2015-01-02', '2015-02-02', 32, 0, 1, 0),
            array('2015-01-15', '2015-02-15', 32, 0, 1, 0),
            array('2015-01-28', '2015-02-28', 32, 0, 1, 0),
            array('2016-01-28', '2016-02-28', 32, 0, 1, 0),
            array('2016-01-28', '2016-02-29', 33, 0, 1, 1),
            array('2016-01-29', '2016-02-29', 32, 0, 1, 0),
{'fraction_non_alphanumeric': 0.19624819624819625, 'fraction_numerical': 0.20683020683020684, 'mean_word_length': 2.360258481421648, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1341373', 'n_tokens_mistral': 1083, 'n_tokens_neox': 772, 'n_words': 185}