<commit_before>// Type definitions for Custom Functions 1.4
// Project: http://dev.office.com
// Definitions by: OfficeDev <https://github.com/OfficeDev>, <NAME> <https://github.com/Zlatkovsky>, <NAME> <https://github.com/mscharlock>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

/*
office-js
Copyright (c) Microsoft Corporation
*/

////////////////////////////////////////////////////////////////
//////////////////// Begin custom-functions-runtime ////////////
////////////////////////////////////////////////////////////////

/*
* Enables you to map your own name that uses lowercase letters to a function.
*/
declare let CustomFunctionMappings: { [key: string]: Function };

declare namespace CustomFunctions {
    interface StreamingHandler<T> extends CancelableHandler {
        /*
        * Sets the returned result for a streaming custom function.
        * @beta
        */
        setResult: (value: T) => void;
    }

    interface CancelableHandler {
        /*
        * Handles what should occur when a custom function is canceled.
        * @beta
        */
        onCanceled: () => void;
    }
}

////////////////////////////////////////////////////////////////
//////////////////// End custom-functions-runtime ////////////
////////////////////////////////////////////////////////////////
<commit_msg>updating so comments appear on ref docs<commit_after>// Type definitions for Custom Functions 1.4
// Project: http://dev.office.com
// Definitions by: OfficeDev <https://github.com/OfficeDev>, <NAME> <https://github.com/Zlatkovsky>, <NAME> <https://github.com/mscharlock>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

/*
office-js
Copyright (c) Microsoft Corporation
*/

////////////////////////////////////////////////////////////////
//////////////////// Begin custom-functions-runtime ////////////
////////////////////////////////////////////////////////////////

/**
* Enables you to map your own name that uses lowercase letters to a function.
*/
declare let CustomFunctionMappings: { [key: string]: Function };

declare namespace CustomFunctions {
    interface StreamingHandler<T> extends CancelableHandler {
        /**
        * Sets the returned result for a streaming custom function.
        * @beta
        */
        setResult: (value: T) => void;
    }

    interface CancelableHandler {
        /**
        * Handles what should occur when a custom function is canceled.
        * @beta
        */
        onCanceled: () => void;
    }
}

////////////////////////////////////////////////////////////////
//////////////////// End custom-functions-runtime ////////////
////////////////////////////////////////////////////////////////

{'fraction_non_alphanumeric': 0.318625678119349, 'fraction_numerical': 0.0028933092224231465, 'mean_word_length': 1.3146443514644353, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '5096052', 'n_tokens_mistral': 625, 'n_tokens_neox': 609, 'n_words': 180}