<commit_before>import { EventEmitter } from 'events'
import { Map } from 'immutable'
import * as React from 'react'

export = iflux2

declare namespace iflux2 {
  export type IMap = Map<string, any>
  export type Handler = (state: IMap) => void;

  export interface IOptions {
    debug?: boolean;
    ctxStoreName?: string;
  }

  export interface ReduxAtion {
    type: string;
  }

  export class Actor {
    defaultState(): Object;
  }

  export class Store {
    constructor(props?: IOptions);
    dispatch(msg: string | ReduxAtion, params?: any): void;
    batchDispatch(actions: Array<[string, any] | ReduxAtion | string>): void;
    transaction(cb: () => void): void;
    bindActor(): Array<Actor>;
    bigQuery(ql: QueryLang, params: { debug?: boolean }): any;
    state(): IMap;
    subscribe(cb: Handler): void;
    unsubscribe(cb: Handler): void;
  }

  export class QueryLang {
    constructor(name: string, lang: Array<any>);
    id(): number;
    name(): string;
    lang(): Array<any>;
  }

  export function QL(
    name: string,
    lang: Array<any>
  ): QueryLang;

  export const msg: EventEmitter;

  export function Action(msg: string): Function;
<commit_msg>fixed type<commit_after>import { EventEmitter } from 'events'
import { Map } from 'immutable'
import * as React from 'react'

export = iflux2

declare namespace iflux2 {
  export type IMap = Map<string, any>
  export type Handler = (state: IMap) => void;

  export interface IOptions {
    debug?: boolean;
    ctxStoreName?: string;
  }

  export interface ReduxAtion {
    type: string;
  }

  export class Actor {
    defaultState(): Object;
  }

  export class Store {
    constructor(props?: IOptions);
    dispatch(msg: string | ReduxAtion, params?: any): void;
    batchDispatch(actions: Array<[string, any] | ReduxAtion | string>): void;
    transaction(cb: () => void): void;
    bindActor(): Array<Actor>;
    bigQuery(ql: QueryLang): any;
    state(): IMap;
    subscribe(cb: Handler): void;
    unsubscribe(cb: Handler): void;
  }

  export class QueryLang {
    constructor(name: string, lang: Array<any>);
    id(): number;
    name(): string;
    lang(): Array<any>;
    isValidQuery(): boolean;
  }

  export function QL(
    name: string,
    lang: Array<any>
  ): QueryLang;

  export const msg: EventEmitter;

  export function Action(msg: string): Function;

{'fraction_non_alphanumeric': 0.1288681644764731, 'fraction_numerical': 0.001695633743111488, 'mean_word_length': 3.5472061657032756, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '7344412', 'n_tokens_mistral': 758, 'n_tokens_neox': 731, 'n_words': 224}