<commit_before>// jquery ajax require thing

function Plane(width, height){
  this.position_x = Math.floor(width/2);
  this.position_y = Math.floor(height/2);
};

Plane.prototype.setPlane = function(){
  this.getPosition().toggleClass('plane');
};

Plane.prototype.getPosition = function(){
  return $('#grid .row:nth-child('+this.position_y+') .cell:nth-child('+this.position_x+')');
};

Plane.prototype.updatePosition = function(direction){
  this.position_x = direction[0];
  this.position_y = direction[1];
};

Plane.prototype.getNeighbors = function(){
  var x = this.position_x ;
  var y = this.position_y ;
  var neighbors = [[x + 1, y], [x - 1, y], [x, y - 1], [x, y + 1]] ;
  return neighbors ;
};

function Asteroid(){
  this.id = 0;
  this.cell = 0;
  this.row = 0;
}

var generateAsteroid = function(){
  var new_asteroid = new Asteroid();
  //var id = new Date();
  //new_asteroid.id = id.format( "yyyymmddhhmmtttt" );
  //new_asteroid.id = id;
  return new_asteroid;
};

var spawnAsteroid = function(){
  var asteroid = generateAsteroid();
  var my_row = Math.round((Math.random() *25 ) + 1);
  var my_cell = Math.round((Math.random() *50) + 1);

  console.log( 'cell:' + my_cell + ' row:' + my_row)

  asteroid.cell = my_cell;
  asteroid.row = my_row;
  return asteroid;
};
<commit_msg>Fix merge conflicts<commit_after>
function Asteroid(){
  this.id = 0;
  this.cell = 0;
  this.row = 0;
}

var generateAsteroid = function(){
  var new_asteroid = new Asteroid();
  //var id = new Date();
  //new_asteroid.id = id.format( "yyyymmddhhmmtttt" );
  //new_asteroid.id = id;
  return new_asteroid;
};

var spawnAsteroid = function(){
  var asteroid = generateAsteroid();
  var my_row = Math.round((Math.random() *25 ) + 1);
  var my_cell = Math.round((Math.random() *50) + 1);

  console.log( 'cell:' + my_cell + ' row:' + my_row)

  asteroid.cell = my_cell;
  asteroid.row = my_row;
  return asteroid;
};

{'fraction_non_alphanumeric': 0.1732776617954071, 'fraction_numerical': 0.013569937369519834, 'mean_word_length': 3.8287153652392947, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3334506', 'n_tokens_mistral': 746, 'n_tokens_neox': 712, 'n_words': 160}