<commit_before>var QS = require('qs');

function connectQS(ctx, cbs){
    try{
        
        var urlParts = ctx.request.url.split('?');
        console.log(ctx.request);
        ctx.request.pathname = ctx.request.url.pathname;

        if(urlParts[1]){
            ctx.request.query = QS.parse(urlParts[1]);
        }else{
            ctx.request.query = {};
        }

        if(cbs && cbs.success){
            console.log('QS DONE');<commit_msg>removed debug<commit_after>var QS = require('qs');

function connectQS(ctx, cbs){
    try{
        
        var urlParts = ctx.request.url.split('?');
        ctx.request.pathname = ctx.request.url.pathname;

        if(urlParts[1]){
            ctx.request.query = QS.parse(urlParts[1]);
        }else{
            ctx.request.query = {};
        }

        if(cbs && cbs.success){
            console.log('QS DONE');
{'fraction_non_alphanumeric': 0.15747126436781608, 'fraction_numerical': 0.004597701149425287, 'mean_word_length': 1.9130434782608696, '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': '4465958', 'n_tokens_mistral': 288, 'n_tokens_neox': 280, 'n_words': 43}