<commit_before><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  template="../WEB-INF/template/template.xhtml">

  <f:metadata>
    <f:event type="preRenderView" listener="#{identity.checkLoggedIn()}"/>
  </f:metadata>

  <ui:define name="page_title">#{msgs['jsf.Dashboard']}</ui:define>
  <ui:define name="center_content">

    <script type="text/javascript">
      jQuery(function(){
        crossroads.addRoute(':pre*:/dashboard/settings/{subSection}/:?query:', function(pre, subSection, query) {
          zanata.tabs.activate(jQuery('#settings_tab'))
          subSection = subSection || 'account';
          subSection =
            validateTab("#" + subSection + '_tab', subSection, 'account');
          zanata.tabs.activate(jQuery('#' + subSection + '_tab'))
        });

        crossroads.addRoute(':pre*:/dashboard/:section:/:?query:', function(pre, section, query) {
          section = section || 'activity'
          section = validateTab('#' + section + "_tab", section, "activity");
          zanata.tabs.activate(jQuery('#' + section + "_tab"))
        });

        updateStateFromUrl();
      })
    </script>

    <ui:fragment rendered="#{identity.loggedIn}">
      <div class="g">
        <div class="g__item w--1-m w--3-8-l w--1-3 l--push-bottom-half">
          <p class="txt--meta l--push-all-0">#{msgs['jsf.Dashboard']}</p>

          <div class="g--loose">
            <h:panelGroup layout="block"  id="profile-overview" styleClass="g__item w--1-2-m">
              <div class="media l--push-bottom-half">
                <div class="media__item--right bx--round">
                  <img
                    src="#{dashboardAction.getUserImageUrl()}"
                    alt="#{dashboardAction.getUsername()}"/>
                </div>
                <div class="media__body">
                  <h1 class="l--push-all-0">#{dashboardAction.getUserFullName()}</h1>
                  <ul class="list--no-bullets txt--meta">
                    <li><i class="i i--user list__icon" title="Username"></i>#{dashboardAction.getUsername()}
                    </li>
                    <li><i class="i i--language list__icon"
                      title="Spoken languages"></i>#{dashboardAction.getUserLanguageTeams()}
                    </li>
                    <li><i class="i i--users list__icon"
                      title="Roles"></i>#{dashboardAction.getUserRoles()}
                    </li>
                  </ul>
                </div>
              </div>
            </h:panelGroup>
            <div class="g__item w--1-2-m">
              <div class="tabs--lined js-tabs">
                <ul class="tabs__nav js-tabs-nav">
                  <li><a href="javascript:void(0);" id="activity-today_tab" class="is-active" data-content="#activity-today">#{msgs['jsf.activity.today.label']}</a></li>
                  <li><a href="javascript:void(0);" id="activity-week_tab" data-content="#activity-week">#{msgs['jsf.activity.week.label']}</a></li>
                  <li><a href="javascript:void(0);" id="activity-month_tab" data-content="#activity-month">#{msgs['jsf.activity.month.label']}</a></li>
                </ul>
                <ul class="tabs__content js-tabs-content l--pad-h-half l--pad-top-1">
                  <li id="activity-today" class="is-active"><commit_msg>fix(usability): Add link to join a language team (#252)<commit_after><!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:f="http://java.sun.com/jsf/core"
  xmlns:ui="http://java.sun.com/jsf/facelets"
  template="../WEB-INF/template/template.xhtml">

  <f:metadata>
    <f:event type="preRenderView" listener="#{identity.checkLoggedIn()}"/>
  </f:metadata>

  <ui:define name="page_title">#{msgs['jsf.Dashboard']}</ui:define>
  <ui:define name="center_content">

    <script type="text/javascript">
      jQuery(function(){
        crossroads.addRoute(':pre*:/dashboard/settings/{subSection}/:?query:', function(pre, subSection, query) {
          zanata.tabs.activate(jQuery('#settings_tab'))
          subSection = subSection || 'account';
          subSection =
            validateTab("#" + subSection + '_tab', subSection, 'account');
          zanata.tabs.activate(jQuery('#' + subSection + '_tab'))
        });

        crossroads.addRoute(':pre*:/dashboard/:section:/:?query:', function(pre, section, query) {
          section = section || 'activity'
          section = validateTab('#' + section + "_tab", section, "activity");
          zanata.tabs.activate(jQuery('#' + section + "_tab"))
        });

        updateStateFromUrl();
      })
    </script>

    <ui:fragment rendered="#{identity.loggedIn}">
      <div class="g">
        <div class="g__item w--1-m w--3-8-l w--1-3 l--push-bottom-half">
          <p class="txt--meta l--push-all-0">#{msgs['jsf.Dashboard']}</p>

          <div class="g--loose">
            <h:panelGroup layout="block"  id="profile-overview" styleClass="g__item w--1-2-m">
              <div class="media l--push-bottom-half">
                <div class="media__item--right bx--round">
                  <img
                    src="#{dashboardAction.getUserImageUrl()}"
                    alt="#{dashboardAction.getUsername()}"/>
                </div>
                <div class="media__body">
                  <h1 class="l--push-all-0">#{dashboardAction.getUserFullName()}</h1>
                  <ul class="list--no-bullets txt--meta">
                    <li><i class="i i--user list__icon" title="Username"></i> #{dashboardAction.getUsername()}
                    </li>
                    <li><i class="i i--language list__icon"
                      title="Spoken languages"></i>
                      <ui:fragment rendered="#{dashboardAction.getUserLanguageTeams().length() gt 0}">
                        #{dashboardAction.getUserLanguageTeams()}
                      </ui:fragment>
                      <ui:fragment rendered="#{dashboardAction.getUserLanguageTeams().length() lt 1}">
                        <a href="#{request.contextPath}/languages#{dswidQuery}">#{msgs['jsf.dashboard.settings.joinLangTeam.message']}</a>
                      </ui:fragment>
                    </li>
                    <li><i class="i i--users list__icon"
                      title="Roles"></i> #{dashboardAction.getUserRoles()}
                    </li>
                  </ul>
                </div>
              </div>
            </h:panelGroup>
            <div class="g__item w--1-2-m">
              <div class="tabs--lined js-tabs">
                <ul class="tabs__nav js-tabs-nav">
                  <li><a href="javascript:void(0);" id="activity-today_tab" class="is-active" data-content="#activity-today">#{msgs['jsf.activity.today.label']}</a></li>
                  <li><a href="javascript:void(0);" id="activity-week_tab" data-content="#activity-week">#{msgs['jsf.activity.week.label']}</a></li>
                  <li><a href="javascript:void(0);" id="activity-month_tab" data-content="#activity-month">#{msgs['jsf.activity.month.label']}</a></li>
                </ul>
                <ul class="tabs__content js-tabs-content l--pad-h-half l--pad-top-1">
                  <li id="activity-today" class="is-active">
{'fraction_non_alphanumeric': 0.18802410901467506, 'fraction_numerical': 0.00799266247379455, 'mean_word_length': 2.1950606948514024, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4623020', 'n_tokens_mistral': 2412, 'n_tokens_neox': 2330, 'n_words': 326}