<commit_before>package CCNQ::Manager;

use CCNQ::Install;
use File::Spec;

use constant manager_db => 'manager';
use constant manager_requests_dir => File::Spec->catfile(CCNQ::Install::SRC,qw( manager requests ));

sub request_to_activity {
  my ($request_type) = @_;
  my $request_file = File::Spec->catfile(manager_requests_dir,"${request_type}.pm");
  if( -e $request_file ) {
    my $eval = CCNQ::Install::content_of($request_file);
    my $sub = eval($eval);<commit_msg>Testing API<commit_after>package CCNQ::Manager;

use CCNQ::Install;
use File::Spec;
use JSON;
use Logger::Syslog;

use constant manager_db => 'manager';
use constant manager_requests_dir => File::Spec->catfile(CCNQ::Install::SRC,qw( manager requests ));

sub request_to_activity {
  my ($request_type) = @_;
  my $request_file = File::Spec->catfile(manager_requests_dir,"${request_type}.pm");
  if( -e $request_file ) {
    my $eval = CCNQ::Install::content_of($request_file);
    my $sub = eval($eval);
{'fraction_non_alphanumeric': 0.16155419222903886, 'fraction_numerical': 0.0, 'mean_word_length': 6.416666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4120101', 'n_tokens_mistral': 337, 'n_tokens_neox': 336, 'n_words': 68}