<commit_before><%= content_for :title, "The Odin Project -- Scheduler" %>

<div class="container" id="scheduler">
  <h1>Start Programming Together</h1>

  <div class="row">
    <div class="span4">
      <!-- <a onclick="displayEvents()">Events</a> -->
      <h4>Tips and Instructions</h4>
      <br>
      <h5>What is this?</h5>
      <p>
        This is a simple tool that you can use to set up a remote pairing session with someone else who is working on the same project as you.  
      </p>

      <h5>How Does it Work?</h5>
      <p>
        The calendar you are viewing now shows the availability of other people who are working on the same project as you are.  Select 
        <% if current_user.content_buckets.empty? %>
          your first project
        <% else %>
          new projects 
        <% end %>
        on your <%= link_to "preferences page", edit_user_pref_path %>.  How to use the calendar:
        <ol>
          <li>Add when you're available to the calendar.  Just click or drag to add availability.  The new event will be auto-populated with the information specified on your <%= link_to "account page", edit_user_registration_path %>.  You can edit this by clicking on it.</li>
          <li>Gray events represent when other users are available.  Click on these to get the contact information for these users.  If you find a time when you're both available, reach out and pair up!</li>
        </ol>
      </p>

      <h5>How do we Pair?</h5>
      <p>
        For best pairing, we recommend using two very easy tools: Skype and Screenhero.  Skype lets you chat with other users for free. Screenhero is like Skype for screen sharing.  Both tools are just one-click-to-call, and using them together will allow you to talk while you're working together on the same code on one of your computers... remotely!
        <ul>
          <li>Setting up Skype: Download the free client at <%= link_to "Skype.com", "http://www.skype.com" %>, set up your user details, and "call" your partner.</li>
          <li>Setting up ScreenHero: Download the free client at <%= link_to "Screenhero.com", "http://www.screenhero.com" %>, set up your account, and "call" your partner to start sharing your screen.</li>
        </ul>
        Once you are able to talk to each other and you can both work on one of your screens, it's time to get coding!  There are a couple of approaches that work well, but they typically involve one person (the "driver") writing code while the other person (the "navigator") gives tactical guidance.
        <ul>
          <li>Time swapping: Spend 25 minutes as the driver, then swap roles.  Try using a <%= link_to "free online timer", "http://tomato-timer.com/" %>.</li>
          <li>Ping Pong: If you're using a test-driven approach, one person writes the failing test then the other person makes it pass.  Swap roles for the next test or batch of tests.</li>
        </ul>
        When you're done with your session, either share the github repo (if you're using a git workflow... please use a git workflow...) or email out the code to the partner whose computer hasn't been used.
      </p>
      <p>
        Finally, some tips:
        <ul>
          <li>Think out loud as much as you can -- give each other a chance to hear your thoughts.</li>
          <li>No distractions!  Emailing, texting, etc. should all be turned off while pairing. </li>
          <li>As navigator, wait 10 seconds before pointing out a typo... give the driver a chance to correct on their own</li>
          <li>Check out some additional resources:
            <ul>
              <li><%= link_to "Slideshare about pairing", "http://www.slideshare.net/rogercafe/pair-programming-presentation" %></li>
              <li><%= link_to "Listing of recorded online pairing sessions","http://www.youtube.com/playlist?list=PLjbL0BCR04Q1-x5p5L5V11Vm58VlTgPzw"%></li>
            </ul>
          </li>
        </ul>
      </p>
    </div>

    <div class="span8">
      <h4>When are you available?</h4>
      <% if current_user.content_buckets.empty? %>
        <p class="warning">Tip: <%= link_to "select a project", edit_user_pref_path %> to see the availability of other people too!</p>
      <% else %>
        <p class="filters">Showing availability for: <strong>
          <%= current_user.content_buckets.map(&:name).join(", ") %></strong>
          <sup> <%= link_to "edit", edit_user_pref_path %></sup><commit_msg>remove extraneous text from scheduler<commit_after><%= content_for :title, "The Odin Project -- Scheduler" %>

<div class="container" id="scheduler">
  <h1>Start Programming Together</h1>

  <div class="row">
    <div class="span4">
      <!-- <a onclick="displayEvents()">Events</a> -->
      <h4>Tips and Instructions</h4>
      <br>
      <h5>What is this?</h5>
      <p>
        This is a simple tool that you can use to set up a remote pairing session with someone else who is working on the same project as you.  
      </p>

      <h5>How Does it Work?</h5>
      <p>
        The calendar you are viewing now shows the availability of other people who are working on the same project as you are.  Select 
        <% if current_user.content_buckets.empty? %>
          your first project
        <% else %>
          new projects 
        <% end %>
        on your <%= link_to "preferences page", edit_user_pref_path %>.  How to use the calendar:
        <ol>
          <li>Add when you're available to the calendar.  Just click or drag to add availability.  The new event will be auto-populated with the information specified on your <%= link_to "account page", edit_user_registration_path %>.  You can edit this by clicking on it.</li>
          <li>Gray events represent when other users are available.  Click on these to get the contact information for these users.  If you find a time when you're both available, reach out and pair up!</li>
        </ol>
      </p>

      <h5>How do we Pair?</h5>
      <p>
        See <a href="http://github.com/TheOdinProject/curriculum/blob/master/pairing/pairing.md#how-do-we-pair">How do We Pair?</a> in our <a href="http://github.com/TheOdinProject/curriculum">Curriculum on Github</a>.
      </p>
    </div>

    <div class="span8">
      <h4>When are you available?</h4>
      <% if current_user.content_buckets.empty? %>
        <p class="warning">Tip: <%= link_to "select a project", edit_user_pref_path %> to see the availability of other people too!</p>
      <% else %>
        <p class="filters">Showing availability for: <strong>
          <%= current_user.content_buckets.map(&:name).join(", ") %></strong>
          <sup> <%= link_to "edit", edit_user_pref_path %></sup>
{'fraction_non_alphanumeric': 0.11326132613261326, 'fraction_numerical': 0.006450645064506451, 'mean_word_length': 2.743402582818641, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 0, '>': 144, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1677349', 'n_tokens_mistral': 2023, 'n_tokens_neox': 1907, 'n_words': 780}