<commit_before>;(function(exports) {
  var Game = function(canvasId, width, height, autoFocus) {
    this.coq = new Coquette(this, canvasId, width, height, "#000", autoFocus);

    this.coq.entities.create(Person, { pos:{ x:243, y:40 }, color:"#099" }); // paramour
    this.coq.entities.create(Person, { pos:{ x:249, y:110 }, color:"#f07", // player
      update: function() {
        if (this.game.coq.inputter.state(this.game.coq.inputter.UP_ARROW)) {
          this.pos.y -= 0.4;
        }
      },
      collision: function(other) {
        other.pos.y = this.pos.y; // follow the player
      }
    });
  };

  var Person = function(_, settings) {
    for (var i in settings) {
      this[i] = settings[i];
    }
    this.size = { x:9, y:9 };
    this.draw = function(ctx) {
      ctx.fillStyle = settings.color;
      ctx.fillRect(this.pos.x, this.pos.y, this.size.x, this.size.y);
    };
  };

  exports.Game = Game;
})(this);
<commit_msg>No need to make coquette instance a game attribute in simple game.<commit_after>;(function(exports) {
  var Game = function(canvasId, width, height, autoFocus) {
    var coq = new Coquette(this, canvasId, width, height, "#000", autoFocus);

    coq.entities.create(Person, { pos:{ x:243, y:40 }, color:"#099" }); // paramour
    coq.entities.create(Person, { pos:{ x:249, y:110 }, color:"#f07", // player
      update: function() {
        if (coq.inputter.state(coq.inputter.UP_ARROW)) {
          this.pos.y -= 0.4;
        }
      },
      collision: function(other) {
        other.pos.y = this.pos.y; // follow the player
      }
    });
  };

  var Person = function(_, settings) {
    for (var i in settings) {
      this[i] = settings[i];
    }
    this.size = { x:9, y:9 };
    this.draw = function(ctx) {
      ctx.fillStyle = settings.color;
      ctx.fillRect(this.pos.x, this.pos.y, this.size.x, this.size.y);
    };
  };

  exports.Game = Game;
})(this);

{'fraction_non_alphanumeric': 0.17745302713987474, 'fraction_numerical': 0.024008350730688934, 'mean_word_length': 2.5174311926605504, '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': '3700870', 'n_tokens_mistral': 713, 'n_tokens_neox': 681, 'n_words': 142}