<commit_before>/// <reference types="jquery" />
export interface TimeAgoConstructor {
    new ();
    new (nowDate: string, defaultLocale?: string);
    format(dateInstance: Date | string | number, locale?: string): string;
    render<T>(nodes: Node | NodeList | JQuery, locale?: string): void;
    cancel(): void;
    setLocale(locale: string): void;
}
export interface TimeagoFactory {
    (): TimeAgoConstructor;
    (nowDate: string): TimeAgoConstructor;
    (nowDate: string, defaultLocale: string): TimeAgoConstructor;
    register(locale: string, localeFunc: Function): void;
}
declare let timeagoFactory: TimeagoFactory;
export default timeagoFactory;<commit_msg>Improve types (#114)<commit_after>/// <reference types="jquery" />
type TDate = Date | string | number;
export interface TimeAgoConstructor {
    new ();
    new (nowDate: TDate, defaultLocale?: string);
    format(date: TDate, locale?: string): string;
    render<T>(nodes: Node | NodeList | JQuery, locale?: string): void;
    cancel(): void;
    setLocale(locale: string): void;
}
export interface TimeagoFactory {
    (): TimeAgoConstructor;
    (nowDate: TDate, defaultLocale?: string): TimeAgoConstructor;
    register(locale: string, localeFunc: Function): void;
}
declare let timeagoFactory: TimeagoFactory;
export default timeagoFactory;
{'fraction_non_alphanumeric': 0.12680334092634776, 'fraction_numerical': 0.002277904328018223, 'mean_word_length': 5.045871559633028, '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': '2520845', 'n_tokens_mistral': 376, 'n_tokens_neox': 365, 'n_words': 111}