<commit_before>!!!
%html{ lang: 'en' }
  %head
    %meta{ charset: 'utf-8' }
    %meta{ content: 'IE=edge', 'http-equiv' => 'X-UA-Compatible' }
    %meta{ content: 'width=device-width, initial-scale=1', name: 'viewport' }
    %meta{ content: '', name: 'description' }
    %meta{ content: '', name: 'author' }
    %title= @title
    -# %link{rel: :stylesheet, type: 'text/css', href: '/css/test.css'}
    -# = css "#{settings.cssdir}/styles".to_sym
    %link{ href: "/#{settings.cssdir}/styles.css", media: 'Screen',
      rel: 'stylesheet' }
    %link{ href: "/#{settings.cssdir}/mobile.css", media: 'handheld',
      rel: 'stylesheet' }
    %script{ src: '/js/jquery.js' }
    -# %script{:src => "/js/jquery-ui.min.js"}
    -# %script{:src => "/js/application.js"}
    %script{ src: '/js/test.js' }
    %link{ href: '/img/favicon.ico', rel: 'shortcut icon' }
  %body
    %header.header
      %h1
        Vhost API
      = haml :nav
      - unless @user.nil?
        %h4 Welcome #{@user.name}
    %section.content
      .content-wrapper
        .row
          .col-12.flash-message= find_and_preserve styled_flash
        .row
          .col-2.sidebar= haml :sidebar
          .col-10= yield
    %footer.footer
      - if session[:user_id]
        %a{ href: '/logout' } log out
        %p
          (Logged in as #{@user.login})
      - else
        %a{ href: '/login' } log in<commit_msg>Implement bootstrap layout<commit_after>!!!
%html{ lang: 'en' }
  %head
    %meta{ charset: 'utf-8' }
    %meta{ content: 'IE=edge', 'http-equiv' => 'X-UA-Compatible' }
    %meta{ content: 'width=device-width, initial-scale=1', name: 'viewport' }
    %meta{ content: '', name: 'description' }
    %meta{ content: '', name: 'author' }
    %title= @title
    -# %link{ rel: :stylesheet, type: 'text/css', href: '/css/test.css' }
    -# = css "#{settings.cssdir}/styles".to_sym
    -# %link{ href: "/#{settings.cssdir}/styles.css", media: 'Screen',
    -#  rel: 'stylesheet' }
    -# %link{ href: "/#{settings.cssdir}/mobile.css", media: 'handheld',
    -#  rel: 'stylesheet' }
    %link{ href: "/#{settings.cssdir}/bootstrap.min.css", rel: 'stylesheet' }
    %link{ href: "/#{settings.cssdir}/own.css", rel: 'stylesheet' }
    %link{ href: "/#{settings.cssdir}/icon.css", rel: 'stylesheet' }
    
    -# %script{:src => '/js/jquery.js' }
    -# %script{:src => '/js/jquery-ui.min.js' }
    -# %script{:src => '/js/application.js' }
    -# %script{:src => '/js/test.js' }
    %link{ href: '/img/favicon.ico', rel: 'shortcut icon' }
  %body
    %nav.navbar.navbar-inverse.navbar-fixed-top
      .container-fluid
        .navbar-header
          %button.navbar-toggle.collapsed{"aria-controls" => "navbar", "aria-expanded" => "false", "data-target" => "#navbar", "data-toggle" => "collapse", :type => "button"}
            %span.sr-only Toggle navigation
            %span.icon-bar
            %span.icon-bar
            %span.icon-bar
          %a.navbar-brand.navbar-brand-pad{:href => "#"} VHost-Api
        #navbar.navbar-collapse.collapse
          %ul.nav.navbar-nav
            = haml :nav
          %ul.nav.navbar-nav.navbar-right
            - if !@user.nil?
              %li.dropdown

                %a.dropdown-toggle{"aria-expanded" => "false", :"aria-haspopup" => "true", "data-toggle" => "dropdown", :href => "#", :role => "button"}
                  #{@user.name}
                  %span.caret
                %ul.dropdown-menu
                  %li
                    %a{:href => "/logout"}
                      .icon.icon-logout
                        Logout
            - else            
              %li
                %a{:href => "/login", :title => "Login"}
                  Login
    .container-fluid
      .row
      - if !@sidebar_elements.nil?
        .col-sm-3.col-md-2.sidebar
          %ul.nav.nav-sidebar
            = haml :sidebar 
        .col-sm-9.col-sm-offset-3.col-md-10.col-md-offset-2.main
          = yield
      - else
        .col-sm-12.col-md-10.col-md-offset-2.main
          = yield        

    %script{:src => '/js/jquery.js' }
    %script{:src => '/js/bootstrap.min.js' }
{'fraction_non_alphanumeric': 0.19581610313792264, 'fraction_numerical': 0.005594745803940647, 'mean_word_length': 1.973246565437455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '4508132', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1420, 'n_words': 263}