<commit_before>include ../includes/_knoledgemenu.jade
extends ../_layout.jade
block content
  .container
    .row
      +subNav('concepts')

      .bs-callout.bs-callout-default
        h4 Concept Hierarchy
        p Concept table

      .form-group.pull-right
        form#target(action="/knowledge/concepts/import" method="post" enctype="multipart/form-data")
          span.btn.btn-default.btn-file
            | Load Concepts 
            input#datafile(type='file' name="file")

      if (concept && concept.length !== 0)
        h3 Exploring #{concept[0].subject}

        table.table.table-bordered.table-condensed
          thead
            tr
              th Subject
              th Predicate
              th Object
              td Action

          - for (var i = 0; i < concept.length; i++)
            tr 
              td= concept[i].subject
              td= concept[i].predicate
              td
                 a(href="/knowledge/concept/#{concept[i].object}")= concept[i].object
              td
                 a(data-s="#{concept[i].subject}", data-p="#{concept[i].predicate}", data-o="#{concept[i].object}").js-del.btn.btn-danger.btn-xs Delete

      if (concepts)     
        table.table.table-bordered.table-condensed
          - for (var i = 0; i < concepts.length; i++)
              tr
                td 
                  a(href="/knowledge/concept/#{concepts[i].subject}")= concepts[i].subject

  script.
    $('#datafile').change(function() {
      $('#target').submit();
    });


    $(".js-del").click(function(e){
      var s = $(e.target).data('s');
      var p = $(e.target).data('p');
      var o = $(e.target).data('o');

      swal({
        title: "Are you sure?",   
        text: "You will not be able to recover this fact!",   
        type: "warning",   
        showCancelButton: true,   
        confirmButtonColor: "#DD6B55",   
        confirmButtonText: "Yes, delete it!",   
        closeOnConfirm: true <commit_msg>Added columns back to knowledge list<commit_after>include ../includes/_knoledgemenu.jade
extends ../_layout.jade
block content
  .container
    .row
      +subNav('concepts')

      .bs-callout.bs-callout-default
        h4 Concept Hierarchy
        p Concept table

      .form-group.pull-right
        form#target(action="/knowledge/concepts/import" method="post" enctype="multipart/form-data")
          span.btn.btn-default.btn-file
            | Load Concepts 
            input#datafile(type='file' name="file")

      if (concept && concept.length !== 0)
        h3 Exploring #{concept[0].subject}

        table.table.table-bordered.table-condensed
          thead
            tr
              th Subject
              th Predicate
              th Object
              td Action

          - for (var i = 0; i < concept.length; i++)
            tr 
              td= concept[i].subject
              td= concept[i].predicate
              td
                 a(href="/knowledge/concept/#{concept[i].object}")= concept[i].object
              td
                 a(data-s="#{concept[i].subject}", data-p="#{concept[i].predicate}", data-o="#{concept[i].object}").js-del.btn.btn-danger.btn-xs Delete

      if (concepts)     
        table.table.table-bordered.table-condensed
          - for (var i = 0; i < concepts.length; i += 5)
              tr
                - if (concepts[i])
                  td 
                    a(href="/knowledge/concept/#{concepts[i].subject}")= concepts[i].subject                
                - if (concepts[i+1])
                  td 
                    a(href="/knowledge/concept/#{concepts[i+1].subject}")= concepts[i+1].subject
                - if (concepts[i+2])
                  td 
                    a(href="/knowledge/concept/#{concepts[i+2].subject}")= concepts[i+2].subject
                - if (concepts[i+3])
                  td 
                    a(href="/knowledge/concept/#{concepts[i+3].subject}")= concepts[i+3].subject
                - if (concepts[i+4])
                  td 
                    a(href="/knowledge/concept/#{concepts[i+4].subject}")= concepts[i+4].subject



  script.
    $('#datafile').change(function() {
      $('#target').submit();
    });


    $(".js-del").click(function(e){
      var s = $(e.target).data('s');
      var p = $(e.target).data('p');
      var o = $(e.target).data('o');

      swal({
        title: "Are you sure?",   
        text: "You will not be able to recover this fact!",   
        type: "warning",   
        showCancelButton: true,   
        confirmButtonColor: "#DD6B55",   
        confirmButtonText: "Yes, delete it!",   
        closeOnConfirm: true 
{'fraction_non_alphanumeric': 0.1485063399957017, 'fraction_numerical': 0.006662368364496024, 'mean_word_length': 1.6594285714285715, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6171132', 'n_tokens_mistral': 1451, 'n_tokens_neox': 1339, 'n_words': 262}