<commit_before>package EnsEMBL::Web::Component::Export::Formats;

use strict;

use URI::Escape qw(uri_unescape);

use base 'EnsEMBL::Web::Component::Export';

sub content {
  my $self        = shift;
  my $hub         = $self->hub;
  my $form_action = $hub->url({ action => 'Configure', function => $hub->function }, 1);
  my $slice       = $hub->param('slice');
  my $href        = $hub->param('base_url');
  my $form        = $self->modal_form('export_output_configuration', $form_action->[0], { label => '< Back', method => 'get' });
  
  $form->add_fieldset;
  
  if ($slice) {
    my (@list, @formats, $note);
    
    if ($href) {
      @formats = (
        [ 'HTML', $href, 'HTML', ' rel="external"' ],
        [ 'Text', $href, 'Text', ' rel="external"' ],
        [ 'Compressed text (.gz)', $href, 'TextGz' ]
      );
      
      $note = 'Please choose the output format for your export';
    } else {<commit_msg>back button should be a post<commit_after>package EnsEMBL::Web::Component::Export::Formats;

use strict;

use URI::Escape qw(uri_unescape);

use base 'EnsEMBL::Web::Component::Export';

sub content {
  my $self        = shift;
  my $hub         = $self->hub;
  my $form_action = $hub->url({ action => 'Configure', function => $hub->function }, 1);
  my $slice       = $hub->param('slice');
  my $href        = $hub->param('base_url');
  my $form        = $self->modal_form('export_output_configuration', $form_action->[0], { label => '< Back', method => 'post' });
  
  $form->add_fieldset;
  
  if ($slice) {
    my (@list, @formats, $note);
    
    if ($href) {
      @formats = (
        [ 'HTML', $href, 'HTML', ' rel="external"' ],
        [ 'Text', $href, 'Text', ' rel="external"' ],
        [ 'Compressed text (.gz)', $href, 'TextGz' ]
      );
      
      $note = 'Please choose the output format for your export';
    } else {
{'fraction_non_alphanumeric': 0.1967741935483871, 'fraction_numerical': 0.002150537634408602, 'mean_word_length': 2.8450413223140494, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '4145301', 'n_tokens_mistral': 644, 'n_tokens_neox': 631, 'n_words': 151}