<commit_before>// Type definitions for basic-auth v1.1.0
// Project: https://github.com/jshttp/basic-auth
// Definitions by: <NAME> <https://github.com/moonpyk>, <NAME> <https://github.com/vesse>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as http from 'http';

declare function auth(req: http.IncomingMessage): auth.BasicAuthResult;

declare namespace auth {
    interface BasicAuthResult {
        name: string;
        pass: string;
    }

    // See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L87-L95
    function parse(authorizationHeader: string): auth.BasicAuthResult;
}

export = auth;
<commit_msg>{basic-auth] auth.parse can return undefined<commit_after>// Type definitions for basic-auth v1.1.0
// Project: https://github.com/jshttp/basic-auth
// Definitions by: <NAME> <https://github.com/moonpyk>, <NAME> <https://github.com/vesse>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

import * as http from 'http';

declare function auth(req: http.IncomingMessage): auth.BasicAuthResult;

declare namespace auth {
    interface BasicAuthResult {
        name: string;
        pass: string;
    }

    // See https://github.com/jshttp/basic-auth/blob/v1.1.0/index.js#L87-L95
    function parse(authorizationHeader: string): auth.BasicAuthResult | undefined;
}

export = auth;

{'fraction_non_alphanumeric': 0.14770318021201415, 'fraction_numerical': 0.014134275618374558, 'mean_word_length': 3.6732673267326734, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 10, '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': '3488139', 'n_tokens_mistral': 458, 'n_tokens_neox': 451, 'n_words': 95}