<commit_before><?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">

    <persistence-unit name="newPersistenceUnit">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.core.mySQLDatabase.models.RegionEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.OrganisationEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.AddressEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.CohortEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DataflowEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DataprocessingagreementEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DatasharingagreementEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DatasharingsummaryEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.MastermappingEntity</class>
        <properties>
            <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/OrganisationManager"/>
            <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
            <property name="hibernate.connection.username" value="root"/>
            <property name="hibernate.connection.password" value="<PASSWORD>"/>
            <property name="hibernate.archive.autodetection" value="class"/>
            <property name="hibernate.show_sql" value="false"/>
            <property name="hibernate.format_sql" value="true"/>
            <property name="hbm2ddl.auto" value="update"/>
            <property name="hibernate.jdbc.batch_size" value="50" />
        </properties>
    </persistence-unit>

    <!--copied from file with the same name in COMMON repo-->
    <persistence-unit name="ConfigurationDb">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.common.config.ConfigEntity</class>
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL95Dialect"/>
            <property name="hibernate.show_sql" value="false" />
            <property name="hibernate.connection.provider_class" value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider"/>
            <property name="hibernate.auth" value="Container" />
            <property name="hibernate.hikari.connectionTimeout" value="300000" />
            <property name="hibernate.hikari.maximumPoolSize" value="2" />
            <property name="hibernate.hikari.minimumIdle" value="1" />
            <property name="hibernate.hikari.dataSourceClassName" value="org.postgresql.ds.PGSimpleDataSource" />

            <property name="hibernate.hikari.dataSource.url" value="jdbc:postgresql://localhost:5432/config"/>
            <property name="hibernate.hikari.dataSource.user" value="postgres"/>
            <property name="hibernate.hikari.dataSource.password" value=""/>
        </properties>
    </persistence-unit>

    <persistence-unit name="EdsDb">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.core.rdbms.eds.PatientSearch</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientSearchLocalIdentifier</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLink</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLinkHistory</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLinkPerson</class>
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL95Dialect"/><commit_msg>Lowering connection pool idle value for config manager in Queue Readers<commit_after><?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="2.0">

    <persistence-unit name="newPersistenceUnit">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.core.mySQLDatabase.models.RegionEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.OrganisationEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.AddressEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.CohortEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DataflowEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DataprocessingagreementEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DatasharingagreementEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.DatasharingsummaryEntity</class>
        <class>org.endeavourhealth.core.mySQLDatabase.models.MastermappingEntity</class>
        <properties>
            <property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/OrganisationManager"/>
            <property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver"/>
            <property name="hibernate.connection.username" value="root"/>
            <property name="hibernate.connection.password" value="<PASSWORD>"/>
            <property name="hibernate.archive.autodetection" value="class"/>
            <property name="hibernate.show_sql" value="false"/>
            <property name="hibernate.format_sql" value="true"/>
            <property name="hbm2ddl.auto" value="update"/>
            <property name="hibernate.jdbc.batch_size" value="50" />
        </properties>
    </persistence-unit>

    <!--copied from file with the same name in COMMON repo-->
    <persistence-unit name="ConfigurationDb">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.common.config.ConfigEntity</class>
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL95Dialect"/>
            <property name="hibernate.show_sql" value="false" />
            <property name="hibernate.connection.provider_class" value="org.hibernate.hikaricp.internal.HikariCPConnectionProvider"/>
            <property name="hibernate.auth" value="Container" />
            <property name="hibernate.hikari.connectionTimeout" value="300000" />
            <property name="hibernate.hikari.maximumPoolSize" value="5" />
            <property name="hibernate.hikari.minimumIdle" value="1" />
            <property name="hibernate.hikari.dataSourceClassName" value="org.postgresql.ds.PGSimpleDataSource" />

            <property name="hibernate.hikari.dataSource.url" value="jdbc:postgresql://localhost:5432/config"/>
            <property name="hibernate.hikari.dataSource.user" value="postgres"/>
            <property name="hibernate.hikari.dataSource.password" value=""/>
        </properties>
    </persistence-unit>

    <persistence-unit name="EdsDb">
        <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
        <class>org.endeavourhealth.core.rdbms.eds.PatientSearch</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientSearchLocalIdentifier</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLink</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLinkHistory</class>
        <class>org.endeavourhealth.core.rdbms.eds.PatientLinkPerson</class>
        <properties>
            <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQL95Dialect"/>
{'fraction_non_alphanumeric': 0.13462559745087627, 'fraction_numerical': 0.007434944237918215, 'mean_word_length': 3.764705882352941, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 2, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5041237', 'n_tokens_mistral': 2300, 'n_tokens_neox': 2109, 'n_words': 229}