<commit_before>package EnsEMBL::Web::ViewConfig::Gene::Sequence;

use strict;
use warnings;
no warnings 'uninitialized';
use EnsEMBL::Web::Constants;

sub init {
  my ($view_config) = @_;

  $view_config->title = 'Marked up gene sequence';
  $view_config->_set_defaults(qw(
    flank5_display          600
    flank3_display          600
    exon_display            core
    exon_ori                all
    snp_display             off
    line_numbering          off
  ));
  $view_config->storable = 1;

}

sub form {
  my( $view_config, $object ) = @_;
  my %gene_markup_options    =  EnsEMBL::Web::Constants::GENE_MARKUP_OPTIONS;
  my %general_markup_options = EnsEMBL::Web::Constants::GENERAL_MARKUP_OPTIONS;

  #options shared with marked-up sequence
  $view_config->add_form_element($gene_markup_options{'flank5_display'});
  $view_config->add_form_element($gene_markup_options{'flank3_display'});

  if ($object->species_defs->databases->{'DATABASE_VEGA'}) {
      push @{$gene_markup_options{'exon_display'}{'values'}}, { 'value' => 'vega', 'name' => 'Vega exons' };
  }
  if ($object->species_defs->databases->{'DATABASE_OTHERFEATURES'}) {
      push @{$gene_markup_options{'exon_display'}{'values'}},  { 'value' => 'otherfeatures', 'name' => 'EST gene exons' };
  }
  $view_config->add_form_element($gene_markup_options{'exon_display'});

  #options shared with resequencing and marked-up sequence
  $view_config->add_form_element($general_markup_options{'exon_ori'});
  if( $object->species_defs->databases->{'DATABASE_VARIATION'} ) {
    $view_config->add_form_element( $general_markup_options{'snp_display'} );
  }
  $view_config->add_form_element( $general_markup_options{'line_numbering'} );

}
1;
<commit_msg>display width<commit_after>package EnsEMBL::Web::ViewConfig::Gene::Sequence;

use strict;
use warnings;
no warnings 'uninitialized';
use EnsEMBL::Web::Constants;

sub init {
  my ($view_config) = @_;

  $view_config->title = 'Marked up gene sequence';
  $view_config->_set_defaults(qw(
    flank5_display          600
    flank3_display          600
    display_width           60
    exon_display            core
    exon_ori                all
    snp_display             off
    line_numbering          off
  ));
  $view_config->storable = 1;

}

sub form {
  my( $view_config, $object ) = @_;
  my %gene_markup_options    =  EnsEMBL::Web::Constants::GENE_MARKUP_OPTIONS;
  my %general_markup_options = EnsEMBL::Web::Constants::GENERAL_MARKUP_OPTIONS;
  my %other_markup_options = EnsEMBL::Web::Constants::OTHER_MARKUP_OPTIONS;

  #options shared with marked-up sequence
  $view_config->add_form_element($gene_markup_options{'flank5_display'});
  $view_config->add_form_element($gene_markup_options{'flank3_display'});
  $view_config->add_form_element($other_markup_options{'display_width'});

  if ($object->species_defs->databases->{'DATABASE_VEGA'}) {
      push @{$gene_markup_options{'exon_display'}{'values'}}, { 'value' => 'vega', 'name' => 'Vega exons' };
  }
  if ($object->species_defs->databases->{'DATABASE_OTHERFEATURES'}) {
      push @{$gene_markup_options{'exon_display'}{'values'}},  { 'value' => 'otherfeatures', 'name' => 'EST gene exons' };
  }
  $view_config->add_form_element($gene_markup_options{'exon_display'});

  #options shared with resequencing and marked-up sequence
  $view_config->add_form_element($general_markup_options{'exon_ori'});
  if( $object->species_defs->databases->{'DATABASE_VARIATION'} ) {
    $view_config->add_form_element( $general_markup_options{'snp_display'} );
  }
  $view_config->add_form_element( $general_markup_options{'line_numbering'} );

}
1;

{'fraction_non_alphanumeric': 0.1443923945990631, 'fraction_numerical': 0.0071645081289611464, 'mean_word_length': 4.780254777070064, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 48, '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': '3946852', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1262, 'n_words': 183}