<commit_before><head>
  <title>smallspace</title>
</head>

<body>
  <div class="container">
    <div class="row">
      {{> header}}
    </div>
    {{#unless loggingIn}}
      {{> pageDispatch}}
    {{/unless}}
  </div>
</body>

<template name="pageDispatch">
  {{#ifPage 'invite'}}
    {{> invite}}
  {{/ifPage}}

  {{#ifPage 'space'}}
    {{> space}}
  {{/ifPage}}

  {{#ifPage 'home'}}
    {{#if currentUser}}
      {{> spaceList}}
    {{else}}
      {{#unless loggingIn}}
      <div class="hero-unit">
        <h1>Welcome to smallspace</h1>
        <p></p>
        <img src="http://lorempixel.com/1200/400" />
      </div>
      {{/unless}}
    {{/if}}
  {{/ifPage}}
</template>

<template name="invite">
  {{#if currentUser}}
    Thanks for signing up.
  {{else}}
  <p class="lead">
    Sign in to accept invitation.
  </p>
  {{/if}}
</template>

<template name="header">
  <h2>
    <a href="#" class="title">smallspace</a>
    <span>
      {{currentSpace}}
    </span>
    <span class="pull-right">
      {{loginButtons align="right"}}
    </span>
  </h2>
  {{> connected}}
  <hr>
</template>

<template name="spaceList">
  <button class="pull-right btn btn-small new">create new space</button>
  <p class="lead">Welcome to smallspace.</p>
  <hr>

  {{#each invitations}}
  <div class="alert">
    {{> myInvitiationItem}}
  </div>
  {{/each}}

  <ul class="media-list">
    {{#each memberSpaces}}
      {{> spaceListItem}}
    {{/each}}
  </ul>
</template>

<template name="myInvitiationItem">
  <p class="pull-right">{{calendar created}}</p>
  <p class="lead">
    <b>{{userName invitedBy}}</b> invited you to <b>{{spaceName spaceId}}</b>
  </p>

  <a href="#" class="accept">Accept invitation</a>
</template>

<template name="spaceListItem">
  <li class="media">
    <a class="pull-left" href="#">
      <img class="media-object" width="64" height="64" src="{{image}}" alt="">
    </a>
    <div class="media-body">
      <h4 class="media-heading">{{name}}</h4>
      {{#with recentActivity}}
        {{> recentActivity}}
      {{/with}}
    </div>
  </li>
</template>

<template name="recentActivity">
  <div class="last-message">
    {{#with lastMessage}}
      {{> message}}
    {{/with}}
  </div>
</template>

<template name="space">
  {{#if isMember}}
    <div class="row">
      <div class="span6">
        {{> chatWindow}}
      </div>
      <div class="span6">
        {{> rightSideNav}}
      </div>
    </div>
  {{else}}
    <div>
      --
    </div>
  {{/if}}
</template>

<template name="rightSideNav">
  <ul class="nav nav-tabs" id="myTab">

    <li class="active">
      <a href="#linksTab" data-toggle="tab">Links</a></li>

    <li class="">
      <a href="#calendarTab" data-toggle="tab">Calendar</a></li>

    <li class="">
      <a href="#todoListsTab" data-toggle="tab">Todo</a></li>

    <li>
      <a href="#membersTab" data-toggle="tab">Members</a></li>

    {{#isCurrentUser userId}}
    <li class="pull-right">
      <a href="#adminTab" data-toggle="tab">Admin</a></li>
    {{/isCurrentUser}}

  </ul><commit_msg>display links tab as 'Web'<commit_after><head>
  <title>smallspace</title>
</head>

<body>
  <div class="container">
    <div class="row">
      {{> header}}
    </div>
    {{#unless loggingIn}}
      {{> pageDispatch}}
    {{/unless}}
  </div>
</body>

<template name="pageDispatch">
  {{#ifPage 'invite'}}
    {{> invite}}
  {{/ifPage}}

  {{#ifPage 'space'}}
    {{> space}}
  {{/ifPage}}

  {{#ifPage 'home'}}
    {{#if currentUser}}
      {{> spaceList}}
    {{else}}
      {{#unless loggingIn}}
      <div class="hero-unit">
        <h1>Welcome to smallspace</h1>
        <p></p>
        <img src="http://lorempixel.com/1200/400" />
      </div>
      {{/unless}}
    {{/if}}
  {{/ifPage}}
</template>

<template name="invite">
  {{#if currentUser}}
    Thanks for signing up.
  {{else}}
  <p class="lead">
    Sign in to accept invitation.
  </p>
  {{/if}}
</template>

<template name="header">
  <h2>
    <a href="#" class="title">smallspace</a>
    <span>
      {{currentSpace}}
    </span>
    <span class="pull-right">
      {{loginButtons align="right"}}
    </span>
  </h2>
  {{> connected}}
  <hr>
</template>

<template name="spaceList">
  <button class="pull-right btn btn-small new">create new space</button>
  <p class="lead">Welcome to smallspace.</p>
  <hr>

  {{#each invitations}}
  <div class="alert">
    {{> myInvitiationItem}}
  </div>
  {{/each}}

  <ul class="media-list">
    {{#each memberSpaces}}
      {{> spaceListItem}}
    {{/each}}
  </ul>
</template>

<template name="myInvitiationItem">
  <p class="pull-right">{{calendar created}}</p>
  <p class="lead">
    <b>{{userName invitedBy}}</b> invited you to <b>{{spaceName spaceId}}</b>
  </p>

  <a href="#" class="accept">Accept invitation</a>
</template>

<template name="spaceListItem">
  <li class="media">
    <a class="pull-left" href="#">
      <img class="media-object" width="64" height="64" src="{{image}}" alt="">
    </a>
    <div class="media-body">
      <h4 class="media-heading">{{name}}</h4>
      {{#with recentActivity}}
        {{> recentActivity}}
      {{/with}}
    </div>
  </li>
</template>

<template name="recentActivity">
  <div class="last-message">
    {{#with lastMessage}}
      {{> message}}
    {{/with}}
  </div>
</template>

<template name="space">
  {{#if isMember}}
    <div class="row">
      <div class="span6">
        {{> chatWindow}}
      </div>
      <div class="span6">
        {{> rightSideNav}}
      </div>
    </div>
  {{else}}
    <div>
      --
    </div>
  {{/if}}
</template>

<template name="rightSideNav">
  <ul class="nav nav-tabs" id="myTab">

    <li class="active">
      <a href="#linksTab" data-toggle="tab">Web</a></li>

    <li class="">
      <a href="#calendarTab" data-toggle="tab">Calendar</a></li>

    <li class="">
      <a href="#todoListsTab" data-toggle="tab">Todo</a></li>

    <li>
      <a href="#membersTab" data-toggle="tab">Members</a></li>

    {{#isCurrentUser userId}}
    <li class="pull-right">
      <a href="#adminTab" data-toggle="tab">Admin</a></li>
    {{/isCurrentUser}}

  </ul>
{'fraction_non_alphanumeric': 0.23151336284636825, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 2.9278815196394077, 'pattern_counts': {'":': 0, '<': 213, '<?xml version=': 0, '>': 237, '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': '2590025', 'n_tokens_mistral': 2258, 'n_tokens_neox': 2183, 'n_words': 447}