<commit_before><?php
/**
 * @copyright 2015 Contentful GmbH
 * @license   MIT
 */

namespace Contentful\Delivery;

/**
 * Value object encoding a locale.
 *
 * @api
 */
class Locale implements \JsonSerializable
{
    /**
     * @var string
     */
    private $code;

    /**
     * @var string
     */
    private $name;

    /**
     * @var bool
     */
    private $default;

    /**
     * Locale constructor.
     *
     * @param string $code    Locale code
     * @param string $name    Human readable name
     * @param bool   $default Whether this is the default locale
     *
     * @api
     */
    public function __construct($code, $name, $default = false)
    {
        $this->code = $code;
        $this->name = $name;
        $this->default = $default;
    }

    /**
     * Returns the locale code
     *
     * @return string
     *
     * @api
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Returns the human readable name
     *
     * @return string
     *
     * Api
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Returns true if this is the default locale for the space.
     *
     * @return bool
     *
     * @api
     */
    public function isDefault()
    {
        return $this->default;
    }

    /**
     * Returns an object to be used by `json_encode` to serialize objects of this class.
     *
     * @return object
     *
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize
     *
     * @api
     */
    public function jsonSerialize()
    {
        return (object) [
            'code' => $this->code,
            'default' => $this->default,
            'name' => $this->name
        ];
    }
}
<commit_msg>Fixes a typo in the docblock of Locale::getName<commit_after><?php
/**
 * @copyright 2015 Contentful GmbH
 * @license   MIT
 */

namespace Contentful\Delivery;

/**
 * Value object encoding a locale.
 *
 * @api
 */
class Locale implements \JsonSerializable
{
    /**
     * @var string
     */
    private $code;

    /**
     * @var string
     */
    private $name;

    /**
     * @var bool
     */
    private $default;

    /**
     * Locale constructor.
     *
     * @param string $code    Locale code
     * @param string $name    Human readable name
     * @param bool   $default Whether this is the default locale
     *
     * @api
     */
    public function __construct($code, $name, $default = false)
    {
        $this->code = $code;
        $this->name = $name;
        $this->default = $default;
    }

    /**
     * Returns the locale code
     *
     * @return string
     *
     * @api
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Returns the human readable name
     *
     * @return string
     *
     * @api
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Returns true if this is the default locale for the space.
     *
     * @return bool
     *
     * @api
     */
    public function isDefault()
    {
        return $this->default;
    }

    /**
     * Returns an object to be used by `json_encode` to serialize objects of this class.
     *
     * @return object
     *
     * @see http://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize
     *
     * @api
     */
    public function jsonSerialize()
    {
        return (object) [
            'code' => $this->code,
            'default' => $this->default,
            'name' => $this->name
        ];
    }
}

{'fraction_non_alphanumeric': 0.12531120331950207, 'fraction_numerical': 0.0022130013831258644, 'mean_word_length': 1.5977011494252873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '2191527', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1091, 'n_words': 289}