<commit_before>// This page handles the main dashboard

PAGE.listChannels = function() {
   var H = cm.help.header();
   H += "<hr>Dashboard</hr>&nbsp;<span class='settings'><a href='#Page=viewRepo'>Repositories</a></span>";
   H += '<div id="channels_list">'
   H += '<div id="message"></div>'
   H += '<table id="channels_list_table" cellpadding="0" cellspacing="0" border="0"></table>'
      H += "<div>&nbsp;</div><div style='float:right;'><a href='#Page=addChannel'><img src='app/cm/button-addchannel.gif'/></a></div></div>" + cm.help.footer();
   $('body').html(H);

   $.post(
      "list-channels",
      function(Data) {
        console.log(Data); 
        Results = Data;
        lib.datatable.addSearchHighlight(Results);  
        $("#channels_list_table").dataTable(Results);
      }
   );
}

PAGE.default = PAGE.listChannels;<commit_msg>Minor changes to spacing and logging.<commit_after>// This page handles the main dashboard

PAGE.listChannels = function() {
   var H = cm.help.header();
   H += "<hr>Dashboard</hr>&nbsp;<span class='settings'><a href='#Page=viewRepo'>Repositories</a></span>";
   H += '<div id="channels_list">'
   H += '<div id="message"></div>'
   H += '<table id="channels_list_table" cellpadding="0" cellspacing="0" border="0"></table>'
   H += "<div>&nbsp;</div><div style='float:right;'><a href='#Page=addChannel'><img src='app/cm/button-addchannel.gif'/></a></div></div>" + cm.help.footer();
   $('body').html(H);

   $.post(
      "list-channels",
      function(Data) {
        console.log(Data); 
        Results = Data;
        lib.datatable.addSearchHighlight(Results);  
        console.log(Results); 
        $("#channels_list_table").dataTable(Results);
      }
   );
}

PAGE.default = PAGE.listChannels;
{'fraction_non_alphanumeric': 0.21493728620296465, 'fraction_numerical': 0.0034207525655644243, 'mean_word_length': 3.808219178082192, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '741073', 'n_tokens_mistral': 587, 'n_tokens_neox': 575, 'n_words': 95}