<commit_before>import { Scene as THREEScene } from '../../three/src/scenes/Scene.js';
import { PerspectiveCamera } from '../../three/src/cameras/PerspectiveCamera.js';
import { Mesh } from '../../three/src/objects/Mesh.js';
import { BoxGeometry } from '../../three/src/geometries/BoxGeometry.js';
import { MeshNormalMaterial } from '../../three/src/materials/MeshNormalMaterial.js';

import THREETrackballController from '../../@damienmortini/three/controller/THREETrackballController.js';

export default class Scene extends THREEScene {
  constructor({ canvas }) {
    super();

    this.camera = new PerspectiveCamera(65, window.innerWidth / window.innerHeight, 0.1, 10000);

    this.controls = new THREETrackballController(this.camera, {
      distance: 5,
      domElement: canvas,
    });

    const cube = new Mesh(new BoxGeometry(1, 1, 1), new MeshNormalMaterial());
    this.add(cube);
  }

  resize(width, height) {
    this.camera.aspect = width / height;
    this.camera.updateProjectionMatrix();
  }

  update() {
    this.controls.update();
  }
}<commit_msg>THREETrackballController to TrackballController<commit_after>import { Scene as THREEScene } from '../../three/src/scenes/Scene.js';
import { PerspectiveCamera } from '../../three/src/cameras/PerspectiveCamera.js';
import { Mesh } from '../../three/src/objects/Mesh.js';
import { BoxGeometry } from '../../three/src/geometries/BoxGeometry.js';
import { MeshNormalMaterial } from '../../three/src/materials/MeshNormalMaterial.js';

import TrackballController from '../../@damienmortini/core/3d/controller/TrackballController.js';

export default class Scene extends THREEScene {
  constructor({ canvas }) {
    super();

    this.camera = new PerspectiveCamera(65, window.innerWidth / window.innerHeight, 0.1, 10000);

    this.controls = new TrackballController({
      distance: 5,
      domElement: canvas,
    });
    this.camera.matrixAutoUpdate = false;

    const cube = new Mesh(new BoxGeometry(1, 1, 1), new MeshNormalMaterial());
    this.add(cube);
  }

  resize(width, height) {
    this.camera.aspect = width / height;
    this.camera.updateProjectionMatrix();
  }

  update() {
    this.controls.update();
    this.camera.matrix.fromArray(this.controls.matrix);
    this.camera.matrixWorldNeedsUpdate = true;
  }
}
{'fraction_non_alphanumeric': 0.15180513266637669, 'fraction_numerical': 0.0117442366246194, 'mean_word_length': 3.6, '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': '3605126', 'n_tokens_mistral': 728, 'n_tokens_neox': 698, 'n_words': 141}