<commit_before>// Type definitions for moment-duration-format 1.3
// Project: https://github.com/jsmreese/moment-duration-format
// Definitions by: <NAME> <https://github.com/SwintDC>, <NAME> <https://github.com/TwoStone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as moment from "moment";

declare module "moment" {
    interface Duration {
        format(template: string, precision?: string, settings?: any): string;
    }
}
<commit_msg>Add type declaration for settings object to duration format method.<commit_after>// Type definitions for moment-duration-format 1.3
// Project: https://github.com/jsmreese/moment-duration-format
// Definitions by: <NAME> <https://github.com/SwintDC>, <NAME> <https://github.com/TwoStone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as moment from "moment";

declare module "moment" {
    interface Duration {
        format(template: string, precision?: string, settings?: DurationFormatSettings): string;
    }

    interface DurationFormatSettings {
        template: string;
        precision: number;
        trim: boolean;
        forceLength: boolean;
    }
}

{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.0034100596760443308, 'mean_word_length': 3.8114754098360657, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '512668', 'n_tokens_mistral': 334, 'n_tokens_neox': 326, 'n_words': 85}