<commit_before>import { Injectable } from '@angular/core';
import * as THREE from 'three';
import { ThreeComponentModel } from '@app/three/three.component.model';
import { TargetModel } from './target.model';

@Injectable({
  providedIn: 'root'
})
export class TargetService {
  private static readonly SCALE = 0.2;
  private static readonly EPSILON = 1e-3;
  private static readonly STEP = 10;

  constructor() {
    // Empty
  }

  public initialize(): TargetModel {
    return {
      axesHelper: new THREE.AxesHelper(TargetService.SCALE),
      ratio: 1,
      targetOnClick: null,
      cameraOnClick: null
    };
  }

  public create(
    target: TargetModel,
    myScene: THREE.Scene,
    myPoint: THREE.Vector3
  ): void {
    target.axesHelper.translateX(myPoint.x);
    target.axesHelper.translateY(myPoint.y);
    target.axesHelper.translateZ(myPoint.z);
    myScene.add(target.axesHelper);
  }

  update(
    target: TargetModel,
    myNewPoint: THREE.Vector3,
    camera: THREE.Camera
  ): void {<commit_msg>Fix on end for go to target<commit_after>import { Injectable } from '@angular/core';
import * as THREE from 'three';
import { ThreeComponentModel } from '@app/three/three.component.model';
import { TargetModel } from './target.model';

@Injectable({
  providedIn: 'root'
})
export class TargetService {
  private static readonly SCALE = 0.2;
  private static readonly EPSILON = 0.01;
  private static readonly STEP = 10;

  constructor() {
    // Empty
  }

  public initialize(): TargetModel {
    return {
      axesHelper: new THREE.AxesHelper(TargetService.SCALE),
      ratio: 1,
      targetOnClick: null,
      cameraOnClick: null
    };
  }

  public create(
    target: TargetModel,
    myScene: THREE.Scene,
    myPoint: THREE.Vector3
  ): void {
    target.axesHelper.translateX(myPoint.x);
    target.axesHelper.translateY(myPoint.y);
    target.axesHelper.translateZ(myPoint.z);
    myScene.add(target.axesHelper);
  }

  update(
    target: TargetModel,
    myNewPoint: THREE.Vector3,
    camera: THREE.Camera
  ): void {
{'fraction_non_alphanumeric': 0.11673151750972763, 'fraction_numerical': 0.00924124513618677, 'mean_word_length': 3.3488372093023258, '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': '4539762', 'n_tokens_mistral': 683, 'n_tokens_neox': 639, 'n_words': 154}