<commit_before><?php
namespace Webit\Shipment\Vendor;

class VendorOptionValue implements VendorOptionValueInterface
{
    /**
     * @var string
     */
    protected $optionCode;

    /**
     * @var mixed
     */
    protected $value;

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

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

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

    /**
     * @param mixed $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }
}<commit_msg>[fix] vendor option value<commit_after><?php
namespace Webit\Shipment\Vendor;

use Webit\Tools\Serializer\MixedValueWrapper;

class VendorOptionValue implements VendorOptionValueInterface
{
    /**
     * @var string
     */
    protected $optionCode;

    /**
     * @var mixed
     */
    protected $value;

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

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

    /**
     * @return mixed
     */
    public function getValue()
    {
        return ($this->value instanceof MixedValueWrapper) ? $this->value->getValue() : $this->value;
    }

    /**
     * @param mixed $value
     */
    public function setValue($value)
    {
        $this->value = $value;
    }
}
{'fraction_non_alphanumeric': 0.12926829268292683, 'fraction_numerical': 0.0, 'mean_word_length': 1.9355992844364938, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, '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': '5694926', 'n_tokens_mistral': 498, 'n_tokens_neox': 488, 'n_words': 99}