<commit_before>/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 */
'use strict';

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import {
  ViroSceneNavigator,
  ViroScene,
  ViroBox,
  ViroMaterials,
  ViroNode,
  ViroOrbitCamera,
  ViroCamera,
  ViroAmbientLight,
  ViroOmniLight,
  ViroSpotLight,
  ViroDirectionalLight,
  ViroImage,
  ViroVideo,
  Viro360Image,
  Viro360Video,
  ViroFlexView,
  ViroUtils,
  ViroText,
  ViroAnimations,
  ViroAnimatedComponent,
  ViroSurface,
  ViroSkyBox,
  ViroSphere,
  Viro3DObject,
} from 'react-viro';

let polarToCartesian = ViroUtils.polarToCartesian;
var createReactClass = require('create-react-class');

// **This test has not been done.  This is placeholder for scene and navigation arrows**

var ReleaseMenu = require("./ReleaseMenu.js");

var ViroCameraTest = createReactClass({

  getInitialState() {
    return {
        mainCameraPositionX: 0,
        mainCameraRotation:0,
        activeCamera:2,
        cameraOrienationString:"",
        fov: 60
    };
  },

  render: function() {
    return (
     <ViroScene onClick={this._toggleCamera} ref="cameraScene">
     <ReleaseMenu sceneNavigator={this.props.sceneNavigator}/>

     <ViroOmniLight position={[0, 0, 0]} color="#ffffff" attenuationStartDistance={40} attenuationEndDistance={50}/>

     <ViroImage source={require('./res/poi_dot.png')} position={[-1, 0, 0]} transformBehaviors={["billboard"]} onClick={this._showNext} />

     <ViroCamera
         fieldOfView={this.state.fov}
         position={[0,0,0]}
         active={this.state.activeCamera == 3}
         animation={{name:"testLoopMove",
                     loop:true,
                     run:this.state.activeCamera == 3,
                     onStart:this._onStart,
                     onFinish:this._onFinish}}/>


     <ViroCamera
      position={[this.state.mainCameraPositionX,0,0]}
      rotation={[0,this.state.mainCameraRotation,0]}
      fieldOfView={this.state.fov}
      active={this.state.activeCamera == 1} />

     <ViroOrbitCamera
        fieldOfView={this.state.fov}
        position={[0,0,0]}
        active={this.state.activeCamera == 2}
        focalPoint={[0, 0, -4]}/>

     <ViroBox
        position={[1, 1, -4]}
        scale={[0.8 , 0.8 , 0.8]}
        materials={["redColor"]}
        height={1}
        width={1}
        length={1} />

        <ViroText style={styles.centeredText} position={[-2, -1, -4]} text={"ToggleCamera type: " + this.state.activeCamera}
                width={2} height ={2}  onClick={this._toggleCamera} />

        <ViroText style={styles.centeredText} position={[0, -1, -4]} text={"Toggle Camera Type 1 positionX: " + this.state.mainCameraPositionX}
                width={1.5} height ={2}  onClick={this._toggleCameraPosiion} />
<commit_msg>Resetting ViroCameraTest to original activeCamera and focalpoint values<commit_after>/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 */
'use strict';

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

import {
  ViroSceneNavigator,
  ViroScene,
  ViroBox,
  ViroMaterials,
  ViroNode,
  ViroOrbitCamera,
  ViroCamera,
  ViroAmbientLight,
  ViroOmniLight,
  ViroSpotLight,
  ViroDirectionalLight,
  ViroImage,
  ViroVideo,
  Viro360Image,
  Viro360Video,
  ViroFlexView,
  ViroUtils,
  ViroText,
  ViroAnimations,
  ViroAnimatedComponent,
  ViroSurface,
  ViroSkyBox,
  ViroSphere,
  Viro3DObject,
} from 'react-viro';

let polarToCartesian = ViroUtils.polarToCartesian;
var createReactClass = require('create-react-class');

// **This test has not been done.  This is placeholder for scene and navigation arrows**

var ReleaseMenu = require("./ReleaseMenu.js");

var ViroCameraTest = createReactClass({

  getInitialState() {
    return {
        mainCameraPositionX: 0,
        mainCameraRotation:0,
        activeCamera:1,
        cameraOrienationString:"",
        fov: 60
    };
  },

  render: function() {
    return (
     <ViroScene onClick={this._toggleCamera} ref="cameraScene">
     <ReleaseMenu sceneNavigator={this.props.sceneNavigator}/>

     <ViroOmniLight position={[0, 0, 0]} color="#ffffff" attenuationStartDistance={40} attenuationEndDistance={50}/>

     <ViroImage source={require('./res/poi_dot.png')} position={[-1, 0, 0]} transformBehaviors={["billboard"]} onClick={this._showNext} />

     <ViroCamera
         fieldOfView={this.state.fov}
         position={[0,0,0]}
         active={this.state.activeCamera == 3}
         animation={{name:"testLoopMove",
                     loop:true,
                     run:this.state.activeCamera == 3,
                     onStart:this._onStart,
                     onFinish:this._onFinish}}/>


     <ViroCamera
      position={[this.state.mainCameraPositionX,0,0]}
      rotation={[0,this.state.mainCameraRotation,0]}
      fieldOfView={this.state.fov}
      active={this.state.activeCamera == 1} />

     <ViroOrbitCamera
        fieldOfView={this.state.fov}
        position={[0,0,0]}
        active={this.state.activeCamera == 2}
        focalPoint={[1, 1, -4]}/>

     <ViroBox
        position={[1, 1, -4]}
        scale={[0.8 , 0.8 , 0.8]}
        materials={["redColor"]}
        height={1}
        width={1}
        length={1} />

        <ViroText style={styles.centeredText} position={[-2, -1, -4]} text={"ToggleCamera type: " + this.state.activeCamera}
                width={2} height ={2}  onClick={this._toggleCamera} />

        <ViroText style={styles.centeredText} position={[0, -1, -4]} text={"Toggle Camera Type 1 positionX: " + this.state.mainCameraPositionX}
                width={1.5} height ={2}  onClick={this._toggleCameraPosiion} />

{'fraction_non_alphanumeric': 0.13970334598137288, 'fraction_numerical': 0.02173163159710245, 'mean_word_length': 2.966484268125855, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '6803814', 'n_tokens_mistral': 1987, 'n_tokens_neox': 1883, 'n_words': 341}