<commit_before>/* global $: false */

var core = require('kanso/core'),
    db = require('kanso/db'),
    loader = require('kanso/loader'),
    utils = require('kanso/utils'),
    querystring = require('kanso/querystring'),
    _ = require('kanso/underscore')._;

exports.test = function()
{
    alert('test');
};

/**
 * Convert an object containing several [ module, callback ] or
 * { module: x, callback: y } items in to an object containing
 * several native javascript functions, by using require.
 *
 * @param actions An object, containing items describing a
 *          function that can be obtained via require().
 */
exports.parseActionCallbacks = function(actions) {
    var rv = {};
    for (var k in actions) {
        var module, callback, action = actions[k];
        if (action instanceof Array) {
            module = action[0];
            callback = action[1];
        } else if (action instanceof Object) {
            module = action.module;
            callback = action.callback;
        } else if (action instanceof Function) {
            rv[k] = action;
            continue;
        } else {<commit_msg>Remove debug code.<commit_after>/* global $: false */

var core = require('kanso/core'),
    db = require('kanso/db'),
    loader = require('kanso/loader'),
    utils = require('kanso/utils'),
    querystring = require('kanso/querystring'),
    _ = require('kanso/underscore')._;


/**
 * Convert an object containing several [ module, callback ] or
 * { module: x, callback: y } items in to an object containing
 * several native javascript functions, by using require.
 *
 * @param actions An object, containing items describing a
 *          function that can be obtained via require().
 */
exports.parseActionCallbacks = function(actions) {
    var rv = {};
    for (var k in actions) {
        var module, callback, action = actions[k];
        if (action instanceof Array) {
            module = action[0];
            callback = action[1];
        } else if (action instanceof Object) {
            module = action.module;
            callback = action.callback;
        } else if (action instanceof Function) {
            rv[k] = action;
            continue;
        } else {
{'fraction_non_alphanumeric': 0.12144469525959369, 'fraction_numerical': 0.0018058690744920992, 'mean_word_length': 2.5118858954041206, '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': '1036961', 'n_tokens_mistral': 602, 'n_tokens_neox': 590, 'n_words': 195}