<commit_before>## ----------------------------------------------------------------------------

package AwsSum::Validate;
use Moose::Role;

use Date::Simple;

## ----------------------------------------------------------------------------

sub is_valid_integer {
    my ($self, $integer) = @_;
    return 0 unless defined $integer;
    return 1 if $integer =~ m{ \A \d+ \z }xms;
    return 0;
}
<commit_msg>New is_valid_something()<commit_after>## ----------------------------------------------------------------------------

package AwsSum::Validate;
use Moose::Role;

use Date::Simple;

## ----------------------------------------------------------------------------

sub is_valid_something {
    my ($self, $something) = @_;
    return 0 unless defined $something;
    return 0 unless $something =~ m{ \S }xms;
    return 1;
}

sub is_valid_integer {
    my ($self, $integer) = @_;
    return 0 unless defined $integer;
    return 1 if $integer =~ m{ \A \d+ \z }xms;
    return 0;
}

{'fraction_non_alphanumeric': 0.40973630831643004, 'fraction_numerical': 0.009127789046653144, 'mean_word_length': 1.1180257510729614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4786160', 'n_tokens_mistral': 264, 'n_tokens_neox': 256, 'n_words': 76}