<commit_before>#!/usr/bin/perl

### also test with:
### curl -v -H 'Cookie: a=1' -H 'Cookie: b=2; c=3' 'http://localhost:7000/basic?x=y'

### XXX run out of semaphores? Can happen in testing:
### ipcs  | grep 0x0 | awk '{print $2}' | xargs -I% ipcrm -s %

use strict;
use warnings;
use FindBin;
use Test::More      'no_plan';
use HTTP::Date      qw[str2time];
use Getopt::Long;
use Data::Dumper;
use LWP::UserAgent;

my $Base        = "http://localhost:7000";
my $Debug       = 0;
my $Statsd      = 0;    # is statsd running on the default port?
my $LogFile     = "$FindBin::Bin/diag.log";
my $HTTPResp    = 200;
my $StartTime   = time;

GetOptions(
    'base=s'    => \$Base,
    'debug'     => \$Debug,
    'statsd'    => \$Statsd,
    'logfile=s' => \$LogFile,<commit_msg>* cargo cult error<commit_after>#!/usr/bin/perl

### ipcs  | grep 0x0 | awk '{print $2}' | xargs -I% ipcrm -s %

use strict;
use warnings;
use FindBin;
use Test::More      'no_plan';
use Getopt::Long;
use Data::Dumper;
use LWP::UserAgent;

my $Base        = "http://localhost:7000";
my $Debug       = 0;
my $Statsd      = 0;    # is statsd running on the default port?
my $LogFile     = "$FindBin::Bin/diag.log";
my $HTTPResp    = 200;
my $StartTime   = time;

GetOptions(
    'base=s'    => \$Base,
    'debug'     => \$Debug,
    'statsd'    => \$Statsd,
    'logfile=s' => \$LogFile,
{'fraction_non_alphanumeric': 0.18221895664952242, 'fraction_numerical': 0.02351212343864805, 'mean_word_length': 2.8693181818181817, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1917173', 'n_tokens_mistral': 559, 'n_tokens_neox': 527, 'n_words': 147}