<commit_before>'use strict';

var Monster = {
  _random: function() {
    return Math.floor(Math.random() * 3);
  },
  _getName: function(){
    var random = this._random();
    return random === 0 ? 'Rat': random === 1 ? 'Skeleton' : 'Slime';
  },
  spawn: function(lvl) {
    var monster = {};
    monster.name = this._getName();
    monster.level = lvl;
    monster.atributes = {
      "damage": Math.floor(2 + lvl * 0.636363),
      "speed": 2 + lvl * 0.020202,
      "hp": Math.floor(30 + lvl * 6.262626),
      "range": 1
    };

    return monster;
  }
};

module.exports = Monster;<commit_msg>Monsters are nolonger OP<commit_after>'use strict';

var Monster = {
  _random: function() {
    return Math.floor(Math.random() * 3);
  },
  _getName: function(){
    var random = this._random();
    return random === 0 ? 'Rat': random === 1 ? 'Skeleton' : 'Slime';
  },
  spawn: function(lvl) {
    var monster = {};
    monster.name = this._getName();
    monster.level = lvl;
    monster.atributes = {
      "damage": Math.floor(2 + lvl * 0.636363),
      "speed": 2 + lvl * 0.020202,
      "hp": Math.floor(10 + lvl * 2.262626),
      "range": 1
    };

    return monster;
  }
};

module.exports = Monster;
{'fraction_non_alphanumeric': 0.179719703215169, 'fraction_numerical': 0.04781533388293487, 'mean_word_length': 2.6347305389221556, 'pattern_counts': {'":': 8, '<': 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': '6477045', 'n_tokens_mistral': 476, 'n_tokens_neox': 432, 'n_words': 100}