<commit_before>package Rubyish::Array;

use base qw(Rubyish::Object); # inherit parent
use base qw(Rubyish::Kernel); # import module
use Data::Dumper;

=head1 FUNCTIONS

=head2 new

=cut

sub new {
    my $self = ref($_[1]) == "ARRAY" ? $_[1] : [];
    bless $self, $_[0];
}

=head2 inspect



=cut

sub inspect {
    my $result = join '", "', @{$_[0]};
    '["' . $result . '"]';
}

=head2 at()


=cut

sub at {
    my ($self, $index) = @_;
    @{$self}[$index];
}

1;<commit_msg>rewrite Array#at with def :)<commit_after>package Rubyish::Array;
use strict;

use base qw(Rubyish::Object); # inherit parent
use base qw(Rubyish::Kernel); # import module
use Rubyish::Syntax::def;

use Data::Dumper;

=head1 FUNCTIONS

=head2 new

=cut

sub new {
    my $self = ref($_[1]) == "ARRAY" ? $_[1] : [];
    bless $self, $_[0];
}

=head2 inspect



=cut

sub inspect {
    my $result = join '", "', @{$_[0]};
    '["' . $result . '"]';
}

=head2 at()


=cut

def at($index) {
    @{$self}[$index];
};

1;
{'fraction_non_alphanumeric': 0.21586345381526104, 'fraction_numerical': 0.018072289156626505, 'mean_word_length': 3.4708520179372195, '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': '1029723', 'n_tokens_mistral': 421, 'n_tokens_neox': 405, 'n_words': 102}