<commit_before>use strict;
use warnings;
use Digest::MD5 qw(md5_hex);
use File::Temp qw(tempdir);
use Test::More;
use t::Util;

plan skip_all => 'nc not found'
    unless prog_exists('nc');

my $tempdir = tempdir(CLEANUP => 1);
my $sock_path = "$tempdir/h2o.sock";

my $server = spawn_h2o(<< "EOT");
listen:
  type: unix<commit_msg>no U option to Debian<commit_after>use strict;
use warnings;
use Digest::MD5 qw(md5_hex);
use File::Temp qw(tempdir);
use Test::More;
use t::Util;

plan skip_all => 'nc -U not found'
    unless prog_exists('nc') and `nc -h 2>&1` =~ /-U\t+Use UNIX domain socket/;

my $tempdir = tempdir(CLEANUP => 1);
my $sock_path = "$tempdir/h2o.sock";

my $server = spawn_h2o(<< "EOT");
listen:
  type: unix
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.016551724137931035, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '6465746', 'n_tokens_mistral': 303, 'n_tokens_neox': 296, 'n_words': 82}