<commit_before>var matches = JSON.parse(COOKIE.get("matches"));

function addMatches(matches) {
  var historyBox = document.getElementById('historyBox');
  var fragment = document.createDocumentFragment();

  for (match of matches) {
    var matchElement = document.createElement('div');
    matchElement.className = 'match';
    var players = match.players;
    for (var i = 0; i < players.length; i++) {
      var playerElement = document.createElement('div');
      playerElement.className = 'player';
      playerElement.setAttribute('player', i);
      if (match.winner == i) playerElement.setAttribute('winner', '');
      playerElement.textContent = players[i];
      matchElement.appendChild(playerElement);
    }
    fragment.appendChild(matchElement);
  }
<commit_msg>Fixed linter errors in history.js<commit_after>/*jshint esversion: 6 */

var matches = JSON.parse(COOKIE.get("matches"));

function addMatches(matches) {
  var historyBox = document.getElementById('historyBox');
  var fragment = document.createDocumentFragment();

  for (var match of matches) {
    var matchElement = document.createElement('div');
    matchElement.className = 'match';
    var players = match.players;
    for (var i = 0; i < players.length; i++) {
      var playerElement = document.createElement('div');
      playerElement.className = 'player';
      playerElement.setAttribute('player', i);
      if (match.winner == i) playerElement.setAttribute('winner', '');
      playerElement.textContent = players[i];
      matchElement.appendChild(playerElement);
    }
    fragment.appendChild(matchElement);
  }

{'fraction_non_alphanumeric': 0.13325031133250312, 'fraction_numerical': 0.0018679950186799503, 'mean_word_length': 4.1506410256410255, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5471225', 'n_tokens_mistral': 441, 'n_tokens_neox': 439, 'n_words': 98}