<commit_before>// Type definitions for Chance 0.7.3
// Project: http://chancejs.com
// Definitions by: <NAME> <https://github.com/cbowdon/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Chance {

    interface Seeded {
        seed: number;
    }

    type SeededChance = Chance & Seeded;

    interface ChanceStatic {
        (): Chance
        (seed: number): SeededChance
        (generator: () => any): Chance

        new(): Chance;
        new(seed: number): SeededChance;
        new(generator: () => any): Chance;
    }

    interface Chance {

        // Basics
        bool(opts?: Options): boolean;
        character(opts?: Options): string;
        floating(opts?: Options): number;
        integer(opts?: Options): number;
        natural(opts?: Options): number;
        string(opts?: Options): string;

        // Text
        paragraph(opts?: Options): string;
        sentence(opts?: Options): string;
        syllable(opts?: Options): string;
        word(opts?: Options): string;

        // Person
        age(opts?: Options): number;
        birthday(): Date;
        birthday(opts?: Options): Date|string;
        cpf(): string;
        first(opts?: Options): string;
        last(opts?: Options): string;
        name(opts?: Options): string;
        name_prefix(opts?: Options): string;
        name_suffix(opts?: Options): string;
        prefix(opts?: Options): string;
        ssn(opts?: Options): string;
        suffix(opts?: Options): string;<commit_msg>chance: add gender<commit_after>// Type definitions for Chance 0.7.3
// Project: http://chancejs.com
// Definitions by: <NAME> <https://github.com/cbowdon/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare namespace Chance {

    interface Seeded {
        seed: number;
    }

    type SeededChance = Chance & Seeded;

    interface ChanceStatic {
        (): Chance
        (seed: number): SeededChance
        (generator: () => any): Chance

        new(): Chance;
        new(seed: number): SeededChance;
        new(generator: () => any): Chance;
    }

    interface Chance {

        // Basics
        bool(opts?: Options): boolean;
        character(opts?: Options): string;
        floating(opts?: Options): number;
        integer(opts?: Options): number;
        natural(opts?: Options): number;
        string(opts?: Options): string;

        // Text
        paragraph(opts?: Options): string;
        sentence(opts?: Options): string;
        syllable(opts?: Options): string;
        word(opts?: Options): string;

        // Person
        age(opts?: Options): number;
        gender(): string;
        birthday(): Date;
        birthday(opts?: Options): Date|string;
        cpf(): string;
        first(opts?: Options): string;
        last(opts?: Options): string;
        name(opts?: Options): string;
        name_prefix(opts?: Options): string;
        name_suffix(opts?: Options): string;
        prefix(opts?: Options): string;
        ssn(opts?: Options): string;
        suffix(opts?: Options): string;
{'fraction_non_alphanumeric': 0.14127963624553427, 'fraction_numerical': 0.001948684637869438, 'mean_word_length': 2.3958103638368247, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '3793345', 'n_tokens_mistral': 875, 'n_tokens_neox': 831, 'n_words': 225}