<commit_before><?xml version="1.0"?>

<realm-config xmlns="http://www.wyona.org/yanel/realm/1.0">
<!--
<realm-config class="org.wyona.yanel.impl.map.FOAFRealm" xmlns="http://www.wyona.org/yanel/realm/1.0">
-->
  <name>Yanel From Scratch Realm</name>
  <name target-environment="dev">Yanel From Scratch Realm (Development)</name>

  <rti>config/rti-repository.xml</rti>
<!--
  <data>config/jcr-data-repository-cnode1.xml</data>
-->
  <data>config/vfs-data-repository.xml</data>

  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">config/ac-policies-repository.xml</ac-policies>

<!-- NOTE: Not implemented yet! But as a proposal to make the PolicyManager aware of realm specific usecases.
  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">
    <security:config xmlns:security="http//www.wyona.org/security/policy/2.1">config/ac-policies-repository.xml</security:config>
    <security:usecases xmlns:security="http//www.wyona.org/security/policy/2.1">
      <security:usecase>workflow.approve</security:usecase>
      <security:usecase>workflow.publish</security:usecase>
    </security:usecases>
  </ac-policies>
-->

  <ac-identities>config/ac-identities-repository.xml</ac-identities>

<!-- INFO: If no class attribute is set, then IdentityManagerFactoryImpl will be used as default (see src/core/java/org/wyona/yanel/core/map/RealmDefaultImpl.java)
  <ac-identities class="org.wyona.security.impl.IdentityManagerFactoryImpl" xmlns:yarep="http://www.wyona.org/yarep/1.0.0">
    <yarep:repository-config>config/ac-identities-repository.xml</yarep:repository-config>
    <yarep:group-implementation class="org.wyona.security.impl.yarep.YarepGroupImplV2"/>
  </ac-identities>
-->

<!-- INFO: As an alternative identities manager, one might want to use the LDAP based identities manager
  <ac-identities class="org.wyona.security.impl.ldap.LDAPIdentityManagerFactoryImpl">
    <ldap:config xmlns:ldap="http://www.wyona.org/security/identity/1.0">
      <ldap:yarep-repo>config/ac-identities-repository.xml</ldap:yarep-repo>
      <ldap:client-implementation>org.wyona.security.impl.ldap.LDAPClientImpl</ldap:client-implementation>
      <ldap:client-implementationDISABLED>foo.bar.security.impl.ldap.LDAPClientImpl</ldap:client-implementationDISABLED>
      <ldap:provider-url>ldap://127.0.0.1:10389</ldap:provider-url>
      <ldap:provider-urlDISABLED>ldap://192.168.200.109:389</ldap:provider-urlDISABLED>
      <ldap:security-authentication>simple</ldap:security-authentication>
      <ldap:security-protocolDISABLED>ssl</ldap:security-protocolDISABLED>
      <ldap:use-ldap>true</ldap:use-ldap>
    </ldap:config>
  </ac-identities>
-->



<!--
  <web-authenticator class="org.wyona.yanel.servlet.security.impl.DefaultWebAuthenticatorImpl"/>
-->

  <default-language>en</default-language>
  <languages>
    <language>en</language>
    <language>de</language>
    <!--<language>es</language>--> <!-- Also data-repo/data/translations.xml -->
  </languages>
  <translation-manager class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"/>
<!--
  <language-handler class="org.wyona.yanel.impl.StaticLanguageHandler"/>
-->

<!--
  <yarep-repositories>
    <repository id="my-extra-repository" config="config/my-extra-repository.xml"/>
  </yarep-repositories>
-->

  <i18n-catalogue>yanelrepo:/i18n-from-scratch-realm.xml</i18n-catalogue>
<commit_msg>wrong target env added as example<commit_after><?xml version="1.0"?>

<realm-config xmlns="http://www.wyona.org/yanel/realm/1.0">
<!--
<realm-config class="org.wyona.yanel.impl.map.FOAFRealm" xmlns="http://www.wyona.org/yanel/realm/1.0">
-->
  <name>Yanel From Scratch Realm</name>
  <name target-environment="dev">Yanel From Scratch Realm (Development)</name>

  <rti>config/rti-repository.xml</rti>
<!--
  <data>config/jcr-data-repository-cnode1.xml</data>
-->
  <data>config/vfs-data-repository.xml</data>

  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">config/ac-policies-repository.xml</ac-policies>

<!-- NOTE: Not implemented yet! But as a proposal to make the PolicyManager aware of realm specific usecases.
  <ac-policies class="org.wyona.security.impl.PolicyManagerFactoryImplVersion2">
    <security:config xmlns:security="http//www.wyona.org/security/policy/2.1">config/ac-policies-repository.xml</security:config>
    <security:usecases xmlns:security="http//www.wyona.org/security/policy/2.1">
      <security:usecase>workflow.approve</security:usecase>
      <security:usecase>workflow.publish</security:usecase>
    </security:usecases>
  </ac-policies>
-->

  <ac-identities>config/ac-identities-repository.xml</ac-identities>

<!-- INFO: If no class attribute is set, then IdentityManagerFactoryImpl will be used as default (see src/core/java/org/wyona/yanel/core/map/RealmDefaultImpl.java)
  <ac-identities class="org.wyona.security.impl.IdentityManagerFactoryImpl" xmlns:yarep="http://www.wyona.org/yarep/1.0.0">
    <yarep:repository-config>config/ac-identities-repository.xml</yarep:repository-config>
    <yarep:group-implementation class="org.wyona.security.impl.yarep.YarepGroupImplV2"/>
  </ac-identities>
-->

<!-- INFO: As an alternative identities manager, one might want to use the LDAP based identities manager
  <ac-identities class="org.wyona.security.impl.ldap.LDAPIdentityManagerFactoryImpl">
    <ldap:config xmlns:ldap="http://www.wyona.org/security/identity/1.0">
      <ldap:yarep-repo>config/ac-identities-repository.xml</ldap:yarep-repo>
      <ldap:client-implementation>org.wyona.security.impl.ldap.LDAPClientImpl</ldap:client-implementation>
      <ldap:client-implementationDISABLED>foo.bar.security.impl.ldap.LDAPClientImpl</ldap:client-implementationDISABLED>
      <ldap:provider-url>ldap://127.0.0.1:10389</ldap:provider-url>
      <ldap:provider-urlDISABLED>ldap://192.168.200.109:389</ldap:provider-urlDISABLED>
      <ldap:security-authentication>simple</ldap:security-authentication>
      <ldap:security-protocolDISABLED>ssl</ldap:security-protocolDISABLED>
      <ldap:use-ldap>true</ldap:use-ldap>
    </ldap:config>
  </ac-identities>
-->



<!--
  <web-authenticator class="org.wyona.yanel.servlet.security.impl.DefaultWebAuthenticatorImpl"/>
-->

  <default-language>en</default-language>
  <languages>
    <language>en</language>
    <language>de</language>
    <!--<language>es</language>--> <!-- Also data-repo/data/translations.xml -->
    <language target-environment="no-such-target-env-hence-drop-it">de</language>
  </languages>
  <translation-manager class="org.wyona.yanel.core.attributes.translatable.PrefixTranslationManager"/>
<!--
  <language-handler class="org.wyona.yanel.impl.StaticLanguageHandler"/>
-->

<!--
  <yarep-repositories>
    <repository id="my-extra-repository" config="config/my-extra-repository.xml"/>
  </yarep-repositories>
-->

  <i18n-catalogue>yanelrepo:/i18n-from-scratch-realm.xml</i18n-catalogue>

{'fraction_non_alphanumeric': 0.16661874640598046, 'fraction_numerical': 0.014663599769982749, 'mean_word_length': 4.7975, 'pattern_counts': {'":': 0, '<': 165, '<?xml version=': 2, '>': 165, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, 'xml': 36}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2883714', 'n_tokens_mistral': 2476, 'n_tokens_neox': 2425, 'n_words': 253}