<commit_before>$( document ).ready(function() {
  var move_array = [];
  document.querySelector('.heat_map_body').onmousemove = function(ev) {
    var pageCoords = {x: ev.layerX/$(".heat_map_body").width(), y: ev.layerY/$(".heat_map_body").height()};
    move_array.push(pageCoords);
    if (move_array.length >= 50)
    {
      var sum = move_array.reduce(function (a, b) {
      return {x: a.x + b.x, y: a.y + b.y};
      });
      var coordinates = { path: window.location.pathname, x: sum['x']/move_array.length, y: sum['y']/move_array.length, type: 'move' };
      move_array=[];

      $.ajax({
         method: "POST",
         url: '/points',
         data: coordinates,
         dataType: 'application/json'
      });
    }
  };

  var click_array = [];
  document.querySelector('.heat_map_body').onclick = function(ev) {
    var pageCoords = { path: window.location.pathname, x: ev.layerX/$(".heat_map_body").width(), y: ev.layerY/$(".heat_map_body").height(), type: 'click' };
    click_array.push(pageCoords);
    if (click_array.length >= 3)
    {
      var coordinates = click_array;
      $.ajax({
          method: "POST",
          url: '/points',
          data: {'data': coordinates},
          dataType: 'application/json'
      });
      click_array = [];
    }<commit_msg>Points Controller Namespace Path Update<commit_after>$( document ).ready(function() {
  var move_array = [];
  document.querySelector('.heat_map_body').onmousemove = function(ev) {
    var pageCoords = {x: ev.layerX/$(".heat_map_body").width(), y: ev.layerY/$(".heat_map_body").height()};
    move_array.push(pageCoords);
    if (move_array.length >= 50)
    {
      var sum = move_array.reduce(function (a, b) {
      return {x: a.x + b.x, y: a.y + b.y};
      });
      var coordinates = { path: window.location.pathname, x: sum['x']/move_array.length, y: sum['y']/move_array.length, type: 'move' };
      move_array=[];

      $.ajax({
         method: "POST",
         url: '/heatmap_rb/points',
         data: coordinates,
         dataType: 'application/json'
      });
    }
  };

  var click_array = [];
  document.querySelector('.heat_map_body').onclick = function(ev) {
    var pageCoords = { path: window.location.pathname, x: ev.layerX/$(".heat_map_body").width(), y: ev.layerY/$(".heat_map_body").height(), type: 'click' };
    click_array.push(pageCoords);
    if (click_array.length >= 3)
    {
      var coordinates = click_array;
      $.ajax({
          method: "POST",
          url: '/heatmap_rb/points',
          data: {'data': coordinates},
          dataType: 'application/json'
      });
      click_array = [];
    }
{'fraction_non_alphanumeric': 0.18209408194233687, 'fraction_numerical': 0.002276176024279211, 'mean_word_length': 2.6984572230014026, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3212440', 'n_tokens_mistral': 892, 'n_tokens_neox': 870, 'n_words': 166}