<commit_before>#!/usr/bin/perl

use lib '.'; 
use lib 't';
use SATest; 
sa_t_init("lang_pl_tests");
use Test; 

use constant TEST_ENABLED => conf_bool('run_pl_tests');

BEGIN { plan tests => (TEST_ENABLED ? 1 : 0) };

exit unless RUN_TESTS;

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

%patterns = (

q{ X-Spam-Status: }, 'didnt_hang_at_least',

);

$ENV{'PERL_BADLANG'} = 0; # Sweep problems under the rug
$ENV{'LANGUAGE'} = 'pl_PL';
$ENV{'LC_ALL'} = 'pl_PL';
sarun ("-L -t < data/nice/004", \&patterns_run_cb);
ok_all_patterns();<commit_msg>Fixing lang_pl_test rule disable condition<commit_after>#!/usr/bin/perl

use lib '.'; 
use lib 't';
use SATest; 
sa_t_init("lang_pl_tests");
use Test; 

use constant TEST_ENABLED => conf_bool('run_pl_tests');

BEGIN { plan tests => (TEST_ENABLED ? 1 : 0) };

exit unless TEST_ENABLED;

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

%patterns = (

q{ X-Spam-Status: }, 'didnt_hang_at_least',

);

$ENV{'PERL_BADLANG'} = 0; # Sweep problems under the rug
$ENV{'LANGUAGE'} = 'pl_PL';
$ENV{'LC_ALL'} = 'pl_PL';
sarun ("-L -t < data/nice/004", \&patterns_run_cb);
ok_all_patterns();
{'fraction_non_alphanumeric': 0.2878787878787879, 'fraction_numerical': 0.010101010101010102, 'mean_word_length': 2.6584615384615384, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3663279', 'n_tokens_mistral': 460, 'n_tokens_neox': 444, 'n_words': 93}