<commit_before>package BioMart::Web::PageStub;
use EnsEMBL::Web::RegObj;
use EnsEMBL::Web::Document::Renderer::Apache;
use EnsEMBL::Web::Document::Dynamic;
use EnsEMBL::Web::Document::Static;

sub new {
  my( $class, $session ) = @_;
  my $renderer = new EnsEMBL::Web::Document::Renderer::Apache;
  my $page     = new EnsEMBL::Web::Document::Dynamic( $renderer,undef,$ENSEMBL_WEB_REGISTRY->species_defs );
  $page->_initialize_HTML;
  #$page->set_doc_type( 'HTML', '4.01 Trans' );
  $page->masthead->sp_bio    ||= 'BioMart';
  $page->masthead->sp_common ||= 'BioMart';
  $page->javascript->add_source( '/martview/js/martview.js'           );
#  $page->javascript->add_script( 'addLoadEvent( debug_window )' );
  $page->javascript->add_script( 'addLoadEvent( setVisibleStatus )' );
  $page->stylesheet->add_sheet(  'all', '/martview/martview.css'      );

  my $self = { 'page' => $page, 'session' => $session };
  bless $self, $class;
  return $self;
}

sub start {
  my $self = shift;
  $self->{'page'}->render_start;
#  print '<script type="text/javascript">debug_window()</script>';
  print qq(
<div id="page"><div id="i1"><div id="i2"><div class="sptop">&nbsp;</div>
<div id="main_body_content" class="panel">);
}

sub end {
  my $self = shift;
  print qq(</div>
</div></div></div>);
  if($self->{'session'}->param('__validatorError')) {
  ( my $inc = $self->{'session'}->param("__validationError") ) =~ s/\n/\\n/;
  $inc =~s/\'/\\\'/;
  print qq(<script language="JavaScript" type="text/javascript">
        //<![CDATA[
        alert('$inc');
        //]]>
        </script>);
  }
  $self->{'page'}->render_end;
}

1;
<commit_msg>added missed settings panel in pageStub<commit_after>package BioMart::Web::PageStub;
use EnsEMBL::Web::RegObj;
use EnsEMBL::Web::Document::Renderer::Apache;
use EnsEMBL::Web::Document::Dynamic;
use EnsEMBL::Web::Document::Static;

sub new {
  my( $class, $session ) = @_;
  my $renderer = new EnsEMBL::Web::Document::Renderer::Apache;
  my $page     = new EnsEMBL::Web::Document::Dynamic( $renderer,undef,$ENSEMBL_WEB_REGISTRY->species_defs );
  $page->_initialize_HTML;
  #$page->set_doc_type( 'HTML', '4.01 Trans' );
  $page->masthead->sp_bio    ||= 'BioMart';
  $page->masthead->sp_common ||= 'BioMart';
  $page->javascript->add_source( '/martview/js/martview.js'           );
#  $page->javascript->add_script( 'addLoadEvent( debug_window )' );
  $page->javascript->add_script( 'addLoadEvent( setVisibleStatus )' );
  $page->stylesheet->add_sheet(  'all', '/martview/martview.css'      );

  my $self = { 'page' => $page, 'session' => $session };
  bless $self, $class;
  return $self;
}

sub start {
  my $self = shift;
  $self->{'page'}->render_start;
#  print '<script type="text/javascript">debug_window()</script>';
  $self->{'page'}->content->_start;
  $self->{'page'}->content->render_settings_list;
}

sub end {
  my $self = shift;
  $self->{'page'}->content->_end;
  if($self->{'session'}->param('__validatorError')) {
  ( my $inc = $self->{'session'}->param("__validationError") ) =~ s/\n/\\n/;
  $inc =~s/\'/\\\'/;
  print qq(<script language="JavaScript" type="text/javascript">
        //<![CDATA[
        alert('$inc');
        //]]>
        </script>);
  }
  $self->{'page'}->render_end;
}

1;

{'fraction_non_alphanumeric': 0.2263627964274715, 'fraction_numerical': 0.003079765937788728, 'mean_word_length': 4.35973597359736, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 82, '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': '4017040', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1190, 'n_words': 191}