<commit_before>
{{alias}}( file[, options,] clbk )
    Asynchronously reads a file as JSON.

    Parameters
    ----------
    file: string|Buffer|integer
        Filename or file descriptor.

    options: Object|string (optional)
        Options. If a string, the value is the encoding.

    options.encoding: string|null (optional)
        Encoding. If the encoding option is set to `utf8` and the file has a
        UTF-8 byte order mark (BOM), the byte order mark is *removed* before
        attempting to parse as JSON. Default: null.

    options.flag: string (optional)
        Flag. Default: 'r'.

    options.reviver: Function (optional)
        JSON transformation function.

    clbk: Function
        Callback to invoke upon reading file contents.

    Examples
    --------
    > function onRead( error, data ) {
    ...     if ( error ) {
    ...         console.error( error.message );
    ...     } else {
    ...         console.log( data );
    ...     }
    ... };
    > {{alias}}( './beep/boop.json', onRead );


 {{alias}}.sync( file[, options] )
    Synchronously reads a file as JSON.

    Parameters
    ----------
    file: string|Buffer|integer
        Filename or file descriptor.

    options: Object|string (optional)
        Options. If a string, the value is the encoding.

    options.encoding: string|null (optional)
        Encoding. If the encoding option is set to `utf8` and the file has a
        UTF-8 byte order mark (BOM), the byte order mark is *removed* before
        attempting to parse as JSON. Default: null.

    options.flag: string (optional)
        Flag. Default: 'r'.

    options.reviver: Function (optional)
        JSON transformation function.

    Returns
    -------<commit_msg>Remove space<commit_after>
{{alias}}( file[, options,] clbk )
    Asynchronously reads a file as JSON.

    Parameters
    ----------
    file: string|Buffer|integer
        Filename or file descriptor.

    options: Object|string (optional)
        Options. If a string, the value is the encoding.

    options.encoding: string|null (optional)
        Encoding. If the encoding option is set to `utf8` and the file has a
        UTF-8 byte order mark (BOM), the byte order mark is *removed* before
        attempting to parse as JSON. Default: null.

    options.flag: string (optional)
        Flag. Default: 'r'.

    options.reviver: Function (optional)
        JSON transformation function.

    clbk: Function
        Callback to invoke upon reading file contents.

    Examples
    --------
    > function onRead( error, data ) {
    ...     if ( error ) {
    ...         console.error( error.message );
    ...     } else {
    ...         console.log( data );
    ...     }
    ... };
    > {{alias}}( './beep/boop.json', onRead );


{{alias}}.sync( file[, options] )
    Synchronously reads a file as JSON.

    Parameters
    ----------
    file: string|Buffer|integer
        Filename or file descriptor.

    options: Object|string (optional)
        Options. If a string, the value is the encoding.

    options.encoding: string|null (optional)
        Encoding. If the encoding option is set to `utf8` and the file has a
        UTF-8 byte order mark (BOM), the byte order mark is *removed* before
        attempting to parse as JSON. Default: null.

    options.flag: string (optional)
        Flag. Default: 'r'.

    options.reviver: Function (optional)
        JSON transformation function.

    Returns
    -------
{'fraction_non_alphanumeric': 0.11578341013824885, 'fraction_numerical': 0.002304147465437788, 'mean_word_length': 2.0226283724978242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5390215', 'n_tokens_mistral': 960, 'n_tokens_neox': 914, 'n_words': 359}