<commit_before>import { ModuleAPI } from './module'

// Not used at all only for code documentation
export interface Handler {
  (...params): HandlerInterface
}

// interface function passed via ModuleDef
export interface HandlerInterface {
  (mod: ModuleAPI): HandlerObject
}

export interface HandlerObject {
  state: any
  handle: HandlerFunction
  dispose: {
    (): void
  }
}

export interface HandlerFunction {
  (value: HandlerMsg): Promise<void>
}

export type HandlerMsg = any<commit_msg>Fix handler function return value<commit_after>import { ModuleAPI } from './module'

// Not used at all only for code documentation
export interface Handler {
  (...params): HandlerInterface
}

// interface function passed via ModuleDef
export interface HandlerInterface {
  (mod: ModuleAPI): HandlerObject
}

export interface HandlerObject {
  state: any
  handle: HandlerFunction
  dispose: {
    (): void
  }
}

export interface HandlerFunction {
  (value: HandlerMsg): Promise<any>
}

export type HandlerMsg = any
{'fraction_non_alphanumeric': 0.09064039408866995, 'fraction_numerical': 0.0, 'mean_word_length': 4.2642487046632125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1833328', 'n_tokens_mistral': 289, 'n_tokens_neox': 268, 'n_words': 97}