<commit_before>package EnsEMBL::Web::Data::ItemSpecies;

use strict;
use warnings;
use base qw(EnsEMBL::Web::Data);
use EnsEMBL::Web::DBSQL::WebDBConnection (__PACKAGE__->species_defs);

__PACKAGE__->table('item_species');

__PACKAGE__->add_queriable_fields(
  news_item_id => 'int',
  species_id   => 'int',
);

__PACKAGE__->has_a(news_item => 'EnsEMBL::Web::Data::NewsItem');
__PACKAGE__->tie_a(species   => 'EnsEMBL::Web::Data::Species');

1;<commit_msg>+ primary key for item species<commit_after>package EnsEMBL::Web::Data::ItemSpecies;

use strict;
use warnings;
use base qw(EnsEMBL::Web::Data);
use EnsEMBL::Web::DBSQL::WebDBConnection (__PACKAGE__->species_defs);

__PACKAGE__->table('item_species');
__PACKAGE__->set_primary_key('item_species_id');

__PACKAGE__->add_queriable_fields(
  news_item_id => 'int',
  species_id   => 'int',
);

__PACKAGE__->has_a(news_item => 'EnsEMBL::Web::Data::NewsItem');
__PACKAGE__->tie_a(species   => 'EnsEMBL::Web::Data::Species');

1;
{'fraction_non_alphanumeric': 0.17755102040816326, 'fraction_numerical': 0.0020408163265306124, 'mean_word_length': 9.010204081632653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '1444419', 'n_tokens_mistral': 401, 'n_tokens_neox': 378, 'n_words': 51}