<commit_before>define( [ 'hu','game/entities', 'levelsDirector','resources','sprite','input'], function(hu, EL, LEVELS_DIRECTOR){
  /****************************
  ****************************
    Cross browser animation frame
  ****************************
  ****************************/
  var requestAnimFrame = (function(){
    return window.requestAnimationFrame  ||
      window.webkitRequestAnimationFrame ||
      window.mozRequestAnimationFrame    ||
      window.oRequestAnimationFrame      ||
      window.msRequestAnimationFrame     ||
      function(callback){
        window.setTimeout(callback, 1000 / 60);
      };
  })();

  var throttle = function(lambda, ms){
    var allow = true;
    return function(){
      if(allow){
        allow = false,
        lambda();

        setTimeout(function(){
          allow = true;
        },ms);
      }
    }
  }
  /****************************
  ****************************
    GAME Variables
  ****************************
  ****************************/
  function getDefaultState(){
    var options =  {
      sound_enabled: true,
      iteration: 1,
      win: false,
      died: false,
      points : 0,
      power: 0,
      max_power :1000,
      game_over: false,
      paused: false,
      post_game_completed : false,
      resources_loaded: false,
      background_speed: 0.3,
      game_speed: 1.0
    };
    return options;
  }

  var STATE = getDefaultState();

  function getDefaultTimers(){
    return {
      lastFire :0,
      lastTime: Date.now(),
      gameTime: 0,
      realSeconds:0,
      shootSpriteTime: 0
    };
  }

  var TIMERS = getDefaultTimers();

  var frames = 0;

  var bullets = [],
    enemies = [],
    explosions = [],
    specials = [],
    bonuses = [],
    bonusWeapons = [],
    bosses = [],
    enemyBullets = [],
    graves = [],
    player = {};

  var canvas, ctx, power = 0;
  var terrainPattern;

  //Suscribe to events of the game
  var notifyGameEnd = [];
  var notifyLevelUp = [];
  var notifyPoints = [];
  var notifyMessages = [];
  var notifyPower = [];
  var notifyMaxPower = [];

  //Touch inputs
  var touchInputs;

  var SOUNDS = {
    death: new Howl({
      urls: ['sounds/cut_grunt2.wav'],
      volume: 0.1
    }),
    shoot: new Howl({
      urls: ['sounds/laser5.wav'],
      volume: 0.1
    }),
    ambient: new Howl({
     //urls: ['sounds/April_Kisses.mp3'],
      urls: ['sounds/songs/intro.mp3'],
      volume: 0.5,
      loop: true
    }),
    yeah: new Howl({
      urls: ['sounds/oh_yeah_wav_cut.wav']
    }),
    levelup: new Howl({
      urls: ['sounds/upmid.wav']
    }),
    rick: new Howl({
      urls: ['sounds/rickcut2.wav'],
      volume: 0.5
    }),
    killer: new Howl({
      urls: ['sounds/killer.mp3'],
      volume: 0.5
    }),
    grunt: new Howl({
      urls: ['sounds/grunt.mp3'],
      volume: 0.5
    }),
    power: new Howl({
      urls: ['sounds/power.mp3'],
      volume: 0.5
    }),
    ouch:  new Howl({
      urls: ['sounds/ohmy.wav']
    }),
    explosions: [
      new Howl({
          urls: ['sounds/explosions/atari_boom2.wav'],
          volume: 0.6
      }),
      new Howl({
          urls: ['sounds/explosions/explodemini.wav'],
          volume: 0.3
      }),
      new Howl({
          urls: ['sounds/explosions/explode.wav'],
          volume: 0.3
      })

    ]
  };

  var MESSAGES = {
    killer: 'I am your killer...!',
    power: 'BEHOLD MY POWER!',
    grunt: 'graARRRLL!!!',
    wow: 'WOW! Such bonus...  Very power, much shoot',
    saiyan : 'Yaaaaaaay! Super saiyan!',
    nosaiyan: 'Tss... my power',
    init: "It's time, for other adventure, for other trip to the unknown...",
    not: 'Your trip will know a deadly end... B**CH',
    tst: 'Tstsk... You will have to pass over my rainbow',
    ouch: 'Ouch @#¡%%!! :(',
    levelUp: 'Leeevel up! :D'
  };

  //var main_character_name = 'cat';
  var main_character_name = 'cooldog';
  var main_enemy_name = 'creeper';
  var main_character_super_damaged = 'saiyancatdamaged';
  var main_character_damaged = 'catdamaged';
  var main_character_super_name = 'saiyancat';
  //var main_character_super_name = 'supercooldog';

  var time_between_bullets = 0.300;
  /****************************
  ****************************
    GAME Initialization
  ****************************
  ****************************/
<commit_msg>Some phrases<commit_after>define( [ 'hu','game/entities', 'levelsDirector','resources','sprite','input'], function(hu, EL, LEVELS_DIRECTOR){
  /****************************
  ****************************
    Cross browser animation frame
  ****************************
  ****************************/
  var requestAnimFrame = (function(){
    return window.requestAnimationFrame  ||
      window.webkitRequestAnimationFrame ||
      window.mozRequestAnimationFrame    ||
      window.oRequestAnimationFrame      ||
      window.msRequestAnimationFrame     ||
      function(callback){
        window.setTimeout(callback, 1000 / 60);
      };
  })();

  var throttle = function(lambda, ms){
    var allow = true;
    return function(){
      if(allow){
        allow = false,
        lambda();

        setTimeout(function(){
          allow = true;
        },ms);
      }
    }
  }
  /****************************
  ****************************
    GAME Variables
  ****************************
  ****************************/
  function getDefaultState(){
    var options =  {
      sound_enabled: true,
      iteration: 1,
      win: false,
      died: false,
      points : 0,
      power: 0,
      max_power :1000,
      game_over: false,
      paused: false,
      post_game_completed : false,
      resources_loaded: false,
      background_speed: 0.3,
      game_speed: 1.0
    };
    return options;
  }

  var STATE = getDefaultState();

  function getDefaultTimers(){
    return {
      lastFire :0,
      lastTime: Date.now(),
      gameTime: 0,
      realSeconds:0,
      shootSpriteTime: 0
    };
  }

  var TIMERS = getDefaultTimers();

  var frames = 0;

  var bullets = [],
    enemies = [],
    explosions = [],
    specials = [],
    bonuses = [],
    bonusWeapons = [],
    bosses = [],
    enemyBullets = [],
    graves = [],
    player = {};

  var canvas, ctx, power = 0;
  var terrainPattern;

  //Suscribe to events of the game
  var notifyGameEnd = [];
  var notifyLevelUp = [];
  var notifyPoints = [];
  var notifyMessages = [];
  var notifyPower = [];
  var notifyMaxPower = [];

  //Touch inputs
  var touchInputs;

  var SOUNDS = {
    death: new Howl({
      urls: ['sounds/cut_grunt2.wav'],
      volume: 0.1
    }),
    shoot: new Howl({
      urls: ['sounds/laser5.wav'],
      volume: 0.1
    }),
    ambient: new Howl({
     //urls: ['sounds/April_Kisses.mp3'],
      urls: ['sounds/songs/intro.mp3'],
      volume: 0.5,
      loop: true
    }),
    yeah: new Howl({
      urls: ['sounds/oh_yeah_wav_cut.wav']
    }),
    levelup: new Howl({
      urls: ['sounds/upmid.wav']
    }),
    rick: new Howl({
      urls: ['sounds/rickcut2.wav'],
      volume: 0.5
    }),
    killer: new Howl({
      urls: ['sounds/killer.mp3'],
      volume: 0.5
    }),
    grunt: new Howl({
      urls: ['sounds/grunt.mp3'],
      volume: 0.5
    }),
    power: new Howl({
      urls: ['sounds/power.mp3'],
      volume: 0.5
    }),
    ouch:  new Howl({
      urls: ['sounds/ohmy.wav']
    }),
    explosions: [
      new Howl({
          urls: ['sounds/explosions/atari_boom2.wav'],
          volume: 0.6
      }),
      new Howl({
          urls: ['sounds/explosions/explodemini.wav'],
          volume: 0.3
      }),
      new Howl({
          urls: ['sounds/explosions/explode.wav'],
          volume: 0.3
      })

    ]
  };

  var MESSAGES = {
    killer: 'I am your killer...!',
    power: 'BEHOLD MY POWER!',
    grunt: 'graARRRLL!!!',
    wow: 'WOW! Such bonus...  Very power, much shoot',
    saiyan : 'Yaaaaaaay! Super saiyan!',
    nosaiyan: 'Tss... my power',
    init: "It's time, for other adventure, for other trip to the unknown...",
    not: 'Your trip will know a deadly end... B**CH',
    tst: 'Tstsk... You will have to pass over my rainbow',
    ouch: 'Ouch @#¡%%!! :(',
    levelUp: 'Leeevel up! :D',
    space: {
      moving: 'We are moving through space at the rate of 530km a second',
      moon: 'Moons are like little planets, without the enough mass to hold an atmosphere',
      sunlight: 'The sunlight we see today was created 30,000 years ago, in the core of the sun.',
      sunmass: 'The Sun loses up to a billion kilograms a second due to solar winds'
    }
  };

  //var main_character_name = 'cat';
  var main_character_name = 'cooldog';
  var main_enemy_name = 'creeper';
  var main_character_super_damaged = 'saiyancatdamaged';
  var main_character_damaged = 'catdamaged';
  var main_character_super_name = 'saiyancat';
  //var main_character_super_name = 'supercooldog';

  var time_between_bullets = 0.300;
  /****************************
  ****************************
    GAME Initialization
  ****************************
  ****************************/

{'fraction_non_alphanumeric': 0.2056682840758712, 'fraction_numerical': 0.013233348037053375, 'mean_word_length': 2.4496006085964246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1743242', 'n_tokens_mistral': 3044, 'n_tokens_neox': 2935, 'n_words': 695}