<commit_before>#! /usr/bin/perl

$length=60;

print banner(<>);

sub banner {
    my (@input) = @_;
    foreach (@input) {
        s/\r//;
        s/\n//;
        $length = length if ( length > $length );
    }
    my (@output);
    push(@output,"\e[1;33m"); # Yellow
    push( @output, join( "", ' ' x $indent, '#' x $length, "####\n" ) );
    foreach (@input) {
        push( @output, join( "", ' ' x $indent, "# ", substr( $_ . ' ' x 255, 0, $length ), " #\n" ) );
    }
    push( @output, join( "", ' ' x $indent, '#' x $length, "####\n" ) );
    push(@output,"\e[0m"); # Reset
    return @output if (want_array);
    return join( "", @output );
}<commit_msg>tweaking<commit_after>#! /usr/bin/perl

$length=60;


print "\e[1;33m\n"; # Yellow
print banner(<>);
print "\e[0m"; # reset

sub banner {
    my (@input) = @_;
    foreach (@input) {
        s/\r//;
        s/\n//;
        $length = length if ( length > $length );
    }
    my (@output);
    push( @output, join( "", ' ' x $indent, '#' x $length, "####\n" ) );
    foreach (@input) {
        push( @output, join( "", ' ' x $indent, "# ", substr( $_ . ' ' x 255, 0, $length ), " #\n" ) );
    }
    push( @output, join( "", ' ' x $indent, '#' x $length, "####\n" ) );
    return @output if (want_array);
    return join( "", @output );
}
{'fraction_non_alphanumeric': 0.25769230769230766, 'fraction_numerical': 0.015384615384615385, 'mean_word_length': 2.277078085642317, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '6452155', 'n_tokens_mistral': 508, 'n_tokens_neox': 487, 'n_words': 122}