<commit_before>---
---

require.config
  shim:
    underscore:
      exports: '_'
  paths:
    jquery: '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min'
    underscore: '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min'

require ['jquery', 'underscore', 'particle', 'vector', 'camera', 'time'], ($, _, Particle, Vector, Camera, Time) ->
  MAX_UPDATE_RATE = 0
  PARTICLE_COUNT = 100

  canvas = $('canvas')[0]
  context = canvas.getContext '2d'

  for i in [1..PARTICLE_COUNT]
    new Particle

  camera = new Camera

  renderParticles = (time) ->
    Time.update time

    camera.update Time.rawDeltaTime()
    camera.render context, canvas

    for particle in Particle.particles
      particle.update Time.deltaTime()
      particle.render context

    window.requestAnimationFrame _.debounce renderParticles, MAX_UPDATE_RATE, true

  renderParticles 0
<commit_msg>Removed jQuery Dependency from Main<commit_after>---
---

require.config
  shim:
    underscore:
      exports: '_'
  paths:
    jquery: '//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min'
    underscore: '//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min'

require ['underscore', 'particle', 'vector', 'camera', 'time'], (_, Particle, Vector, Camera, Time) ->
  MAX_UPDATE_RATE = 0
  PARTICLE_COUNT = 100

  canvas = document.getElementsByTagName('canvas')[0]
  context = canvas.getContext '2d'

  for i in [1..PARTICLE_COUNT]
    new Particle

  camera = new Camera

  renderParticles = (time) ->
    Time.update time

    camera.update Time.rawDeltaTime()
    camera.render context, canvas

    for particle in Particle.particles
      particle.update Time.deltaTime()
      particle.render context

    window.requestAnimationFrame _.debounce renderParticles, MAX_UPDATE_RATE, true

  renderParticles 0

{'fraction_non_alphanumeric': 0.12643678160919541, 'fraction_numerical': 0.01532567049808429, 'mean_word_length': 3.394230769230769, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2587601', 'n_tokens_mistral': 638, 'n_tokens_neox': 589, 'n_words': 129}