<commit_before><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:component-scan
        base-package="org.opens.tgol.controller"/>

    <bean id="loginController" class="org.opens.tgol.controller.LoginController">
        <property name="guestUser" value="guest"/>
        <property name="guestPassword" value="<PASSWORD>"/>
        <property name="authenticationManager">
            <ref bean="authenticationManager"/>
        </property>
    </bean>

    <bean id="homeController" class="org.opens.tgol.controller.HomeController">
        <property name="displayOptionFieldsBuilderList">
            <list>
                <ref bean="displayContractElementSelectFormFieldBuilder"/>
                <ref bean="displayContractOrderSelectFormFieldBuilder"/>
                <ref bean="inclusionRegexpContractFormFieldBuilder"/>
                <ref bean="exclusionRegexpContractFormFieldBuilder"/>
            </list>
        </property>
<!--        <property name="exclusionContractSortKey" value="label-exclusion-choice"/>
        <property name="inclusionContractSortKey" value="label-inclusion-choice"/>
        <property name="sortByKey" value="sort-by-choice"/>
        <property name="sortOrderKey" value="order-choice"/>
        <property name="lastAuditMarkSortValue" value="mark"/>
        <property name="lastAuditDateSortValue" value="date"/>-->
    </bean>

    <bean id="contractController" class="org.opens.tgol.controller.ContractController">
        <property name="authorizedFunctionalityForTrend">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
<!--        <property name="actionHandler" ref="contractActionHandler"/>-->
    </bean>

    <bean id="pageListController" class="org.opens.tgol.controller.PageListController">
        <property name="authorizedPageSizeList">
            <list>
                <value>10</value>
                <value>25</value>
                <value>50</value>
                <value>100</value>
                <value>250</value>
                <value>1000</value>
                <value>-1</value>
            </list>
        </property>
        <property name="authorizedScopeForPageList">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
    </bean>

    <bean id="auditResultController" class="org.opens.tgol.controller.AuditResultController">
        <property name="parametersToDisplay">
            <map>
                <entry key="LEVEL">
                    <value>level</value>
                </entry>
                <entry key="DATA_TABLE_MARKER">
                    <value>data-table</value>
                </entry>
                <entry key="PRESENTATION_TABLE_MARKER">
                    <value>presentation-table</value>
                </entry>
                <entry key="DECORATIVE_IMAGE_MARKER">
                    <value>decorative-image</value>
                </entry>
                <entry key="INFORMATIVE_IMAGE_MARKER">
                    <value>informative-image</value>
                </entry>
                <entry key="ALTERNATIVE_CONTRAST_MECHANISM">
                    <value>contrast-alternative</value>
                </entry>
            </map>
        </property>
        <property name="authorizedScopeForPageList">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
        <property name="authorizedRefForCriterionViewList">
            <list>
                <value>AW21</value>
                <value>AW22</value>
            </list>
        </property>
        <property name="actionHandler" ref="resultActionHandler"/>
        <property name="formFieldBuilderList">
            <list>
                <ref bean="aw21ThemeSelectFormFieldBuilder"/>
                <ref bean="aw22ThemeSelectFormFieldBuilder"/>
                <ref bean="rgaa22ThemeSelectFormFieldBuilder"/>
                <ref bean="testResultCheckboxFormFieldBuilder"/>
            </list>
        </property>
        <property name="themeSortKey" value="theme"/>
        <property name="testResultSortKey" value="test-result"/>
    </bean>

    <bean id="auditSynthesisController" class="org.opens.tgol.controller.AuditSynthesisController">
        <property name="nbOfDisplayedFailedTest" value="5"/><commit_msg>injection du service de calcul des stat dans le controleur <commit_after><?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context-3.0.xsd">

    <context:component-scan
        base-package="org.opens.tgol.controller"/>

    <bean id="loginController" class="org.opens.tgol.controller.LoginController">
        <property name="guestUser" value="guest"/>
        <property name="guestPassword" value="<PASSWORD>"/>
        <property name="authenticationManager">
            <ref bean="authenticationManager"/>
        </property>
    </bean>

    <bean id="homeController" class="org.opens.tgol.controller.HomeController">
        <property name="displayOptionFieldsBuilderList">
            <list>
                <ref bean="displayContractElementSelectFormFieldBuilder"/>
                <ref bean="displayContractOrderSelectFormFieldBuilder"/>
                <ref bean="inclusionRegexpContractFormFieldBuilder"/>
                <ref bean="exclusionRegexpContractFormFieldBuilder"/>
            </list>
        </property>
<!--        <property name="exclusionContractSortKey" value="label-exclusion-choice"/>
        <property name="inclusionContractSortKey" value="label-inclusion-choice"/>
        <property name="sortByKey" value="sort-by-choice"/>
        <property name="sortOrderKey" value="order-choice"/>
        <property name="lastAuditMarkSortValue" value="mark"/>
        <property name="lastAuditDateSortValue" value="date"/>-->
    </bean>

    <bean id="contractController" class="org.opens.tgol.controller.ContractController">
        <property name="authorizedFunctionalityForTrend">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
<!--        <property name="actionHandler" ref="contractActionHandler"/>-->
    </bean>

    <bean id="pageListController" class="org.opens.tgol.controller.PageListController">
        <property name="authorizedPageSizeList">
            <list>
                <value>10</value>
                <value>25</value>
                <value>50</value>
                <value>100</value>
                <value>250</value>
                <value>1000</value>
                <value>-1</value>
            </list>
        </property>
        <property name="authorizedScopeForPageList">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
    </bean>

    <bean id="auditResultController" class="org.opens.tgol.controller.AuditResultController">
        <property name="webResourceStatisticsDataService" ref="webResourceStatisticsDataServiceBean"/>
        <property name="parametersToDisplay">
            <map>
                <entry key="LEVEL">
                    <value>level</value>
                </entry>
                <entry key="DATA_TABLE_MARKER">
                    <value>data-table</value>
                </entry>
                <entry key="PRESENTATION_TABLE_MARKER">
                    <value>presentation-table</value>
                </entry>
                <entry key="DECORATIVE_IMAGE_MARKER">
                    <value>decorative-image</value>
                </entry>
                <entry key="INFORMATIVE_IMAGE_MARKER">
                    <value>informative-image</value>
                </entry>
                <entry key="ALTERNATIVE_CONTRAST_MECHANISM">
                    <value>contrast-alternative</value>
                </entry>
            </map>
        </property>
        <property name="authorizedScopeForPageList">
            <list>
                <value>DOMAIN</value>
                <value>SCENARIO</value>
            </list>
        </property>
        <property name="authorizedRefForCriterionViewList">
            <list>
                <value>AW21</value>
                <value>AW22</value>
            </list>
        </property>
        <property name="actionHandler" ref="resultActionHandler"/>
        <property name="formFieldBuilderList">
            <list>
                <ref bean="aw21ThemeSelectFormFieldBuilder"/>
                <ref bean="aw22ThemeSelectFormFieldBuilder"/>
                <ref bean="rgaa22ThemeSelectFormFieldBuilder"/>
                <ref bean="testResultCheckboxFormFieldBuilder"/>
            </list>
        </property>
        <property name="themeSortKey" value="theme"/>
        <property name="testResultSortKey" value="test-result"/>
    </bean>
    
    <bean id="webResourceStatisticsDataServiceBean" class="org.opens.tanaguru.entity.service.statistics.WebResourceStatisticsDataServiceImpl">
    	<property name="entityDao" ref="webResourceStatisticsDAO"/>
        <property name="entityFactory" ref="webResourceStatisticsFactory"/>
    </bean>

    <bean id="auditSynthesisController" class="org.opens.tgol.controller.AuditSynthesisController">
        <property name="nbOfDisplayedFailedTest" value="5"/>
{'fraction_non_alphanumeric': 0.1316656971107233, 'fraction_numerical': 0.0077564475470234635, 'mean_word_length': 2.154434250764526, 'pattern_counts': {'":': 0, '<': 262, '<?xml version=': 2, '>': 262, 'https://': 0, 'lorem ipsum': 0, 'www.': 14, 'xml': 8}, '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': '3838600', 'n_tokens_mistral': 2806, 'n_tokens_neox': 2653, 'n_words': 372}