<commit_before>Oro\Bundle\UserBundle\Entity\User:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: username
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: email
    properties:
        username:
            - NotBlank:
                groups:   [Registration, Profile]
            - Length:
                min:      3
                max:      255
        email:
            - NotBlank:
                groups:   [Registration, Profile]
            - Length:
                min:      6
                max:      255
            - Email:
                groups:   [Registration, Profile]
        plainPassword:
            - NotBlank:
                groups:   [Registration]
            - Length:
                min:      2
        firstName:
            - Length:
                max:      100
        lastName:
            - Length:
                max:      100
        middleName:
            - Length:
                max:      100

Oro\Bundle\UserBundle\Entity\Role:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: role
    properties:
        role:
            - NotBlank:   ~
            - Length:
                max:      30
            - Regex:      "/^ROLE_[a-zA-Z0-9_]+$/"
        label:
            - Length:
                max:      30

Oro\Bundle\UserBundle\Entity\Group:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
    properties:
        name:
            - NotBlank:   ~
            - Length:
                max:      30
<commit_msg>Fixed middleName validation<commit_after>Oro\Bundle\UserBundle\Entity\User:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: username
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: email
    properties:
        username:
            - NotBlank:
                groups:   [Registration, Profile]
            - Length:
                min:      3
                max:      255
        email:
            - NotBlank:
                groups:   [Registration, Profile]
            - Length:
                min:      6
                max:      255
            - Email:
                groups:   [Registration, Profile]
        plainPassword:
            - NotBlank:
                groups:   [Registration]
            - Length:
                min:      2
        firstName:
            - Length:
                max:      100
        lastName:
            - Length:
                max:      100

Oro\Bundle\UserBundle\Entity\Role:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: role
    properties:
        role:
            - NotBlank:   ~
            - Length:
                max:      30
            - Regex:      "/^ROLE_[a-zA-Z0-9_]+$/"
        label:
            - Length:
                max:      30

Oro\Bundle\UserBundle\Entity\Group:
    constraints:
        - Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name
    properties:
        name:
            - NotBlank:   ~
            - Length:
                max:      30

{'fraction_non_alphanumeric': 0.08312182741116751, 'fraction_numerical': 0.015545685279187817, 'mean_word_length': 1.0554106910039114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '903263', 'n_tokens_mistral': 863, 'n_tokens_neox': 805, 'n_words': 150}