<commit_before><!DOCTYPE html>
<html>

<head>
  <title>n-body</title>
  <script src="http://mendow.github.io/projects/n-body/libs/three.js"></script>
  <script src="http://mendow.github.io/projects/n-body/libs/OrbitControls.js"></script>
  <script src="http://mendow.github.io/projects/n-body/libs/OBJLoader.js"></script>
  <style>
    body {
      margin: 0;
      overflow: hidden;
    }

  </style>
</head>
<script>
   //define global variable
  {
    var c = 0;
    var renderer;
    var scene;
    var camera;
    var orbit;
    var ps;

    var G = 9.81;
    var dt = 0.0001;
    var count = 10;

    var cam = 30;

    var temp = new THREE.Vector3();
    temp.x = 0;
    temp.y = 0;
    temp.z = 0;
    temp.vel = new THREE.Vector3(0, 0, 0);
    temp.acc = new THREE.Vector3(0, 0, 0);
    temp.mass = 0;

    var r;


  }
  //init environment
  function init() {
    // scene
    {
      // create a scene, that will hold all our elements such as objects, cameras and lights.
      scene = new THREE.Scene();

      // create a camera, which defines where we're looking at.
      camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000);

      // create a render, sets the background color and the size
      renderer = new THREE.WebGLRenderer();
      renderer.setClearColor(0x000000, 1.0);
      renderer.setSize(window.innerWidth, window.innerHeight);

      // position and point the camera to the center of the scene
      camera.position.x = cam;
      camera.position.y = cam;
      camera.position.z = cam;
      camera.lookAt(scene.position);

      orbit = new THREE.OrbitControls(camera);
    }
    setupParticleSystem(count);

    // add the output of the renderer to the html element
    document.body.appendChild(renderer.domElement);

    // call the render function
    render();
  }

  // particle system
  function setupParticleSystem(y) {
    var geometry = new THREE.Geometry();
    for (var j = 0; j < y; j++) {
      var v = new THREE.Vector3();
      var ran = count / 10;
      var q = 0.000005;
      v.x = Rand(ran, -ran);
      v.y = Rand(ran, -ran);
      v.z = Rand(ran, -ran);
      v.vel = new THREE.Vector3(Rand(-ran, ran), Rand(-ran, ran), Rand(-ran, ran));
      v.acc = new THREE.Vector3(0, 0, 0);
      v.mass = Rand(0, q);
      geometry.vertices.push(v);
    }




    geometry.vertices.push(v);

    // use a material for some styling
    {

      var psMat = new THREE.PointCloudMaterial();
      
      psMat.map = THREE.ImageUtils.loadTexture('');
      psMat.color = new THREE.Color(0x55ff55);
      psMat.transparent = true;
      psMat.size = 3;
      psMat.blending = THREE.AdditiveBlending;
    }

    // Create a new particle system based on the provided geometry
    {
      ps = new THREE.PointCloud(geometry, psMat);
      ps.sizeAttenuation = true;<commit_msg>Updated index.html<commit_after><!DOCTYPE html>
<html>

<head>
  <title>n-body</title>
  <script src="http://mendow.github.io/projects/n-body/libs/three.js"></script>
  <script src="http://mendow.github.io/projects/n-body/libs/OrbitControls.js"></script>
  <script src="http://mendow.github.io/projects/n-body/libs/OBJLoader.js"></script>
  <style>
    body {
      margin: 0;
      overflow: hidden;
    }

  </style>
</head>
<script>
   //define global variable
  {
    var c = 0;
    var renderer;
    var scene;
    var camera;
    var orbit;
    var ps;

    var G = 9.81;
    var dt = 0.0001;
    var count = 10;

    var cam = 30;

    var temp = new THREE.Vector3();
    temp.x = 0;
    temp.y = 0;
    temp.z = 0;
    temp.vel = new THREE.Vector3(0, 0, 0);
    temp.acc = new THREE.Vector3(0, 0, 0);
    temp.mass = 0;

    var r;


  }
  //init environment
  function init() {
    // scene
    {
      // create a scene, that will hold all our elements such as objects, cameras and lights.
      scene = new THREE.Scene();

      // create a camera, which defines where we're looking at.
      camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 1000);

      // create a render, sets the background color and the size
      renderer = new THREE.WebGLRenderer();
      renderer.setClearColor(0x000000, 1.0);
      renderer.setSize(window.innerWidth, window.innerHeight);

      // position and point the camera to the center of the scene
      camera.position.x = cam;
      camera.position.y = cam;
      camera.position.z = cam;
      camera.lookAt(scene.position);

      orbit = new THREE.OrbitControls(camera);
    }
    setupParticleSystem(count);

    // add the output of the renderer to the html element
    document.body.appendChild(renderer.domElement);

    // call the render function
    render();
  }

  // particle system
  function setupParticleSystem(y) {
    var geometry = new THREE.Geometry();
    for (var j = 0; j < y; j++) {
      var v = new THREE.Vector3();
      var ran = count / 10;
      var q = 0.000005;
      v.x = Rand(ran, -ran);
      v.y = Rand(ran, -ran);
      v.z = Rand(ran, -ran);
      v.vel = new THREE.Vector3(Rand(-ran, ran), Rand(-ran, ran), Rand(-ran, ran));
      v.acc = new THREE.Vector3(0, 0, 0);
      v.mass = Rand(0, q);
      geometry.vertices.push(v);
    }




    geometry.vertices.push(v);

    // use a material for some styling
    {

      var psMat = new THREE.PointCloudMaterial();
      
      psMat.map = THREE.ImageUtils.loadTexture("http://mendow.github.io/projects/n-body/assets/textures/ps_smoke.png");
      psMat.color = new THREE.Color(0x55ff55);
      psMat.transparent = true;
      psMat.size = 3;
      psMat.blending = THREE.AdditiveBlending;
    }

    // Create a new particle system based on the provided geometry
    {
      ps = new THREE.PointCloud(geometry, psMat);
      ps.sizeAttenuation = true;
{'fraction_non_alphanumeric': 0.13505101158568217, 'fraction_numerical': 0.02317136434376621, 'mean_word_length': 2.3279631760644417, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 33, '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': '1522596', 'n_tokens_mistral': 2079, 'n_tokens_neox': 1897, 'n_words': 512}