<commit_before><?php

/**
 * Knlv\Zf2\Hydrator\Strategy\DateTimeStrategy
 *
 * @link https://github.com/kanellov/zf2-authentication
 * @copyright Copyright (c) 2015 <NAME> - <EMAIL>
 * @license https://raw.githubusercontent.com/kanellov/zf2-authentication/master/LICENSE
 */

namespace Knlv\Zf2\Hydrator\Strategy;

use DateTime;
use DateTimeZone;
use Zend\Stdlib\Hydrator\Strategy\StrategyInterface;

class DateTimeStrategy implements StrategyInterface
{
    const DEFAULT_FORMAT = 'Y-m-d H:i:s';
    /**
     * @var string
     */
    protected $format;

    /**
     * @var DateTimeZone
     */
    protected $timezone;

    /**
     * Class constructor
     *
     * @param string $format
     * @param string|DateTimeZone $timezone
     */
    public function __construct($format = null, $timezone = null)
    {<commit_msg>fixed license link in class file<commit_after><?php

/**
 * Knlv\Zf2\Hydrator\Strategy\DateTimeStrategy
 *
 * @link https://github.com/kanellov/zf2-hydrator
 * @copyright Copyright (c) 2015 <NAME> - <EMAIL>
 * @license https://raw.githubusercontent.com/kanellov/zf2-hydrator/master/LICENSE
 */

namespace Knlv\Zf2\Hydrator\Strategy;

use DateTime;
use DateTimeZone;
use Zend\Stdlib\Hydrator\Strategy\StrategyInterface;

class DateTimeStrategy implements StrategyInterface
{
    const DEFAULT_FORMAT = 'Y-m-d H:i:s';
    /**
     * @var string
     */
    protected $format;

    /**
     * @var DateTimeZone
     */
    protected $timezone;

    /**
     * Class constructor
     *
     * @param string $format
     * @param string|DateTimeZone $timezone
     */
    public function __construct($format = null, $timezone = null)
    {
{'fraction_non_alphanumeric': 0.127633955448525, 'fraction_numerical': 0.00963275135460566, 'mean_word_length': 3.0935960591133007, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '7315305', 'n_tokens_mistral': 546, 'n_tokens_neox': 529, 'n_words': 105}