<commit_before>// Type definitions for Handlebars v4.0.11
// Project: http://handlebarsjs.com/
// Definitions by: <NAME> <https://github.com/borisyankov>, <NAME> <https://github.com/evil-shrike>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

declare namespace Handlebars {
    export interface TemplateDelegate<T = any> {
        (context: T, options?: RuntimeOptions): string;
    }

    export type Template<T = any> = TemplateDelegate<T>|string;

    export interface RuntimeOptions {
        partial?: boolean;
        depths?: any[];
        helpers?: { [name: string]: Function };
        partials?: { [name: string]: HandlebarsTemplateDelegate };
        decorators?: { [name: string]: Function };
        data?: any;
        blockParams?: any[];
    }

    export interface HelperOptions {
        fn: TemplateDelegate;
        inverse: TemplateDelegate;
        hash: any;
        data?: any;
    }

    export interface HelperDelegate {
        (context?: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, options?: HelperOptions): any;
    }
    export interface HelperDeclareSpec {
        [key: string]: HelperDelegate;
    }

    export function registerHelper(name: string, fn: HelperDelegate): void;
    export function registerHelper(name: HelperDeclareSpec): void;
    export function unregisterHelper(name: string): void;

    export function registerPartial(name: string, fn: Template): void;
    export function unregisterPartial(name: string): void;

    // TODO: replace Function with actual signature
    export function registerDecorator(name: string, fn: Function): void;
    export function unregisterDecorator(name: string): void;

    export function K(): void;
    export function createFrame(object: any): any;
    export function blockParams(obj: any[], ids: any[]): any[];
    export function Exception(message: string): void;
    export function log(level: number, obj: any): void;<commit_msg>Updated type definitions for handlebars#registerPartials (#27388)<commit_after>// Type definitions for Handlebars v4.0.11
// Project: http://handlebarsjs.com/
// Definitions by: <NAME> <https://github.com/borisyankov>, <NAME> <https://github.com/evil-shrike>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

declare namespace Handlebars {
    export interface TemplateDelegate<T = any> {
        (context: T, options?: RuntimeOptions): string;
    }

    export type Template<T = any> = TemplateDelegate<T>|string;

    export interface RuntimeOptions {
        partial?: boolean;
        depths?: any[];
        helpers?: { [name: string]: Function };
        partials?: { [name: string]: HandlebarsTemplateDelegate };
        decorators?: { [name: string]: Function };
        data?: any;
        blockParams?: any[];
    }

    export interface HelperOptions {
        fn: TemplateDelegate;
        inverse: TemplateDelegate;
        hash: any;
        data?: any;
    }

    export interface HelperDelegate {
        (context?: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, options?: HelperOptions): any;
    }
    export interface HelperDeclareSpec {
        [key: string]: HelperDelegate;
    }

    export function registerHelper(name: string, fn: HelperDelegate): void;
    export function registerHelper(name: HelperDeclareSpec): void;
    export function unregisterHelper(name: string): void;

    export function registerPartial(name: string, fn: Template): void;
    export function registerPartial(spec: { [name: string]: HandlebarsTemplateDelegate }): void;
    export function unregisterPartial(name: string): void;

    // TODO: replace Function with actual signature
    export function registerDecorator(name: string, fn: Function): void;
    export function unregisterDecorator(name: string): void;

    export function K(): void;
    export function createFrame(object: any): any;
    export function blockParams(obj: any[], ids: any[]): any[];
    export function Exception(message: string): void;
    export function log(level: number, obj: any): void;
{'fraction_non_alphanumeric': 0.11988374909178978, 'fraction_numerical': 0.006539113586824897, 'mean_word_length': 3.56353591160221, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 6, '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': '4525286', 'n_tokens_mistral': 1131, 'n_tokens_neox': 1112, 'n_words': 349}