<commit_before>function Player(settings) {
  this.id = settings.id;
  this.position = settings.position;
  this.prevPosition = settings.prevPosition || settings.position;
  this.power = settings.power;
  this.isAlive = settings.isAlive;
  this.availableMines = settings.availableMines;
  this.maxMines = settings.maxMines || 1;
  this.createdAt = settings.createdAt || new Date().getTime();
  this.life = settings.life || 3;
  this.speed = settings.speed || 10;
  this.isConnected = settings.isConnected || false;
  this.name = settings.name || "yolo";
}

Player.maxSpeed = 10;

Player.prototype.set = function(settings) {<commit_msg>move defaults to shared constructor<commit_after>function Player(settings) {
  this.id = settings.id;
  this.position = settings.position;
  this.prevPosition = settings.prevPosition || settings.position;
  this.power = settings.power || 2;
  this.isAlive = settings.isAlive;
  this.availableMines = settings.availableMines || 1;
  this.maxMines = settings.maxMines || 1;
  this.createdAt = settings.createdAt || new Date().getTime();
  this.life = settings.life || 3;
  this.speed = settings.speed || 10;
  this.isConnected = settings.isConnected;
  this.name = settings.name || "yolo";
}

Player.maxSpeed = 10;

Player.prototype.set = function(settings) {
{'fraction_non_alphanumeric': 0.13477924089852827, 'fraction_numerical': 0.010844306738962044, 'mean_word_length': 4.405857740585774, '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': '3551399', 'n_tokens_mistral': 421, 'n_tokens_neox': 406, 'n_words': 81}