<commit_before>// Type definitions for async-retry 1.2
// Project: https://github.com/zeit/async-retry#readme
// Definitions by: <NAME> <https://github.com/albertywu>
//                 <NAME> <https://github.com/MeLlamoPablo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function AsyncRetry<A>(
	fn: AsyncRetry.RetryFunction<A>,
	opts: AsyncRetry.Options
): Promise<A>;

declare namespace AsyncRetry {
	function retry<A>(fn: RetryFunction<A>, opts: Options): Promise<A>;

	interface Options {
		retries?: number;
		factor?: number;
		minTimeout?: number;
		maxTimeout?: number;
		randomize?: boolean;
		onRetry?: (e: Error) => any;
	}

	type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>;
}

export = AsyncRetry;<commit_msg>Remove retry from the AsyncRetry namespace<commit_after>// Type definitions for async-retry 1.2
// Project: https://github.com/zeit/async-retry#readme
// Definitions by: <NAME> <https://github.com/albertywu>
//                 <NAME> <https://github.com/MeLlamoPablo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare function AsyncRetry<A>(
	fn: AsyncRetry.RetryFunction<A>,
	opts: AsyncRetry.Options
): Promise<A>;

declare namespace AsyncRetry {
	interface Options {
		retries?: number;
		factor?: number;
		minTimeout?: number;
		maxTimeout?: number;
		randomize?: boolean;
		onRetry?: (e: Error) => any;
	}

	type RetryFunction<A> = (bail: (e: Error) => A, attempt: number) => A|Promise<A>;
}

export = AsyncRetry;
{'fraction_non_alphanumeric': 0.15610711952971915, 'fraction_numerical': 0.002612671456564337, 'mean_word_length': 4.319444444444445, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 30, 'https://': 8, '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': '1979266', 'n_tokens_mistral': 521, 'n_tokens_neox': 519, 'n_words': 118}