<commit_before>!!! 5
%html(lang="en")
  %head
    %meta(charset="utf-8")
    %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
    %meta(name="viewport" content="width=device-width, initial-scale=1.0")
    %title= content_for?(:title) ? yield(:title) : "Quoty"
    = csrf_meta_tags
    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
    = stylesheet_link_tag "application", :media => "all"

  %body
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.brand(href="/") Quoty
          .container.nav-collapse
            %ul.nav
              %li= link_to "English", language_path('english')
              %li= link_to "日本語", language_path('japanese')
              %li= link_to "中文", language_path('chinese')
            %ul.nav.pull-right
              - if signed_in?
                %li.dropdown
                  = link_to '#', class: 'dropdown-toggle', 'data-toggle' => 'dropdown' do
                    = image_tag current_user.image, size: '24x24', class: 'avatar_tiny' if current_user.image
                    = current_user.name
                    %span.caret
                  %ul.dropdown-menu
                    %li
                      = link_to current_user do
                        %i.icon-user
                        = t('.my_page')
                    %li
                      = link_to user_activities_path(current_user) do
                        %i.icon-rss
                        = t('.activities')
                    %li
                      = link_to [:edit, current_user] do
                        %i.icon-cog
                        = t('.settings')
                    %li.divider
                    %li
                      = link_to logout_path do
                        %i.icon-signout
                        = t('.sign_out')
              - else
                %li= link_to "Sign in", login_path
            .pull-right
              = link_to new_quote_path, class: 'btn btn-primary' do
                %i.icon-pencil
                = t('.new_quote')

    .container
      .flash_message= bootstrap_flash
      = yield
    = render 'layouts/google_analytics'
    %footer.footer
      .container
        %p= link_to 'About this site', about_path
        %p
          Designed and built by
          = link_to '@kinopyo', 'https://twitter.com/fantasyday'
        %p
          You can find the source code on
          = link_to 'Github', 'https://github.com/kinopyo/quoty'
    /
      Javascripts
      \==================================================
    / Placed at the end of the document so the pages load faster
    = javascript_include_tag "application"
  .modal_container<commit_msg>Add Facebook Like Button<commit_after>!!! 5
%html(lang="en")
  %head
    %meta(charset="utf-8")
    %meta(http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1")
    %meta(name="viewport" content="width=device-width, initial-scale=1.0")
    %title= content_for?(:title) ? yield(:title) : "Quoty"
    = csrf_meta_tags
    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
    = stylesheet_link_tag "application", :media => "all"

  %body
    .navbar.navbar-fixed-top
      .navbar-inner
        .container
          %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.brand(href="/") Quoty
          .container.nav-collapse
            %ul.nav
              %li= link_to "English", language_path('english')
              %li= link_to "日本語", language_path('japanese')
              %li= link_to "中文", language_path('chinese')
            %ul.nav.pull-right
              - if signed_in?
                %li.dropdown
                  = link_to '#', class: 'dropdown-toggle', 'data-toggle' => 'dropdown' do
                    = image_tag current_user.image, size: '24x24', class: 'avatar_tiny' if current_user.image
                    = current_user.name
                    %span.caret
                  %ul.dropdown-menu
                    %li
                      = link_to current_user do
                        %i.icon-user
                        = t('.my_page')
                    %li
                      = link_to user_activities_path(current_user) do
                        %i.icon-rss
                        = t('.activities')
                    %li
                      = link_to [:edit, current_user] do
                        %i.icon-cog
                        = t('.settings')
                    %li.divider
                    %li
                      = link_to logout_path do
                        %i.icon-signout
                        = t('.sign_out')
              - else
                %li= link_to "Sign in", login_path
            .pull-right
              = link_to new_quote_path, class: 'btn btn-primary' do
                %i.icon-pencil
                = t('.new_quote')

    .container
      .flash_message= bootstrap_flash
      = yield
    = render 'layouts/google_analytics'
    %footer.footer
      .container
        .row-fluid
          .span6
            %p= link_to 'About this site', about_path
            %p
              Designed and built by
              = link_to '@kinopyo', 'https://twitter.com/fantasyday'
            %p
              You can find the source code on
              = link_to 'Github', 'https://github.com/kinopyo/quoty'
          .span6
            :plain
              <div class="fb-like" data-href="https://www.facebook.com/pages/Quoty/465845253461976" data-send="false" data-width="450" data-show-faces="true"></div>
              <div id="fb-root"></div>
              <script>(function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id)) return;
                js = d.createElement(s); js.id = id;
                js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=434760919921020";
                fjs.parentNode.insertBefore(js, fjs);
              }(document, 'script', 'facebook-jssdk'));</script>
    /
      Javascripts
      \==================================================
    / Placed at the end of the document so the pages load faster
    = javascript_include_tag "application"
  .modal_container
{'fraction_non_alphanumeric': 0.1322176993818785, 'fraction_numerical': 0.010101010101010102, 'mean_word_length': 1.4661710037174722, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, 'https://': 5, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5700687', 'n_tokens_mistral': 2025, 'n_tokens_neox': 1902, 'n_words': 375}