<commit_before>
declare module "rivescript" {
	
	interface RivescriptOptions {
		utf8?: boolean;
		debug?: boolean;
		onDebug?: (message: string) => void;
		errors?: { [key: string]: string};
	}
	
	interface MacroObjectHandler {
		load(name: string, code: string[]): void;
		call(rs: RiveScript, name: string, fields: any, scope: any): string;
	}
	
	
	class RiveScript {
		constructor(options?: RivescriptOptions);
		
		version(): string;
		
		Promise(callback: (resolve: (any) => void, reject: (any) => void) => void): void;
		
		loadDirectory(brain: string, loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		
		loadFile(path: string, loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		
		loadFile(paths: string[], loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		<commit_msg>corresponding typing<commit_after>
declare module "rivescript" {
	
	interface RivescriptOptions {
		utf8?: boolean;
		debug?: boolean;
		onDebug?: (message: string) => void;
		concat?: "none" | "newline" | "space";
		errors?: { [key: string]: string};
	}
	
	interface MacroObjectHandler {
		load(name: string, code: string[]): void;
		call(rs: RiveScript, name: string, fields: any, scope: any): string;
	}
	
	
	class RiveScript {
		constructor(options?: RivescriptOptions);
		
		version(): string;
		
		Promise(callback: (resolve: (any) => void, reject: (any) => void) => void): void;
		
		loadDirectory(brain: string, loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		
		loadFile(path: string, loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		
		loadFile(paths: string[], loadingDone: (batchNumber: number) => void, loadingError: (error: Error, batchNumber: number) => void);
		
{'fraction_non_alphanumeric': 0.15531475748194015, 'fraction_numerical': 0.0010319917440660474, 'mean_word_length': 5.021739130434782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '4462995', 'n_tokens_mistral': 659, 'n_tokens_neox': 580, 'n_words': 175}