<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
    Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
    default-lazy-init="true"
    xmlns:c="http://www.springframework.org/schema/c"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
    
    <!--
        Import eduGAIN participant beans for namespace stripping stages.
    -->
    <import resource="../cz_eduid/beans.xml"/>
    <import resource="../hu_eduid/beans.xml"/>
    
    <!--
        Location of various resources.
    -->
    <bean id="se_swamid_productionAggregate_url" class="java.lang.String">
        <constructor-arg value="http://md.swamid.se/md/swamid-2.0.xml"/>
    </bean>
    <bean id="se_swamid_edugainAggregate_url" class="java.lang.String">
        <constructor-arg value="http://md2.swamid.se/md/swamid-edugain-1.0.xml"/>
    </bean>
    
    <!--
        Fetch the production aggregate.
    -->
    <bean id="se_swamid_productionAggregate" parent="domResourceStage_parent"
        p:id="se_swamid_productionAggregate">
        <property name="domResource">
            <bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
                <constructor-arg name="client" ref="httpClient"/>
                <constructor-arg name="url"    ref="se_swamid_productionAggregate_url"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Fetch the eduGAIN export aggregate.
    -->
    <bean id="se_swamid_edugainAggregate" parent="domResourceStage_parent"
        p:id="se_swamid_edugainAggregate">
        <property name="domResource">
            <bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
                <constructor-arg name="client" ref="httpClient"/>
                <constructor-arg name="url"    ref="se_swamid_edugainAggregate_url"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Federation signing certificate.
    -->
    <bean id="se_swamid_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
        <property name="certificateFile">
            <bean class="java.io.File">
                <constructor-arg value="#{ systemProperties['basedir'] }/mdx/se_swamid/md-signer.crt"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Check signing signature.
    -->
    <bean id="se_swamid_checkSignature" parent="stage_parent"
        class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
        p:id="se_swamid_checkSignature">
        <property name="verificationCertificate" ref="se_swamid_signingCertificate"/>
    </bean>
    
    <!--
        se_swamid_registrar
        
        Unique ID for the registrar associated with this channel.
    -->
    <bean id="se_swamid_registrar" class="java.lang.String">
        <constructor-arg value="http://www.swamid.se/"/>
    </bean>
    
    <!--
        se_swamid_check_regauth
        
        Any registrationAuthority already present on an entity in this
        channel must match the known registration authority value.
    -->
    <bean id="se_swamid_check_regauth" parent="check_regauth_parent"
        p:id="se_swamid_check_regauth">
        <property name="transformParameters">
            <map>
                <entry key="expectedAuthority" value-ref="se_swamid_registrar"/>
            </map>
        </property>
    </bean>
    
    <!--
        se_swamid_default_regauth
        
        Provide a default registrationAuthority appropriate to
        this channel.
    -->
    <bean id="se_swamid_default_regauth" parent="default_regauth_parent"
        p:id="se_swamid_default_regauth">
        <property name="transformParameters">
            <map>
                <entry key="defaultAuthority" value-ref="se_swamid_registrar"/>
            </map>
        </property>
    </bean>
    
    <!--
        Fetch and process the production entities as a collection.
    -->
    <bean id="se_swamid_productionEntities" parent="composite_parent"
        p:id="se_swamid_productionEntities">
        <property name="composedStages">
            <list>
                <ref bean="se_swamid_productionAggregate"/>

                <!--
                    Check for fatal errors at the aggregate level:
                        missing or expired validUntil attribute
                        invalid signature
                -->
                <!--
                	No validUntil attribute at present.
                -->
                <ref bean="check_validUntil"/>
                <ref bean="se_swamid_checkSignature"/>
                <ref bean="errorTerminatingFilter"/>
                
                <ref bean="disassemble"/>

                <!--
                    The production aggregate contains imported entities from
                    other federations.  So, can have any registrationAuthority,
                    but default it if not present.
                -->
                <ref bean="se_swamid_default_regauth"/>

                <!--
                    Strip eduGAIN participant-specific namespaces.
                -->
                <ref bean="cz_eduid_stripMetadataNamespace"/><commit_msg>Remove a (now) incorrect comment.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
    Common beans for this channel.
-->
<beans xmlns="http://www.springframework.org/schema/beans"
    default-lazy-init="true"
    xmlns:c="http://www.springframework.org/schema/c"
    xmlns:p="http://www.springframework.org/schema/p"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">
    
    <!--
        Import eduGAIN participant beans for namespace stripping stages.
    -->
    <import resource="../cz_eduid/beans.xml"/>
    <import resource="../hu_eduid/beans.xml"/>
    
    <!--
        Location of various resources.
    -->
    <bean id="se_swamid_productionAggregate_url" class="java.lang.String">
        <constructor-arg value="http://md.swamid.se/md/swamid-2.0.xml"/>
    </bean>
    <bean id="se_swamid_edugainAggregate_url" class="java.lang.String">
        <constructor-arg value="http://md2.swamid.se/md/swamid-edugain-1.0.xml"/>
    </bean>
    
    <!--
        Fetch the production aggregate.
    -->
    <bean id="se_swamid_productionAggregate" parent="domResourceStage_parent"
        p:id="se_swamid_productionAggregate">
        <property name="domResource">
            <bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
                <constructor-arg name="client" ref="httpClient"/>
                <constructor-arg name="url"    ref="se_swamid_productionAggregate_url"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Fetch the eduGAIN export aggregate.
    -->
    <bean id="se_swamid_edugainAggregate" parent="domResourceStage_parent"
        p:id="se_swamid_edugainAggregate">
        <property name="domResource">
            <bean class="net.shibboleth.utilities.java.support.httpclient.HttpResource">
                <constructor-arg name="client" ref="httpClient"/>
                <constructor-arg name="url"    ref="se_swamid_edugainAggregate_url"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Federation signing certificate.
    -->
    <bean id="se_swamid_signingCertificate" class="net.shibboleth.ext.spring.factory.X509CertificateFactoryBean">
        <property name="certificateFile">
            <bean class="java.io.File">
                <constructor-arg value="#{ systemProperties['basedir'] }/mdx/se_swamid/md-signer.crt"/>
            </bean>
        </property>
    </bean>
    
    <!--
        Check signing signature.
    -->
    <bean id="se_swamid_checkSignature" parent="stage_parent"
        class="net.shibboleth.metadata.dom.XMLSignatureValidationStage"
        p:id="se_swamid_checkSignature">
        <property name="verificationCertificate" ref="se_swamid_signingCertificate"/>
    </bean>
    
    <!--
        se_swamid_registrar
        
        Unique ID for the registrar associated with this channel.
    -->
    <bean id="se_swamid_registrar" class="java.lang.String">
        <constructor-arg value="http://www.swamid.se/"/>
    </bean>
    
    <!--
        se_swamid_check_regauth
        
        Any registrationAuthority already present on an entity in this
        channel must match the known registration authority value.
    -->
    <bean id="se_swamid_check_regauth" parent="check_regauth_parent"
        p:id="se_swamid_check_regauth">
        <property name="transformParameters">
            <map>
                <entry key="expectedAuthority" value-ref="se_swamid_registrar"/>
            </map>
        </property>
    </bean>
    
    <!--
        se_swamid_default_regauth
        
        Provide a default registrationAuthority appropriate to
        this channel.
    -->
    <bean id="se_swamid_default_regauth" parent="default_regauth_parent"
        p:id="se_swamid_default_regauth">
        <property name="transformParameters">
            <map>
                <entry key="defaultAuthority" value-ref="se_swamid_registrar"/>
            </map>
        </property>
    </bean>
    
    <!--
        Fetch and process the production entities as a collection.
    -->
    <bean id="se_swamid_productionEntities" parent="composite_parent"
        p:id="se_swamid_productionEntities">
        <property name="composedStages">
            <list>
                <ref bean="se_swamid_productionAggregate"/>

                <!--
                    Check for fatal errors at the aggregate level:
                        missing or expired validUntil attribute
                        invalid signature
                -->
                <ref bean="check_validUntil"/>
                <ref bean="se_swamid_checkSignature"/>
                <ref bean="errorTerminatingFilter"/>
                
                <ref bean="disassemble"/>

                <!--
                    The production aggregate contains imported entities from
                    other federations.  So, can have any registrationAuthority,
                    but default it if not present.
                -->
                <ref bean="se_swamid_default_regauth"/>

                <!--
                    Strip eduGAIN participant-specific namespaces.
                -->
                <ref bean="cz_eduid_stripMetadataNamespace"/>
{'fraction_non_alphanumeric': 0.12351136773727896, 'fraction_numerical': 0.003608805485384338, 'mean_word_length': 2.1076534903280066, 'pattern_counts': {'":': 0, '<': 158, '<?xml version=': 2, '>': 158, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 20}, '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': '7185337', 'n_tokens_mistral': 3225, 'n_tokens_neox': 3092, 'n_words': 524}