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

import * as EventEmitter from 'events'

export = Choo

declare class Choo {
  constructor (opts: Choo.IChoo)
  use (callback: (state: Choo.IState, emitter: EventEmitter) => void): void
  route (routeName: string, handler: (state: Choo.IState, emit: (name: string, ...args: any[]) => void) => void): void
  mount (selector: string): void
  start (): HTMLElement
  toString (location: string, state?: Choo.IState): string
}

declare namespace Choo {
  export interface IChoo {
    history?: boolean
    href?: boolean
  }
<commit_msg>Add optionality to 'opts' in Choo constructor (#584)<commit_after>/// <reference types="node" />

import * as EventEmitter from 'events'

export = Choo

declare class Choo {
  constructor (opts?: Choo.IChoo)
  use (callback: (state: Choo.IState, emitter: EventEmitter) => void): void
  route (routeName: string, handler: (state: Choo.IState, emit: (name: string, ...args: any[]) => void) => void): void
  mount (selector: string): void
  start (): HTMLElement
  toString (location: string, state?: Choo.IState): string
}

declare namespace Choo {
  export interface IChoo {
    history?: boolean
    href?: boolean
  }

{'fraction_non_alphanumeric': 0.1419031719532554, 'fraction_numerical': 0.0025041736227045075, 'mean_word_length': 4.21304347826087, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1392637', 'n_tokens_mistral': 385, 'n_tokens_neox': 381, 'n_words': 127}