<commit_before>mixin accountLinks
  li
    a.account-dropdown-item(href="/user/#{me.getSlugOrID()}", data-i18n="nav.profile")
  li
    a.account-dropdown-item(href="/account/settings", data-i18n="play.settings")
  if me.isAdmin() || !(me.isTeacher() || me.isStudent() || me.freeOnly())
    li
      a.account-dropdown-item(href="/account/payments", data-i18n="account.payments")
  if me.isAdmin() || !(me.isTeacher() || me.isStudent() || me.freeOnly()) || me.hasSubscription()
    li
      a.account-dropdown-item(href="/account/subscription", data-i18n="account.subscription")
  if me.isAdmin()
    li
      a.account-dropdown-item(href="/admin", data-i18n="account_settings.admin")
  if serverSession && serverSession.amActually
    li
      a.account-dropdown-item#nav-stop-spying-button Stop Spying
  if !features.codePlay
    li
      a.account-dropdown-item#logout-button(data-i18n="login.log_out")

.style-flat
  block header
    nav#main-nav.navbar.navbar-default.navbar-fixed-top.text-center
      .container-fluid
        .row
          .col-md-12
            .navbar-header
              button.navbar-toggle.collapsed(data-toggle='collapse', data-target='#navbar-collapse' aria-expanded='false')
                span.sr-only(data-i18n="nav.toggle_nav")
                span.icon-bar
                span.icon-bar
                span.icon-bar
              if me.useTarenaLogo()
                a.navbar-brand(href="http://kidtts.tmooc.cn/ttsPage/login.html")
                  img#logo-img.powered-by(src="/images/pages/base/logo.png")
                  img#tarena-logo(src="/images/pages/base/logo-tarena.png")
              else if serverConfig.codeNinjas
                a.navbar-brand(href="/home")
                  img#logo-img.powered-by(src="/images/pages/base/logo.png")
                  img.code-ninjas-logo(src="/images/pages/base/code-ninjas-logo-right.png")
              else
                a.navbar-brand(href="/home")
                  img#logo-img(src="/images/pages/base/logo.png")

            if view.isOldBrowser()
              .navbar-browser-recommendation.navbar-header
                .nav-spacer
                  .navbar-nav
                    a.text-p(href="https://www.google.cn/intl/zh-CN/chrome/", data-i18n="nav.browser_recommendation")

            if !serverConfig.static
              #navbar-collapse.collapse.navbar-collapse
                .nav-spacer
                if !me.hideTopRightNav()
                  ul.nav.navbar-nav
                    if me.showChinaResourceInfo()
                      li
                        a.text-p(data-event-action="Header Request Quote CTA", data-i18n="new_home.request_quote", href="/contact-cn")
                    else if me.isAnonymous() && require('app/core/experiments').getRequestAQuoteGroup(me) === 'request-a-quote-header'
                      li
                        a.text-p(data-event-action="Header Request Quote CTA", data-i18n="new_home.request_quote", href="/teachers/quote")
                    li
                      if document.location.href.search('/about') >= 0
                        a.text-p.text-teal(href="/about", data-i18n="nav.about")
                      else
                        a.text-p(href="/about", data-i18n="nav.about")
                    li<commit_msg>add blog link on nav bar (#5803)<commit_after>mixin accountLinks
  li
    a.account-dropdown-item(href="/user/#{me.getSlugOrID()}", data-i18n="nav.profile")
  li
    a.account-dropdown-item(href="/account/settings", data-i18n="play.settings")
  if me.isAdmin() || !(me.isTeacher() || me.isStudent() || me.freeOnly())
    li
      a.account-dropdown-item(href="/account/payments", data-i18n="account.payments")
  if me.isAdmin() || !(me.isTeacher() || me.isStudent() || me.freeOnly()) || me.hasSubscription()
    li
      a.account-dropdown-item(href="/account/subscription", data-i18n="account.subscription")
  if me.isAdmin()
    li
      a.account-dropdown-item(href="/admin", data-i18n="account_settings.admin")
  if serverSession && serverSession.amActually
    li
      a.account-dropdown-item#nav-stop-spying-button Stop Spying
  if !features.codePlay
    li
      a.account-dropdown-item#logout-button(data-i18n="login.log_out")

.style-flat
  block header
    nav#main-nav.navbar.navbar-default.navbar-fixed-top.text-center
      .container-fluid
        .row
          .col-md-12
            .navbar-header
              button.navbar-toggle.collapsed(data-toggle='collapse', data-target='#navbar-collapse' aria-expanded='false')
                span.sr-only(data-i18n="nav.toggle_nav")
                span.icon-bar
                span.icon-bar
                span.icon-bar
              if me.useTarenaLogo()
                a.navbar-brand(href="http://kidtts.tmooc.cn/ttsPage/login.html")
                  img#logo-img.powered-by(src="/images/pages/base/logo.png")
                  img#tarena-logo(src="/images/pages/base/logo-tarena.png")
              else if serverConfig.codeNinjas
                a.navbar-brand(href="/home")
                  img#logo-img.powered-by(src="/images/pages/base/logo.png")
                  img.code-ninjas-logo(src="/images/pages/base/code-ninjas-logo-right.png")
              else
                a.navbar-brand(href="/home")
                  img#logo-img(src="/images/pages/base/logo.png")

            if view.isOldBrowser()
              .navbar-browser-recommendation.navbar-header
                .nav-spacer
                  .navbar-nav
                    a.text-p(href="https://www.google.cn/intl/zh-CN/chrome/", data-i18n="nav.browser_recommendation")

            if !serverConfig.static
              #navbar-collapse.collapse.navbar-collapse
                .nav-spacer
                if !me.hideTopRightNav()
                  ul.nav.navbar-nav
                    if me.showChinaResourceInfo()
                      li
                        a.text-p(data-i18n="nav.blog", href="https://blog.koudashijie.com")
                      li
                        a.text-p(data-event-action="Header Request Quote CTA", data-i18n="new_home.request_quote", href="/contact-cn")
                    else if me.isAnonymous() && require('app/core/experiments').getRequestAQuoteGroup(me) === 'request-a-quote-header'
                      li
                        a.text-p(data-event-action="Header Request Quote CTA", data-i18n="new_home.request_quote", href="/teachers/quote")
                    li
                      if document.location.href.search('/about') >= 0
                        a.text-p.text-teal(href="/about", data-i18n="nav.about")
                      else
                        a.text-p(href="/about", data-i18n="nav.about")
                    li
{'fraction_non_alphanumeric': 0.14538164538164539, 'fraction_numerical': 0.00891000891000891, 'mean_word_length': 1.8586587436332767, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '2857039', 'n_tokens_mistral': 2155, 'n_tokens_neox': 2011, 'n_words': 238}