<commit_before>import os
import abstract_asset_bundle

type NativeAssetBundle* = ref object of AssetBundle
    mBaseUrl: string

proc newNativeAssetBundle*(): NativeAssetBundle =
    result.new()
    when defined(macosx):
        result.mBaseUrl = "file://" & getAppDir() & "/../Resources"
    elif defined(ios):
        result.mBaseUrl = "file://" & getAppDir()
    else:
        result.mBaseUrl = "file://" & getAppDir() & "/res"

method urlForPath*(ab: NativeAssetBundle, path: string): string =<commit_msg>Fixed resource path for ios<commit_after>import os
import abstract_asset_bundle

type NativeAssetBundle* = ref object of AssetBundle
    mBaseUrl: string

proc newNativeAssetBundle*(): NativeAssetBundle =
    result.new()
    when defined(ios):
        result.mBaseUrl = "file://" & getAppDir()
    elif defined(macosx):
        result.mBaseUrl = "file://" & getAppDir() & "/../Resources"
    else:
        result.mBaseUrl = "file://" & getAppDir() & "/res"

method urlForPath*(ab: NativeAssetBundle, path: string): string =
{'fraction_non_alphanumeric': 0.13539651837524178, 'fraction_numerical': 0.0, 'mean_word_length': 3.6, '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': '2473659', 'n_tokens_mistral': 318, 'n_tokens_neox': 315, 'n_words': 80}