<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-access="field"
    package="org.libreplan.business.common.entities">

    <!-- Configuration -->
    <class name="Configuration" table="configuration">
        <id name="id" column="id" type="long" access="property">
            <generator class="hilo">
                <param name="max_lo">100</param>
            </generator>
        </id>
        <version name="version" access="property" type="long" />

        <!-- Not indexed -->
        <many-to-one name="defaultCalendar" cascade="none"
            column="configuration_id" />

        <property name="companyCode" column="company_code" />
        <property name="generateCodeForCostCategory" not-null="true"
            column="generate_code_for_cost_category" />
        <property name="generateCodeForCalendarExceptionType" not-null="true"
            column="generate_code_for_calendar_exception_type" />
        <property name="generateCodeForWorkReportType" not-null="true"
            column="generate_code_for_work_report_type" />
        <property name="generateCodeForCriterion" not-null="true"
            column="generate_code_for_criterion" />
        <property name="generateCodeForLabel" not-null="true"
            column="generate_code_for_label" />
        <property name="generateCodeForWorkReport" not-null="true"
            column="generate_code_for_work_report" />
        <property name="generateCodeForResources" not-null="true"
            column="generate_code_for_resources" />
        <property name="generateCodeForTypesOfWorkHours" not-null="true"
            column="generate_code_for_types_of_work_hours" />
        <property name="generateCodeForMaterialCategories" not-null="true"
            column="generate_code_for_material_categories" />
        <property name="generateCodeForUnitTypes" not-null="true"
            column="generate_code_for_unit_types" />
        <property name="generateCodeForBaseCalendars" not-null="true"
            column="generate_code_for_base_calendars" />
        <property name="generateCodeForExpenseSheets" not-null="true"
            column="generate_code_for_expense_sheets" />
        <property name="monteCarloMethodTabVisible" not-null="true"
            column="monte_carlo_method_tab_visible" />
        <property name="changedDefaultAdminPassword" not-null="true"
            column="changed_default_admin_password" />
        <property name="changedDefaultUserPassword" not-null="true"
            column="changed_default_user_password" />
        <property name="changedDefaultWsreaderPassword" not-null="true"
            column="changed_default_wsreader_password" />
        <property name="changedDefaultWswriterPassword" not-null="true"
            column="changed_default_wswriter_password" />
        <property name="autocompleteLogin" not-null="true"
            column="enabled_autocomplete_login" />
        <property name="checkNewVersionEnabled" not-null="true"
            column="check_new_version_enabled" />
        <property name="allowToGatherUsageStatsEnabled" not-null="true"
            column="allow_to_gather_usage_stats_enabled" />
        <property name="progressType" column="progress_type">
            <type name="org.hibernate.type.EnumType">
                <param name="enumClass">org.libreplan.business.common.entities.ProgressType</param>
            </type>
        </property>

        <property name="companyLogoURL" column="company_logo_url" />

        <property name="scenariosVisible" not-null="true"
            column="scenarios_visible" />

        <property name="currencyCode" not-null="true" column="currency_code" />
        <property name="currencySymbol" not-null="true" column="currency_symbol" />

        <many-to-one name="monthlyTimesheetsTypeOfWorkHours" cascade="none"
            column="monthly_timesheets_type_of_work_hours" />

        <component name="ldapConfiguration" class="org.libreplan.business.common.entities.LDAPConfiguration">
            <property name="ldapHost" column="ldap_Host"/>
            <property name="ldapPort" column="ldap_port"/>
            <property name="ldapBase" column="ldap_base"/>
            <property name="ldapUserDn" column="ldap_userdn"/>
            <property name="ldapPassword" column="ldap_password"/>
            <property name="ldapUserId" column="ldap_userid"/>
            <property name="ldapGroupPath" column="ldap_group_path"/>
            <property name="ldapRoleProperty" column="ldap_role_property"/>
            <property name="ldapSavePasswordsDB" column="ldap_save_password_db" not-null="true"/>
            <property name="ldapAuthEnabled" column="ldap_auth_enabled" not-null="true"/>
            <property name="ldapSaveRolesDB" column="ldap_save_roles_db" not-null="true"/>
            <property name="ldapSearchQuery" column="ldap_search_query"/>
            <property name="ldapGroupStrategy" column="ldap_group_strategy"/>

            <set name="configurationRolesLdap" table="configuration_roles_ldap" lazy="false" batch-size="10">
                <key column="id_configuration" />
                <composite-element class="ConfigurationRolesLDAP">
                    <property name="roleLdap" column="role_ldap"
                        not-null="true" />
                    <property name="roleLibreplan" column="role_libreplan"<commit_msg>Fix typo in Hibernate mapping of Configuration class<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping default-access="field"
    package="org.libreplan.business.common.entities">

    <!-- Configuration -->
    <class name="Configuration" table="configuration">
        <id name="id" column="id" type="long" access="property">
            <generator class="hilo">
                <param name="max_lo">100</param>
            </generator>
        </id>
        <version name="version" access="property" type="long" />

        <!-- Not indexed -->
        <many-to-one name="defaultCalendar" cascade="none"
            column="configuration_id" />

        <property name="companyCode" column="company_code" />
        <property name="generateCodeForCostCategory" not-null="true"
            column="generate_code_for_cost_category" />
        <property name="generateCodeForCalendarExceptionType" not-null="true"
            column="generate_code_for_calendar_exception_type" />
        <property name="generateCodeForWorkReportType" not-null="true"
            column="generate_code_for_work_report_type" />
        <property name="generateCodeForCriterion" not-null="true"
            column="generate_code_for_criterion" />
        <property name="generateCodeForLabel" not-null="true"
            column="generate_code_for_label" />
        <property name="generateCodeForWorkReport" not-null="true"
            column="generate_code_for_work_report" />
        <property name="generateCodeForResources" not-null="true"
            column="generate_code_for_resources" />
        <property name="generateCodeForTypesOfWorkHours" not-null="true"
            column="generate_code_for_types_of_work_hours" />
        <property name="generateCodeForMaterialCategories" not-null="true"
            column="generate_code_for_material_categories" />
        <property name="generateCodeForUnitTypes" not-null="true"
            column="generate_code_for_unit_types" />
        <property name="generateCodeForBaseCalendars" not-null="true"
            column="generate_code_for_base_calendars" />
        <property name="generateCodeForExpenseSheets" not-null="true"
            column="generate_code_for_expense_sheets" />
        <property name="monteCarloMethodTabVisible" not-null="true"
            column="monte_carlo_method_tab_visible" />
        <property name="changedDefaultAdminPassword" not-null="true"
            column="changed_default_admin_password" />
        <property name="changedDefaultUserPassword" not-null="true"
            column="changed_default_user_password" />
        <property name="changedDefaultWsreaderPassword" not-null="true"
            column="changed_default_wsreader_password" />
        <property name="changedDefaultWswriterPassword" not-null="true"
            column="changed_default_wswriter_password" />
        <property name="autocompleteLogin" not-null="true"
            column="enabled_autocomplete_login" />
        <property name="checkNewVersionEnabled" not-null="true"
            column="check_new_version_enabled" />
        <property name="allowToGatherUsageStatsEnabled" not-null="true"
            column="allow_to_gather_usage_stats_enabled" />
        <property name="progressType" column="progress_type">
            <type name="org.hibernate.type.EnumType">
                <param name="enumClass">org.libreplan.business.common.entities.ProgressType</param>
            </type>
        </property>

        <property name="companyLogoURL" column="company_logo_url" />

        <property name="scenariosVisible" not-null="true"
            column="scenarios_visible" />

        <property name="currencyCode" not-null="true" column="currency_code" />
        <property name="currencySymbol" not-null="true" column="currency_symbol" />

        <many-to-one name="monthlyTimesheetsTypeOfWorkHours" cascade="none"
            column="monthly_timesheets_type_of_work_hours" />

        <component name="ldapConfiguration" class="org.libreplan.business.common.entities.LDAPConfiguration">
            <property name="ldapHost" column="ldap_host"/>
            <property name="ldapPort" column="ldap_port"/>
            <property name="ldapBase" column="ldap_base"/>
            <property name="ldapUserDn" column="ldap_userdn"/>
            <property name="ldapPassword" column="ldap_password"/>
            <property name="ldapUserId" column="ldap_userid"/>
            <property name="ldapGroupPath" column="ldap_group_path"/>
            <property name="ldapRoleProperty" column="ldap_role_property"/>
            <property name="ldapSavePasswordsDB" column="ldap_save_password_db" not-null="true"/>
            <property name="ldapAuthEnabled" column="ldap_auth_enabled" not-null="true"/>
            <property name="ldapSaveRolesDB" column="ldap_save_roles_db" not-null="true"/>
            <property name="ldapSearchQuery" column="ldap_search_query"/>
            <property name="ldapGroupStrategy" column="ldap_group_strategy"/>

            <set name="configurationRolesLdap" table="configuration_roles_ldap" lazy="false" batch-size="10">
                <key column="id_configuration" />
                <composite-element class="ConfigurationRolesLDAP">
                    <property name="roleLdap" column="role_ldap"
                        not-null="true" />
                    <property name="roleLibreplan" column="role_libreplan"
{'fraction_non_alphanumeric': 0.12433552572303812, 'fraction_numerical': 0.002162356969096315, 'mean_word_length': 3.3056633048875095, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 2, '>': 131, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '3233936', 'n_tokens_mistral': 3117, 'n_tokens_neox': 3029, 'n_words': 428}