<commit_before>function Player(id, name, $player, init_pos){

  var $grid;
  var $player;
  var name = name;

  var animationRunning = false; // flag animation
  var animRight = function() { TweenMax.from($player, 0.15, {'x':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animLeft = function() { TweenMax.from($player, 0.15, {'x':'100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animUp = function() { TweenMax.from($player, 0.15, {'y':'100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animDown = function() { TweenMax.from($player, 0.15, {'y':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animAction = function(){
    // TweenMax.from($player, 0.15, {'y':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}});
  }

  var player = {

    // Position sur la map en x (cells) et y (rows)
    pos: {
      x: init_pos.x,
      y: init_pos.y
    },

    score: 0,

    id: id,

    on_a_move: false,

    control: null,

    init: function () {
      $grid   = $('#grid');

      $player.show();
      player.applyMove();

      //var tween = TweenMax.to($player, 2, {scaleX:0.95,scaleY:0.98, yoyo:true, repeat:  10000, ease:Bounce.easeOut});

      console.log(name + ' inited && ready');
    },

    /**
     * [look description]
     * @param  {[type]} direction [description]
     * @return {[type]}           [description]
     */<commit_msg>Correction des positions initiales des joueurs invisibles<commit_after>function Player(id, name, $player, init_pos){

  var $grid;
  var $player;
  var name = name;

  var animationRunning = false; // flag animation
  var animRight = function() { TweenMax.from($player, 0.15, {'x':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animLeft = function() { TweenMax.from($player, 0.15, {'x':'100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animUp = function() { TweenMax.from($player, 0.15, {'y':'100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animDown = function() { TweenMax.from($player, 0.15, {'y':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}}) };
  var animAction = function(){
    // TweenMax.from($player, 0.15, {'y':'-100px',onComplete:function(){animationRunning=false},onStart:function(){animationRunning=true}});
  }

  var player = {

    // Position sur la map en x (cells) et y (rows)
    pos: {
      x: -id,
      y: 0
    },

    init_pos: init_pos,
    score: 0,
    id: id,

    on_a_move: false,

    control: null,

    init: function () {
      $grid   = $('#grid');

      player.pos = player.init_pos;

      $player.show();
      player.applyMove();

      //var tween = TweenMax.to($player, 2, {scaleX:0.95,scaleY:0.98, yoyo:true, repeat:  10000, ease:Bounce.easeOut});

      console.log(name + ' inited && ready');
    },

    /**
     * [look description]
     * @param  {[type]} direction [description]
     * @return {[type]}           [description]
     */
{'fraction_non_alphanumeric': 0.18184541641701618, 'fraction_numerical': 0.026063511084481725, 'mean_word_length': 4.021052631578947, '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': '600016', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1056, 'n_words': 208}