<commit_before><commit_msg>quick script to get a command line option<commit_after>#!/usr/bin/env perl -w
use strict;

# this little script will read a Thrax config file and output a line that
# has the given key, if it exists

open CONF, $ARGV[0] or die "$!";
my $key = $ARGV[1];
while (<CONF>) {
    s/#.*//;
    print if /^$key\s+/;
}

{'fraction_non_alphanumeric': 0.1513353115727003, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 3.506666666666667, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1497845', 'n_tokens_mistral': 126, 'n_tokens_neox': 121, 'n_words': 47}