<commit_before><?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping
        xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
    http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <mapped-superclass name="ZfrOAuth2\Server\Entity\AbstractToken">
        <id name="token" type="string" length="40" />
        <many-to-one field="client" target-entity="ZfrOAuth2\Server\Entity\Client" />
        <many-to-one field="owner" target-entity="ZfrOAuth2\Server\Entity\TokenOwnerInterface" fetch="EAGER" />
        <field name="expiresAt" column="expires_at" type="datetime" />
        <field name="scopes" type="json_array" />
    </mapped-superclass>
</doctrine-mapping>
<commit_msg>Add on-delete cascade in mapping<commit_after><?xml version="1.0" encoding="UTF-8"?>
<doctrine-mapping
        xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
    http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">

    <mapped-superclass name="ZfrOAuth2\Server\Entity\AbstractToken">
        <id name="token" type="string" length="40" />
        <many-to-one field="client" target-entity="ZfrOAuth2\Server\Entity\Client" />
        <many-to-one field="owner" target-entity="ZfrOAuth2\Server\Entity\TokenOwnerInterface" fetch="EAGER">
            <join-column on-delete="CASCADE" />
        </many-to-one>
        <field name="expiresAt" column="expires_at" type="datetime" />
        <field name="scopes" type="json_array" />
    </mapped-superclass>
</doctrine-mapping>

{'fraction_non_alphanumeric': 0.17109634551495018, 'fraction_numerical': 0.014396456256921373, 'mean_word_length': 3.7804232804232805, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 2, '>': 25, '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': '1086347', 'n_tokens_mistral': 617, 'n_tokens_neox': 595, 'n_words': 67}