<commit_before>module ApplicationHelper

  def google_analytics_tag
    return unless Rails.env == "production"

    %{<script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-24597738-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>}.html_safe
  end

  def navigation(inline=false)
    nav = <<-HTML
        <li><a rel="prerender" target="_blank" href="http://github.com/discom4rt">Code</a></li>
        <li><a target="_blank" href="http://www.linkedin.com/in/morg4n">Resume</a></li>
        <li>#{link_to "Projects", projects_path}</li>
        <li><a target="_blank" href="http://soundcloud.com/discom4rt/favorites">Music</a></li>
      </ul>
    HTML

    if inline
      nav = %{
        <ul class="navigation inline">
          <li><a href="/"><NAME></a></li>
      } + nav
    else
      nav = %{
        <ul class="navigation">
      } + nav
    end

    nav.html_safe
  end

end
<commit_msg>Add a link to my new blog!<commit_after>module ApplicationHelper

  def google_analytics_tag
    return unless Rails.env == "production"

    %{<script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-24597738-1']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>}.html_safe
  end

  def navigation(inline=false)
    nav = <<-HTML
        <li><a rel="prerender" target="_blank" href="http://github.com/discom4rt">Code</a></li>
        <li><a target="_blank" href="http://www.linkedin.com/in/morg4n">Resume</a></li>
        <li><a href="http://blog.morgan.io">Blog</a></li>
        <li #{controller_name.include?("projects") ? "class=\"active\"" : ""}>#{link_to "Projects", projects_path}</li>
        <li><a target="_blank" href="http://soundcloud.com/discom4rt/favorites">Music</a></li>
      </ul>
    HTML

    if inline
      nav = %{
        <ul class="navigation inline">
          <li><a href="/"><NAME></a></li>
      } + nav
    else
      nav = %{
        <ul class="navigation">
      } + nav
    end

    nav.html_safe
  end

end

{'fraction_non_alphanumeric': 0.19559633027522935, 'fraction_numerical': 0.009541284403669725, 'mean_word_length': 2.7704011065006915, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 55, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '105761', 'n_tokens_mistral': 937, 'n_tokens_neox': 912, 'n_words': 159}