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

use strict;

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

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

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

sub show_fields {
  ## @overrides
  my $self = shift;
  return [
    external_db_id      => {
      'type'      => 'noedit',
      'label'     => 'Externam DB ID',
      'value'     => '<i>to be assigned</i>',
      'is_html'   => 1,
    },
    db_name             => {
      'type'      => 'string',
      'label'     => 'Name',
      'required'  => 1
    },
    db_release          => {
      'type'      => 'string',
      'label'     => 'Release'
    },
    status              => {
      'type'      => 'dropdown',
      'label'     => 'Status',
      'required'  => 1
    },
    db_display_name     => {
      'type'      => 'string',
      'label'     => 'Display name'<commit_msg>external_db_id needs to be set manually<commit_after>package EnsEMBL::Web::Object::ExternalDb;

use strict;

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

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

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

sub show_fields {
  ## @overrides
  my $self = shift;
  return [
    external_db_id      => {
      'type'      => 'int',
      'label'     => 'External DB ID',
    },
    db_name             => {
      'type'      => 'string',
      'label'     => 'Name',
      'required'  => 1
    },
    db_release          => {
      'type'      => 'string',
      'label'     => 'Release'
    },
    status              => {
      'type'      => 'dropdown',
      'label'     => 'Status',
      'required'  => 1
    },
    db_display_name     => {
      'type'      => 'string',
      'label'     => 'Display name'
{'fraction_non_alphanumeric': 0.21271143003587903, 'fraction_numerical': 0.0025627883136852894, 'mean_word_length': 1.900445765230312, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 43, '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': '3392080', 'n_tokens_mistral': 653, 'n_tokens_neox': 676, 'n_words': 118}