<commit_before>#!/usr/bin/perl -T

use lib '.'; use lib 't';
use SATest; sa_t_init("mass_check");

use Test::More;
plan skip_all => "Bug 8003 - Investigate if can be made to work on windows" if $RUNNING_ON_WINDOWS;
plan tests => 1;

# ---------------------------------------------------------------------------

mkdir "$workdir/mc_test";
mkdir "$workdir/mc_test/ham";
writetofile ("$workdir/mc_test/ham/1", "foo");

untaint_system "( cd ../masses; ".
    "$perl_path ./mass-check -n -o ham:dir:../t/$workdir/mc_test/ham".
    ")";<commit_msg>Bug 8003 - mass_check.t requires masscheck which is not written to run on Windows<commit_after>#!/usr/bin/perl -T

use lib '.'; use lib 't';
use SATest; sa_t_init("mass_check");

use Test::More;
plan skip_all => "mass check script does not run on Windows" if $RUNNING_ON_WINDOWS;
plan tests => 1;

# ---------------------------------------------------------------------------

mkdir "$workdir/mc_test";
mkdir "$workdir/mc_test/ham";
writetofile ("$workdir/mc_test/ham/1", "foo");

untaint_system "( cd ../masses; ".
    "$perl_path ./mass-check -n -o ham:dir:../t/$workdir/mc_test/ham".
    ")";
{'fraction_non_alphanumeric': 0.28935795954265614, 'fraction_numerical': 0.010554089709762533, 'mean_word_length': 2.2607449856733526, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4575569', 'n_tokens_mistral': 404, 'n_tokens_neox': 385, 'n_words': 99}