<commit_before>## ----------------------------------------------------------------------------

package CGI::Conduit::Log;

use Carp qw(croak);

use Moose::Role;

use Log::Log4perl;

## ----------------------------------------------------------------------------

has 'log_obj' => ( is => 'rw' );

my $conf_template = q(
    log4perl.category                 = __LEVEL__, Logfile

    log4perl.appender.Logfile          = Log::Log4perl::Appender::File
    log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::PatternLayout
    log4perl.appender.Logfile.layout.ConversionPattern = %d (%P) [%-20c;%5L] %-5p: %m%n
    log4perl.appender.Logfile.filename = __FILENAME__
    log4perl.appender.Logfile.mode     = append
);

## ----------------------------------------------------------------------------<commit_msg>Remove Carp<commit_after>## ----------------------------------------------------------------------------

package CGI::Conduit::Log;

use Moose::Role;

use Log::Log4perl;

## ----------------------------------------------------------------------------

has 'log_obj' => ( is => 'rw' );

my $conf_template = q(
    log4perl.category                 = __LEVEL__, Logfile

    log4perl.appender.Logfile          = Log::Log4perl::Appender::File
    log4perl.appender.Logfile.layout   = Log::Log4perl::Layout::PatternLayout
    log4perl.appender.Logfile.layout.ConversionPattern = %d (%P) [%-20c;%5L] %-5p: %m%n
    log4perl.appender.Logfile.filename = __FILENAME__
    log4perl.appender.Logfile.mode     = append
);

## ----------------------------------------------------------------------------
{'fraction_non_alphanumeric': 0.3926571250777847, 'fraction_numerical': 0.016179215930304917, 'mean_word_length': 1.2395543175487465, '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': '5072938', 'n_tokens_mistral': 464, 'n_tokens_neox': 435, 'n_words': 66}