<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) : "RHabit"
    = csrf_meta_tags
    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
    = stylesheet_link_tag "application", :media => "all"
    = favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144'
    = favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114'
    = favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72'
    = favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png'
    = favicon_link_tag 'favicon.ico', :rel => 'shortcut icon'
    = javascript_include_tag "application"

  %body
    .navbar.navbar-fixed-top.navbar-inverse
      .navbar-inner
        .container
          %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          = link_to "RHabit", root_path(date: I18n.localize(Date.today)), class: 'brand'
          %ul.nav
            %li
              = form_tag root_path, method: 'get', class: 'navbar-form' do
                = text_field_tag :date, @date && l(@date), placeholder: t('pick_a_date'), class: 'input-small datepicker'
                = submit_tag t('go'), class: 'btn'
            %li.divider-vertical
          - if user_signed_in?
            .container.nav-collapse
              = render_navigation level: :all, expand_all: true, renderer: :bootstrap
              .pull-right
                %ul.nav
                  %li= link_to t('devise.links.my_account'), edit_user_registration_path
                  %li= link_to t('devise.links.sign_out'), destroy_user_session_path, :method => :delete

    .container
      = bootstrap_flash
      
      = yield

    %footer
      %hr
      #footer-content
        .container
      #colophon<commit_msg>update navbar so only registerd users can see the datepicker form<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) : "RHabit"
    = csrf_meta_tags
    / Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      = javascript_include_tag "//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6.1/html5shiv.js"
    = stylesheet_link_tag "application", :media => "all"
    = favicon_link_tag 'apple-touch-icon-144x144-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '144x144'
    = favicon_link_tag 'apple-touch-icon-114x114-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '114x114'
    = favicon_link_tag 'apple-touch-icon-72x72-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png', :sizes => '72x72'
    = favicon_link_tag 'apple-touch-icon-precomposed.png', :rel => 'apple-touch-icon-precomposed', :type => 'image/png'
    = favicon_link_tag 'favicon.ico', :rel => 'shortcut icon'
    = javascript_include_tag "application"

  %body
    .navbar.navbar-fixed-top.navbar-inverse
      .navbar-inner
        .container
          %a.btn.btn-navbar(data-target=".nav-collapse" data-toggle="collapse")
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          = link_to "RHabit", root_path(date: I18n.localize(Date.today)), class: 'brand'
          - if user_signed_in?
            .container
              %ul.nav
                %li
                  = form_tag root_path, method: 'get', class: 'navbar-form' do
                    = text_field_tag :date, @date && l(@date), placeholder: t('pick_a_date'), class: 'input-small datepicker'
                    = submit_tag t('go'), class: 'btn'
                %li.divider-vertical
              .nav-collapse
                = render_navigation level: :all, expand_all: true, renderer: :bootstrap
                .pull-right
                  %ul.nav
                    %li= link_to t('devise.links.my_account'), edit_user_registration_path
                    %li= link_to t('devise.links.sign_out'), destroy_user_session_path, :method => :delete

    .container
      = bootstrap_flash
      
      = yield

    %footer
      %hr
      #footer-content
        .container
      #colophon
{'fraction_non_alphanumeric': 0.14878397711015737, 'fraction_numerical': 0.019619865113427344, 'mean_word_length': 2.5879765395894427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, 'https://': 0, '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': '6424742', 'n_tokens_mistral': 1739, 'n_tokens_neox': 1621, 'n_words': 288}