<commit_before><html>
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content="Knowledgebase 2.0"/>
    <meta name="author" content="<NAME>"/>
    <title>Knowledgebase 2.0</title>
    <link rel="icon" href="/images/icon.gif" type="image/gif" />

    <link rel="stylesheet" href="/bootstrap.min.css" />
    <link rel="stylesheet" href="/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="/knowledgebase.css"/>
    <link rel="stylesheet" href="jstree/themes/default/style.min.css" />

    <script src="/jquery-1.11.2.min.js"></script>
    <script src="/bootstrap.min.js"></script>
    <script src="/knowledgebase.js"></script>
    <script src="/jstree/jstree.min.js"></script>

    <script type="text/javascript">
      jQuery( document ).ready(function() {
        jQuery('#metadata').jstree({
            'plugins' : ['themes','sort','types'],
            'core' : {
              'data' : {
                'url' : '/data/management/metadata',
                'dataType' : 'json'
              },
              'sort' : function (a, b) {
                return this.get_text(a) > this.get_text(b) ? 1 : -1;
              }
            }
         })
         .on('changed.jstree', function (e, data) {
            if(data && data.selected && data.selected.length) {
                jQuery.get('/data/management/metadata/' + data.selected.join(':'), function (d) {
                    var text = "";
                    jQuery.each(d.metadata, function(idx, obj) {
                        text += obj.key;
                        text += ":";
                        text += obj.value;
                        text += "<br/>";
                    });
                    jQuery('#metadatadetails').text(text);
                });
            }
          });
        });
    </script>
  </head>
  <body role="document">

    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <div class="navbar-brand" href="/">Knowledgebase 2.0 Management</div>
        </div>
        <div class="navbar-collapse">
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">


        <div id="metadata" class="col-sm-3"></div>
        <div id="metadatadetails" class="col-sm-9"></div>

    </div>

    <div class="container">
      <footer>
        <p>Version: ${project.version}</p>
      </footer>
    </div>

  </body>
</html><commit_msg>add bootstrap layout to metadata table<commit_after><html>
  <head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1"/>
    <meta name="description" content="Knowledgebase 2.0"/>
    <meta name="author" content="<NAME>"/>
    <title>Knowledgebase 2.0</title>
    <link rel="icon" href="/images/icon.gif" type="image/gif" />

    <link rel="stylesheet" href="/bootstrap.min.css" />
    <link rel="stylesheet" href="/bootstrap-theme.min.css"/>
    <link rel="stylesheet" href="/knowledgebase.css"/>
    <link rel="stylesheet" href="jstree/themes/default/style.min.css" />

    <script src="/jquery-1.11.2.min.js"></script>
    <script src="/bootstrap.min.js"></script>
    <script src="/knowledgebase.js"></script>
    <script src="/jstree/jstree.min.js"></script>

    <script type="text/javascript">
      jQuery( document ).ready(function() {
        jQuery('#metadata').jstree({
            'plugins' : ['themes','sort','types'],
            'core' : {
              'data' : {
                'url' : '/data/management/metadata',
                'dataType' : 'json'
              },
              'sort' : function (a, b) {
                return this.get_text(a) > this.get_text(b) ? 1 : -1;
              }
            }
         })
         .on('changed.jstree', function (e, data) {
            if(data && data.selected && data.selected.length) {
                jQuery.get('/data/management/metadata/' + data.selected.join(':'), function (d) {
                    var text = "<table class='table table-striped'>";
                    jQuery.each(d.metadata, function(idx, obj) {
                        text += "<tr><td>";
                        text += obj.key;
                        text += "</td><td>";
                        text += obj.value;
                        text += "</td></tr>";
                    });
                    text += "</table>";
                    jQuery('#metadatadetails').html(text);
                });
            }
          });
        });
    </script>
  </head>
  <body role="document">

    <nav class="navbar navbar-default">
      <div class="container">
        <div class="navbar-header">
          <div class="navbar-brand" href="/">Knowledgebase 2.0 Management</div>
        </div>
        <div class="navbar-collapse">
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="container">

      <div class="col-sm-4">
        <div class="panel panel-default">
          <div class="panel-body">
            <div id="metadata"></div>
          </div>
        </div>
      </div>

      <div class="col-sm-8">
        <div class="panel panel-default">
          <div class="panel-heading">
            Metadaten
          </div>
          <div class="panel-body">
            <div id="metadatadetails"></div>
          </div>
        </div>
      </div>

    </div>

    <div class="container">
      <footer>
        <p>Version: ${project.version}</p>
      </footer>
    </div>

  </body>
</html>
{'fraction_non_alphanumeric': 0.18851590106007068, 'fraction_numerical': 0.005653710247349823, 'mean_word_length': 1.76416015625, 'pattern_counts': {'":': 1, '<': 130, '<?xml version=': 0, '>': 132, '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': '4880319', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1658, 'n_words': 296}