<commit_before>

function generateUniverse(galaxies) {
// setting the scene
  var space = "#151718";
  var canvas_height = $(document).height();
  var canvas_width = $(document).width();
  var scene = new THREE.Scene();

  //cam
  var camera = new THREE.PerspectiveCamera(75, canvas_width / canvas_height, 0.1, 1000);
  camera.position.set(0, 50, 100);
  camera.lookAt(new THREE.Vector3(0, 50, 0));

  //renderer
  var renderer = new THREE.WebGLRenderer({
    alpha: true
  });
  renderer.setSize(canvas_width, canvas_height);
  renderer.shadowMap.enabled = true;
  renderer.shadowMap.type = THREE.PCFSoftShadowMap;
  renderer.setClearColor(space, 1);
  document.body.appendChild(renderer.domElement);

  //window
  document.onresize = function() {
    canvas_height = $(document).height();
    canvas_width = $(document).width();
    camera.aspect = canvas_width / canvas_height;
    camera.updateProjectionMatrix();
    renderer.setSize(canvas_width, canvas_height);
  }

  //controls
  controls = new THREE.OrbitControls(camera);
  controls.damping = 0.2;
  controls.maxDistance = 900;

  //particle objects
  THREE.ImageUtils.crossOrigin = true;

  
  function Particles(num) {
    this.particleArray = []
    for (var i = 0; i < num; i++) {
      var c = 0xffffff;
      var o = Math.floor(Math.random() * (100 - 0 + 1)) / 100;
      var s = Math.floor(Math.random() * (15 - 5 + 1)) + 5;
      var particleCount = Math.floor(Math.random() * (1000 - 250 + 1)) + 250;
      var particle = {
        color: c,
        opacity: o,
        size: s,
        number: particleCount
      }
      this.particleArray.push(particle);
    }
  }

  function ParticleMaterial(c, s, o) {
    var texture=  new THREE.TextureLoader().load('images/bower.png');
    this.material = new THREE.PointsMaterial({
      color: c,
      size: s,
      transparent: true,
      opacity: o,
      map: texture
    });
  }

  function ParticleSystem(number) {
    this.particles = new THREE.Geometry();
    for (var i = 0; i < number; i++) {
      var x = (Math.random() - 0.5) * 10000;
      var y = (Math.random() - 0.5) * 1000;
      var z = (Math.random() - 0.5) * 3000;
      this.particles.vertices.push(new THREE.Vector3(x, y, z));
    }
  };

  function ParticleUniverse(particles) {
    this.galaxies = [];
    var pArr = particles.particleArray;
    for (var i = 0; i < pArr.length; i++) {
      var customParticle = new ParticleMaterial(pArr[i].color, pArr[i].size, pArr[i].opacity);
      var pMaterial = customParticle.material;
      var customSystem = new ParticleSystem(pArr[i].number);
      var pSystem = customSystem.particles;
      var pObject = {
        material: pMaterial,
        system: pSystem
      };
      this.galaxies.push(pObject);
    }
  }

  function createUniverse(universe) {
    var galaxies = universe.galaxies;
    for (var i = 0; i < galaxies.length; i++) {
      var galaxy = new THREE.Points(galaxies[i].system, galaxies[i].material);
      scene.add(galaxy);
    }
  };

  var particles = new Particles(galaxies);
  var universe = new ParticleUniverse(particles);
  
  createUniverse(universe);

  // render
  var render = function() {
    requestAnimationFrame(render);
    animation();
    renderer.render(scene, camera);
  };
  //animations
  function animation() {
    scene.rotation.y -= .000000000001;
  };

  render();
};<commit_msg>change speed<commit_after>

function generateUniverse(galaxies) {
// setting the scene
  var space = "#151718";
  var canvas_height = $(document).height();
  var canvas_width = $(document).width();
  var scene = new THREE.Scene();

  //cam
  var camera = new THREE.PerspectiveCamera(75, canvas_width / canvas_height, 0.1, 1000);
  camera.position.set(0, 50, 100);
  camera.lookAt(new THREE.Vector3(0, 50, 0));

  //renderer
  var renderer = new THREE.WebGLRenderer({
    alpha: true
  });
  renderer.setSize(canvas_width, canvas_height);
  renderer.shadowMap.enabled = true;
  renderer.shadowMap.type = THREE.PCFSoftShadowMap;
  renderer.setClearColor(space, 1);
  document.body.appendChild(renderer.domElement);

  //window
  document.onresize = function() {
    canvas_height = $(document).height();
    canvas_width = $(document).width();
    camera.aspect = canvas_width / canvas_height;
    camera.updateProjectionMatrix();
    renderer.setSize(canvas_width, canvas_height);
  }

  //controls
  controls = new THREE.OrbitControls(camera);
  controls.damping = 0.2;
  controls.maxDistance = 900;

  //particle objects
  THREE.ImageUtils.crossOrigin = true;

  
  function Particles(num) {
    this.particleArray = []
    for (var i = 0; i < num; i++) {
      var c = 0xffffff;
      var o = Math.floor(Math.random() * (100 - 0 + 1)) / 100;
      var s = Math.floor(Math.random() * (15 - 5 + 1)) + 5;
      var particleCount = Math.floor(Math.random() * (1000 - 250 + 1)) + 250;
      var particle = {
        color: c,
        opacity: o,
        size: s,
        number: particleCount
      }
      this.particleArray.push(particle);
    }
  }

  function ParticleMaterial(c, s, o) {
    var texture=  new THREE.TextureLoader().load('images/bower.png');
    this.material = new THREE.PointsMaterial({
      color: c,
      size: s,
      transparent: true,
      opacity: o,
      map: texture
    });
  }

  function ParticleSystem(number) {
    this.particles = new THREE.Geometry();
    for (var i = 0; i < number; i++) {
      var x = (Math.random() - 0.5) * 10000;
      var y = (Math.random() - 0.5) * 1000;
      var z = (Math.random() - 0.5) * 3000;
      this.particles.vertices.push(new THREE.Vector3(x, y, z));
    }
  };

  function ParticleUniverse(particles) {
    this.galaxies = [];
    var pArr = particles.particleArray;
    for (var i = 0; i < pArr.length; i++) {
      var customParticle = new ParticleMaterial(pArr[i].color, pArr[i].size, pArr[i].opacity);
      var pMaterial = customParticle.material;
      var customSystem = new ParticleSystem(pArr[i].number);
      var pSystem = customSystem.particles;
      var pObject = {
        material: pMaterial,
        system: pSystem
      };
      this.galaxies.push(pObject);
    }
  }

  function createUniverse(universe) {
    var galaxies = universe.galaxies;
    for (var i = 0; i < galaxies.length; i++) {
      var galaxy = new THREE.Points(galaxies[i].system, galaxies[i].material);
      scene.add(galaxy);
    }
  };

  var particles = new Particles(galaxies);
  var universe = new ParticleUniverse(particles);
  
  createUniverse(universe);

  // render
  var render = function() {
    requestAnimationFrame(render);
    animation();
    renderer.render(scene, camera);
  };
  //animations
  function animation() {
    scene.rotation.y -= .000001;
  };

  render();
};
{'fraction_non_alphanumeric': 0.14109242446792677, 'fraction_numerical': 0.026492037505581188, 'mean_word_length': 2.8487972508591066, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, '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': '4238482', 'n_tokens_mistral': 2386, 'n_tokens_neox': 2188, 'n_words': 501}