<commit_before># who   <NAME>
# what  corpus management module
# why   part of senior thesis
# when  Oct 09
# where CS488 Earlham College

package corpus;
use base 'Exporter';

# CPAN modules
use Perl6::Junction 'any';
use List::Util 'reduce';
use Lingua::EN::Sentence qw/
    get_sentences
    add_acronyms
/;
use Lingua::EN::Syllable;
use Lingua::EN::Hyphenate 'syllables';
use Lingua::EN::Phoneme;
use Lingua::EN::Splitter 'words';

@EXPORT_OK = qw/
    normalize
    profile
    insert_into_db
/;

=head2 normalize

    my $normalized_sentences_aref = normalize($corpus_str);

Args:<commit_msg>comment out list::util import as reduce wasn't working for me<commit_after># who   n<NAME>
# what  corpus management module
# why   part of senior thesis
# when  Oct 09
# where CS488 Earlham College

package corpus;
use base 'Exporter';

# CPAN modules
use Perl6::Junction 'any';
#use List::Util 'reduce';
use Lingua::EN::Sentence qw/
    get_sentences
    add_acronyms
/;
use Lingua::EN::Syllable;
use Lingua::EN::Hyphenate 'syllables';
use Lingua::EN::Phoneme;
use Lingua::EN::Splitter 'words';

@EXPORT_OK = qw/
    normalize
    profile
    insert_into_db
/;

=head2 normalize

    my $normalized_sentences_aref = normalize($corpus_str);

Args:
{'fraction_non_alphanumeric': 0.11396468699839486, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.617117117117117, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3252606', 'n_tokens_mistral': 478, 'n_tokens_neox': 454, 'n_words': 124}