<commit_before>// It's only ES3 compatible
// You don't have a console.log, you need send a "debug"

function play(params) {
  var return_obj = {
    'debug': 'true',
    'action': 'shoot',
    'params': params
  };
  return_obj['params']['my_own'] = 'custom param to debug';
  return return_obj;
}<commit_msg>Update the CPU js file<commit_after>// It's only ES3 compatible
// This script will be compile by "execjs"
// You don't have a console.log, you need send a "debug"
// You have 5 seconds to do 3 moves and shoot in each turn.

function play(params) {
  // The params object has:
  // * name      - the name of player
  // * enemies   - array has values with the distance of enemies alive.
  //               If the value is < 0, than the enemie is to the left
  //               If the value is >= 0, than the enemie is to the right
  // * direction - if -1 than you see to the left, otherwise, you see to the right
  // * pos_x     - your position in the x axis
  // * pos_y     - your position in the y axis

  // The actions disponible:
  // * shoot      - shoot and go to next enemie
  // * aim_up     - move the aim to up angle
  // * aim_down   - move the aim to down angle
  // * walk_left  - move to the left
  // * walk_right - move to the right
  var action = 'shoot';

  var return_obj = {
    'debug': 'true',
    'action': action,
    'params': params
  };
  return_obj['params']['my_own'] = 'custom param to debug';
  return return_obj;
}
{'fraction_non_alphanumeric': 0.1136986301369863, 'fraction_numerical': 0.004794520547945206, 'mean_word_length': 2.3741339491916857, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '295038', 'n_tokens_mistral': 460, 'n_tokens_neox': 449, 'n_words': 197}