<commit_before>// Type definitions for require-dir 1.0
// Project: https://github.com/aseemk/requireDir
// Definitions by: weekens <https://github.com/weekens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface options {
   recurse?: boolean,
   duplicates?: boolean,
   filter?: any,
   mapKey?: any,
   mapValue?: any
}

declare function requireDir(directory: string, options?: options): { [path: string]: any };

export = requireDir;<commit_msg>Update index.d.ts<commit_after>// Type definitions for require-dir 1.0
// Project: https://github.com/aseemk/requireDir
// Definitions by: weekens <https://github.com/weekens>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

interface options {
   recurse?: boolean;
   duplicates?: boolean;
   filter?: any;
   mapKey?: any;
   mapValue?: any;
}

declare function requireDir(directory: string, options?: options): { [path: string]: any };

export = requireDir;
{'fraction_non_alphanumeric': 0.14345549738219895, 'fraction_numerical': 0.004188481675392671, 'mean_word_length': 4.431818181818182, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '7031713', 'n_tokens_mistral': 293, 'n_tokens_neox': 293, 'n_words': 74}