<commit_before><?xml version="1.0" ?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
        http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">


    <class name="Sonata\NewsBundle\Model\Post">
        <property name="title">
            <constraint name="NotBlank" />
        </property>

        <property name="abstract">
            <constraint name="NotBlank" />
        </property>

        <property name="author">
            <constraint name="Valid" />
        </property>

        <property name="rawContent">
            <constraint name="NotBlank"/>
        </property>

        <property name="tags">
            <constraint name="Valid" />
        </property>

        <property name="commentsDefaultStatus"><commit_msg>Add validation on post slug<commit_after><?xml version="1.0" ?>
<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping
        http://symfony.com/schema/dic/services/constraint-mapping-1.0.xsd">


    <class name="Sonata\NewsBundle\Model\Post">
        <property name="title">
            <constraint name="NotBlank" />
        </property>

        <property name="slug">
            <constraint name="NotBlank" />
        </property>

        <property name="abstract">
            <constraint name="NotBlank" />
        </property>

        <property name="author">
            <constraint name="Valid" />
        </property>

        <property name="rawContent">
            <constraint name="NotBlank"/>
        </property>

        <property name="tags">
            <constraint name="Valid" />
        </property>

        <property name="commentsDefaultStatus">
{'fraction_non_alphanumeric': 0.1562338334195551, 'fraction_numerical': 0.009311950336264873, 'mean_word_length': 2.4169611307420493, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 2, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '5300857', 'n_tokens_mistral': 564, 'n_tokens_neox': 538, 'n_words': 80}