<commit_before><% if signed_in? and !current_user.dismissed_welcome_message %>
  <div id="welcome_message" class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    Welcome to RubyGameDev.com, the community-driven, information hub which helps others to build games in Ruby! First time here? <%= link_to 'Learn More', about_page_path, class: 'alert-link' %>.
  </div>
  <%= form_for current_user, remote: true do |f| %>
    <%= f.hidden_field :dismissed_welcome_message, value: 1 %>
  <% end %>
<% end %>

<div class="row">
  <div class="col-md-7">

    <div class="panel panel-default">
      <div class="panel-body">
        <%= link_to 'New Post', new_post_path, class: 'btn btn-primary pull-right' %>
        <h2>Latest Posts</h2>
        <%= render 'posts/list' %>
      </div>
    </div>

<!-- TODO: build out the libraries section
    <div class="panel panel-default">
      <div class="panel-body">
        <%= link_to 'See More', libraries_path, class: 'btn btn-default pull-right' %>
        <h2>Libraries</h2>
        <%= render 'library_categories/table' %>
      </div>
    </div> -->

  </div>

  <div class="col-md-5">

    <% if signed_in? %>
      <div class="panel panel-default">
        <div class="panel-body">
          <h2>Digest Email</h2>
          <% if current_user.digest_subscriber %>
            <p>You are signed up to receive <strong><%= current_user.digest_frequency %></strong> digest emails.</p>
          <% else %>
            <p>Sign up for an email digest so you never miss a thing!</p>
            <%= form_for current_user, html: {id:'digest_signup_form', class: 'form-inline'} do |f| %>
              <%= hidden_field_tag :redirect_to, root_path %>
              <%= f.hidden_field :digest_subscriber, value: 1 %>
              <p>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="daily" checked> Daily
                </label>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="weekly"> Weekly
                </label>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="monthly"> Monthly
                </label>
              </p>
              <div class="form-group">
                <input type="email" name="user[email]" class="form-control" placeholder="<EMAIL>">
              </div>
              <%= f.submit 'Subscribe', class: 'btn btn-primary' %>
            <% end %>
          <% end %>
        </div>
      </div>
    <% end %>

    <div class="panel panel-default">
      <div class="panel-body text-center">
        <%= link_to 'Help Out on GitHub', 'https://github.com/ruby-rcade/RubyGameDev.com', class: 'btn btn-sm btn-primary', style: 'vertical-align: top' %>
        <a href="https://twitter.com/RubyGameDev" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @RubyGameDev</a>
        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
      </div>
    </div>

<!-- TODO: build out the questions section
    <div class="panel panel-default">
      <div class="panel-body">
        <%= link_to 'See More', questions_path, class: 'btn btn-default pull-right' %>
        <h2>Questions</h2>
        <p class="text-muted">Questions from GameDevSE tagged <strong>ruby</strong>.</p>
        <%= render 'questions/table' %>
      </div>
    </div> -->

<!-- TODO: build out the showcase section
    <div class="panel panel-default">
      <div class="panel-body">
        <h2>Showcase</h2>
        <div class="media">
          <a class="pull-left" href="#">
            <%= image_tag 'joybox_asteroids_game.png', class: 'media-object', width: 150 %>
          </a>
          <div class="media-body">
            <h4 class="media-heading">Joybox Asteroids</h4>
            Joybox combines the most popular and widely used 2D game engine for iOS, Cocos2D, 
            folds in the amazing Box2D physics engine, and then wraps them up into a clean Ruby API 
            that will make game development faster and more enjoyable for both beginners and experts alike.
          </div>
        </div>
      </div>
    </div> -->

  </div>
</div><commit_msg>Remove old code<commit_after><% if signed_in? and !current_user.dismissed_welcome_message %>
  <div id="welcome_message" class="alert alert-success alert-dismissable">
    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
    Welcome to RubyGameDev.com, the community-driven, information hub which helps others to build games in Ruby! First time here? <%= link_to 'Learn More', about_page_path, class: 'alert-link' %>.
  </div>
  <%= form_for current_user, remote: true do |f| %>
    <%= f.hidden_field :dismissed_welcome_message, value: 1 %>
  <% end %>
<% end %>

<div class="row">
  <div class="col-md-7">

    <div class="panel panel-default">
      <div class="panel-body">
        <%= link_to 'New Post', new_post_path, class: 'btn btn-primary pull-right' %>
        <h2>Latest Posts</h2>
        <%= render 'posts/list' %>
      </div>
    </div>

  </div>

  <div class="col-md-5">

    <% if signed_in? %>
      <div class="panel panel-default">
        <div class="panel-body">
          <h2>Digest Email</h2>
          <% if current_user.digest_subscriber %>
            <p>You are signed up to receive <strong><%= current_user.digest_frequency %></strong> digest emails.</p>
          <% else %>
            <p>Sign up for an email digest so you never miss a thing!</p>
            <%= form_for current_user, html: {id:'digest_signup_form', class: 'form-inline'} do |f| %>
              <%= hidden_field_tag :redirect_to, root_path %>
              <%= f.hidden_field :digest_subscriber, value: 1 %>
              <p>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="daily" checked> Daily
                </label>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="weekly"> Weekly
                </label>
                <label class="radio-inline">
                  <input type="radio" name="user[digest_frequency]" value="monthly"> Monthly
                </label>
              </p>
              <div class="form-group">
                <input type="email" name="user[email]" class="form-control" placeholder="<EMAIL>">
              </div>
              <%= f.submit 'Subscribe', class: 'btn btn-primary' %>
            <% end %>
          <% end %>
        </div>
      </div>
    <% end %>

    <div class="panel panel-default">
      <div class="panel-body text-center">
        <%= link_to 'Help Out on GitHub', 'https://github.com/ruby-rcade/RubyGameDev.com', class: 'btn btn-sm btn-primary', style: 'vertical-align: top' %>
        <a href="https://twitter.com/RubyGameDev" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @RubyGameDev</a>
        <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
      </div>
    </div>

  </div>
</div>
{'fraction_non_alphanumeric': 0.16746722056341684, 'fraction_numerical': 0.004154225626379333, 'mean_word_length': 2.596638655462185, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, 'https://': 4, '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': '4900037', 'n_tokens_mistral': 2546, 'n_tokens_neox': 2343, 'n_words': 546}