<commit_before>$(document).ready(function(){
  $("#sorteable").tablesorter();
  $("#showhide").click(function(event){
    event.preventDefault();
    $("tr.classified_bad").toggleClass("hidden");
    $("tbody tr:visible").each(function(index){
      $(this).find("td:first").html(index + 1);
    });
  });
  $("#classify").click(function(event){
    event.preventDefault();
    $(".claddifyName").toggleClass("hidden");
  });
  $("#selectAll").toggle(
    function () {
      $(this).html("No seleccionar nada");
      $("span.name").find("input").prop("checked", true);
      return false;
    },
    function () {
      $(this).html("Seleccionar todo");
      $("span.name").find("input").prop("checked", false);
      return false;
    }
  );
  $("a.trainner").click(function(event){
    var $this = $(this);
    event.preventDefault();
    $.post("/api/classify_name",
        {
          name: $this.attr("data-name"),
          training: $this.attr("data-value")
        },
        function(data){
          if(data){
            $this.hide();
          }
        },
        "json"
      );
  });
  $('.paragraphs span.ne').draggable({
    helper: 'clone'
  });
  init_drops();
});
function init_drops(){
  $("#reference li input").click(function(){
    var klass = $(this).parent("li").attr("class");
    $(".paragraphs .ne." + klass).toggleClass("nocolor");
  });
  $('.event.new').removeClass('new').droppable({
        drop: function(ev, ui) {
          if ($(this).html() === '')
          {
            $(this).removeClass('empty').html('<div class="control-group"><div class="input-append"><input type="text" class="event-name" placeholder="Nombre del evento"><button class="btn event-save" type="button">Guardar</button></div></div>').after('<div ondragover="event.preventDefault()" class="event new empty"></div>');
            init_drops();
          }
            var draggable = ui.draggable;
          $(this).append('<span class="dragged ' + draggable.attr('class') + '">' + draggable.text() + '<i></i></span><wbr>');
          $('span.dragged i').unbind('click').click(function(){
            $(this).parent('span.dragged').remove();
          });
        }
     });
}<commit_msg>removing generic scripts<commit_after>$(document).ready(function(){
  $("#sorteable").tablesorter();
  $("#showhide").click(function(event){
    event.preventDefault();
    $("tr.classified_bad").toggleClass("hidden");
    $("tbody tr:visible").each(function(index){
      $(this).find("td:first").html(index + 1);
    });
  });
  $("#classify").click(function(event){
    event.preventDefault();
    $(".claddifyName").toggleClass("hidden");
  });
  $("#selectAll").toggle(
    function () {
      $(this).html("No seleccionar nada");
      $("span.name").find("input").prop("checked", true);
      return false;
    },
    function () {
      $(this).html("Seleccionar todo");
      $("span.name").find("input").prop("checked", false);
      return false;
    }
  );
  $("a.trainner").click(function(event){
    var $this = $(this);
    event.preventDefault();
    $.post("/api/classify_name",
        {
          name: $this.attr("data-name"),
          training: $this.attr("data-value")
        },
        function(data){
          if(data){
            $this.hide();
          }
        },
        "json"
      );
  });
  /*$('.paragraphs span.ne').draggable({*/
  /*helper: 'clone'*/
  /*});*/
  /*init_drops();*/
});
function init_drops(){
  $("#reference li input").click(function(){
    var klass = $(this).parent("li").attr("class");
    $(".paragraphs .ne." + klass).toggleClass("nocolor");
  });
  $('.event.new').removeClass('new').droppable({
        drop: function(ev, ui) {
          if ($(this).html() === '')
          {
            $(this).removeClass('empty').html('<div class="control-group"><div class="input-append"><input type="text" class="event-name" placeholder="Nombre del evento"><button class="btn event-save" type="button">Guardar</button></div></div>').after('<div ondragover="event.preventDefault()" class="event new empty"></div>');
            init_drops();
          }
            var draggable = ui.draggable;
          $(this).append('<span class="dragged ' + draggable.attr('class') + '">' + draggable.text() + '<i></i></span><wbr>');
          $('span.dragged i').unbind('click').click(function(){
            $(this).parent('span.dragged').remove();
          });
        }
     });
}
{'fraction_non_alphanumeric': 0.23672916196069574, 'fraction_numerical': 0.00045177320984865596, 'mean_word_length': 2.8944591029023745, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '2627103', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1380, 'n_words': 184}