<commit_before><?php

namespace Nerdstorm\GoogleBooks\Annotations\Definition;

/**
 * @Annotation
 * @Target("PROPERTY")
 */
class JsonProperty
{
    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $type = 'string';

    public function __construct($options)
    {
        $this->name = $options['value'];

        if (isset($options['type'])) {
            $this->type = $options['type'];
        }
    }

    /**
     * Get the name of the JSON property mapping
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Get the data type of the JSON property.
     * Return value would be static type or 'entity' for object mappings
     *
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Return the camel-cased name of the property
     *
     * @return string
     */
    function getRelatedMethodName()
    {
        return str_replace(' ', '', ucwords(str_replace('-', ' ', $this->name)));
    }
}<commit_msg>Added className to JsonProperty annotation<commit_after><?php

namespace Nerdstorm\GoogleBooks\Annotations\Definition;

/**
 * @Annotation
 * @Target("PROPERTY")
 */
class JsonProperty
{
    /**
     * @var string
     */
    protected $name;

    /**
     * @var string
     */
    protected $type = 'string';

    /**
     * @var string
     */
    protected class_name;

    public function __construct($options)
    {
        $this->name = $options['value'];

        if (isset($options['type'])) {
            $this->type = $options['type'];
        }

        if (isset($options['className'])) {
            $this->class_name = $options['className'];
        }
    }

    /**
     * Get the name of the JSON property mapping
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Get the data type of the JSON property.
     * Return value would be static type or 'entity' for object mappings
     *
     * @return string
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * Get the class name set in the property
     *
     * @return string
     */
    public function getClassName()
    {
        return $this->class_name;
    }

    /**
     * Return the camel-cased name of the property
     *
     * @return string
     */
    function getRelatedMethodName()
    {
        return str_replace(' ', '', ucwords(str_replace('-', ' ', $this->name)));
    }
}
{'fraction_non_alphanumeric': 0.1389751552795031, 'fraction_numerical': 0.0, 'mean_word_length': 1.8633333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5044075', 'n_tokens_mistral': 764, 'n_tokens_neox': 740, 'n_words': 189}