<commit_before>var json_response = null;

function get_event(){$.ajax({
    url: '/get_evt_test',
    type: 'GET',
    contentType: "application/json; charset=utf-8",
    success: function(data_series) {
      console.log("luxstamp_samples: " + data_series.luxstamp_samples);
      console.log("pulse_start_samples: " + data_series.pulse_start_samples);
      draw_event(data_series);
      draw_hitmap_top(data_series);
      draw_hitmap_bottom(data_series);
      draw_color_scale();
       $("#pulse_area").html("<h5>Pulse area (phe) = " + data_series['pulse_area_phe'] + "<p></h5>");
       $("#pulse_width").html("<h5>Pulse width (ns) = " + data_series['aft_width'] + "</h5>");
      json_response=data_series;
    },
  cache: false
});
};

function send_classification(classification){
  $.ajax({
    url: '/user_classification',
    type: 'POST',
    data: JSON.stringify(classification),<commit_msg>modified to remove test code<commit_after>var json_response = null;

function get_event(){$.ajax({
    url: '/get_evt',
    type: 'GET',
    contentType: "application/json; charset=utf-8",
    success: function(data_series) {
      console.log("luxstamp_samples: " + data_series.luxstamp_samples);
      console.log("pulse_start_samples: " + data_series.pulse_start_samples);
      draw_event(data_series);
      draw_hitmap_top(data_series);
      draw_hitmap_bottom(data_series);
      draw_color_scale();
       $("#pulse_area").html("<h5>Pulse area (phe) = " + data_series['pulse_area_phe'] + "<p></h5>");
       $("#pulse_width").html("<h5>Pulse width (ns) = " + data_series['aft_width'] + "</h5>");
      json_response=data_series;
    },
  cache: false
});
};

function send_classification(classification){
  $.ajax({
    url: '/user_classification',
    type: 'POST',
    data: JSON.stringify(classification),
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.005482456140350877, 'mean_word_length': 4.320699708454811, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '2054886', 'n_tokens_mistral': 627, 'n_tokens_neox': 604, 'n_words': 91}