<commit_before><!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="css/show.css" rel="stylesheet" type="text/css">
    </link>
    <title>
      Check update details
    </title>
  </head>
  
  <body>
    <div class="container-fluid">
      <div class="row" style="clear: both;">
        <div class="panel-group" id="source-accordion" role="tablist" aria-multiselectable="true">
        </div>
      </div>
    </div>
    <script type="text/javascript" src="js/jquery.min.js">
    </script>
    <script type="text/javascript" src="js/bootstrap.min.js">
    </script>
    <script type="text/javascript">
      listall = function(debs) {
        var deblist = '';
        console.log(debs);
        $.each(debs, function(i, item){
          deblist = deblist + i + ": " + item + "<br />";
        });
        return deblist
      }

      $(document).ready(function() {
        $.ajax({
          url: "data.json",
          dataType: "json",
          success: function(data) {
            var col_table = '';
            var add_table = '<h4>Packages Add:</h4><table>';
            var update_table = '<h4>Packages Update:</h4><table>';
            $.each(data,
            function(i, data_item) {
              if (data_item.oldversion == '0') {
                // new source
                add_table = add_table + '<tr><td class="check-td"><label><input type="checkbox" value="index' + data_item.name + '"></label></td>';
                add_table = add_table + '<td class="details-td"><div class="panel panel-default" style="background-color: #faebd7;"><div class="panel-heading" role="tab" id="heading' + i + '"><h4 class="panel-title"><div role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse' + i + '" aria-expanded="true" aria-controls="collapse' + i + '" style="color: #0066bb">';
                add_table = add_table + '<div class="name-div" style="display: inline-block;">' + data_item.name + '</div><div class="version-div" style="display: inline;">Version: ' + data_item.version + '</div></div></h4></div>';
                add_table = add_table + '<div id="collapse' + i + '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading' + i + '"><div class="panel-body" id="result' + i + '">';
                add_table = add_table + '<table><tr><td class="deb-td"><b>debs</b></td><td class="changelog-td"><b>changelog</b></td><td class="git-td"><b>git</b></td></tr><tr>';
                add_table = add_table + '<td class="deb-td" style="display: block;">' + listall(data_item.deblist) + '</td>';
                add_table = add_table + '<td class="changelog-td">' + data_item.changelog.split("\n").join("<br />") + '</td>';
                add_table = add_table + '<td class="git-td"></td>';
                add_table = add_table + '</tr></table></div></div></div></td>';
                add_table = add_table + '</tr>';
              } else {
                update_table = update_table + '<tr><td class="check-td"><label><input type="checkbox" value="index' + data_item.name + '"></label></td>';
                update_table = update_table + '<td class="details-td"><div class="panel panel-default" style="background-color: #faebd7;"><div class="panel-heading" role="tab" id="heading' + i + '"><h4 class="panel-title"><div role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse' + i + '" aria-expanded="true" aria-controls="collapse' + i + '" style="color: #0066bb">';
                update_table = update_table + '<div class="name-div" style="display: inline-block;">' + data_item.name + '</div><div class="version-div" style="display: inline;">Version: ' + data_item.oldversion + ' -> ' + data_item.version + '</div></h4></div>';
                update_table = update_table + '<div id="collapse' + i + '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading' + i + '"><div class="panel-body" id="result' + i + '">';
                update_table = update_table + '<table><tr><td class="deb-td"><b>debs</b></td><td class="changelog-td"><b>changelog</b></td><td class="git-td"><b>git</b></td></tr><tr>';
                update_table = update_table + '<td class="deb-td" style="display: block;">' + listall(data_item.deblist) + '</td>';
                update_table = update_table + '<td class="changelog-td">' + data_item.changelog.split("\n").join("<br />") + '</td>';
                update_table = update_table + '<td class="git-td"></td>';
                update_table = update_table + '</tr></table></div></div></div></td>';
                update_table = update_table + '</tr>';
              };

            });
            add_table = add_table + '</table>';
            update_table = update_table + '</table>';
            col_table = add_table + update_table;
            document.getElementById("source-accordion").innerHTML = col_table;
          }
        });
      });
    </script>
  </body>

</html><commit_msg>Add commit logs in index.html<commit_after><!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="css/show.css" rel="stylesheet" type="text/css">
    </link>
    <title>
      Check update details
    </title>
  </head>
  
  <body>
    <div class="container-fluid">
      <div class="row" style="clear: both;">
        <div class="panel-group" id="source-accordion" role="tablist" aria-multiselectable="true">
        </div>
      </div>
    </div>
    <script type="text/javascript" src="js/jquery.min.js">
    </script>
    <script type="text/javascript" src="js/bootstrap.min.js">
    </script>
    <script type="text/javascript">
      listall = function(debs) {
        var deblist = '';
        console.log(debs);
        $.each(debs, function(i, item){
          deblist = deblist + i + ": " + item + "<br />";
        });
        return deblist
      }

      $(document).ready(function() {
        $.ajax({
          url: "data.json",
          dataType: "json",
          success: function(data) {
            var col_table = '';
            var add_num = 0;
            var update_num = 0;
            var add_table = '<h4>Packages Add:</h4><table>';
            var update_table = '<h4>Packages Update:</h4><table>';
            $.each(data,
            function(i, data_item) {
              if (data_item.oldversion == '0') {
                // new source
                add_table = add_table + '<tr><td class="check-td"><label><input type="checkbox" value="index' + data_item.name + '"></label></td>';
                add_table = add_table + '<td class="details-td"><div class="panel panel-default" style="background-color: #faebd7;"><div class="panel-heading" role="tab" id="heading' + i + '"><h4 class="panel-title"><div role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse' + i + '" aria-expanded="true" aria-controls="collapse' + i + '" style="color: #0066bb">';
                add_table = add_table + '<div class="name-div" style="display: inline-block;">' + data_item.name + '</div><div class="version-div" style="display: inline;">Version: ' + data_item.version + '</div></div></h4></div>';
                add_table = add_table + '<div id="collapse' + i + '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading' + i + '"><div class="panel-body" id="result' + i + '">';
                add_table = add_table + '<table><tr><td class="deb-td"><b>debs</b></td><td class="changelog-td"><b>changelog</b></td><td class="git-td"><b>git</b></td></tr><tr>';
                add_table = add_table + '<td class="deb-td" style="display: block;">' + listall(data_item.deblist) + '</td>';
                add_table = add_table + '<td class="changelog-td">' + data_item.changelog.split("\n").join("<br />") + '</td>';
                add_table = add_table + '<td class="git-td" style="display: block;">' + data_item.commitlog.split("\n").join("<br />") + '</td>';
                add_table = add_table + '</tr></table></div></div></div></td>';
                add_table = add_table + '</tr>';
                add_num = add_num + 1
              } else {
                update_table = update_table + '<tr><td class="check-td"><label><input type="checkbox" value="index' + data_item.name + '"></label></td>';
                update_table = update_table + '<td class="details-td"><div class="panel panel-default" style="background-color: #faebd7;"><div class="panel-heading" role="tab" id="heading' + i + '"><h4 class="panel-title"><div role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse' + i + '" aria-expanded="true" aria-controls="collapse' + i + '" style="color: #0066bb">';
                update_table = update_table + '<div class="name-div" style="display: inline-block;">' + data_item.name + '</div><div class="version-div" style="display: inline;">Version: ' + data_item.oldversion + ' -> ' + data_item.version + '</div></h4></div>';
                update_table = update_table + '<div id="collapse' + i + '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading' + i + '"><div class="panel-body" id="result' + i + '">';
                update_table = update_table + '<table><tr><td class="deb-td"><b>debs</b></td><td class="changelog-td"><b>changelog</b></td><td class="git-td"><b>git</b></td></tr><tr>';
                update_table = update_table + '<td class="deb-td" style="display: block;">' + listall(data_item.deblist) + '</td>';
                update_table = update_table + '<td class="changelog-td">' + data_item.changelog.split("\n").join("<br />") + '</td>';
                update_table = update_table + '<td class="git-td" style="display: block;">' + data_item.commitlog.split("\n").join("<br />") + '</td>';
                update_table = update_table + '</tr></table></div></div></div></td>';
                update_table = update_table + '</tr>';
                update_num = update_num + 1
              };

            });
            add_table = add_table + '</table>';
            update_table = update_table + '</table>';
            total = "<h3>The rpa has " + add_num  + " package(s) added and " + update_num + " package(s) updated.</h3>"
            col_table = total;
            if (add_num != 0) {
              col_table = col_table + add_table;
            };
            if (update_num != 0) {
              col_table = col_table + update_table
            };
            document.getElementById("source-accordion").innerHTML = col_table;
          }
        });
      });
    </script>
  </body>

</html>
{'fraction_non_alphanumeric': 0.20579139724486928, 'fraction_numerical': 0.004498172617374192, 'mean_word_length': 2.7275585050646174, 'pattern_counts': {'":': 2, '<': 273, '<?xml version=': 0, '>': 275, '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': '5339020', 'n_tokens_mistral': 3399, 'n_tokens_neox': 3290, 'n_words': 607}