<commit_before><persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">
    <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
        <!-- Mailbox stuff-->
        <class>org.apache.james.imap.jpa.mail.model.JPAHeader</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAMailbox</class>
        <class>org.apache.james.imap.jpa.mail.model.AbstractJPAMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.AbstractJPAMessage</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAMessage</class>
        <class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMessage</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAProperty</class>
        <class>org.apache.james.imap.jpa.user.model.JPASubscription</class>

        <!-- UsersRepository -->
        <class>org.apache.james.server.jpa.JPAUser</class>

        <properties>
            <!-- workaround for MYSQL till openjpa 1.3 or 2.0.0 was released -->
            <!-- see https://issues.apache.org/jira/browse/OPENJPA-740 -->
            <!-- IF YOU USE MYSQL UNCOMMENT THIS -->
            <!--  
            <property name="openjpa.jdbc.DBDictionary" value="blobTypeName=LONGBLOB"/>
            -->
            <!--  create tables on startup -->
            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
        </properties>
    </persistence-unit>
</persistence><commit_msg>Add some comments about what todo when you want to use Streaming to avoid to confuse the EntityManager (IMAP-133)<commit_after><persistence xmlns="http://java.sun.com/xml/ns/persistence"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    version="1.0">
    <persistence-unit name="James" transaction-type="RESOURCE_LOCAL">
        <!-- Mailbox stuff-->
        <class>org.apache.james.imap.jpa.mail.model.JPAHeader</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAMailbox</class>
        <class>org.apache.james.imap.jpa.mail.model.AbstractJPAMessage</class>
        <class>org.apache.james.imap.jpa.mail.model.AbstractJPAMailboxMembership</class>
        <!-- This needs to get used when you want to use streaming. Remember to comment the following classes
             org.apache.james.imap.jpa.mail.model.JPAMailboxMembership
             org.apache.james.imap.jpa.mail.model.JPAMessage
             
             If you don't do this the EntityManager will get confused
         -->
         <!-- 
        <class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.openjpa.JPAStreamingMessage</class>
         -->
         
         <!-- Comment if you want to use streaming -->
        <class>org.apache.james.imap.jpa.mail.model.JPAMailboxMembership</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAMessage</class>
        <class>org.apache.james.imap.jpa.mail.model.JPAProperty</class>
        <class>org.apache.james.imap.jpa.user.model.JPASubscription</class>

        <!-- UsersRepository -->
        <class>org.apache.james.server.jpa.JPAUser</class>

        <properties>
            <!-- workaround for MYSQL till openjpa 1.3 or 2.0.0 was released -->
            <!-- see https://issues.apache.org/jira/browse/OPENJPA-740 -->
            <!-- IF YOU USE MYSQL UNCOMMENT THIS -->
            <!--  
            <property name="openjpa.jdbc.DBDictionary" value="blobTypeName=LONGBLOB"/>
            -->
            <!--  create tables on startup -->
            <property name="openjpa.jdbc.SynchronizeMappings" value="buildSchema(ForeignKeys=true)"/>
        </properties>
    </persistence-unit>
</persistence>
{'fraction_non_alphanumeric': 0.1476096599310005, 'fraction_numerical': 0.008132084770823066, 'mean_word_length': 2.601597160603372, 'pattern_counts': {'":': 0, '<': 82, '<?xml version=': 0, '>': 82, 'https://': 2, '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': '2393955', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1318, 'n_words': 160}