<commit_before><?php

/**
 * This file is part of AMNL-GCDataTable.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2012, <NAME> <<EMAIL>>
 * @package AMNL-GCDataTable
 */

namespace AMNL\Google\Chart\Type;

use AMNL\Google\Chart\Type;

/**
 *
 *
 * @author <NAME> <<EMAIL>>
 */
class DateTime implements Type
{

    public function convertToCellValue($object)
    {
        $cellValue = 'Date(' . $object->format('Y') . ',' .
                ($object->format('n') - 1) . ',' .
                $object->format('j') . ',' .
                $object->format('G') . ',' .
                intval($object->format('i')) . ',' .
                intval($object->format('s')) . ')';

        return $cellValue;
    }

    public function convertToStringVersion($object)
    {
        return $object->format(\DateTime::RFC822);
    }

    public function getName()
    {
        return 'datetime';
    }

    public function validate($object)
    {
        return ($object instanceof \DateTime);
    }

    public function __toString()
    {
        return $this->getName();
    }

}<commit_msg>Removed the string version from Type\DateTime<commit_after><?php

/**
 * This file is part of AMNL-GCDataTable.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 *
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2012, <NAME> <<EMAIL>>
 * @package AMNL-GCDataTable
 */

namespace AMNL\Google\Chart\Type;

use AMNL\Google\Chart\Type;

/**
 *
 *
 * @author <NAME> <<EMAIL>>
 */
class DateTime implements Type
{

    public function convertToCellValue($object)
    {
        $cellValue = 'Date(' . $object->format('Y') . ',' .
                ($object->format('n') - 1) . ',' .
                $object->format('j') . ',' .
                $object->format('G') . ',' .
                intval($object->format('i')) . ',' .
                intval($object->format('s')) . ')';

        return $cellValue;
    }

    public function convertToStringVersion($object)
    {
        return null;
    }

    public function getName()
    {
        return 'datetime';
    }

    public function validate($object)
    {
        return ($object instanceof \DateTime);
    }

    public function __toString()
    {
        return $this->getName();
    }

}
{'fraction_non_alphanumeric': 0.16400638467677575, 'fraction_numerical': 0.0051875498802873106, 'mean_word_length': 2.2265122265122264, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 42, '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': '2258235', 'n_tokens_mistral': 778, 'n_tokens_neox': 745, 'n_words': 179}