<commit_before>module Foreign.Marshall where

import Foreign.Types exposing (JSRaw)
import Native.Foreign

unsafeNull : a
unsafeNull = Native.Foreign.unsafeNull

unsafeRequire : String -> a
unsafeRequire = Native.Foreign.unsafeRequire

unsafeGetGlobalConstant : String -> a
unsafeGetGlobalConstant = Native.Foreign.unsafeGetGlobalConstant

truthy : JSRaw -> Bool
truthy = Native.Foreign.truthy

unsafeTypeAs : JSRaw -> a
unsafeTypeAs = Native.Foreign.unsafeTypeAs<commit_msg>Use Json.Value over anything else<commit_after>module Foreign.Marshall where

import Json.Decode as Json
import Foreign.Types exposing (JSRaw)
import Native.Foreign

unsafeNull : a
unsafeNull = Native.Foreign.unsafeNull

unsafeRequire : String -> a
unsafeRequire = Native.Foreign.unsafeRequire

unsafeGetGlobalConstant : String -> a
unsafeGetGlobalConstant = Native.Foreign.unsafeGetGlobalConstant

truthy : JSRaw -> Bool
truthy = Native.Foreign.truthy

unsafeTypeAsJson : JSRaw -> Json.Value
unsafeTypeAsJson = Native.Foreign.unsafeTypeAs
{'fraction_non_alphanumeric': 0.07396449704142012, 'fraction_numerical': 0.0, 'mean_word_length': 5.766666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5491191', 'n_tokens_mistral': 316, 'n_tokens_neox': 287, 'n_words': 73}