<commit_before>'use strict';

var allUsers = [];
// var winnerCircle = [];
// var winnerScore = [];

function myEpiphany (a,b) {
  return b.score - a.score;
}

function retrieveUsers() {
  var retrievedUsers = localStorage.getItem('userData');
  allUsers = JSON.parse(retrievedUsers);
}



// function winners() {
//   for (var i = 0; i < allUsers.length; i++) {
//     winnerScore.push(allUsers[i].score);
//   }
//   winnerScore.sort();
//   for (var j = 0; j < winnerScore.length; j++) {
//     console.log(winnerScore[j]);
//     for (var k = 0; k < allUsers.length; k++) {
//       if (winnerScore[j] === allUsers[k].score) {
//         winnerCircle.push(allUsers[k]);

//       }
//     }
//   }
// }

// Run initial functions to populate user data
retrieveUsers();
// winners();
allUsers.sort(myEpiphany);

//Display Results in Table
var tableName = document.getElementById('table-name');
var tableResults = document.getElementById('table-points');

function onFinal() {
  for (var i = 0; i < allUsers.length; i++) {
    var winnerName = document.createElement('th');
    winnerName.textContent = allUsers[i].name;
    tableName.appendChild(winnerName);

    var winnerPoints = document.createElement('td');
    winnerPoints.textContent = allUsers[i].score;<commit_msg>results diplayed from high score to low<commit_after>'use strict';

var allUsers = [];

function myEpiphany (a,b) {
  return b.score - a.score;
}

function retrieveUsers() {
  var retrievedUsers = localStorage.getItem('userData');
  allUsers = JSON.parse(retrievedUsers);
}



// Run initial functions to populate user data
retrieveUsers();

allUsers.sort(myEpiphany);

//Display Results in Table
var tableName = document.getElementById('table-name');
var tableResults = document.getElementById('table-points');

function onFinal() {
  for (var i = 0; i < allUsers.length; i++) {
    var winnerName = document.createElement('th');
    winnerName.textContent = allUsers[i].name;
    tableName.appendChild(winnerName);

    var winnerPoints = document.createElement('td');
    winnerPoints.textContent = allUsers[i].score;
{'fraction_non_alphanumeric': 0.15601145038167938, 'fraction_numerical': 0.002385496183206107, 'mean_word_length': 3.765909090909091, 'pattern_counts': {'":': 0, '<': 8, '<?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': '6831568', 'n_tokens_mistral': 667, 'n_tokens_neox': 652, 'n_words': 152}