<commit_before>(function () {
  'use strict';

  function callRoute(options, callback) {
    var request = new XMLHttpRequest();

    request.open('GET', options.url, true);
    request.responseType = 'json';
    request.onload = function() {
      callback(request.response);
    }
    request.send();
  }

  var reposPerProgrammingLanguageList = [];
  var repoList = document.getElementById('repos-per-programming-language');

  callRoute({
    url: '/public/data/repos-per-programming-language.json'
  }, function(list) {
    reposPerProgrammingLanguageList = list;
  })

  document.addEventListener('click', function(d) {
    var language = d.target.id.replace('language-', '');
    if (!language){
      return;
    }
    repoList.innerHTML = '';

    reposPerProgrammingLanguageList.forEach(function(r) {
      if (r.language.toLowerCase() === language) {
        console.log(r.language.toLowerCase())
        r.repos.forEach(function(repo) {
          console.log(repo)
          repoList.innerHTML += '<p><a href="' + repo.url + '">' + repo.name + '</a> ★' + repo.stars + '</p>';
        })<commit_msg>fix: remove browser console logs<commit_after>(function () {
  'use strict';

  function callRoute(options, callback) {
    var request = new XMLHttpRequest();

    request.open('GET', options.url, true);
    request.responseType = 'json';
    request.onload = function() {
      callback(request.response);
    }
    request.send();
  }

  var reposPerProgrammingLanguageList = [];
  var repoList = document.getElementById('repos-per-programming-language');

  callRoute({
    url: '/public/data/repos-per-programming-language.json'
  }, function(list) {
    reposPerProgrammingLanguageList = list;
  })

  document.addEventListener('click', function(d) {
    var language = d.target.id.replace('language-', '');
    if (!language){
      return;
    }
    repoList.innerHTML = '';

    reposPerProgrammingLanguageList.forEach(function(r) {
      if (r.language.toLowerCase() === language) {
        r.repos.forEach(function(repo) {
          repoList.innerHTML += '<p><a href="' + repo.url + '">' + repo.name + '</a> ★' + repo.stars + '</p>';
        })
{'fraction_non_alphanumeric': 0.16397228637413394, 'fraction_numerical': 0.0, 'mean_word_length': 3.238747553816047, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '2101003', 'n_tokens_mistral': 668, 'n_tokens_neox': 643, 'n_words': 112}