<commit_before>import { RpcRequest } from '../RpcRequest'
import { RpcResponse } from '../RpcResponse'

/**
 * JSON-RPC request for the *stop* command.
 */
export interface StopRequest extends RpcRequest {
  readonly method: 'stop'
  readonly params?: any[]
}

/**
 * JSON-RPC response for the *stop* command.
 */
export interface StopResponse extends RpcResponse {
  readonly result: StopResult | null
}

/**
 * Result of the *stop* command.
 */
export type StopResult = any

export function Stop(...params: any[]): StopRequest {
  return params.length === 0 ? { method: 'stop' } : { method: 'stop', params }
}<commit_msg>Adds type signature for the Stop command.<commit_after>import { RpcRequest } from '../RpcRequest'
import { RpcResponse } from '../RpcResponse'

/**
 * JSON-RPC request for the *stop* command.
 */
export interface StopRequest extends RpcRequest {
  readonly method: 'stop'
  readonly params?: undefined
}

/**
 * JSON-RPC response for the *stop* command.
 */
export interface StopResponse extends RpcResponse {
  readonly result: StopResult | null
}

/**
 * Result of the *stop* command.
 */
export type StopResult = any

export function Stop(): StopRequest {
  return { method: 'stop' }
}
{'fraction_non_alphanumeric': 0.129644921552436, 'fraction_numerical': 0.0008257638315441783, 'mean_word_length': 3.8674698795180724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '74024', 'n_tokens_mistral': 349, 'n_tokens_neox': 346, 'n_words': 124}