<commit_before>package Maximus;
use 5.10.1;
use Moose;
use namespace::autoclean;

use Catalyst::Runtime 5.80;
use Catalyst qw/
    ConfigLoader
	Authentication
	Authorization::Roles
	Cache
	PageCache
	RequireSSL
    Static::Simple
	Session
	Session::Store::DBIC
	Session::State::Cookie
/;
use Catalyst::Log::Log4perl;

extends 'Catalyst';

our $VERSION = '0.01';
$VERSION = eval $VERSION;

# Configure the application.
#
# Note that settings in maximus.conf (or other external
# configuration file that you set up manually) take precedence
# over this when using ConfigLoader. Thus configuration
# details given here can function as a default configuration,
# with an external configuration file acting as an override for
# local deployment.

__PACKAGE__->config(
    name => 'Maximus',
    default_view => 'TT',
    # Disable deprecated behavior needed by old applications
    disable_component_resolution_regex_fallback => 1,
    'Plugin::Cache' => {
    	backend => {
    		class => 'Cache::FileCache',
    		default_expires_in => 3600,
    	},
    },
	'Plugin::Session' => {
		dbic_class => 'DB::Session',
		expires => 3600,
	},
	'Plugin::Authentication' => {
		default_realm => 'website',
		realms => {
			website => {
				credential => {
					class => 'Password',
					password_field => 'password',
					password_type => '<PASSWORD>',
					password_hash_type => '<PASSWORD>',
				},
				store => {
					class => 'DBIx::Class',
					user_model => 'DB::User',
					role_relation => 'roles',
					role_field => 'role',
				},
			},
		},
	},
	'require_ssl' => {
		remain_in_ssl => 0,
	},
);

# Setup logger
__PACKAGE__->log(Catalyst::Log::Log4perl->new('log.conf'));

# Start the application
__PACKAGE__->setup();


=head1 NAME

Maximus - Catalyst based application

=head1 SYNOPSIS

    script/maximus_server.pl

=head1 DESCRIPTION

Maximus is the webinterface and module manager backend for BlitzMax.

=head1 SEE ALSO

L<Maximus::Controller::Root>, L<Catalyst><commit_msg>Fixed path to config file<commit_after>package Maximus;
use 5.10.1;
use Moose;
use namespace::autoclean;

use Catalyst::Runtime 5.80;
use Catalyst qw/
    ConfigLoader
	Authentication
	Authorization::Roles
	Cache
	PageCache
	RequireSSL
    Static::Simple
	Session
	Session::Store::DBIC
	Session::State::Cookie
/;
use Catalyst::Log::Log4perl;

extends 'Catalyst';

our $VERSION = '0.01';
$VERSION = eval $VERSION;

# Configure the application.
#
# Note that settings in maximus.conf (or other external
# configuration file that you set up manually) take precedence
# over this when using ConfigLoader. Thus configuration
# details given here can function as a default configuration,
# with an external configuration file acting as an override for
# local deployment.

__PACKAGE__->config(
    name => 'Maximus',
    default_view => 'TT',
    # Disable deprecated behavior needed by old applications
    disable_component_resolution_regex_fallback => 1,
    'Plugin::Cache' => {
    	backend => {
    		class => 'Cache::FileCache',
    		default_expires_in => 3600,
    	},
    },
	'Plugin::Session' => {
		dbic_class => 'DB::Session',
		expires => 3600,
	},
	'Plugin::Authentication' => {
		default_realm => 'website',
		realms => {
			website => {
				credential => {
					class => 'Password',
					password_field => 'password',
					password_type => '<PASSWORD>',
					password_hash_type => '<PASSWORD>',
				},
				store => {
					class => 'DBIx::Class',
					user_model => 'DB::User',
					role_relation => 'roles',
					role_field => 'role',
				},
			},
		},
	},
	'require_ssl' => {
		remain_in_ssl => 0,
	},
);

# Setup logger
__PACKAGE__->log(Catalyst::Log::Log4perl->new(Maximus->path_to('/').'/log.conf'));

# Start the application
__PACKAGE__->setup();


=head1 NAME

Maximus - Catalyst based application

=head1 SYNOPSIS

    script/maximus_server.pl

=head1 DESCRIPTION

Maximus is the webinterface and module manager backend for BlitzMax.

=head1 SEE ALSO

L<Maximus::Controller::Root>, L<Catalyst>
{'fraction_non_alphanumeric': 0.13117632304991222, 'fraction_numerical': 0.013042387760220717, 'mean_word_length': 3.8574908647990256, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 72, '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': '6849358', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1284, 'n_words': 335}