<commit_before>import {TransportStatic, TransportInstance} from "winston";

declare namespace WinstonGraylog2 {
  type GraylogServer = {
    host: string;
    port: number;
  }

  type GraylogOptions = {
      servers: GraylogServer[];
      hostname?: string;
      facility?: string;
      bufferSize?: number;
  }

  type Prelog = {
    (message: string): void;
  }

  type LogMessageMeta = {
    [index: string]: any;
  }

  type ProcessMeta = {
    (meta: LogMessageMeta): LogMessageMeta
  }<commit_msg>Fix typings for Prelog type: return type must be string, not void<commit_after>import {TransportStatic, TransportInstance} from "winston";

declare namespace WinstonGraylog2 {
  type GraylogServer = {
    host: string;
    port: number;
  }

  type GraylogOptions = {
      servers: GraylogServer[];
      hostname?: string;
      facility?: string;
      bufferSize?: number;
  }

  type Prelog = {
    (message: string): string;
  }

  type LogMessageMeta = {
    [index: string]: any;
  }

  type ProcessMeta = {
    (meta: LogMessageMeta): LogMessageMeta
  }
{'fraction_non_alphanumeric': 0.10654205607476636, 'fraction_numerical': 0.001869158878504673, 'mean_word_length': 3.1511627906976742, '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': '5640573', 'n_tokens_mistral': 340, 'n_tokens_neox': 329, 'n_words': 89}