<commit_before>declare namespace MessageFormat {
    type Msg = { (params: {}): string; toString(global?: string): string };
    type Formatter = (val: any, lc: string, arg?: string) => string;
    type SrcMessage = string | SrcObject;

    interface SrcObject {
        [key: string]: SrcMessage;
    }
}

declare class MessageFormat {
    constructor(message: { [pluralFuncs: string]: Function });
    constructor(message: string[]);
    constructor(message: string);
    constructor();
    addFormatters: (format: { [name: string]: MessageFormat.Formatter }) => this;
    disablePluralKeyChecks: () => this;
    setBiDiSupport: (enable: boolean) => this;
    setStrictNumberSign: (enable: boolean) => this;
    compile: (messages: MessageFormat.SrcMessage, locale?: string) => MessageFormat.Msg;
}

export = MessageFormat;<commit_msg>Use type union parameter for MessageFormat constructor<commit_after>declare namespace MessageFormat {
    type Msg = { (params: {}): string; toString(global?: string): string };
    type Formatter = (val: any, lc: string, arg?: string) => string;
    type SrcMessage = string | SrcObject;

    interface SrcObject {
        [key: string]: SrcMessage;
    }
}

declare class MessageFormat {
    constructor(
      message?: { [pluralFuncs: string]: Function } | string[] | string
    );
    addFormatters: (format: { [name: string]: MessageFormat.Formatter }) => this;
    disablePluralKeyChecks: () => this;
    setBiDiSupport: (enable: boolean) => this;
    setStrictNumberSign: (enable: boolean) => this;
    compile: (messages: MessageFormat.SrcMessage, locale?: string) => MessageFormat.Msg;
}

export = MessageFormat;
{'fraction_non_alphanumeric': 0.1350210970464135, 'fraction_numerical': 0.0, 'mean_word_length': 4.15527950310559, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2670436', 'n_tokens_mistral': 479, 'n_tokens_neox': 473, 'n_words': 131}