<commit_before>
function input_init_pre() {
  prop.input={};

  prop.input.command  = "";
  prop.input.callsign = "";
  prop.input.data     = "";

  prop.input.history      = [];
  prop.input.history_item = null;

  prop.input.click    = [0, 0];
}

function input_init() {

  $("#canvases").mousemove(function(e) {
    var position = [e.pageX, -e.pageY];
    position[0] -= prop.canvas.size.width / 2;
    position[1] += prop.canvas.size.height / 2;
    prop.input.click = [pixels_to_km(position[0]), pixels_to_km(position[1])];
  });

  $("#canvases").mousedown(function(e) {
    var position = [e.pageX, -e.pageY];
    position[0] -= prop.canvas.size.width / 2;
    position[1] += prop.canvas.size.height / 2;
    var nearest = aircraft_get_nearest([pixels_to_km(position[0]), pixels_to_km(position[1])]);
    if(nearest[0]) {
      if(nearest[1] < pixels_to_km(80)) {
        input_select(nearest[0].getCallsign().toUpperCase());
      } else {
        input_select();
      }
    }
    e.preventDefault();
    return(false);
  });

  $(window).keydown(function() {
    $("#command").focus();
  });
  
  $("#command").keydown(input_keydown);
  $("#command").on("input", input_change);
}

function input_complete() {<commit_msg>removed debug placeholder<commit_after>
function input_init_pre() {
  prop.input={};

  prop.input.command  = "";
  prop.input.callsign = "";
  prop.input.data     = "";

  prop.input.history      = [];
  prop.input.history_item = null;

  prop.input.click    = [0, 0];
}

function input_init() {

  $("#canvases").mousemove(function(e) {
    var position = [e.pageX, -e.pageY];
    position[0] -= prop.canvas.size.width / 2;
    position[1] += prop.canvas.size.height / 2;
    prop.input.click = [pixels_to_km(position[0]), pixels_to_km(position[1])];
  });

  $("#canvases").mousedown(function(e) {
    var position = [e.pageX, -e.pageY];
    position[0] -= prop.canvas.size.width / 2;
    position[1] += prop.canvas.size.height / 2;
    var nearest = aircraft_get_nearest([pixels_to_km(position[0]), pixels_to_km(position[1])]);
    if(nearest[0]) {
      if(nearest[1] < pixels_to_km(80)) {
        input_select(nearest[0].getCallsign().toUpperCase());
      } else {
        input_select();
      }
    }
    e.preventDefault();
    return(false);
  });

  $(window).keydown(function() {
    $("#command").focus();
  });
  
  $("#command").keydown(input_keydown);
  $("#command").on("input", input_change);
}

function input_complete() {
  return;
{'fraction_non_alphanumeric': 0.19863013698630136, 'fraction_numerical': 0.015310233682514102, 'mean_word_length': 3.295847750865052, 'pattern_counts': {'":': 0, '<': 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': '3271216', 'n_tokens_mistral': 913, 'n_tokens_neox': 899, 'n_words': 121}