<commit_before>package PEF::Log;
use strict;
use warnings;
use Carp;
use Time::HiRes qw(time);
use PEF::Log::Config;
use PEF::Log::Levels ();
use Scalar::Util qw(weaken blessed reftype);
use base 'Exporter';
use feature 'state';

our $VERSION = '0.01';

our @EXPORT = qw{
  logappender
  logcache
  logcontext
  logit
  logstore
};

our $start_time;
our $last_log_event;
our $caller_offset;
our @context;
our @context_stash;
our %stash;

BEGIN {
	$start_time     = time;
	$last_log_event = 0;
	@context        = (\"main");
	@context_stash  = ({});
	$caller_offset  = 0;
}

sub import {
	my ($class, @args) = @_;
	my ($sln, $sublevels);
	for (my $i = 0 ; $i < @args ; ++$i) {
		if ($args[$i] eq 'sublevels') {
			($sln, $sublevels) = splice @args, $i, 2;
			--$i;
			$sublevels = [$sublevels] if 'ARRAY' ne ref $sublevels;
		} elsif ($args[$i] eq 'main_context') {
			my (undef, $mctx) = splice @args, $i, 2;
			--$i;
			$context[0] = \$mctx;
		}
	}
	if ($sln) {
		PEF::Log::Levels->import($sln, $sublevels);
	} else {
		PEF::Log::Levels->import();
	}
	$class->export_to_level(1, $class, @EXPORT);
}

sub init {<commit_msg>possibility to change name for default routes section<commit_after>package PEF::Log;
use strict;
use warnings;
use Carp;
use Time::HiRes qw(time);
use PEF::Log::Config;
use PEF::Log::Levels ();
use Scalar::Util qw(weaken blessed reftype);
use base 'Exporter';
use feature 'state';

our $VERSION = '0.01';

our @EXPORT = qw{
  logappender
  logcache
  logcontext
  logit
  logstore
};

our $start_time;
our $last_log_event;
our $caller_offset;
our @context;
our @context_stash;
our %stash;
our $routes_default_name;

BEGIN {
	$start_time     = time;
	$last_log_event = 0;
	@context        = (\"main");
	@context_stash  = ({});
	$caller_offset  = 0;
}

sub import {
	my ($class, @args) = @_;
	my ($sln, $sublevels);
	for (my $i = 0 ; $i < @args ; ++$i) {
		if ($args[$i] eq 'sublevels') {
			($sln, $sublevels) = splice @args, $i, 2;
			--$i;
			$sublevels = [$sublevels] if 'ARRAY' ne ref $sublevels;
		} elsif ($args[$i] eq 'main_context') {
			my (undef, $mctx) = splice @args, $i, 2;
			--$i;
			$context[0] = \$mctx;
		} elsif ($args[$i] eq 'routes_default') {
			my (undef, $rdf) = splice @args, $i, 2;
			--$i;
			$routes_default_name = $rdf;
		}
	}
	if ($sln) {
		PEF::Log::Levels->import($sln, $sublevels);
	} else {
		PEF::Log::Levels->import();
	}
	$class->export_to_level(1, $class, @EXPORT);
}

sub init {
{'fraction_non_alphanumeric': 0.19278096800656275, 'fraction_numerical': 0.008613617719442166, 'mean_word_length': 3.8489065606361827, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '176449', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1025, 'n_words': 257}