<commit_before>module ObjTest where

import Graphics.ObjParser (..)
import Graphics.ObjTypes (..)

import LoadAssets as Load

import Graphics.Camera as Camera

import Math.Vector3 (..)
import Math.Matrix4 (..)
import Graphics.WebGL (..)

import Http



--Based off the triangle rendering code from http://elm-lang.org/edit/examples/WebGL/Triangle.elm
  
-- Create the scene

--camera : Signal (Camera.Camera)
camera =  foldp Camera.step Camera.defaultCamera Camera.inputs

--main : Signal Element



main = let
    inResp = Http.sendGet <| constant "/capsule.obj"
    texResp = loadTexture "/capsule0.jpg"
    bumpResp = loadTexture "/Orange-bumpmap.png"
    inAsset = lift Load.toAsset inResp
    texAsset = lift Load.toAsset texResp
    bumpAsset = lift Load.toAsset bumpResp
    assets = combine [inAsset, texAsset, bumpAsset]
    loadStatSig = lift Load.toStatus assets
    <commit_msg>Change to relative path<commit_after>module ObjTest where

import Graphics.ObjParser (..)
import Graphics.ObjTypes (..)

import LoadAssets as Load

import Graphics.Camera as Camera

import Math.Vector3 (..)
import Math.Matrix4 (..)
import Graphics.WebGL (..)

import Http



--Based off the triangle rendering code from http://elm-lang.org/edit/examples/WebGL/Triangle.elm
  
-- Create the scene

--camera : Signal (Camera.Camera)
camera =  foldp Camera.step Camera.defaultCamera Camera.inputs

--main : Signal Element



main = let
    inResp = Http.sendGet <| constant "capsule.obj"
    texResp = loadTexture "capsule0.jpg"
    bumpResp = loadTexture "Orange-bumpmap.png"
    inAsset = lift Load.toAsset inResp
    texAsset = lift Load.toAsset texResp
    bumpAsset = lift Load.toAsset bumpResp
    assets = combine [inAsset, texAsset, bumpAsset]
    loadStatSig = lift Load.toStatus assets
    
{'fraction_non_alphanumeric': 0.09792949076664802, 'fraction_numerical': 0.003357582540570789, 'mean_word_length': 3.481203007518797, 'pattern_counts': {'":': 0, '<': 5, '<?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': '702609', 'n_tokens_mistral': 576, 'n_tokens_neox': 545, 'n_words': 159}