<commit_before>{-# LANGUAGE JavaScriptFFI, GeneralizedNewtypeDeriving #-}
module GHCJS.Three.Scene (
    Scene(..), mkScene
) where

import GHCJS.Types
import GHCJS.Three.Monad
import GHCJS.Three.Object3D

-- | scene definition
newtype Scene = Scene {
    sceneObject3D :: Object3D
} deriving (ThreeJSRef, IsObject3D)

foreign import javascript unsafe "new window.Three.Scene()"
    thr_mkScene :: Three JSRef

-- | create a new Scene
mkScene :: Three Scene
mkScene = fromJSRef <$> thr_mkScene<commit_msg>Fix a typo bug in the js code<commit_after>{-# LANGUAGE JavaScriptFFI, GeneralizedNewtypeDeriving #-}
module GHCJS.Three.Scene (
    Scene(..), mkScene
) where

import GHCJS.Types
import GHCJS.Three.Monad
import GHCJS.Three.Object3D

-- | scene definition
newtype Scene = Scene {
    sceneObject3D :: Object3D
} deriving (ThreeJSRef, IsObject3D)

foreign import javascript unsafe "new window.THREE.Scene()"
    thr_mkScene :: Three JSRef

-- | create a new Scene
mkScene :: Three Scene
mkScene = fromJSRef <$> thr_mkScene
{'fraction_non_alphanumeric': 0.10136452241715399, 'fraction_numerical': 0.007797270955165692, 'mean_word_length': 4.405263157894737, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2850085', 'n_tokens_mistral': 360, 'n_tokens_neox': 347, 'n_words': 94}