<commit_before>extends layout

block content
  
  div(class='row', ng-controller='slider-controller')
    div(class='col-md-5')
      h2(class='header_title')= title
      p= description 
    div(class='col-md-2')
      rzslider(rz-slider-model='updateFreqSlider.value', rz-slider-floor='updateFreqSlider.min', rz-slider-ceil='updateFreqSlider.max', rz-slider-translate='updateFreqSlider.translate')
      small(class='text-muted') Refresh Rate
    div(class='col-md-2')
      rzslider(rz-slider-model='rangeSlider.value', rz-slider-floor='rangeSlider.min', rz-slider-ceil='rangeSlider.max', rz-slider-translate='rangeSlider.translate')
      small(class='text-muted') Lookback Window
    div(class='col-md-3 btn-toolbar pull-right')
      button(type='button', id='db_config_modal_btn', data-toggle='modal', data-target='db_config_modal', class='btn btn-default') 
        span(class='glyphicon glyphicon-cog')
        span(class='glyphicon-class')  DB Config
      button(type='button', id='flight_modal_btn', data-toggle='model', data-target='flight_modal', class='btn btn-default')
        span(class='glyphicon glyphicon-send')
        span(class='glyphicon-class')  Set Flights


  div(class='row top-buffer', ng-controller='tab-controller')
    ul(id='db_config', class='nav nav-pills')
      li(id='db_config_title_{{db_config}}', ng-class='{active: $first, in: $first}', ng-repeat='(db_config, schemas) in db_configs')
        a(href='#db_config_{{db_config}}', data-toggle='tab') 
          span(class='glyphicon glyphicon-hdd')
          span(class='glyphicon-class')  {{db_config}}
    div(id='db_config_content', class='tab-content top-buffer')
      div(class='tab-pane fade', id='db_config_{{db_config}}', ng-class='{active: $first, in: $first}', ng-repeat='(db_config, schemas) in db_configs')
        ul(id='schema_{{db_config}}', class='nav  nav-tabs')
          li(id='schema_title_{{db_config}}{{schema}}', ng-class='{active: $first, in: $first}', ng-repeat='(schema, flights) in schemas')
            a(href='#schema_{{db_config}}{{schema}}', data-toggle='tab')  {{schema}}
        div(id='schema_{{db_config}}_content', class='tab-content')
          div(class='row tab-pane fade', id='schema_{{db_config}}{{schema}}', ng-class='{active: $first, in: $first}', ng-repeat='(schema, flights) in schemas')
            gliderchart(flight='flight', ng-repeat='flight in flights track by $index', class='col-md-6')

  // db_config_modal
  div(class='modal fade', id='db_config_modal', tab-index='-1', role='dialog', aria-labelledby='db_config_modal_label', aria-hidden='true')
    div(class='modal-dialog', ng-controller='db_config-controller')
      div(class='modal-content')

        div(class='modal-header')
          button(type='button', class='close', data-dismiss='modal', aria-hidden='true') &times;
          h4(class='modal-title', id='db_config_modal_label') Database Configurations

        div(class='modal-body')
          div(ng-repeat='db_config in db_configs track by $index')
            div(class='panel' class='panel-{{db_config.status || "default"}}')
              div(class='panel-heading')
                h4(class='panel-title') 
                  span(class='glyphicon glyphicon-hdd')
                  span(class='glyphicon-class')  {{db_config.name}}
                  button(type="button", class="close", ng-click='deleteDBConfig($index, db_config)') ×
              div(class='panel-body')
                div(class='row') 
                 div(class='col-md-2') Name:
                 div(class='col-md-6')
                   a(href='#', onaftersave='updateDBConfig(db_config)', editable-text='db_config.name', e-style='width:200px;', onbeforesave='checkName($data)', e-required) {{db_config.name || 'empty'}}<commit_msg>order charts by table name<commit_after>extends layout

block content
  
  div(class='row', ng-controller='slider-controller')
    div(class='col-md-5')
      h2(class='header_title')= title
      p= description 
    div(class='col-md-2')
      rzslider(rz-slider-model='updateFreqSlider.value', rz-slider-floor='updateFreqSlider.min', rz-slider-ceil='updateFreqSlider.max', rz-slider-translate='updateFreqSlider.translate')
      small(class='text-muted') Refresh Rate
    div(class='col-md-2')
      rzslider(rz-slider-model='rangeSlider.value', rz-slider-floor='rangeSlider.min', rz-slider-ceil='rangeSlider.max', rz-slider-translate='rangeSlider.translate')
      small(class='text-muted') Lookback Window
    div(class='col-md-3 btn-toolbar pull-right')
      button(type='button', id='db_config_modal_btn', data-toggle='modal', data-target='db_config_modal', class='btn btn-default') 
        span(class='glyphicon glyphicon-cog')
        span(class='glyphicon-class')  DB Config
      button(type='button', id='flight_modal_btn', data-toggle='model', data-target='flight_modal', class='btn btn-default')
        span(class='glyphicon glyphicon-send')
        span(class='glyphicon-class')  Set Flights


  div(class='row top-buffer', ng-controller='tab-controller')
    ul(id='db_config', class='nav nav-pills')
      li(id='db_config_title_{{db_config}}', ng-class='{active: $first, in: $first}', ng-repeat='(db_config, schemas) in db_configs')
        a(href='#db_config_{{db_config}}', data-toggle='tab') 
          span(class='glyphicon glyphicon-hdd')
          span(class='glyphicon-class')  {{db_config}}
    div(id='db_config_content', class='tab-content top-buffer')
      div(class='tab-pane fade', id='db_config_{{db_config}}', ng-class='{active: $first, in: $first}', ng-repeat='(db_config, schemas) in db_configs')
        ul(id='schema_{{db_config}}', class='nav  nav-tabs')
          li(id='schema_title_{{db_config}}{{schema}}', ng-class='{active: $first, in: $first}', ng-repeat='(schema, flights) in schemas')
            a(href='#schema_{{db_config}}{{schema}}', data-toggle='tab')  {{schema}}
        div(id='schema_{{db_config}}_content', class='tab-content')
          div(class='row tab-pane fade', id='schema_{{db_config}}{{schema}}', ng-class='{active: $first, in: $first}', ng-repeat='(schema, flights) in schemas')
            gliderchart(flight='flight', ng-repeat='flight in flights | orderBy:"table" track by $index ', class='col-md-6')

  // db_config_modal
  div(class='modal fade', id='db_config_modal', tab-index='-1', role='dialog', aria-labelledby='db_config_modal_label', aria-hidden='true')
    div(class='modal-dialog', ng-controller='db_config-controller')
      div(class='modal-content')

        div(class='modal-header')
          button(type='button', class='close', data-dismiss='modal', aria-hidden='true') &times;
          h4(class='modal-title', id='db_config_modal_label') Database Configurations

        div(class='modal-body')
          div(ng-repeat='db_config in db_configs track by $index')
            div(class='panel' class='panel-{{db_config.status || "default"}}')
              div(class='panel-heading')
                h4(class='panel-title') 
                  span(class='glyphicon glyphicon-hdd')
                  span(class='glyphicon-class')  {{db_config.name}}
                  button(type="button", class="close", ng-click='deleteDBConfig($index, db_config)') ×
              div(class='panel-body')
                div(class='row') 
                 div(class='col-md-2') Name:
                 div(class='col-md-6')
                   a(href='#', onaftersave='updateDBConfig(db_config)', editable-text='db_config.name', e-style='width:200px;', onbeforesave='checkName($data)', e-required) {{db_config.name || 'empty'}}
{'fraction_non_alphanumeric': 0.18361955085865259, 'fraction_numerical': 0.0036988110964332895, 'mean_word_length': 3.987483530961792, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1600135', 'n_tokens_mistral': 2475, 'n_tokens_neox': 2408, 'n_words': 362}