<commit_before>$(function() {
  var press = false;
  var perfiles = [];
  var index = 0;
  var size = 0;

  $.getJSON("/data.json", function (data) {
    data.perfiles.forEach(function(perfil) {
      perfiles.push({
        "img": perfil.img,
        "page": 'HTML/' + perfil.page,
        "name": perfil.name
      });
    });
    size = perfiles.length;
  });

  $('.link').click(function() {
    var id = $(this).attr('id');
    var name = "HTML/" + id + ".html";
    if (id != 'perfiles') window.location = name;
  });

  $('#left').click(function() {
    press = true;
    index--;
    index = (index < 0)? size - 1 : index;
    $('.Perfiles').css('background-image', `url(${perfiles[index].img})`);
  });

  $('#right').click(function() {
    press = true;<commit_msg>Update index.js<commit_after>$(function() {
  var press = false;
  var perfiles = [];
  var index = 0;
  var size = 0;

  $.getJSON("data.json", function (data) {
    data.perfiles.forEach(function(perfil) {
      perfiles.push({
        "img": perfil.img,
        "page": 'HTML/' + perfil.page,
        "name": perfil.name
      });
    });
    size = perfiles.length;
  });

  $('.link').click(function() {
    var id = $(this).attr('id');
    var name = "HTML/" + id + ".html";
    if (id != 'perfiles') window.location = name;
  });

  $('#left').click(function() {
    press = true;
    index--;
    index = (index < 0)? size - 1 : index;
    $('.Perfiles').css('background-image', `url(${perfiles[index].img})`);
  });

  $('#right').click(function() {
    press = true;
{'fraction_non_alphanumeric': 0.2256608639587363, 'fraction_numerical': 0.0051579626047711154, 'mean_word_length': 2.576036866359447, 'pattern_counts': {'":': 6, '<': 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': '6028300', 'n_tokens_mistral': 546, 'n_tokens_neox': 534, 'n_words': 110}