<commit_before><?php
/*
* This file is a part of GraphQL project.
*
* @author <NAME> <<EMAIL>>
* created: 12/4/15 12:41 AM
*/

namespace Youshido\GraphQL\Type\Scalar;


class IdType extends AbstractScalarType
{

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

    public function serialize($value)
    {
        return (string)$value;
    }

    public function getDescription()<commit_msg>Fix bug #184 - Nullable IdType<commit_after><?php
/*
* This file is a part of GraphQL project.
*
* @author <NAME> <<EMAIL>>
* created: 12/4/15 12:41 AM
*/

namespace Youshido\GraphQL\Type\Scalar;


class IdType extends AbstractScalarType
{

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

    public function serialize($value)
    {
        if (null === $value) {
            return null;
        }

        return (string)$value;
    }

    public function getDescription()
{'fraction_non_alphanumeric': 0.11941964285714286, 'fraction_numerical': 0.0234375, 'mean_word_length': 2.588, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '7028248', 'n_tokens_mistral': 302, 'n_tokens_neox': 280, 'n_words': 78}