<commit_before>html
  head
    -if defined? @notebook
      script type="text/x-mathjax-config"
        | MathJax.Hub.Config({
        |   tex2jax: {
        |     inlineMath: [ ['$','$'] ],
        |     processEscapes: true
        |   }
        | });
      ==mathjax_tag
    meta charset='UTF-8'
    -if defined? nofollow
      meta name='robots' content='nofollow'
    -if defined? @notebook.title
      title =@notebook.title
    -elsif defined? @subtitle and !@subtitle.nil? and !@subtitle.empty?
      title #{GalleryConfig.site.name} - #{@subtitle}
    -else
      title #{GalleryConfig.site.name}
    -if defined? @notebook.description
      meta name='description' content="#{@notebook.description}"
    -else
      meta name='description' content="nbgallery is a Jupyter notebook sharing and collaboration platform"
    ==csrf_meta_tag
    ==favicon_link_tag 'nb.ico'
    ==javascript_include_tag 'application', 'data-turbolinks-track' => true
    ==stylesheet_link_tag 'application', media: 'all'

  ==render partial: 'custom_banner'

  body
    == render partial: 'login_modal'
    div id="wrapper"
      div id="contents"
        div.navbar-wrapper
          div.container
            div.navbar.navbar-default id='topNavbar'
              div.navbar-inner
                a href='/'
                  ==image_tag('nbgallery_logo.png', id: 'logo')
                div.collapse.navbar-collapse
                  form.navbar-form.navbar-right role='search' action='/notebooks' id='navbarSearchBar'
                    div.form-group
                      input.form-control type='text' placeholder='Search' name='q' id='searchFieldBox' value="#{params[:q] || ''}"
                      input type='hidden' name='sort' value='score'
                    span.dropdown.navbar-right id='testID'
                      -unless @user.change_requests_pending.empty?
                        a.tooltips href='/change_requests' title='You have pending change requests to review' id = 'changeRequestsPending'
                          b.glyphicon.glyphicon-exclamation-sign.gear
                      a.tooltips href='#' title='Learn More' id='learnMore'
                        b.glyphicon.glyphicon-question-sign.gear
                      a.dropdown-toggle href='#' data-toggle='dropdown' id='gearDropdown' style='margin-right:25px'
                        -if @user.member?
                          span.glyphicon.glyphicon-user.gear
                          b.caret style='color:#777'
                        -else
                          span.glyphicon.glyphicon-user.gear data-toggle="modal" data-target="#login-modal"
                      -if @user.member?
                        ul.dropdown-menu.cog id='gearDropdownMenu'
                          li
                            a href='/environments'
                              span.tab Jupyter Environments
                          li
                            a href='/preferences'
                              span.tab Jupyter Preferences
                          li
                            a href='/change_requests'
                              span.tab Change Requests
                          li
                            a href="#{GalleryConfig.feedback.url}" id='provideFeedback' target ="_blank"
                              span.tab Provide Feedback
                          -if @user.admin? or user_signed_in?
                            li.divider role="separator"
                          -if @user.admin?
                            li
                              a href='/admin'
                                span.tab Admin
                          -if user_signed_in?
                            li
                              == link_to('Logout', destroy_user_session_path, :method => :delete)
                  div.nav.navbar-nav.navbar-right
                    ==render partial: 'custom_buttons'
                    -if @user.member?
                      a href ='#uploadFileModal' data-toggle='modal' id='uploadModalButton'
                        button.btn.btn-primary.navbar-btn Upload<commit_msg>Show logged in user, using the user_name variable.<commit_after>html
  head
    -if defined? @notebook
      script type="text/x-mathjax-config"
        | MathJax.Hub.Config({
        |   tex2jax: {
        |     inlineMath: [ ['$','$'] ],
        |     processEscapes: true
        |   }
        | });
      ==mathjax_tag
    meta charset='UTF-8'
    -if defined? nofollow
      meta name='robots' content='nofollow'
    -if defined? @notebook.title
      title =@notebook.title
    -elsif defined? @subtitle and !@subtitle.nil? and !@subtitle.empty?
      title #{GalleryConfig.site.name} - #{@subtitle}
    -else
      title #{GalleryConfig.site.name}
    -if defined? @notebook.description
      meta name='description' content="#{@notebook.description}"
    -else
      meta name='description' content="nbgallery is a Jupyter notebook sharing and collaboration platform"
    ==csrf_meta_tag
    ==favicon_link_tag 'nb.ico'
    ==javascript_include_tag 'application', 'data-turbolinks-track' => true
    ==stylesheet_link_tag 'application', media: 'all'

  ==render partial: 'custom_banner'

  body
    == render partial: 'login_modal'
    div id="wrapper"
      div id="contents"
        div.navbar-wrapper
          div.container
            div.navbar.navbar-default id='topNavbar'
              div.navbar-inner
                a href='/'
                  ==image_tag('nbgallery_logo.png', id: 'logo')
                div.collapse.navbar-collapse
                  form.navbar-form.navbar-right role='search' action='/notebooks' id='navbarSearchBar'
                    div.form-group
                      input.form-control type='text' placeholder='Search' name='q' id='searchFieldBox' value="#{params[:q] || ''}"
                      input type='hidden' name='sort' value='score'
                    span.dropdown.navbar-right id='testID'
                      -unless @user.change_requests_pending.empty?
                        a.tooltips href='/change_requests' title='You have pending change requests to review' id = 'changeRequestsPending'
                          b.glyphicon.glyphicon-exclamation-sign.gear
                      a.tooltips href='#' title='Learn More' id='learnMore'
                        b.glyphicon.glyphicon-question-sign.gear
                      a.dropdown-toggle href='#' data-toggle='dropdown' id='gearDropdown' style='margin-right:25px'
                        -if @user.member?
                          span.glyphicon.glyphicon-user.gear
                          b.caret style='color:#777'
                        -else
                          span.glyphicon.glyphicon-user.gear data-toggle="modal" data-target="#login-modal"
                      -if @user.member?
                        ul.dropdown-menu.cog id='gearDropdownMenu'
                          li
                            a href='/environments'
                              span.tab Jupyter Environments
                          li
                            a href='/preferences'
                              span.tab Jupyter Preferences
                          li
                            a href='/change_requests'
                              span.tab Change Requests
                          li
                            a href="#{GalleryConfig.feedback.url}" id='provideFeedback' target ="_blank"
                              span.tab Provide Feedback
                          -if @user.admin? or user_signed_in?
                            li.divider role="separator"
                            li
                              span Logged in as: <b>#{@user.user_name}</b>
                            li.divider role="separator"
                          -if @user.admin?
                            li
                              a href='/admin'
                                span.tab Admin
                          -if user_signed_in?
                            li
                              == link_to('Logout', destroy_user_session_path, :method => :delete)
                  div.nav.navbar-nav.navbar-right
                    ==render partial: 'custom_buttons'
                    -if @user.member?
                      a href ='#uploadFileModal' data-toggle='modal' id='uploadModalButton'
                        button.btn.btn-primary.navbar-btn Upload
{'fraction_non_alphanumeric': 0.10335825323365373, 'fraction_numerical': 0.0016613266880265813, 'mean_word_length': 1.3687464867903316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3840342', 'n_tokens_mistral': 2265, 'n_tokens_neox': 2132, 'n_words': 424}