<commit_before>// ----------------------------------------------------------------------------
// File: ThreeJsCamera.js
//
// Copyright (c) 2013 VoodooJs Authors
// ----------------------------------------------------------------------------



/**
 * The ThreeJs virtual camera that aligns 3D coordinates with 2D pixels.
 *
 * @constructor
 * @private
 *
 * @param {HTMLCanvasElement} canvas HTML canvas element.
 * @param {number} fovY Camera field of view in degrees along the y axis.
 * @param {number} zNear Minimum z distance rendered.
 * @param {number} zFar Maximum z distance rendered.
 */
function ThreeJsCamera_(canvas, fovY, zNear, zFar) {
  log_.information_('Creating ThreeJs Camera');
  this.camera_ = new THREE.Camera();

  this.canvas_ = canvas;
  this.fovY_ = fovY;
  this.zNear_ = zNear;
  this.zFar_ = zFar;

  this.initialize_();
  this.createProperties_();
}


/**
 * Inherit from Camera.
 */
ThreeJsCamera_.prototype = new Camera();


/**
 * Set the constructor back.
 */
ThreeJsCamera_.prototype.constructor = ThreeJsCamera_.constructor;


/**
 * The camera's field of view along the y axis.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['fovY'] = null;

// XYZ object for the camera's position.
ThreeJsCamera_.prototype['position'] = {};


/**
 * The camera position's x coordinate.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['position']['x'] = {};


/**
 * The camera position's y coordinate.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['position']['y'] = {};


/**
 * The camera position's z coordinate.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['position']['z'] = {};


/**
 * The camera's near Z distance.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['zNear'] = null;


/**
 * The camera's far Z distance.
 *
 * @type {number}
 */
ThreeJsCamera_.prototype['zFar'] = null;


/**
 * Creates the public camera properties.
 *
 * @private
 */
ThreeJsCamera_.prototype.createProperties_ = function() {
  Object.defineProperty(this, 'fovy', {
    get: function() { return this.fovY_; },
    set: function() { log_.error_('fovy is read-only'); },
    writeable: false
  });<commit_msg>Removing unnecessary properties from ThreeJsCamera<commit_after>// ----------------------------------------------------------------------------
// File: ThreeJsCamera.js
//
// Copyright (c) 2013 VoodooJs Authors
// ----------------------------------------------------------------------------



/**
 * The ThreeJs virtual camera that aligns 3D coordinates with 2D pixels.
 *
 * @constructor
 * @private
 *
 * @param {HTMLCanvasElement} canvas HTML canvas element.
 * @param {number} fovY Camera field of view in degrees along the y axis.
 * @param {number} zNear Minimum z distance rendered.
 * @param {number} zFar Maximum z distance rendered.
 */
function ThreeJsCamera_(canvas, fovY, zNear, zFar) {
  log_.information_('Creating ThreeJs Camera');
  this.camera_ = new THREE.Camera();

  this.canvas_ = canvas;
  this.fovY_ = fovY;
  this.zNear_ = zNear;
  this.zFar_ = zFar;

  this.initialize_();
  this.createProperties_();
}


/**
 * Inherit from Camera.
 */
ThreeJsCamera_.prototype = new Camera();


/**
 * Set the constructor back.
 */
ThreeJsCamera_.prototype.constructor = ThreeJsCamera_.constructor;


/**
 * Creates the public camera properties.
 *
 * @private
 */
ThreeJsCamera_.prototype.createProperties_ = function() {
  Object.defineProperty(this, 'fovy', {
    get: function() { return this.fovY_; },
    set: function() { log_.error_('fovy is read-only'); },
    writeable: false
  });
{'fraction_non_alphanumeric': 0.21936758893280633, 'fraction_numerical': 0.0033879164313946925, 'mean_word_length': 2.5572289156626504, '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': '3489512', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1009, 'n_words': 282}