<commit_before>#!/usr/bin/env perl

BEGIN {
  $ENV{CATALYST_SCRIPT_GEN} = 40;
  
  use FindBin qw/$Bin/;
  use lib "$Bin/lib";
  $ENV{CATALYST_CONFIG} = "$Bin/../ensembl_rest_testing.conf";
  # $ENV{ENS_REST_LOG4PERL} = "$Bin/../log4perl_testing.conf";
}

$SIG{INT} = sub {
  #Capture normal SIG INTs to force the cleaning up of the databases. For
  #some reason Catalyst/PSGI/Something is very good at ignoring
  #DEMOLISH blocks
  my $code = Catalyst::Script::EnsemblTest->new(application_name => 'EnsEMBL::REST');
  exit();
};

use Catalyst::ScriptRunner;
Catalyst::ScriptRunner->run('EnsEMBL::REST', 'EnsemblTest');

1;

=head1 NAME

ensembl_rest_test_server.pl - Ensembl REST Test Server

=head1 SYNOPSIS

ensembl_rest_server.pl [options]
<commit_msg>[ENSCORESW-590]. Removed the SIG{INT} cleanup. It infects to far down.<commit_after>#!/usr/bin/env perl

BEGIN {
  $ENV{CATALYST_SCRIPT_GEN} = 40;
  
  use FindBin qw/$Bin/;
  use lib "$Bin/lib";
  $ENV{CATALYST_CONFIG} = "$Bin/../ensembl_rest_testing.conf";
  # $ENV{ENS_REST_LOG4PERL} = "$Bin/../log4perl_testing.conf";
}

use Catalyst::ScriptRunner;
Catalyst::ScriptRunner->run('EnsEMBL::REST', 'EnsemblTest');

1;

=head1 NAME

ensembl_rest_test_server.pl - Ensembl REST Test Server

=head1 WARNING

THIS SCRIPT DOES *NOT* CLEANUP TEST DATABASES. YOU MUST RUN
t/CLEAN.t MANUALLY.

=head1 SYNOPSIS

ensembl_rest_server.pl [options]

{'fraction_non_alphanumeric': 0.14378145219266714, 'fraction_numerical': 0.012940330697340043, 'mean_word_length': 4.8, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1192693', 'n_tokens_mistral': 594, 'n_tokens_neox': 552, 'n_words': 115}