<commit_before>declare module "client-side-loader" {

    import EventManger, { EventCallback } from 'generic-events';

    export interface ResourceLoader<R> {
        /**
         * Gets a resource previously loaded by name.
         * @param name {string} The resource to get.
         * @return The resource, or null if the resource doesn't exists or wasn't loaded.
         */
        get(name): R | null;
        /**
         * Adds a new resource to load.
         * If the manager is loading, an error is thrown.
         * @param url {string} The url to load
         * @param name {string} The name of the resource, if ignored, the name will be the url.
         * @return this.
         */
        add(url: string, name?: string): this;
        /**
         * Starts the load of the resources.
         */
        start(): void;
        /**
         * A quick access to the audio loader.
         */
        public audio : ResourceLoader<HTMLAudioElement>;
        /**
         * A quick access to the image loader.
         */<commit_msg>Fixed type<commit_after>declare module "client-side-loader" {

    import EventManger, { EventCallback } from 'generic-events';

    export interface ResourceLoader<R> {
        /**
         * Gets a resource previously loaded by name.
         * @param name {string} The resource to get.
         * @return The resource, or null if the resource doesn't exists or wasn't loaded.
         */
        get(name: string): R | null;
        /**
         * Adds a new resource to load.
         * If the manager is loading, an error is thrown.
         * @param url {string} The url to load
         * @param name {string} The name of the resource, if ignored, the name will be the url.
         * @return this.
         */
        add(url: string, name?: string): this;
        /**
         * Starts the load of the resources.
         */
        start(): void;
        /**
         * A quick access to the audio loader.
         */
        public audio : ResourceLoader<HTMLAudioElement>;
        /**
         * A quick access to the image loader.
         */
{'fraction_non_alphanumeric': 0.09738717339667459, 'fraction_numerical': 0.0, 'mean_word_length': 1.7174193548387098, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4168336', 'n_tokens_mistral': 546, 'n_tokens_neox': 535, 'n_words': 224}