<commit_before><template name="home">
  <h1>Home Page</h1>
  {{> searchHome}}
  {{> leafButtons}}
  {{> centralSection}}
</template>

<template name="searchHome">
  <div class="container">
    <input id="searchText">
    <button disabled>Search</button>
    <button disabled>Advanced Search</button>
  </div>
</template>

<template name="leafButtons">
  <button id="myProfileButton">MY PROFILE</button> <!-- TODO when logged in -->
  <button id="membersButton">MEMBERS</button>
  <button id="localBusinessButton">LOCAL BUSINESS</button>
  <button id="discussionButton" disabled>DISCUSSIONS</button>
  <button id="opportunitiesButton" disabled>OPPORTUNITIES</button>
  <button id="eventsButton" disabled>EVENTS</button>
  <button id="localPediaButton" disabled>LOCALPEDIA</button>
</template>

<template name="centralSection">
  <!-- TODO Initially shows as no user, then shows for user.
      Should have loading message instead, can we query user to see if it's ready? -->
  {{#if Template.subscriptionsReady}}
    {{#if currentUser}}
      <p>Welcome {{currentUser._id}}</p>
    {{else}}
      <input id="username" placeholder="Username">
      <input id="password" class="password" placeholder="Password">
      <p>New here? Sign up and grow with us!</p>
    {{/if}}
  {{else}}
    <p>Loading...</p>
  {{/if}}
</template>
<commit_msg>Add the ugly login buttons to homepage<commit_after><template name="home">
  <h1>Home Page</h1>
  {{> searchHome}}
  {{> leafButtons}}
  {{> centralSection}}
</template>

<template name="searchHome">
  <div class="container">
    <input id="searchText">
    <button disabled>Search</button>
    <button disabled>Advanced Search</button>
  </div>
</template>

<template name="leafButtons">
  <button id="myProfileButton">MY PROFILE</button> <!-- TODO when logged in -->
  <button id="membersButton">MEMBERS</button>
  <button id="localBusinessButton">LOCAL BUSINESS</button>
  <button id="discussionButton" disabled>DISCUSSIONS</button>
  <button id="opportunitiesButton" disabled>OPPORTUNITIES</button>
  <button id="eventsButton" disabled>EVENTS</button>
  <button id="localPediaButton" disabled>LOCALPEDIA</button>
</template>

<template name="centralSection">
  <!-- TODO Initially shows as no user, then shows for user.
      Should have loading message instead, can we query user to see if it's ready? -->
  {{#if Template.subscriptionsReady}}
    {{#if currentUser}}
      <p>Welcome {{currentUser._id}}</p>
    {{else}}
      <input id="username" placeholder="Username">
      <input id="password" class="password" placeholder="Password">
      <p>New here? Sign up and grow with us!</p>
    {{/if}}
  {{> loginButtons}}
  {{else}}
    <p>Loading...</p>
  {{/if}}
</template>

{'fraction_non_alphanumeric': 0.16801470588235295, 'fraction_numerical': 0.0014705882352941176, 'mean_word_length': 4.610309278350515, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 92, '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': '3504278', 'n_tokens_mistral': 845, 'n_tokens_neox': 824, 'n_words': 209}