<commit_before>(function() {

  function PixiRenderingSystem(injector) {
    var pixiConfig = injector.inject("pixiRenderingConfig", function() {
      throw new Error("missing pixi rendering config");
    });

    var nodes = injector.inject("pixiSpriteNodes", function() {
      throw new Error("missing pixi stage nodes");
    });

    var stage = new PIXI.Stage(pixiConfig.clearColor);
    var renderer = PIXI.autoDetectRenderer(pixiConfig.width, pixiConfig.height);

    var updateSprites = function() {
      var nodeCount = nodes.length;
      for (var n = 0; n < nodeCount; n++) {
        var node = nodes[n];
        node.sprite.context.position.x = node.worldTransform.position.x;
        node.sprite.context.position.y = node.worldTransform.position.y;
        node.sprite.context.rotation = node.worldTransform.rotation;
      }
    }

    var draw = function() {
      renderer.render(stage);
    }

    var tick = injector.inject("tick", function() {throw new Error("missing tick");});

    tick.push(function() {
      updateSprites();
      draw();
    });

    this.stage = stage;
    this.renderer = renderer;
  }

  PixiRenderingSystem.prototype = Object.create(System.prototype);
  PixiRenderingSystem.prototype.constructor = PixiRenderingSystem;

  PixiRenderingSystem.prototype.initialize = function() {
    document.body.appendChild(this.renderer.view);<commit_msg>Code cleanup<commit_after>(function() {

  function PixiRenderingSystem(injector) {
    var pixiConfig = injector.inject("pixiRenderingConfig", function() {
      throw new Error("missing pixi rendering config");
    });

    var nodes = injector.inject("pixiSpriteNodes", function() {
      throw new Error("missing pixi stage nodes");
    });

    var stage = new PIXI.Stage(pixiConfig.clearColor);
    var renderer = PIXI.autoDetectRenderer(pixiConfig.width, pixiConfig.height);

    var updateSprites = function() {
      var nodeCount = nodes.length;
      for (var n = 0; n < nodeCount; n++) {
        var node = nodes[n];
        node.sprite.context.position.x = node.worldTransform.position.x;
        node.sprite.context.position.y = node.worldTransform.position.y;
        node.sprite.context.rotation = node.worldTransform.rotation;
      }
    }

    var draw = function() {
      renderer.render(stage);
    }

    var tick = injector.inject("tick", function() {
      throw new Error("missing tick");
    });

    tick.push(function() {
      updateSprites();
      draw();
    });

    this.stage = stage;
    this.renderer = renderer;
  }

  PixiRenderingSystem.prototype = Object.create(System.prototype);
  PixiRenderingSystem.prototype.constructor = PixiRenderingSystem;

  PixiRenderingSystem.prototype.initialize = function() {
    document.body.appendChild(this.renderer.view);
{'fraction_non_alphanumeric': 0.12630068173663436, 'fraction_numerical': 0.0007176175098672408, 'mean_word_length': 3.2629969418960245, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2256764', 'n_tokens_mistral': 844, 'n_tokens_neox': 815, 'n_words': 158}