<commit_before>#!/usr/bin/env perl

use 5.010;
use strict;
use warnings FATAL => 'all';
use IPC::System::Simple qw(capture);
use Test::More tests => 8;

my @addinfo    = capture([0..5],"bin/pairfq addinfo 2>&1");
my @makepairs  = capture([0..5],"bin/pairfq makepairs 2>&1");
my @splitpairs = capture([0..5],"bin/pairfq splitpairs 2>&1");
my @joinpairs  = capture([0..5],"bin/pairfq joinpairs 2>&1");
my @wrongtask  = capture([0..5],"bin/pairfq jonpairs 2>&1");

## just look to see if the task was handled correctly to generate a usage statement
for my $out (@addinfo) {
    if ($out =~ /pairnum/i) {
	ok($out =~ qr/pairnum/i, 'Help menu generated correctly for pairnum task');
    }
}

for my $out (@makepairs) {
    if ($out =~ /forward/i) {
        ok($out =~ qr/forward/i, 'Help menu generated correctly for makepairs task');
    }
}

for my $out (@splitpairs) {
    if ($out =~ /forward/i) {<commit_msg>fix test plan<commit_after>#!/usr/bin/env perl

use 5.010;
use strict;
use warnings FATAL => 'all';
use IPC::System::Simple qw(capture);
use Test::More tests => 10;

my @addinfo    = capture([0..5],"bin/pairfq addinfo 2>&1");
my @makepairs  = capture([0..5],"bin/pairfq makepairs 2>&1");
my @splitpairs = capture([0..5],"bin/pairfq splitpairs 2>&1");
my @joinpairs  = capture([0..5],"bin/pairfq joinpairs 2>&1");
my @wrongtask  = capture([0..5],"bin/pairfq jonpairs 2>&1");

## just look to see if the task was handled correctly to generate a usage statement
for my $out (@addinfo) {
    if ($out =~ /pairnum/i) {
	ok($out =~ qr/pairnum/i, 'Help menu generated correctly for pairnum task');
    }
}

for my $out (@makepairs) {
    if ($out =~ /forward/i) {
        ok($out =~ qr/forward/i, 'Help menu generated correctly for makepairs task');
    }
}

for my $out (@splitpairs) {
    if ($out =~ /forward/i) {
{'fraction_non_alphanumeric': 0.18712162905888827, 'fraction_numerical': 0.02806824435883324, 'mean_word_length': 3.8222811671087533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5773030', 'n_tokens_mistral': 716, 'n_tokens_neox': 690, 'n_words': 194}