<commit_before>import { MiddlewareFunctionParams } from './../../lib/decorators/MiddlewareConfig';
import { Middleware, ProtonMiddleware } from '../../lib';
export const ROUTER_MIDDLEWARE_MSG: string = 'router middleware tested';
export const GLOBAL_MIDDLEWARE_MSG: string = 'global middleware tested';
export const GLOBAL_ROUTER_MIDDLEWARE_MSG: string = 'global router middleware tested';

export class RouterMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    routerMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.params['routerMidMsg'] = ROUTER_MIDDLEWARE_MSG;
    }
}

export class GlobalRouterMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    globalMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.header['globalRouterMidMsg'] = GLOBAL_ROUTER_MIDDLEWARE_MSG;
        console.log("Meu corpo ", params.req.body);
    }
}

export class GlobalMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    globalMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.header['globalMidMsg'] = GLOBAL_MIDDLEWARE_MSG;
    }
}<commit_msg>Test code removed<commit_after>import { MiddlewareFunctionParams } from './../../lib/decorators/MiddlewareConfig';
import { Middleware, ProtonMiddleware } from '../../lib';
export const ROUTER_MIDDLEWARE_MSG: string = 'router middleware tested';
export const GLOBAL_MIDDLEWARE_MSG: string = 'global middleware tested';
export const GLOBAL_ROUTER_MIDDLEWARE_MSG: string = 'global router middleware tested';

export class RouterMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    routerMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.params['routerMidMsg'] = ROUTER_MIDDLEWARE_MSG;
    }
}

export class GlobalRouterMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    globalMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.header['globalRouterMidMsg'] = GLOBAL_ROUTER_MIDDLEWARE_MSG;
    }
}

export class GlobalMiddlewareMock extends ProtonMiddleware {
    @Middleware(true)
    globalMiddlewareTest(params: MiddlewareFunctionParams) {
        params.req.header['globalMidMsg'] = GLOBAL_MIDDLEWARE_MSG;
    }
}
{'fraction_non_alphanumeric': 0.09341155234657039, 'fraction_numerical': 0.0, 'mean_word_length': 5.298295454545454, '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': '5428357', 'n_tokens_mistral': 638, 'n_tokens_neox': 668, 'n_words': 127}