<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>{{ site.title }}{% if page.title %} / {{ page.title }}{% endif %}</title>
    {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
    <meta name="author" content="{{ site.author.name }}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="{{ ASSET_PATH }}/img/favicon.ico">
    <link href="{{ BASE_PATH }}{{ site.JB.atom_path }}" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed">
    <link href="{{ BASE_PATH }}{{ site.JB.rss_path }}" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed">

    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet/less" href="{{ ASSET_PATH }}/css/style.less">

    <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.0/less.min.js"></script>
    <script src="{{ ASSET_PATH }}/js/jekyll-search.js"></script>
    <script>
      var searchJsonPath = '{{ BASE_PATH }}/search.json',
        searchTemplate = '<menuitem><a href="{{ BASE_PATH }}{url}">{title}</a></menuitem>';
    </script>

    <script>
      (function() {
        var shr = document.createElement('script');
        shr.setAttribute('data-cfasync', 'false');
        shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
        shr.type = 'text/javascript'; shr.async = 'true';
        shr.onload = shr.onreadystatechange = function() {
          var rs = this.readyState;
          if (rs && rs != 'complete' && rs != 'loaded') return;
          var site_id = 'aed9a48340b830002b74641e868bfcec';
          try { Shareaholic.init(site_id); } catch (e) {}
        };
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(shr, s);
      })();
    </script>

  </head>
  <body>

    <div id="body">
      <header>
        {% include themes/gilt/nav.html %}
        <section id="subnav">
          <span>
            <a class="categories">Categories</a>
            <p class="social github"><a href="https://github.com/gilt" title="Github"></a></p>
            <p class="social twitter"><a href="http://tech.gilt.com/twitter" title="Twitter"></a></p>
            <p class="social facebook"><a href="http://tech.gilt.com/facebook" title="Facebook"></a></p>
            <p class="social google"><a href="http://tech.gilt.com/google+" title="Google+"></a></p>
            <span id="search">
              <input type="search" placeholder="Search …" title="Search for:" />
            </span>
            <menu id="categories-menu">
            {% for category in site.categories %}
              <menuitem>
                <a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category[0] }}-ref">{{ category[0] | join: "/" }}</a>
              </menuitem>
            {% endfor %}
            </menu>
            <menu id="search-results">
            </menu>
          </span>
        </section>
        <a class="logo" href="{{ HOME_PATH }}" class="logo"></a>
        <h1>{{ site.tagline }}</h1>
      </header>
      <section id="main">
{{ content }}
      </section>
      <footer>
        {% include themes/gilt/nav.html %}
        <section id="copyright">
          &copy; {{ site.time | date: '%Y' }} {{ site.author.name }} &bull; <a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">Archives</a>
        </section>
      </footer>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="{{ ASSET_PATH }}/js/main.js"></script>
  </body>
</html><commit_msg>fixes #2, sorting category menu<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>{{ site.title }}{% if page.title %} / {{ page.title }}{% endif %}</title>
    {% if page.description %}<meta name="description" content="{{ page.description }}">{% endif %}
    <meta name="author" content="{{ site.author.name }}">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link rel="shortcut icon" href="{{ ASSET_PATH }}/img/favicon.ico">
    <link href="{{ BASE_PATH }}{{ site.JB.atom_path }}" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed">
    <link href="{{ BASE_PATH }}{{ site.JB.rss_path }}" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed">

    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet/less" href="{{ ASSET_PATH }}/css/style.less">

    <script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.0/less.min.js"></script>
    <script src="{{ ASSET_PATH }}/js/jekyll-search.js"></script>
    <script>
      var searchJsonPath = '{{ BASE_PATH }}/search.json',
        searchTemplate = '<menuitem><a href="{{ BASE_PATH }}{url}">{title}</a></menuitem>';
    </script>

    <script>
      (function() {
        var shr = document.createElement('script');
        shr.setAttribute('data-cfasync', 'false');
        shr.src = '//dsms0mj1bbhn4.cloudfront.net/assets/pub/shareaholic.js';
        shr.type = 'text/javascript'; shr.async = 'true';
        shr.onload = shr.onreadystatechange = function() {
          var rs = this.readyState;
          if (rs && rs != 'complete' && rs != 'loaded') return;
          var site_id = 'aed9a48340b830002b74641e868bfcec';
          try { Shareaholic.init(site_id); } catch (e) {}
        };
        var s = document.getElementsByTagName('script')[0];
        s.parentNode.insertBefore(shr, s);
      })();
    </script>

  </head>
  <body>

    <div id="body">
      <header>
        {% include themes/gilt/nav.html %}
        <section id="subnav">
          <span>
            <a class="categories">Categories</a>
            <p class="social github"><a href="https://github.com/gilt" title="Github"></a></p>
            <p class="social twitter"><a href="http://tech.gilt.com/twitter" title="Twitter"></a></p>
            <p class="social facebook"><a href="http://tech.gilt.com/facebook" title="Facebook"></a></p>
            <p class="social google"><a href="http://tech.gilt.com/google+" title="Google+"></a></p>
            <span id="search">
              <input type="search" placeholder="Search …" title="Search for:" />
            </span>
            <menu id="categories-menu">
            {% capture categories %}{% for category in site.categories %}{{ category[0] }}|{% endfor %}{% endcapture %}
            {% assign sortedcats = categories | split:'|' | sort %}
            {% for category in sortedcats %}
              <menuitem>
                <a href="{{ BASE_PATH }}{{ site.JB.categories_path }}#{{ category }}-ref">{{ category | join: "/" }}</a>
              </menuitem>
            {% endfor %}
            </menu>
            <menu id="search-results">
            </menu>
          </span>
        </section>
        <a class="logo" href="{{ HOME_PATH }}" class="logo"></a>
        <h1>{{ site.tagline }}</h1>
      </header>
      <section id="main">
{{ content }}
      </section>
      <footer>
        {% include themes/gilt/nav.html %}
        <section id="copyright">
          &copy; {{ site.time | date: '%Y' }} {{ site.author.name }} &bull; <a href="{{ BASE_PATH }}{{ site.JB.archive_path }}">Archives</a>
        </section>
      </footer>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
    <script src="{{ ASSET_PATH }}/js/main.js"></script>
  </body>
</html>
{'fraction_non_alphanumeric': 0.20646669263731982, 'fraction_numerical': 0.010388261264770809, 'mean_word_length': 2.6398865784499055, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '6593200', 'n_tokens_mistral': 2606, 'n_tokens_neox': 2477, 'n_words': 467}