<commit_before>package RSP;

use strict;
use warnings;

use base 'Mojo';
use Application::Config 'rsp.conf';

sub handler {
  my ($self, $tx) = @_;

  my $request = $tx->req;  
  eval {
    my $rsptx   = RSP::Transaction->new;
    $rsptx->request( $tx->req );
    $rsptx->response( $tx->res );
    $rsptx->bootstrap;
    $rsptx->run;
    $rsptx->end;
    $rsptx = undef;
  };
  if ($@) {
    $tx->res->code( 500 );
    $tx->res->headers->content_type('text/plain');
    $tx->res->body($@);
  }
  return $tx;
}

1;<commit_msg>just formatting<commit_after>package RSP;

use strict;
use warnings;

use base 'Mojo';
use Application::Config 'rsp.conf';

sub handler {
  my ($self, $tx) = @_;

  my $request = $tx->req;  
  eval {
    my $rsptx = RSP::Transaction->new
                                ->request( $tx->req )
                                ->response( $tx->res );
    $rsptx->bootstrap;
    $rsptx->run;
    $rsptx->end;
    $rsptx = undef;
  };
  if ($@) {
    $tx->res->code( 500 );
    $tx->res->headers->content_type('text/plain');
    $tx->res->body($@);
  }
  return $tx;
}

1;
{'fraction_non_alphanumeric': 0.20512820512820512, 'fraction_numerical': 0.007326007326007326, 'mean_word_length': 2.332317073170732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '3539420', 'n_tokens_mistral': 439, 'n_tokens_neox': 426, 'n_words': 82}