<commit_before><template name='home'>
  {{> signupLogin}}
  {{#if currentUser}}
    {{> gameList}}
    {{> userList}}
  {{/if}}
</template>

<template name='gameList'>
  <h1>Games</h1>
  <ul>
    {{#each games}}
      {{>gameItem}}
    {{/each}}
  </ul>
</template>

<template name='gameItem'>
  <li>
  <a href="/game/{{_id}}">Game with {{otherPlayer}}
      <span>
        {{#if inProgress}}
        {{started}}
        {{/if}}
      </span>
    </a>
  </li>
</template>


<template name='userList'>
  <div class='column'>
    <h1>Users</h1>
    <p> Choose another player to start a game with: </p>
    <ul>
        {{#each users}}
          {{> userItem}}
        {{/each}}
    </ul> 
  </div>  
</template>

<template name ='userItem'>
  <li><commit_msg>Added completed completed games section in home.html and home.js<commit_after><template name='home'>
  {{> signupLogin}}
  {{#if currentUser}}
    {{> gameList}}
    {{> userList}}
  {{/if}}
</template>

<template name='gameList'>
<div class='column'>
    <h1>Games</h1>
    <ul>
      {{#each games}}
        {{>gameItem}}
      {{/each}}
    </ul>

    <h1>Completed Games</h1>
    <ul>
      {{#each completedGames}}
        {{>gameItem}}
      {{/each}}
    </ul>
  </div>
</template>

<template name='gameItem'>
  <li>
  <a href="/game/{{_id}}">Game with {{otherPlayer}}
      <span>
        {{#if inProgress}}
          started {{started}}
        {{else}}
          finished {{finished}} ([{message}])
        {{/if}}
      </span>
    </a>
  </li>
</template>


<template name='userList'>
  <div class='column'>
    <h1>Users</h1>
    <p> Choose another player to start a game with: </p>
    <ul>
        {{#each users}}
          {{> userItem}}
        {{/each}}
    </ul> 
  </div>  
</template>

<template name ='userItem'>
  <li>
{'fraction_non_alphanumeric': 0.21968854282536152, 'fraction_numerical': 0.0055617352614015575, 'mean_word_length': 2.3438661710037176, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 76, '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': '1151011', 'n_tokens_mistral': 661, 'n_tokens_neox': 652, 'n_words': 147}