<commit_before>define([
    '../entities/player',
    '../entities/boundaries'
  ],
  function (player, boundaries) {
    var entities = [
      player({ x: 50, y: 300 }),
      player({ x: 1100, y: 350 }),
      player({ x: 500, y: 50 }),
      { x: 300, y: 000, width: 100, height: 100, type: 'rock' },
      { x: 200, y: 550, width: 100, height: 100, type: 'rock' },
      { x: 800, y: 100, width: 100, height: 100, type: 'rock' },
      { x: 800, y: 500, width: 100, height: 100, type: 'rock' },
      boundaries()
    ];

    function init(callback) {
      console.log('init demo');

      callback();
    }

    function handleInput(params) {
      var input = params.input, elapsed = params.elapsed, game = params.game;
      if(input.keyPressed('esc')){
        game.changeCurrentSceneByName('main-menu');
        return;
      }

      if(input.keyPressed('a')){
        entities[0].velocityX = -1;
        entities[0].velocityY = 0;
      }
      if(input.keyPressed('s')){
        entities[0].velocityX = 0;<commit_msg>fixes demo<commit_after>define([
    '../entities/player',
    '../entities/boundaries',
    '../entities/rock'
  ],
  function (player, boundaries, rock) {
    var entities = [
      player({ x: 50, y: 300 }),
      player({ x: 1100, y: 350 }),
      player({ x: 500, y: 50 }),
      rock({ x: 300, y: 100, width: 100, height: 100 }),
      rock({ x: 200, y: 550, width: 100, height: 100 }),
      rock({ x: 800, y: 100, width: 100, height: 100 }),
      rock({ x: 800, y: 500, width: 100, height: 100 }),
      boundaries()
    ];

    function init(callback) {
      console.log('init demo');

      callback();
    }

    function handleInput(params) {
      var input = params.input, elapsed = params.elapsed, game = params.game;
      if(input.keyPressed('esc')){
        game.changeCurrentSceneByName('main-menu');
        return;
      }

      if(input.keyPressed('a')){
        entities[0].velocityX = -1;
        entities[0].velocityY = 0;
      }
      if(input.keyPressed('s')){
        entities[0].velocityX = 0;
{'fraction_non_alphanumeric': 0.1798736023334954, 'fraction_numerical': 0.06903257170636849, 'mean_word_length': 2.3193548387096774, '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': '491705', 'n_tokens_mistral': 816, 'n_tokens_neox': 694, 'n_words': 176}