<commit_before>extends layout

block body
  script.
    var activenav = ("dashboard")
    var token = ("#{user.customData.token}")
    var length = ("#{user.customData.length}")
    var device0id = ("#{user.customData.device0id}")
    var device0name = ("#{user.customData.device0name}")
    var device0ver = ("#{user.customData.device0ver}")
    var device0con = ("#{user.customData.device0con}")
    var device0var = ("#{user.customData.device0var}")
    var device0fun = ("#{user.customData.device0fun}")
    var device1id = ("#{user.customData.device1id}")
    var device1name = ("#{user.customData.device1name}")
    var device1ver = ("#{user.customData.device1ver}")
    var device1con = ("#{user.customData.device1con}")
    var device1var = ("#{user.customData.device1var}")
    var device1fun = ("#{user.customData.device1fun}")
    var device2id = ("#{user.customData.device2id}")
    var device2name = ("#{user.customData.device2name}")
    var device2ver = ("#{user.customData.device2ver}")
    var device2con = ("#{user.customData.device2con}")
    var device2var = ("#{user.customData.device2var}")
    var device2fun = ("#{user.customData.device2fun}")
    var device3id = ("#{user.customData.device3id}")
    var device3name = ("#{user.customData.device3name}")
    var device3ver = ("#{user.customData.device3ver}")
    var device3con = ("#{user.customData.device3con}")
    var device3var = ("#{user.customData.device3var}")
    var device3fun = ("#{user.customData.device3fun}")
  .container
      .row.clearfix
        .col-md-12.column
          .row.clearfix
            .col-md-3.column
            .col-md-6.column
              .alert.alert-dismissable.alert-danger
                button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
                h4
                  | Hallo!
                strong What's up!
                |  This is just a test message, nothing is really wrong ^_^ 
                a.alert-link(href='#') linky
                button(onclick='getDevices()') Get Devices?
            .col-md-3.column
          .row.clearfix
            .col-md-1.column
            .col-md-5.column
              .panel.panel-info
                .panel-heading
                  button.rename(onclick='getDetails(device0id, 0)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.refresh(onclick='pencil(0)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device0name}
                  .input-group.rename0
                    span.input-group-btn
                      button.btn.btn-default(type='button', onclick='renameDevice(device0id, 0)') Rename
                    input.form-control(action='/dashboard', method='post', id='0renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device0con}
                  h6 Variables: #{user.customData.device0var}
                  h6 Functions: #{user.customData.device0fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device0id}
                  .footer-ver
                    h6 v #{user.customData.device0ver}
            .col-md-5.column
              .panel.panel-success
                .panel-heading
                  button.rename(onclick='getDetails(device1id, 1)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(1)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device1name}
                    .input-group.rename1
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device1id, 1)') Rename
                      input.form-control(action='/dashboard', method='post', id='1renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device1con}
                  h6 Variables: #{user.customData.device1var}
                  h6 Functions: #{user.customData.device1fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device1id}
                  .footer-ver
                    h6 v #{user.customData.device1ver}
            .col-md-1.column
          .row.clearfix
            .col-md-1.column
            .col-md-5.column
              .panel.panel-danger
                .panel-heading
                  button.rename(onclick='getDetails(device2id, 2)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(2)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device2name}
                    .input-group.rename2
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device2id, 2)') Rename
                      input.form-control(action='/dashboard', method='post', id='2renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device2con}
                  h6 Variables: #{user.customData.device2var}
                  h6 Functions: #{user.customData.device2fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device2id}
                  .footer-ver
                    h6 v #{user.customData.device2ver}
            .col-md-5.column
              .panel.panel-warning
                .panel-heading
                  button.rename(onclick='getDetails(device3id, 3)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(3)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device3name}
                    .input-group.rename3
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device3id, 3)') Rename
                      input.form-control(action='/dashboard', method='post', id='3renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device3con}
                  h6 Variables: #{user.customData.device3var}
                  h6 Functions: #{user.customData.device3fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device3id}<commit_msg>hide dash warning, move get details button (test), ids for device panels for hiding<commit_after>extends layout

block body
  script.
    var token = ("#{user.customData.token}")
    var length = ("#{user.customData.length}")
    var device0id = ("#{user.customData.device0id}")
    var device0name = ("#{user.customData.device0name}")
    var device0ver = ("#{user.customData.device0ver}")
    var device0con = ("#{user.customData.device0con}")
    var device0var = ("#{user.customData.device0var}")
    var device0fun = ("#{user.customData.device0fun}")
    var device1id = ("#{user.customData.device1id}")
    var device1name = ("#{user.customData.device1name}")
    var device1ver = ("#{user.customData.device1ver}")
    var device1con = ("#{user.customData.device1con}")
    var device1var = ("#{user.customData.device1var}")
    var device1fun = ("#{user.customData.device1fun}")
    var device2id = ("#{user.customData.device2id}")
    var device2name = ("#{user.customData.device2name}")
    var device2ver = ("#{user.customData.device2ver}")
    var device2con = ("#{user.customData.device2con}")
    var device2var = ("#{user.customData.device2var}")
    var device2fun = ("#{user.customData.device2fun}")
    var device3id = ("#{user.customData.device3id}")
    var device3name = ("#{user.customData.device3name}")
    var device3ver = ("#{user.customData.device3ver}")
    var device3con = ("#{user.customData.device3con}")
    var device3var = ("#{user.customData.device3var}")
    var device3fun = ("#{user.customData.device3fun}")
  .container
      .row.clearfix
        .col-md-12.column
          button(onclick='getDevices()') Get Devices?
          .row.clearfix
            .col-md-3.column
            .col-md-6.column
              .alert.alert-dismissable.alert-danger
                button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
                h4
                  | Hallo!
                strong What's up!
                |  This is just a test message, nothing is really wrong ^_^ 
                a.alert-link(href='#') linky
            .col-md-3.column
          .row.clearfix
            .col-md-1.column
            .col-md-5.column
              .device0.panel.panel-warning
                .panel-heading
                  button.rename(onclick='getDetails(device0id, 0)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.refresh(onclick='pencil(0)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device0name}
                  .input-group.rename0
                    span.input-group-btn
                      button.btn.btn-default(type='button', onclick='renameDevice(device0id, 0)') Rename
                    input.form-control(action='/dashboard', method='post', id='0renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device0con}
                  h6 Variables: #{user.customData.device0var}
                  h6 Functions: #{user.customData.device0fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device0id}
                  .footer-ver
                    h6 v #{user.customData.device0ver}
            .col-md-5.column
              .device1.panel.panel-warning
                .panel-heading
                  button.rename(onclick='getDetails(device1id, 1)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(1)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device1name}
                    .input-group.rename1
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device1id, 1)') Rename
                      input.form-control(action='/dashboard', method='post', id='1renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device1con}
                  h6 Variables: #{user.customData.device1var}
                  h6 Functions: #{user.customData.device1fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device1id}
                  .footer-ver
                    h6 v #{user.customData.device1ver}
            .col-md-1.column
          .row.clearfix
            .col-md-1.column
            .col-md-5.column
              .device2.panel.panel-warning
                .panel-heading
                  button.rename(onclick='getDetails(device2id, 2)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(2)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device2name}
                    .input-group.rename2
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device2id, 2)') Rename
                      input.form-control(action='/dashboard', method='post', id='2renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device2con}
                  h6 Variables: #{user.customData.device2var}
                  h6 Functions: #{user.customData.device2fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device2id}
                  .footer-ver
                    h6 v #{user.customData.device2ver}
            .col-md-5.column
              .device3.panel.panel-warning
                .panel-heading
                  button.rename(onclick='getDetails(device3id, 3)')
                    .glyphicon.glyphicon-refresh(aria-hidden='true')
                  button.rename(onclick='pencil(3)')
                    .glyphicon.glyphicon-edit(aria-hidden='true')
                  .panel-title #{user.customData.device3name}
                    .input-group.rename3
                      span.input-group-btn
                        button.btn.btn-default(type='button', onclick='renameDevice(device3id, 3)') Rename
                      input.form-control(action='/dashboard', method='post', id='3renameto', type='text', placeholder='Rename device to', name='renameto')
                .panel-body
                  h6 Connected: #{user.customData.device3con}
                  h6 Variables: #{user.customData.device3var}
                  h6 Functions: #{user.customData.device3fun}
                .panel-footer
                  .footer-id
                    h6 ID: #{user.customData.device3id}
{'fraction_non_alphanumeric': 0.13067932797662526, 'fraction_numerical': 0.019430241051862675, 'mean_word_length': 1.7525130679533574, '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': '4293025', 'n_tokens_mistral': 3991, 'n_tokens_neox': 3892, 'n_words': 591}