<commit_before>@()(implicit ctx: Context)

<div class="inner">
  <div class="body">
    @ctx.me.map { me =>
    <div class="user">
      <section><h2>@me.username</h2></section>
      <div class="perfs">
        @topBarSortedPerfTypes.map { pt =>
        @me.perfs(pt.key).map { perf =>
        <a href="@routes.User.perfStat(me.username, pt.key)" class="perf@if(perf.nb == 0){ nope}" data-icon="@pt.iconChar">
          <h3>@pt.name</h3>
          @if(perf.nb > 0) {
          <div class="rating">
            <strong>@perf.glicko.intRating</strong>
            @showProgress(perf.progress, withTitle = false)
          </div>
          } else { N/A }
          }
        </a>
        }
      </div>
    </div>
    }.getOrElse {
    <div class="anon">
      <section class="login">
        <h2>@trans.signIn()</h2>
        <form action="@routes.Auth.authenticate" method="POST">
          <input placeholder="@trans.usernameOrEmail()" type="text" class="username" required="required" name="username" />
          <input placeholder="@trans.password()" type="password" class="password" required="required" name="password" />
          <input type="submit" class="submit" value="@trans.signIn()" />
        </form>
        <div class="forgot">
          <a href="@routes.Auth.passwordReset">@trans.forgotPassword()</a>
        </div>
      </section>
      <section class="signup">
        <h2>@trans.newToLichess()</h2>
        <a class="signup" href="@routes.Auth.signup">@trans.signUp()</a>
      </section>
    </div>
    }
    <div class="menu">
      <section>
        <h2>@trans.play()</h2>
        <a href="/?any#hook">@trans.createAGame()</a>
        <a href="@routes.Tournament.home()">@trans.tournament()</a>
        <a href="@routes.Simul.home">@trans.simultaneousExhibitions()</a>
        <a href="@routes.Tv.index">Lichess TV</a>
        <a href="@routes.Tv.games">@trans.gamesBeingPlayedRightNow()</a>
      </section>
      <section>
        <h2>@trans.learn()</h2>
        <a href="@routes.Puzzle.home">@trans.training()</a>
        <a href="@routes.Coordinate.home">@trans.coordinates()</a>
        <a href="@routes.Study.allDefault(1)">Study</a>
        <a href="@routes.Video.index">@trans.videoLibrary()</a>
      </section>
      <section>
        <h2>@trans.community()</h2>
        <a href="@routes.User.list">@trans.players()</a>
        @NotForKids {
        <a href="@routes.Team.home()">@trans.teams()</a>
        <a href="@routes.ForumCateg.index">@trans.forum()</a>
        }
        <a href="@routes.QaQuestion.index()">@trans.questionsAndAnswers()</a>
      </section>
      <section><commit_msg>add practice link to full-page menu<commit_after>@()(implicit ctx: Context)

<div class="inner">
  <div class="body">
    @ctx.me.map { me =>
    <div class="user">
      <section><h2>@me.username</h2></section>
      <div class="perfs">
        @topBarSortedPerfTypes.map { pt =>
        @me.perfs(pt.key).map { perf =>
        <a href="@routes.User.perfStat(me.username, pt.key)" class="perf@if(perf.nb == 0){ nope}" data-icon="@pt.iconChar">
          <h3>@pt.name</h3>
          @if(perf.nb > 0) {
          <div class="rating">
            <strong>@perf.glicko.intRating</strong>
            @showProgress(perf.progress, withTitle = false)
          </div>
          } else { N/A }
          }
        </a>
        }
      </div>
    </div>
    }.getOrElse {
    <div class="anon">
      <section class="login">
        <h2>@trans.signIn()</h2>
        <form action="@routes.Auth.authenticate" method="POST">
          <input placeholder="@trans.usernameOrEmail()" type="text" class="username" required="required" name="username" />
          <input placeholder="@trans.password()" type="password" class="password" required="required" name="password" />
          <input type="submit" class="submit" value="@trans.signIn()" />
        </form>
        <div class="forgot">
          <a href="@routes.Auth.passwordReset">@trans.forgotPassword()</a>
        </div>
      </section>
      <section class="signup">
        <h2>@trans.newToLichess()</h2>
        <a class="signup" href="@routes.Auth.signup">@trans.signUp()</a>
      </section>
    </div>
    }
    <div class="menu">
      <section>
        <h2>@trans.play()</h2>
        <a href="/?any#hook">@trans.createAGame()</a>
        <a href="@routes.Tournament.home()">@trans.tournament()</a>
        <a href="@routes.Simul.home">@trans.simultaneousExhibitions()</a>
        <a href="@routes.Tv.index">Lichess TV</a>
        <a href="@routes.Tv.games">@trans.gamesBeingPlayedRightNow()</a>
      </section>
      <section>
        <h2>@trans.learn()</h2>
        <a href="@routes.Puzzle.home">@trans.training()</a>
        <a href="@routes.Practice.index">Practice</a>
        <a href="@routes.Coordinate.home">@trans.coordinates()</a>
        <a href="@routes.Study.allDefault(1)">Study</a>
        <a href="@routes.Video.index">@trans.videoLibrary()</a>
      </section>
      <section>
        <h2>@trans.community()</h2>
        <a href="@routes.User.list">@trans.players()</a>
        @NotForKids {
        <a href="@routes.Team.home()">@trans.teams()</a>
        <a href="@routes.ForumCateg.index">@trans.forum()</a>
        }
        <a href="@routes.QaQuestion.index()">@trans.questionsAndAnswers()</a>
      </section>
      <section>
{'fraction_non_alphanumeric': 0.20825515947467166, 'fraction_numerical': 0.006378986866791745, 'mean_word_length': 2.5730563002680964, 'pattern_counts': {'":': 0, '<': 163, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5903605', 'n_tokens_mistral': 1880, 'n_tokens_neox': 1801, 'n_words': 246}