<commit_before>package EnsEMBL::Web::Object::Species;

use strict;

use base qw(EnsEMBL::Web::Object::DbFrontend);

### ### ### ### ### ### ### ### ###
### Inherited method overriding ###
### ### ### ### ### ### ### ### ###

sub manager_class {
  ## @overrides
  return shift->rose_manager('Species');
}

sub show_fields {
  ## @overrides
  my $self = shift;
  return [
    web_name          => {
      'type'      => 'string',
      'label'     => 'Name on website',
      'required'  => 1,
    },
    db_name           => {
      'type'      => 'string',
      'label'     => 'Name in database',
      'required'  => 1,
    },
    common_name       => {
      'type'      => 'string',
      'label'     => 'Common Name',
      'required'  => 1,
    },
    scientific_name   => {
      'type'      => 'string',
      'label'     => 'Scientific Name',
      'required'  => 1,
    },
    production_name   => {
      'type'      => 'string',
      'label'     => 'Production Name',
      'required'  => 1,
    },
    url_name          => {
      'type'      => 'string',
      'label'     => 'URL Name',
      'required'  => 1,
    },
    attrib_type       => {
      'is_null'   => 'None',
      'type'      => 'dropdown',
      'label'     => 'Attrib Type',
    },
    alias             => {
      'type'      => 'dropdown',
      'label'     => 'Alias',
    },
    taxon             => {
      'type'      => 'string',
      'label'     => 'Taxon',
      'maxlength' => '20'
    },
    species_prefix    => {
      'type'      => 'string',
      'label'     => 'Prefix',
      'maxlength' => '20'
    }
  ];
}

sub show_columns {
  ## @overrides
  return [
    web_name        => 'Web name',
    db_name         => 'Db name',<commit_msg>null option added to alias field<commit_after>package EnsEMBL::Web::Object::Species;

use strict;

use base qw(EnsEMBL::Web::Object::DbFrontend);

### ### ### ### ### ### ### ### ###
### Inherited method overriding ###
### ### ### ### ### ### ### ### ###

sub manager_class {
  ## @overrides
  return shift->rose_manager('Species');
}

sub show_fields {
  ## @overrides
  my $self = shift;
  return [
    web_name          => {
      'type'      => 'string',
      'label'     => 'Name on website',
      'required'  => 1,
    },
    db_name           => {
      'type'      => 'string',
      'label'     => 'Name in database',
      'required'  => 1,
    },
    common_name       => {
      'type'      => 'string',
      'label'     => 'Common Name',
      'required'  => 1,
    },
    scientific_name   => {
      'type'      => 'string',
      'label'     => 'Scientific Name',
      'required'  => 1,
    },
    production_name   => {
      'type'      => 'string',
      'label'     => 'Production Name',
      'required'  => 1,
    },
    url_name          => {
      'type'      => 'string',
      'label'     => 'URL Name',
      'required'  => 1,
    },
    attrib_type       => {
      'is_null'   => 'None',
      'type'      => 'dropdown',
      'label'     => 'Attrib Type',
    },
    alias             => {
      'is_null'   => 'No Alias',
      'type'      => 'dropdown',
      'label'     => 'Alias',
    },
    taxon             => {
      'type'      => 'string',
      'label'     => 'Taxon',
      'maxlength' => '20'
    },
    species_prefix    => {
      'type'      => 'string',
      'label'     => 'Prefix',
      'maxlength' => '20'
    }
  ];
}

sub show_columns {
  ## @overrides
  return [
    web_name        => 'Web name',
    db_name         => 'Db name',
{'fraction_non_alphanumeric': 0.20368271954674222, 'fraction_numerical': 0.0056657223796034, 'mean_word_length': 1.6001472754050075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 88, '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': '4728728', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1211, 'n_words': 225}