<commit_before>import * as Koa from "koa";
import { Files } from 'formidable';

declare module "koa" {
    interface Request extends Koa.BaseRequest {
        body?: any;
        files?: Files;
    }
}

declare namespace koaBody {
    interface IKoaBodyFormidableOptions {

        /**
         * {Integer} Limits the amount of memory all fields together (except files) can allocate in bytes. If this value is exceeded, an 'error' event is emitted. The default size is 20MB.
         */
        maxFileSize?: number;

        /**
         * {Integer} Limits the number of fields that the querystring parser will decode, default 1000
         */
        maxFields?: number;

        /**
         * {Integer} Limits the amount of memory all fields together (except files) can allocate in bytes.
         * If this value is exceeded, an 'error' event is emitted, default 2mb (2 * 1024 * 1024)<commit_msg>koa module definition bug fix (#173)<commit_after>import * as Koa from "koa";
import { Files } from 'formidable';

declare module koa {
    interface Request extends Koa.BaseRequest {
        body?: any;
        files?: Files;
    }
}

declare namespace koaBody {
    interface IKoaBodyFormidableOptions {

        /**
         * {Integer} Limits the amount of memory all fields together (except files) can allocate in bytes. If this value is exceeded, an 'error' event is emitted. The default size is 20MB.
         */
        maxFileSize?: number;

        /**
         * {Integer} Limits the number of fields that the querystring parser will decode, default 1000
         */
        maxFields?: number;

        /**
         * {Integer} Limits the amount of memory all fields together (except files) can allocate in bytes.
         * If this value is exceeded, an 'error' event is emitted, default 2mb (2 * 1024 * 1024)
{'fraction_non_alphanumeric': 0.08392759188151398, 'fraction_numerical': 0.019199122325836534, 'mean_word_length': 2.480916030534351, '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': '1238506', 'n_tokens_mistral': 528, 'n_tokens_neox': 468, 'n_words': 210}