<commit_before>
#Use the JSON::Fast module to read the JSON file
use JSON::Tiny;

unit module Utils;
#This will hold any utility functions that will be used with the models.

#Look for files within a given dir.
multi sub find($name, $loc where *.IO.d) {
    my @results;
    for $loc.IO.dir(test => none(/^'.'/)) {
        @results.append: |find $name, $_.Str
    }
    @results;
}
multi sub find($name, $loc where *.IO.f) {
    return $loc.Str if $loc.IO.basename ~~ $name
}

<commit_msg>Remove the `unit` declaration in Utils.pm6 because it was not doing anything.<commit_after>
#Use the JSON::Fast module to read the JSON file
use JSON::Tiny;

#This will hold any utility functions that will be used with the models.

#Look for files within a given dir.
multi sub find($name, $loc where *.IO.d) {
    my @results;
    for $loc.IO.dir(test => none(/^'.'/)) {
        @results.append: |find $name, $_.Str
    }
    @results;
}
multi sub find($name, $loc where *.IO.f) {
    return $loc.Str if $loc.IO.basename ~~ $name
}


{'fraction_non_alphanumeric': 0.14173998044965788, 'fraction_numerical': 0.0009775171065493646, 'mean_word_length': 3.179591836734694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6559886', 'n_tokens_mistral': 350, 'n_tokens_neox': 346, 'n_words': 132}