<commit_before>// Type definitions for serialport 4.0
// Project: https://github.com/EmergingTechnologyAdvisors/node-serialport
// Definitions by: <NAME> <https://github.com/codefoster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare module 'serialport' {
    class SerialPort {
        constructor(path: string, options?: Object, openImmediately?: boolean, callback?: (err: any) => void)
        isOpen(): boolean;
        on(event: string, callback?: (data?: any) => void): void;
        open(callback?: (err: any) => void): void;
        write(buffer: any, callback?: (err: any, bytesWritten: number) => void): void<commit_msg>Remove openImmediately from constructor<commit_after>// Type definitions for serialport 4.0
// Project: https://github.com/EmergingTechnologyAdvisors/node-serialport
// Definitions by: <NAME> <https://github.com/codefoster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

declare module 'serialport' {
    class SerialPort {
        //openImmediately already removed in 4.0.7
        constructor(path: string, options?: Object, callback?: (err: any) => void)
        isOpen(): boolean;
        on(event: string, callback?: (data?: any) => void): void;
        open(callback?: (err: any) => void): void;
        write(buffer: any, callback?: (err: any, bytesWritten: number) => void): void
{'fraction_non_alphanumeric': 0.1486090775988287, 'fraction_numerical': 0.005124450951683748, 'mean_word_length': 3.935018050541516, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '2186943', 'n_tokens_mistral': 402, 'n_tokens_neox': 389, 'n_words': 109}