<commit_before>/*
 * Match route handlers
 *
 */


var match = require('../modules/match');

function setup(app) {
    app.route('/match')
        .get(get)
        .post(post);
}


function * get(next) {
    this.body.matches = match.getMatches();
    yield next;
}


function * post(next) {
    this.body.match  = match.createMatch();
    this.body.matches = match.getMatches();
    yield next;
}


exports.setup = setup;
exports.get = get;
exports.post = post;
<commit_msg>* Lint fix<commit_after>/*
 * Match route handlers
 *
 */


var match = require('../modules/match');


function * get(next) {
    this.body.matches = match.getMatches();
    yield next;
}


function * post(next) {
    this.body.match  = match.createMatch();
    this.body.matches = match.getMatches();
    yield next;
}


function setup(app) {
    app.route('/match')
        .get(get)
        .post(post);
}


exports.get = get;
exports.post = post;
exports.setup = setup;

{'fraction_non_alphanumeric': 0.16526315789473683, 'fraction_numerical': 0.0, 'mean_word_length': 2.7440944881889764, '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': '3658990', 'n_tokens_mistral': 333, 'n_tokens_neox': 321, 'n_words': 66}