<commit_before>package resources2::annotations;

use strict;
use warnings;
no warnings('once');
use Data::Dumper;

use Conf;
use parent qw(resources2::resource);

# Override parent constructor
sub new {
    my ($class, @args) = @_;

    # Call the constructor of the parent class
    my $self = $class->SUPER::new(@args);
    
    # Add name / attributes
    $self->{name}       = "sequences";
    $self->{attributes} = { "id"      => [ 'string', 'unique object identifier' ],
    	                    "data"    => [ 'hash', [ { 'key' => ['string', 'annotation text'],
    	                                               'value' => ['list', ['string', 'md5sum of hit protein']] },
    	                                             'annotation to md5s' ]],
    	                    "version" => [ 'integer', 'version of the object' ],
    	                    "url"     => [ 'uri', 'resource location of this object instance' ] };
    return $self;
}

# resource is called without any parameters<commit_msg>fixed wrong api resource name<commit_after>package resources2::annotations;

use strict;
use warnings;
no warnings('once');
use Data::Dumper;

use Conf;
use parent qw(resources2::resource);

# Override parent constructor
sub new {
    my ($class, @args) = @_;

    # Call the constructor of the parent class
    my $self = $class->SUPER::new(@args);
    
    # Add name / attributes
    $self->{name}       = "annotations";
    $self->{attributes} = { "id"      => [ 'string', 'unique object identifier' ],
    	                    "data"    => [ 'hash', [ { 'key' => ['string', 'annotation text'],
    	                                               'value' => ['list', ['string', 'md5sum of hit protein']] },
    	                                             'annotation to md5s' ]],
    	                    "version" => [ 'integer', 'version of the object' ],
    	                    "url"     => [ 'uri', 'resource location of this object instance' ] };
    return $self;
}

# resource is called without any parameters
{'fraction_non_alphanumeric': 0.1458128078817734, 'fraction_numerical': 0.003940886699507389, 'mean_word_length': 1.8890469416785207, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3003831', 'n_tokens_mistral': 550, 'n_tokens_neox': 540, 'n_words': 167}