<commit_before>import {DatAPI} from './DatAPI';

export class DatCameraModule extends DatAPI {
  constructor(params = {}, gui) {
    super();

    this.params = Object.assign({
      name: 'Unknown camera',
      camera: true
    }, params);

    this.gui = gui;
    this.fold = this.gui.addFolder(this.params.name);
  }

  integrate(self) {
    if (this.native) self.bridge.camera.bind(this)(this.native, self);
  }

  bridge = {
    camera(camera, self) {
      if (!self.params.camera) return camera;
      self.foldObject(camera, this.params.camera, self.fold.addFolder('camera'), () => {
        camera.updateProjectionMatrix();<commit_msg>Unfold camera level<commit_after>import {DatAPI} from './DatAPI';

export class DatCameraModule extends DatAPI {
  constructor(params = {}, gui) {
    super();

    this.params = Object.assign({
      name: 'Unknown camera',
      camera: true
    }, params);

    this.gui = gui;
    this.fold = this.gui.addFolder(this.params.name);
  }

  integrate(self) {
    if (this.native) self.bridge.camera.bind(this)(this.native, self);
  }

  bridge = {
    camera(camera, self) {
      if (!self.params.camera) return camera;
      self.foldObject(camera, this.params.camera, self.fold, () => {
        camera.updateProjectionMatrix();
{'fraction_non_alphanumeric': 0.15125391849529782, 'fraction_numerical': 0.0, 'mean_word_length': 3.1193548387096772, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3131908', 'n_tokens_mistral': 407, 'n_tokens_neox': 400, 'n_words': 81}