<commit_before>'use strict';

var Simulation = (function(){
  var running = false;
  var boids = [];

  function tick() {
    boids.forEach(boid => boid.tick(boids));
    Renderer.render(boids);
    if(running){
      window.requestAnimationFrame(tick);
    }
  }

  function run() {
    if(!running){
      running = true;
      tick();
    }
  }

  function pause() {

  }

  function initialize() {
    // Creating some boids
    for(var i = 0; i < 10; i++){
      boids.push(new Boid());
    }
    Renderer.initialize();
    run();
  }

  return {
    initialize: initialize,
    run: run
  };
})();

if(typeof exports !== typeof undefined){
  exports.Simulation = Simulation;
}<commit_msg>added boids to debug angle calculation<commit_after>'use strict';

var Simulation = (function(){
  var running = false;
  var boids = [];

  function tick() {
    boids.forEach(boid => boid.tick(boids));
    Renderer.render(boids);
    if(running){
      window.requestAnimationFrame(tick);
    }
  }

  function run() {
    if(!running){
      running = true;
      tick();
    }
  }

  function pause() {

  }

  function initialize() {
    // Creating some boids
    for(var i = 0; i < 18; i++){
      var angle = (Math.PI / 9) * i;
      boids.push(new Boid(new Vector(400, 300), new Vector(Math.sin(angle) * 0.1, -Math.cos(angle) * 0.1)));
    }
    Renderer.initialize();
    run();
  }

  return {
    initialize: initialize,
    run: run
  };
})();

if(typeof exports !== typeof undefined){
  exports.Simulation = Simulation;
}
{'fraction_non_alphanumeric': 0.16023544800523218, 'fraction_numerical': 0.011118378024852845, 'mean_word_length': 2.591549295774648, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3049301', 'n_tokens_mistral': 535, 'n_tokens_neox': 501, 'n_words': 119}