<commit_before><?php

namespace OpenOrchestra\DisplayBundle\Fake;

use OpenOrchestra\ModelInterface\Model\ContentAttributeInterface;

/**
 * Class FakeContentAttribute
 */
class FakeContentAttribute implements ContentAttributeInterface
{
    protected $name;
    protected $value;

    /**
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
        $this->value = $name . ' value';
    }

    /**
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }
}<commit_msg>add to string method on fake object<commit_after><?php

namespace OpenOrchestra\DisplayBundle\Fake;

use OpenOrchestra\ModelInterface\Model\ContentAttributeInterface;

/**
 * Class FakeContentAttribute
 */
class FakeContentAttribute implements ContentAttributeInterface
{
    protected $name;
    protected $value;

    /**
     * @param string $name
     */
    public function __construct($name)
    {
        $this->name = $name;
        $this->value = $name . ' value';
    }

    /**
     * @param string $name
     */
    public function setName($name)
    {
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param string $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }

    /**
     * @return string
     */
    public function getValue()
    {
        return $this->value;
    }

    /**
     * @return string
     */
    public function __toString()
    {
        return $this->getValue();
    }
}
{'fraction_non_alphanumeric': 0.12927565392354123, 'fraction_numerical': 0.0, 'mean_word_length': 1.9293078055964654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '7648623', 'n_tokens_mistral': 593, 'n_tokens_neox': 586, 'n_words': 125}