<commit_before><?php

namespace UniMapper\Entity\Reflection\Property\Option;

use UniMapper\Entity\Reflection;
use UniMapper\Exception\OptionException;

class Primary implements Reflection\Property\IOption
{

    const KEY = "primary";

    public static function create(
        Reflection\Property $property,
        $value = null,
        array $parameters = []
    ) {
        if ($property->getEntityReflection()->hasPrimary()) {
            var_dump($property->getEntityReflection()->getPrimaryProperty()->getName());
            var_dump($property->getName());
            throw new OptionException("Primary property already defined!");
        }

        // Validate primary type
        $requiredType = [
            Reflection\Property::TYPE_DOUBLE,
            Reflection\Property::TYPE_INTEGER,<commit_msg>removed forgotten var_dump<commit_after><?php

namespace UniMapper\Entity\Reflection\Property\Option;

use UniMapper\Entity\Reflection;
use UniMapper\Exception\OptionException;

class Primary implements Reflection\Property\IOption
{

    const KEY = "primary";

    public static function create(
        Reflection\Property $property,
        $value = null,
        array $parameters = []
    ) {
        if ($property->getEntityReflection()->hasPrimary()) {
            throw new OptionException("Primary property already defined!");
        }

        // Validate primary type
        $requiredType = [
            Reflection\Property::TYPE_DOUBLE,
            Reflection\Property::TYPE_INTEGER,
{'fraction_non_alphanumeric': 0.10554089709762533, 'fraction_numerical': 0.0, 'mean_word_length': 2.9402597402597404, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3514767', 'n_tokens_mistral': 373, 'n_tokens_neox': 361, 'n_words': 79}