<commit_before>package SellSmooth::Plugins;

use strict;
use warnings;
use Data::Dumper;
use Dancer2;
use Moose;
use YAML::XS qw/LoadFile/;
use MooseX::HasDefaults::RO;
use MooseX::Types::Moose qw(ArrayRef Str Defined);
use MooseX::Types::LoadableClass qw(LoadableClass);

has plugins => ( default => sub { {} } );

has enabled => (
    default => sub {
        my $self    = shift;
        my $enabled = [];
        foreach ( @{ $self->plugin_files() } ) {
            my $conf = LoadFile($_);<commit_msg>clean up plugin loader<commit_after>package SellSmooth::Plugins;

use strict;
use warnings;
use Data::Dumper;
use Dancer2;
use Moose;
use YAML::XS qw/LoadFile/;
use MooseX::HasDefaults::RO;
use MooseX::Types::Moose qw(ArrayRef Str Defined);
use MooseX::Types::LoadableClass qw(LoadableClass);

has plugins => ( default => sub { {} } );

has enabled => (
    lazy    => 1,
    default => sub {
        my $self    = shift;
        my $enabled = [];
        foreach ( @{ $self->plugin_files() } ) {
            my $conf = LoadFile($_);
{'fraction_non_alphanumeric': 0.15495668912415783, 'fraction_numerical': 0.0028873917228103944, 'mean_word_length': 3.406779661016949, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '3796184', 'n_tokens_mistral': 364, 'n_tokens_neox': 355, 'n_words': 90}