<commit_before><?php
include __DIR__ . '/../vendor/autoload.php';

use YamwLibs\Functions\FileFunc;

$files = FileFunc::recursiveScanForDirectories(__DIR__ . '/modules', '.js');

header("Content-Type: application/javascript");

echo implode("\n\n// ------------------------------------------------\n\n", array_map('file_get_contents', $files));<commit_msg>Filtering out (for now) unwanted js files from modules.php<commit_after><?php
include __DIR__ . '/../vendor/autoload.php';

use YamwLibs\Functions\FileFunc;

$files = FileFunc::recursiveScanForDirectories(__DIR__ . '/modules');
$files = array_filter($files, function ($file)
    {
        return preg_match('/\.js$/i', $file) && !preg_match('/\.min\.js$/i', $file) && !preg_match('/-model\.js$/i', $file);
    });

header("Content-Type: application/javascript");

echo implode("\n\n// ------------------------------------------------\n\n", array_map('file_get_contents', $files));
{'fraction_non_alphanumeric': 0.2863247863247863, 'fraction_numerical': 0.0, 'mean_word_length': 2.9535864978902953, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7276956', 'n_tokens_mistral': 294, 'n_tokens_neox': 287, 'n_words': 51}