<commit_before>;(function(exports) {
  var Game = function(canvasId, width, height) {
    this.coquette = new Coquette(this, canvasId, width, height);

    this.maths = new Maths();
    this.STATE = {
      INTRO: 0,
      PLAYING: 1,
      OVER: 2
    };

    this.state = this.STATE.INTRO;

    this.introImage = new Image();
    this.introImage.src = 'intro.png';
  };

  Game.prototype = {
    player: null,
    maxScore: 30,

    init: function() {
      var self = this;
      this.coquette.entities.create(Player, {
        pos: { x:0, y:0 }
      }, function(player) {
        self.player = player;
      });
    },

	  update: function() {
      if (this.state === this.STATE.PLAYING) {
        if (this.score() <= 0) {
          this.state = this.STATE.OVER;
        }
      } else if (this.state === this.STATE.INTRO || this.state === this.STATE.OVER) {
        if(this.coquette.inputter.state(Coquette.Inputter.SPACE)) {
          var asteroids = this.coquette.entities.all(Asteroid);
          for (var i = 0; i < asteroids.length; i++) {
            asteroids[i].kill();
          }

          for (var i = 0; i < 3; i++) {
            this.coquette.entities.create(Asteroid, {
              pos: {
                x: Math.random() * this.coquette.renderer.width,
                y: Math.random() * this.coquette.renderer.height
              }
            });
          }

          this.state = this.STATE.PLAYING;
        }
      }
	  },

	  draw: function() {
      this.coquette.renderer.clear("#000");

      if (this.state === this.STATE.PLAYING) {
        for (var i = 0; i < this.maxScore; i++) {
          var rAngle = this.maths.degToRad(360 / this.maxScore * i);
          var pos = {
            x: this.coquette.renderer.width / 2 + Math.sin(rAngle) * 30,
            y: this.coquette.renderer.height / 2 + Math.cos(rAngle) * 30
          };

          if (i > this.score() - 1) {
            this.circle(pos, 0.5, "#222");<commit_msg>Use auto bg clear feature of Coquette in LLR game.<commit_after>;(function(exports) {
  var Game = function(canvasId, width, height) {
    this.coquette = new Coquette(this, canvasId, width, height, "#000");

    this.maths = new Maths();
    this.STATE = {
      INTRO: 0,
      PLAYING: 1,
      OVER: 2
    };

    this.state = this.STATE.INTRO;

    this.introImage = new Image();
    this.introImage.src = 'intro.png';
  };

  Game.prototype = {
    player: null,
    maxScore: 30,

    init: function() {
      var self = this;
      this.coquette.entities.create(Player, {
        pos: { x:0, y:0 }
      }, function(player) {
        self.player = player;
      });
    },

	  update: function() {
      if (this.state === this.STATE.PLAYING) {
        if (this.score() <= 0) {
          this.state = this.STATE.OVER;
        }
      } else if (this.state === this.STATE.INTRO || this.state === this.STATE.OVER) {
        if(this.coquette.inputter.state(Coquette.Inputter.SPACE)) {
          var asteroids = this.coquette.entities.all(Asteroid);
          for (var i = 0; i < asteroids.length; i++) {
            asteroids[i].kill();
          }

          for (var i = 0; i < 3; i++) {
            this.coquette.entities.create(Asteroid, {
              pos: {
                x: Math.random() * this.coquette.renderer.width,
                y: Math.random() * this.coquette.renderer.height
              }
            });
          }

          this.state = this.STATE.PLAYING;
        }
      }
	  },

	  draw: function() {
      if (this.state === this.STATE.PLAYING) {
        for (var i = 0; i < this.maxScore; i++) {
          var rAngle = this.maths.degToRad(360 / this.maxScore * i);
          var pos = {
            x: this.coquette.renderer.width / 2 + Math.sin(rAngle) * 30,
            y: this.coquette.renderer.height / 2 + Math.cos(rAngle) * 30
          };

          if (i > this.score() - 1) {
            this.circle(pos, 0.5, "#222");
{'fraction_non_alphanumeric': 0.1543555781966378, 'fraction_numerical': 0.015282730514518594, 'mean_word_length': 1.7214137214137215, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '6400116', 'n_tokens_mistral': 1383, 'n_tokens_neox': 1282, 'n_words': 264}