<commit_before>// Type definitions for node-powershell v3.1.1
// Project: https://github.com/rannn505/node-powershell
// Definitions by: <NAME> <https://github.com/rodrigoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

declare module 'node-powershell' {
    module NodePowershell {
        export interface ShellOptions {
            /**
             * Determines whether to log verbose to the console.
             */
            debugMsg?: boolean;

            /**
             * Sets the input encoding for the current shell.
             */
            inputEncoding?: string;

            /**
             * Sets the output encoding for the current shell.
             */
            outputEncoding?: string;

            /**
             * Sets the default execution policy for the current shell session
             */
            executionPolicy?: string;

            /**
             * Determines whether to load the Windows PS profile
             */
            noProfile?: boolean;
        }

        export interface ShellStream {
            stdin: NodeJS.WritableStream;
            stdout: NodeJS.ReadableStream;
            err: NodeJS.ReadableStream;
        }
    }

    class NodePowershell {
        /**
         * An array containing the command history ever added to the shell instance.
         */
        public history: string[];

        /**
         * An object containing the sdtio (in,out,err) [stream.Readable] of the PowerShell Instance.
         */
        public streams: NodePowershell.ShellStream;

        /**
         * Creates a new Shell instance.
         */
        constructor(options: NodePowershell.ShellOptions);

        /**
         * Adds a command to the end of the pipeline of the shell object.
         * @param {string} required - PowerShell command - PowerShell script
         * @param {array} optional - {name: ‘’, value: ‘’} - {name: value} - ‘switch’
         * @returns Every command currently in the pipeline.
         */
        addCommand(command: string, params?: string[] | { [key: string]: string }[]): Promise<string[]>;

        /**
         * Runs the commands of the shell object pipeline.
         * @returns Promise with the command output.
         */
        invoke(): Promise<string>;

        /**
         * Releases all resources used by the shell object and closes the PowerShell child_process.
         * @returns Promise with the error message.
         */
        dispose(): Promise<string>;

        /**<commit_msg>Removed access modifier from properties<commit_after>// Type definitions for node-powershell v3.1.1
// Project: https://github.com/rannn505/node-powershell
// Definitions by: <NAME> <https://github.com/rodrigoff>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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

declare module 'node-powershell' {
    module NodePowershell {
        export interface ShellOptions {
            /**
             * Determines whether to log verbose to the console.
             */
            debugMsg?: boolean;

            /**
             * Sets the input encoding for the current shell.
             */
            inputEncoding?: string;

            /**
             * Sets the output encoding for the current shell.
             */
            outputEncoding?: string;

            /**
             * Sets the default execution policy for the current shell session
             */
            executionPolicy?: string;

            /**
             * Determines whether to load the Windows PS profile
             */
            noProfile?: boolean;
        }

        export interface ShellStream {
            stdin: NodeJS.WritableStream;
            stdout: NodeJS.ReadableStream;
            err: NodeJS.ReadableStream;
        }
    }

    class NodePowershell {
        /**
         * An array containing the command history ever added to the shell instance.
         */
        history: string[];

        /**
         * An object containing the sdtio (in,out,err) [stream.Readable] of the PowerShell Instance.
         */
        streams: NodePowershell.ShellStream;

        /**
         * Creates a new Shell instance.
         */
        constructor(options: NodePowershell.ShellOptions);

        /**
         * Adds a command to the end of the pipeline of the shell object.
         * @param {string} required - PowerShell command - PowerShell script
         * @param {array} optional - {name: ‘’, value: ‘’} - {name: value} - ‘switch’
         * @returns Every command currently in the pipeline.
         */
        addCommand(command: string, params?: string[] | { [key: string]: string }[]): Promise<string[]>;

        /**
         * Runs the commands of the shell object pipeline.
         * @returns Promise with the command output.
         */
        invoke(): Promise<string>;

        /**
         * Releases all resources used by the shell object and closes the PowerShell child_process.
         * @returns Promise with the error message.
         */
        dispose(): Promise<string>;

        /**
{'fraction_non_alphanumeric': 0.098046875, 'fraction_numerical': 0.00234375, 'mean_word_length': 1.713831478537361, 'pattern_counts': {'":': 0, '<': 15, '<?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': '1849203', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1226, 'n_words': 408}