<commit_before>package Sidef::Types::Range::RangeNumber {

    use 5.014;
    use parent qw(
      Sidef::Object::Object
      );

    use overload
      '@{}' => \&to_a,
      q{""} => \&dump;

    use Sidef::Types::Bool::Bool;
    use Sidef::Types::Number::Number;

    my $ONE  = ${(Sidef::Types::Number::Number::ONE)};
    my $ZERO = ${(Sidef::Types::Number::Number::ZERO)};
    my $MONE = ${(Sidef::Types::Number::Number::MONE)};

    use Sidef::Types::Number::Inf;
    use Sidef::Types::Number::Ninf;

    my $INF  = ${Sidef::Types::Number::Inf->new};
    my $NINF = ${Sidef::Types::Number::Ninf->new};

    sub new {
        my (undef, $from, $to, $step) = @_;

        if (defined $to) {
            Sidef::Types::Number::Number::_valid($from, $to, defined($step) ? $step : ());
            $from = ref($from) ? $$from : $from;
            $to   = ref($to)   ? $$to   : $to;
            $step = ref($step) ? $$step : defined($step) ? $step : $ONE;
        }
        elsif (defined $from) {
            Sidef::Types::Number::Number::_valid($from);
            $to   = ref($from) ? $$from : $from;
            $from = $ZERO;
            $step = $ONE;
        }
        else {
            ($from, $to, $step) = ($ZERO, $MONE, $ONE);
        }

        bless {
               from => $from,<commit_msg>- Modified the RangeNum() to allow infinity as the second argument.<commit_after>package Sidef::Types::Range::RangeNumber {

    use 5.014;
    use parent qw(
      Sidef::Object::Object
      );

    use overload
      '@{}' => \&to_a,
      q{""} => \&dump;

    use Sidef::Types::Bool::Bool;
    use Sidef::Types::Number::Number;

    my $ONE  = ${(Sidef::Types::Number::Number::ONE)};
    my $ZERO = ${(Sidef::Types::Number::Number::ZERO)};
    my $MONE = ${(Sidef::Types::Number::Number::MONE)};

    use Sidef::Types::Number::Inf;
    use Sidef::Types::Number::Ninf;

    my $INF  = ${Sidef::Types::Number::Inf->new};
    my $NINF = ${Sidef::Types::Number::Ninf->new};

    sub new {
        my (undef, $from, $to, $step) = @_;

        if (defined $to) {
            Sidef::Types::Number::Number::_valid(
                                                 $from,
                                                 (
                                                       ref($to) eq 'Sidef::Types::Number::Inf'
                                                    || ref($to) eq 'Sidef::Types::Number::Ninf' ? () : $to
                                                 ),
                                                 defined($step) ? $step : ()
                                                );
            $from = ref($from) ? $$from : $from;
            $to   = ref($to)   ? $$to   : $to;
            $step = ref($step) ? $$step : defined($step) ? $step : $ONE;
        }
        elsif (defined $from) {
            Sidef::Types::Number::Number::_valid($from);
            $to   = ref($from) ? $$from : $from;
            $from = $ZERO;
            $step = $ONE;
        }
        else {
            ($from, $to, $step) = ($ZERO, $MONE, $ONE);
        }

        bless {
               from => $from,
{'fraction_non_alphanumeric': 0.1907514450867052, 'fraction_numerical': 0.002569043031470777, 'mean_word_length': 1.5872093023255813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '112064', 'n_tokens_mistral': 979, 'n_tokens_neox': 959, 'n_words': 188}