<commit_before>!!! 5
%html{:lang => 'en'}
  %head
    %title EnergyTransitionModel
    = javascript_include_tag 'application'
    - if current_user
      = javascript_include_tag '/data/latest/search.js'

    = stylesheet_link_tag 'bootstrap_setup'

  %body#data
    .navbar
      .navbar-inner
        .container
          - if content_for?(:navbar)
            = content_for :navbar
          - else
            %a.brand{:href => etsource_root_path} ET-Engine
            - if current_user
              - url_params = {api_scenario_id: params.fetch(:api_scenario_id, 'latest')}
              %ul.nav
                %li= link_to 'ETsource',  etsource_commits_path
                %li= link_to 'Debug',     data_debug_gql_path(url_params)
                %li= link_to 'Users',     users_path
                %li= link_to 'Turk',      mechanical_turk_root_path
                %li= link_to 'GQL',       test_data_gqueries_path(url_params)
                %li= link_to 'Gqueries',  data_gqueries_path(url_params)
                %li.dropdown
                  %a.dropdown-toggle{:href => '#', 'data-toggle' => 'dropdown'}
                    Data
                    %b.carret
                  %ul.dropdown-menu
                    %Li= link_to 'Overview',       data_root_path(url_params)
                    %li= link_to 'Area',           data_area_path(url_params)
                    %li= link_to 'Balance Groups', data_energy_balance_groups_path(url_params)
                    %li= link_to "Checks",         {:controller => 'data/checks', :action => 'expected_demand'}.merge(url_params)
                    %li= link_to 'Carriers',       data_carriers_path(url_params)
                    %li= link_to 'Converters',     data_converters_path(url_params)
                    %li= link_to "Inputs",         data_inputs_path(url_params)
                    %li= link_to 'Layouts',        data_blueprint_layouts_path(url_params)
                    %li= link_to "Scenarios",      data_scenarios_path(url_params)
                %li.divider-vertical
                %li
                  %form.form-inline.navbar-search{:action => data_search_path(url_params), :method => :get}
                    %input.search-query.span3.typeahead{:name => 'search', :placeholder => "Search", :autocomplete => 'off', :rel => 'tooltip', :title => "Converter and Gquery keys. Use dots and underscores to shorten search.", 'data-placement' => 'right', 'data-trigger' => 'hover', 'data-delay' => 500}
                %li.divider-vertical
                - if params[:api_scenario_id]
                  %li
                    %form#api_scenario_selector.navbar-search.form.form-inline{:action => data_redirect_path(url_params), :method => :get}
                      - opts = [["Current - ##{@gql.scenario.id rescue 'error'}", 'latest'], *Scenario.recent.map{|as| [as.identifier, as.id]}]
                      = select_tag :api_scenario_id, options_for_select(opts, params[:api_scenario_id]), :class => 'span2'
                  %li.divider-vertical
                  %li
                    %form#area_code_selector.navbar-search.form.form-inline{:action => '#', :method => :get}
                      - opts = Etsource::Dataset.region_codes
                      = select_tag 'area_code', options_for_select(opts), :prompt => "New scenario:", :class => 'span1'
              %ul.nav.pull-right
                %li
                  = link_to "Logout", logout_path, :class => 'pull-right', :title => "Logged in as #{current_user.email}", :rel => 'tooltip', 'data-placement' => 'bottom'
            - else
              %ul.nav
                %li= link_to 'login', login_path


    .subnav.subnav-fixed
      = yield :subnav

    .container-fluid
      -# if breadcrumbs.any?
        #breadcrumbs
          %ul.breadcrumb
            - breadcrumbs.each do |breadcrumb|
              %li
                = link_to breadcrumb, '#'
                %span.divider
      - if flash.any?
        #flash
          - flash.each do |type, msg|
            .alert{:class => type}<commit_msg>adding onchange: form.submit() to navbar selectors<commit_after>!!! 5
%html{:lang => 'en'}
  %head
    %title EnergyTransitionModel
    = javascript_include_tag 'application'
    - if current_user
      = javascript_include_tag '/data/latest/search.js'

    = stylesheet_link_tag 'bootstrap_setup'

  %body#data
    .navbar
      .navbar-inner
        .container
          - if content_for?(:navbar)
            = content_for :navbar
          - else
            %a.brand{:href => etsource_root_path} ET-Engine
            - if current_user
              - url_params = {api_scenario_id: params.fetch(:api_scenario_id, 'latest')}
              %ul.nav
                %li= link_to 'ETsource',  etsource_commits_path
                %li= link_to 'Debug',     data_debug_gql_path(url_params)
                %li= link_to 'Users',     users_path
                %li= link_to 'Turk',      mechanical_turk_root_path
                %li= link_to 'GQL',       test_data_gqueries_path(url_params)
                %li= link_to 'Gqueries',  data_gqueries_path(url_params)
                %li.dropdown
                  %a.dropdown-toggle{:href => '#', 'data-toggle' => 'dropdown'}
                    Data
                    %b.carret
                  %ul.dropdown-menu
                    %Li= link_to 'Overview',       data_root_path(url_params)
                    %li= link_to 'Area',           data_area_path(url_params)
                    %li= link_to 'Balance Groups', data_energy_balance_groups_path(url_params)
                    %li= link_to "Checks",         {:controller => 'data/checks', :action => 'expected_demand'}.merge(url_params)
                    %li= link_to 'Carriers',       data_carriers_path(url_params)
                    %li= link_to 'Converters',     data_converters_path(url_params)
                    %li= link_to "Inputs",         data_inputs_path(url_params)
                    %li= link_to 'Layouts',        data_blueprint_layouts_path(url_params)
                    %li= link_to "Scenarios",      data_scenarios_path(url_params)
                %li.divider-vertical
                %li
                  %form.form-inline.navbar-search{:action => data_search_path(url_params), :method => :get}
                    %input.search-query.span3.typeahead{:name => 'search', :placeholder => "Search", :autocomplete => 'off', :rel => 'tooltip', :title => "Converter and Gquery keys. Use dots and underscores to shorten search.", 'data-placement' => 'right', 'data-trigger' => 'hover', 'data-delay' => 500}
                %li.divider-vertical
                - if params[:api_scenario_id]
                  %li
                    %form#api_scenario_selector.navbar-search.form.form-inline{:action => data_redirect_path(url_params), :method => :get}
                      - opts = [["Current - ##{@gql.scenario.id rescue 'error'}", 'latest'], *Scenario.recent.map{|as| [as.identifier, as.id]}]
                      = select_tag :api_scenario_id, options_for_select(opts, params[:api_scenario_id]), :class => 'span2', :onchange => 'form.submit()'
                  %li.divider-vertical
                  %li
                    %form#area_code_selector.navbar-search.form.form-inline{:action => '#', :method => :get}
                      - opts = Etsource::Dataset.region_codes
                      = select_tag 'area_code', options_for_select(opts), :prompt => "New scenario:", :class => 'span1', :onchange => 'form.submit()'
              %ul.nav.pull-right
                %li
                  = link_to "Logout", logout_path, :class => 'pull-right', :title => "Logged in as #{current_user.email}", :rel => 'tooltip', 'data-placement' => 'bottom'
            - else
              %ul.nav
                %li= link_to 'login', login_path


    .subnav.subnav-fixed
      = yield :subnav

    .container-fluid
      -# if breadcrumbs.any?
        #breadcrumbs
          %ul.breadcrumb
            - breadcrumbs.each do |breadcrumb|
              %li
                = link_to breadcrumb, '#'
                %span.divider
      - if flash.any?
        #flash
          - flash.each do |type, msg|
            .alert{:class => type}
{'fraction_non_alphanumeric': 0.12446821441594749, 'fraction_numerical': 0.0017017138689680322, 'mean_word_length': 1.824579471335393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 61, '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': '4809393', 'n_tokens_mistral': 2547, 'n_tokens_neox': 2409, 'n_words': 450}