<commit_before>var pex = pex || require('../../build/pex');

var fx = pex.fx;

 pex.sys.Window.create({
  settings: {
    width: 1280,
    height: 720,
    type: '3d',
    vsync: true,
    multisample: true,
    fullscreen: false,
    center: true
  },
  init: function() {
    var gl = pex.gl.Context.currentContext.gl;
    this.camera = new pex.scene.Camera(60, this.width/this.height, 0.1, 3);
    this.arcball = new pex.scene.Arcball(this, this.camera, 2);

    this.showNormals = new pex.materials.ShowNormals();
    this.packDepth = new pex.materials.PackDepth();
    this.mesh = new pex.gl.Mesh(new pex.geom.gen.Sphere(0.3), this.showNormals);

    this.instances = [];
    for(var i=0; i<10; i++) {
      this.instances.push(pex.utils.MathUtils.randomVec3(0.35));
    }

    this.imgRt = new pex.gl.ScreenImage(this.img);
  },
  drawColor: function() {
    this.mesh.setMaterial(this.showNormals);
    this.drawScene();
  },
  drawDepth: function() {
    this.mesh.setMaterial(this.packDepth);
    this.drawScene();
  },
  drawScene: function() {
    var gl = pex.gl.Context.currentContext.gl;
    gl.clearColor(0, 0, 0, 1);
    gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
    gl.enable(gl.DEPTH_TEST);<commit_msg>Removed dead code in fx example<commit_after>var pex = pex || require('../../build/pex');

var fx = pex.fx;

 pex.sys.Window.create({
  settings: {
    width: 1280,
    height: 720,
    type: '3d',
    vsync: true,
    multisample: true,
    fullscreen: false,
    center: true
  },
  init: function() {
    var gl = pex.gl.Context.currentContext.gl;
    this.camera = new pex.scene.Camera(60, this.width/this.height, 0.1, 3);
    this.arcball = new pex.scene.Arcball(this, this.camera, 2);

    this.showNormals = new pex.materials.ShowNormals();
    this.packDepth = new pex.materials.PackDepth();
    this.mesh = new pex.gl.Mesh(new pex.geom.gen.Sphere(0.3), this.showNormals);

    this.instances = [];
    for(var i=0; i<10; i++) {
      this.instances.push(pex.utils.MathUtils.randomVec3(0.35));
    }
  },
  drawColor: function() {
    this.mesh.setMaterial(this.showNormals);
    this.drawScene();
  },
  drawDepth: function() {
    this.mesh.setMaterial(this.packDepth);
    this.drawScene();
  },
  drawScene: function() {
    var gl = pex.gl.Context.currentContext.gl;
    gl.clearColor(0, 0, 0, 1);
    gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT);
    gl.enable(gl.DEPTH_TEST);
{'fraction_non_alphanumeric': 0.1655683690280066, 'fraction_numerical': 0.022240527182866558, 'mean_word_length': 3.0686767169179228, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2593652', 'n_tokens_mistral': 962, 'n_tokens_neox': 912, 'n_words': 159}