<commit_before>'use strict';

/**
 * @constructor
 */
function ParticleTestState() {
  State.call(this);

  this.DM = new DataManager();
  this.world = null;
}
ParticleTestState.prototype = new State();

ParticleTestState.prototype.prepare = function(callback) {
  callback();
};

ParticleTestState.prototype.spawnBonfire = function() {
  var bonfire = new NpcPawn();
  bonfire.setModel(801);
  bonfire.rootObj.position.set(5200 + (Math.random() * 20) - 10, 5280 + (Math.random() * 20) - 10, -5);
  scene.add(bonfire.rootObj);
};

ParticleTestState.prototype.fuckingMeteors = function() {
  var rootObj = new THREE.Object3D();
  rootObj.position.set(5200 + (Math.random() * 20) - 10, 5280 + (Math.random() * 20) - 10, -5);
  scene.add(rootObj);

  EffectManager.loadEffect('3Ddata\\EFFECT\\_RUNASTON_01.EFT', function(effect) {
    rootObj.add(effect.rootObj);
    rootObj.add(effect.rootObj2);
    effect.play();
    effect.on('finish', function() {
      console.log('EFFECT FINISHED!');
    });
  });
};

ParticleTestState.prototype.enter = function() {
  var self = this;

  debugGui.add(this, 'spawnBonfire');
  debugGui.add(this, 'fuckingMeteors');

  var container = document.createElement( 'div' );
  document.body.appendChild( container );

  var controls = new THREE.FreeFlyControls(camera);
  controls.movementSpeed = 100;
  controls.domElement = container;
  controls.rollSpeed = Math.PI / 24;
  controls.autoForward = false;
  controls.dragToLook = false;
  self.controls = controls;

  camera.position.x = 5150;
  camera.position.y = 5333;
  camera.position.z = 39;
<commit_msg>Added pointer to test state to help debug blending issues.<commit_after>'use strict';

/**
 * @constructor
 */
function ParticleTestState() {
  State.call(this);

  this.DM = new DataManager();
  this.world = null;
}
ParticleTestState.prototype = new State();

ParticleTestState.prototype.prepare = function(callback) {
  callback();
};

ParticleTestState.prototype.spawnBonfire = function() {
  var bonfire = new NpcPawn();
  bonfire.setModel(801);
  bonfire.rootObj.position.set(5200 + (Math.random() * 20) - 10, 5280 + (Math.random() * 20) - 10, -5);
  scene.add(bonfire.rootObj);
};

ParticleTestState.prototype.fuckingMeteors = function() {
  var rootObj = new THREE.Object3D();
  rootObj.position.set(5200 + (Math.random() * 20) - 10, 5280 + (Math.random() * 20) - 10, -5);
  scene.add(rootObj);

  EffectManager.loadEffect('3Ddata\\EFFECT\\_RUNASTON_01.EFT', function(effect) {
    rootObj.add(effect.rootObj);
    rootObj.add(effect.rootObj2);
    effect.play();
    effect.on('finish', function() {
      console.log('EFFECT FINISHED!');
    });
  });
};

ParticleTestState.prototype.fuckingPointer = function() {
  var rootObj = new THREE.Object3D();
  rootObj.position.set(5200 + (Math.random() * 20) - 10, 5280 + (Math.random() * 20) - 10, -5);
  scene.add(rootObj);

  EffectManager.loadEffectByIdx(296, function(effect) {
    rootObj.add(effect.rootObj);
    rootObj.add(effect.rootObj2);
    effect.play();
    effect.on('finish', function() {
      console.log('EFFECT FINISHED!');
    });
  });
};

ParticleTestState.prototype.enter = function() {
  var self = this;

  debugGui.add(this, 'spawnBonfire');
  debugGui.add(this, 'fuckingMeteors');
  debugGui.add(this, 'fuckingPointer');

  var container = document.createElement( 'div' );
  document.body.appendChild( container );

  var controls = new THREE.FreeFlyControls(camera);
  controls.movementSpeed = 100;
  controls.domElement = container;
  controls.rollSpeed = Math.PI / 24;
  controls.autoForward = false;
  controls.dragToLook = false;
  self.controls = controls;

  camera.position.x = 5150;
  camera.position.y = 5333;
  camera.position.z = 39;

{'fraction_non_alphanumeric': 0.15913978494623657, 'fraction_numerical': 0.03655913978494624, 'mean_word_length': 4.069482288828338, 'pattern_counts': {'":': 0, '<': 3, '<?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': '958583', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1263, 'n_words': 230}