<commit_before><?php

/**
 * GpsLab component.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2016, <NAME>
 * @license   http://opensource.org/licenses/MIT
 */

namespace GpsLab\Component\Interval\Year;

use GpsLab\Component\Interval\BaseIntervalPoint;

class YearIntervalPoint extends BaseIntervalPoint
{
    /**
     * @var \DateTime
     */
    private $year;

    /**
     * @param \DateTime $date
     */
    public function __construct(\DateTime $date)
    {
        $this->year = clone $date;
        $this->year->modify('first day of January')->setTime(0, 0, 0);
    }<commit_msg>correct get first day of year in YearIntervalPoint<commit_after><?php

/**
 * GpsLab component.
 *
 * @author    <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2016, <NAME>
 * @license   http://opensource.org/licenses/MIT
 */

namespace GpsLab\Component\Interval\Year;

use GpsLab\Component\Interval\BaseIntervalPoint;

class YearIntervalPoint extends BaseIntervalPoint
{
    /**
     * @var \DateTime
     */
    private $year;

    /**
     * @param \DateTime $date
     */
    public function __construct(\DateTime $date)
    {
        $this->year = clone $date;
        $this->year->setDate($date->format('Y'), 1, 1)->setTime(0, 0, 0);
    }
{'fraction_non_alphanumeric': 0.15329052969502407, 'fraction_numerical': 0.012841091492776886, 'mean_word_length': 2.8487654320987654, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 20, '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': '1759538', 'n_tokens_mistral': 415, 'n_tokens_neox': 393, 'n_words': 88}