<commit_before># $Id$

package EnsEMBL::Web::Configuration::Export;

use strict;

use base qw(EnsEMBL::Web::Configuration);

sub populate_tree {
  my $self = shift; 
  my %config = ( availability => 1, no_menu_entry => 1 );
  
  foreach ('Location', 'Gene', 'Transcript', 'LRG') {
    $self->create_node("Configure/$_",  '', [ 'configure',   'EnsEMBL::Web::Component::Export::Configure' ], \%config);
    $self->create_node("Form/$_",       '', [], { command => 'EnsEMBL::Web::Command::Export::Form',           %config});
    $self->create_node("Formats/$_",    '', [ 'formats',     'EnsEMBL::Web::Component::Export::Formats' ],   \%config);
    $self->create_node("Alignments/$_", '', [ 'alignments', 'EnsEMBL::Web::Component::Export::Alignments' ], \%config) unless $_ eq 'Transcript';
  }
  
  $self->create_node('HaploviewFiles/Location', '', [], { command => 'EnsEMBL::Web::Command::Export::HaploviewFiles',  %config});
  $self->create_node('LDExcelFile/Location',    '', [], { command => 'EnsEMBL::Web::Command::Export::LDExcelFile',     %config});
  $self->create_node('LDFormats/Location',      '', [ 'ld_formats',  'EnsEMBL::Web::Component::Export::LDFormats' ],  \%config);
  
  $self->create_node('PopulationFormats/Transcript', '', [ 'pop_formats', 'EnsEMBL::Web::Component::Export::PopulationFormats' ], \%config);
}

sub modify_page_elements {
  my $self = shift;
  my $page = $self->page;
  
  $page->remove_body_element('tabs');
  $page->remove_body_element('navigation');
}

1;<commit_msg>Making the output goes to the new export component<commit_after># $Id$

package EnsEMBL::Web::Configuration::Export;

use strict;

use base qw(EnsEMBL::Web::Configuration);

sub populate_tree {
  my $self = shift; 
  my %config = ( availability => 1, no_menu_entry => 1 );

  foreach ('Location', 'Gene', 'Transcript', 'LRG', 'Variation') {
    $self->create_node("Configure/$_",  '', [ 'configure',   'EnsEMBL::Web::Component::Export::Configure' ], \%config);
    $self->create_node("Form/$_",       '', [], { command => 'EnsEMBL::Web::Command::Export::Form',           %config});      #redirecting the form to the right url so that it can go to formats below
    $self->create_node("Formats/$_",    '', [ 'formats',     'EnsEMBL::Web::Component::Export::Formats' ],   \%config);
    $self->create_node("Alignments/$_", '', [ 'alignments',  'EnsEMBL::Web::Component::Export::Alignments' ], \%config) unless $_ eq 'Transcript';
    $self->create_node("Output/$_",     '', [ 'export',      'EnsEMBL::Web::Component::Export::Output' ], \%config);    
  }

  $self->create_node('HaploviewFiles/Location', '', [], { command => 'EnsEMBL::Web::Command::Export::HaploviewFiles',  %config});
  $self->create_node('LDExcelFile/Location',    '', [], { command => 'EnsEMBL::Web::Command::Export::LDExcelFile',     %config});
  $self->create_node('LDFormats/Location',      '', [ 'ld_formats',  'EnsEMBL::Web::Component::Export::LDFormats' ],  \%config);
  
  $self->create_node('PopulationFormats/Transcript', '', [ 'pop_formats', 'EnsEMBL::Web::Component::Export::PopulationFormats' ], \%config);
}

sub modify_page_elements {
  my $self = shift;
  my $page = $self->page;
  
  $page->remove_body_element('tabs');
  $page->remove_body_element('navigation');
}

1;
{'fraction_non_alphanumeric': 0.21785823872353482, 'fraction_numerical': 0.001841055538508745, 'mean_word_length': 5.150943396226415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 36, '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': '3509760', 'n_tokens_mistral': 1144, 'n_tokens_neox': 1098, 'n_words': 169}