<commit_before>(function () {

  var game, 
    img, 
    width = document.body.clientWidth,
    height = document.body.clientHeight;

  function preload() {
    game.load.image('example', 'assets/example.png');
  }

  function create() {
    img = game.add.sprite(width / 2, height / 2, 'example');
    img.anchor = new Phaser.Point(0.5, 0.5);
  }

  function update() {
    img.rotation += 0.05;
  }

  game = new Phaser.Game(width, height, Phaser.WEBGL, 'phaser-example', {<commit_msg>resize the game on window resize<commit_after>(function () {

  var game,
    img,
    width = document.body.clientWidth,
    height = document.body.clientHeight;

  function preload() {
    game.load.image('example', 'assets/example.png');
  }

  function create() {
    img = game.add.sprite(width / 2, height / 2, 'example');
    img.anchor = new Phaser.Point(0.5, 0.5);

    game.stage.scaleMode = Phaser.StageScaleMode.SHOW_ALL;
    game.stage.scale.setShowAll();
    window.addEventListener('resize', function () {
      game.stage.scale.refresh();
    });
  }

  function update() {
    img.rotation += 0.05;
  }

  game = new Phaser.Game(width, height, Phaser.WEBGL, 'phaser-example', {
{'fraction_non_alphanumeric': 0.15820642978003385, 'fraction_numerical': 0.015228426395939087, 'mean_word_length': 3.0513698630136985, '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': '4383503', 'n_tokens_mistral': 421, 'n_tokens_neox': 396, 'n_words': 79}