<commit_before><?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.1"
  xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">

  <application>
    <locale-config>
      <default-locale>en</default-locale>
      <!-- English -->
      <supported-locale>en</supported-locale>
      <!-- Ukranian -->
      <supported-locale>uk</supported-locale>
      <!-- Traditional Chinese -->
      <supported-locale>zh_TW_Hant</supported-locale>
      <!-- Japanese -->
      <supported-locale>ja</supported-locale>
      <!-- Hungarian -->
      <supported-locale>hu</supported-locale>
      <!-- Breton -->
      <supported-locale>br</supported-locale>
      <!-- Czech -->
      <supported-locale>cs</supported-locale>
      <!-- Italian -->
      <supported-locale>it</supported-locale>
      <!-- Portuguese-Brazil -->
      <supported-locale>pt_BR</supported-locale>
      <!-- French -->
      <supported-locale>fr</supported-locale>

      <!--
      These languages are yet to translated to an acceptable coverage
      See https://translate.zanata.org/zanata/iteration/view/zanata-server/master

      Bulgarian
      <supported-locale>bg</supported-locale>
      Deutsch
      <supported-locale>de</supported-locale>
      Italian
      <supported-locale>it</supported-locale>
      Turkish
      <supported-locale>tr</supported-locale>
      Pseudo - not to be enabled for release
      <supported-locale>qc</supported-locale>
      -->
    </locale-config>

    <!-- Workaround for RichFaces 3.3.3 bug.
         See http://stackoverflow.com/questions/5030182/illegal-attempt-to-set-viewhandler-after-a-response-has-been-rendered
         https://issues.jboss.org/browse/JBAS-8375?focusedCommentId=12550006&page=com.atlassian.jira.plugin.system.issuetabpanels%3acomment-tabpanel#comment-12550006
    -->
    <!--<view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>-->

    <message-bundle>messages</message-bundle>

  </application>
  <lifecycle>
    <phase-listener>org.zanata.security.FedoraOpenIdPhaseListener</phase-listener>
    <phase-listener>org.zanata.ui.faces.FacesMessagesPhaseListener</phase-listener>
  </lifecycle>

  <factory>
    <exception-handler-factory>org.zanata.exception.AjaxViewExpiredExceptionHandlerFactory</exception-handler-factory>
  </factory>

  <render-kit>
    <renderer>
      <component-family>javax.faces.Input</component-family>
      <renderer-type>javax.faces.Text</renderer-type>
      <renderer-class>org.zanata.ui.input.TextInputRenderer</renderer-class>
    </renderer>
  </render-kit>

  <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
      <from-action>#{identity.logout}</from-action>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>home</from-outcome>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for open id authentication -->
  <navigation-rule>
    <from-view-id>/openid.xhtml</from-view-id>
    <navigation-case>
      <if>#{authenticationManager.authenticated and authenticationManager.newUser}</if>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.isLoggedIn() and authenticationManager.authenticatedAccountWaitingForActivation}</if>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.loggedIn and applicationConfiguration.singleOpenIdProvider}</if>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{identity.loggedIn and userRedirect.shouldRedirectToDashboard()}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.loggedIn}</if>
      <to-view-id>/account/login.xhtml</to-view-id>
      <redirect/>
    </navigation-case>

    <navigation-case>
      <!-- Default redirection after a log in is to the dashboard -->
      <if>#{identity.loggedIn}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for Kerberos ticket-based Authentication -->
  <navigation-rule>
    <from-view-id>/account/klogin.xhtml</from-view-id>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'login'}</if>
      <to-view-id>/account/login.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'edit'}</if>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'inactive'}</if>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'dashboard'}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'home'}</if>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for Internal, JAAS and Kerberos form-based
       authentication -->
  <navigation-rule>
    <from-view-id>/account/login.xhtml</from-view-id>
    <navigation-case>
      <from-action>#{loginAction.getLoginPageRedirect()}</from-action>
      <from-outcome>dashboard</from-outcome>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>dashboard</from-outcome>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>createUser</from-outcome>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>inactive</from-outcome>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/account/password_reset_request.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>home</from-outcome>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/account/inactive_account.xhtml</from-view-id><commit_msg>re-fix ZNTA-815 first log in redirects back to sign in page<commit_after><?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.1"
  xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">

  <application>
    <locale-config>
      <default-locale>en</default-locale>
      <!-- English -->
      <supported-locale>en</supported-locale>
      <!-- Ukranian -->
      <supported-locale>uk</supported-locale>
      <!-- Traditional Chinese -->
      <supported-locale>zh_TW_Hant</supported-locale>
      <!-- Japanese -->
      <supported-locale>ja</supported-locale>
      <!-- Hungarian -->
      <supported-locale>hu</supported-locale>
      <!-- Breton -->
      <supported-locale>br</supported-locale>
      <!-- Czech -->
      <supported-locale>cs</supported-locale>
      <!-- Italian -->
      <supported-locale>it</supported-locale>
      <!-- Portuguese-Brazil -->
      <supported-locale>pt_BR</supported-locale>
      <!-- French -->
      <supported-locale>fr</supported-locale>

      <!--
      These languages are yet to translated to an acceptable coverage
      See https://translate.zanata.org/zanata/iteration/view/zanata-server/master

      Bulgarian
      <supported-locale>bg</supported-locale>
      Deutsch
      <supported-locale>de</supported-locale>
      Italian
      <supported-locale>it</supported-locale>
      Turkish
      <supported-locale>tr</supported-locale>
      Pseudo - not to be enabled for release
      <supported-locale>qc</supported-locale>
      -->
    </locale-config>

    <!-- Workaround for RichFaces 3.3.3 bug.
         See http://stackoverflow.com/questions/5030182/illegal-attempt-to-set-viewhandler-after-a-response-has-been-rendered
         https://issues.jboss.org/browse/JBAS-8375?focusedCommentId=12550006&page=com.atlassian.jira.plugin.system.issuetabpanels%3acomment-tabpanel#comment-12550006
    -->
    <!--<view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>-->

    <message-bundle>messages</message-bundle>

  </application>
  <lifecycle>
    <phase-listener>org.zanata.security.FedoraOpenIdPhaseListener</phase-listener>
    <phase-listener>org.zanata.ui.faces.FacesMessagesPhaseListener</phase-listener>
  </lifecycle>

  <factory>
    <exception-handler-factory>org.zanata.exception.AjaxViewExpiredExceptionHandlerFactory</exception-handler-factory>
  </factory>

  <render-kit>
    <renderer>
      <component-family>javax.faces.Input</component-family>
      <renderer-type>javax.faces.Text</renderer-type>
      <renderer-class>org.zanata.ui.input.TextInputRenderer</renderer-class>
    </renderer>
  </render-kit>

  <navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
      <from-action>#{identity.logout}</from-action>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>home</from-outcome>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for open id authentication -->
  <navigation-rule>
    <from-view-id>/openid.xhtml</from-view-id>
    <navigation-case>
      <if>#{authenticationManager.authenticated and authenticationManager.newUser}</if>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.isLoggedIn() and authenticationManager.authenticatedAccountWaitingForActivation}</if>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.loggedIn and applicationConfiguration.singleOpenIdProvider}</if>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{identity.loggedIn and userRedirect.shouldRedirectToDashboard()}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <if>#{!identity.loggedIn}</if>
      <to-view-id>/account/login.xhtml</to-view-id>
      <redirect/>
    </navigation-case>

    <navigation-case>
      <!-- Default redirection after a log in is to the dashboard -->
      <if>#{identity.loggedIn}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for Kerberos ticket-based Authentication -->
  <navigation-rule>
    <from-view-id>/account/klogin.xhtml</from-view-id>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'login'}</if>
      <to-view-id>/account/login.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'edit'}</if>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'inactive'}</if>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'dashboard'}</if>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect />
    </navigation-case>
    <navigation-case>
      <if>#{authenticationManager.authenticationRedirect eq 'home'}</if>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

  <!-- Landing page for Internal, JAAS and Kerberos form-based
       authentication -->
  <navigation-rule>
    <from-view-id>/account/login.xhtml</from-view-id>
    <navigation-case>
      <from-action>#{loginAction.getLoginPageRedirect()}</from-action>
      <from-outcome>dashboard</from-outcome>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>dashboard</from-outcome>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>createUser</from-outcome>
      <to-view-id>/profile/create_user.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <from-outcome>inactive</from-outcome>
      <to-view-id>/account/inactive_account.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
    <navigation-case>
      <!-- default case -->
      <from-outcome>loggedIn</from-outcome>
      <to-view-id>/dashboard/home.xhtml</to-view-id>
      <redirect />
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/account/password_reset_request.xhtml</from-view-id>
    <navigation-case>
      <from-outcome>home</from-outcome>
      <to-view-id>/home.xhtml</to-view-id>
      <redirect/>
    </navigation-case>
  </navigation-rule>

  <navigation-rule>
    <from-view-id>/account/inactive_account.xhtml</from-view-id>
{'fraction_non_alphanumeric': 0.16837870842611882, 'fraction_numerical': 0.006536886717908196, 'mean_word_length': 2.9506242905788875, 'pattern_counts': {'":': 0, '<': 471, '<?xml version=': 2, '>': 471, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 12}, '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': '4224568', 'n_tokens_mistral': 4627, 'n_tokens_neox': 4525, 'n_words': 504}