<commit_before>#!/usr/local/bin/perl

use strict;
use FindBin qw($Bin);

BEGIN {
  unshift @INC, "$Bin/../conf";
  unshift @INC, "$Bin/../";
  require SiteDefs;
  unshift @INC, $_ for @SiteDefs::ENSEMBL_LIB_DIRS;
}

require LoadPlugins;
LoadPlugins::plugin(sub {/SiteDefs.pm$/});

print join(":", @INC) . "\n";

1;<commit_msg>use new LoadPlugins syntax<commit_after>#!/usr/local/bin/perl

use strict;
use FindBin qw($Bin);

BEGIN {
  unshift @INC, "$Bin/../conf";
  unshift @INC, "$Bin/../";
  require SiteDefs;
  unshift @INC, $_ for @SiteDefs::ENSEMBL_LIB_DIRS;
}

use LoadPlugins;

my @libs = grep { ref $_ ne 'CODE' } @INC; ## ugh, why are there coderefs in @INC!?

print join(":", @libs) . "\n";

1;
{'fraction_non_alphanumeric': 0.20170454545454544, 'fraction_numerical': 0.002840909090909091, 'mean_word_length': 4.0, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, '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': '220986', 'n_tokens_mistral': 307, 'n_tokens_neox': 287, 'n_words': 70}