<commit_before>/**
 * @since 2017-01-28 19:02
 * @author vivaxy
 */

const path = require('path');
const glob = require('glob');
const Router = require('koa-router');

const logger = require('../lib/logger');

const router = new Router();

const jsExt = `.js`;
const relativeActionBase = `../actions`;

const getActionFiles = () => {
    const actionsBase = path.join(__dirname, relativeActionBase);
    return glob.sync(`${actionsBase}/**/*${jsExt}`);<commit_msg>feat(router): :sparkles:Support dot file routers<commit_after>/**
 * @since 2017-01-28 19:02
 * @author vivaxy
 */

const path = require('path');
const glob = require('glob');
const Router = require('koa-router');

const logger = require('../lib/logger');

const router = new Router();

const jsExt = `.js`;
const relativeActionBase = `../actions`;

const getActionFiles = () => {
    const actionsBase = path.join(__dirname, relativeActionBase);
    return glob.sync(`${actionsBase}/**/*${jsExt}`, { dot: true });
{'fraction_non_alphanumeric': 0.19120654396728015, 'fraction_numerical': 0.024539877300613498, 'mean_word_length': 4.594285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7620595', 'n_tokens_mistral': 327, 'n_tokens_neox': 308, 'n_words': 77}