<commit_before><?php

// Load utilities and settings
require_once( 'ClassBlogs/ClassBlogs.php' );
require_once( 'ClassBlogs/Settings.php' );
require_once( 'ClassBlogs/Utils.php' );

// If we're on the admin side, configure shared admin functionality
if ( is_admin() ) {
	require_once( 'ClassBlogs/Admin.php' );
}

// Load each class blogs plugin
$plugins = array(
	'BasePlugin',
	'SidebarWidget',
	'Aggregation/Settings',
	'Aggregation/Aggregator',
	'Aggregation/SitewidePlugin',
	'Aggregation/SitewideComments',
	'Aggregation/SitewidePosts',
	'Aggregation/SitewideTags',
	'ClassmateComments',
	'DisableComments',
	'GravatarSignup',
	'NewUserConfiguration',
	'RandomImage',
	'StudentBlogLinks',
	'StudentBlogList',
	'StudentPseudonym',
	'WordCounter',
	'YouTubeClassPlaylist'
);
foreach ( $plugins as $plugin ) {
	require_once( 'ClassBlogs/Plugins/' . $plugin . '.php' );
}

// Enable i18n fuctionality
add_action( 'init', '_classblogs_init' );

/**
 * Performs global class-blogs plugin initialization actions
 *
 * @access private
 * @package Class Blogs
 * @since 0.1
 */
function _classblogs_init()
{
	// Loads translations for the current locale
	load_plugin_textdomain(
		'classblogs',
		false,
		basename( dirname( __FILE__ ) ) . '/languages' );
}

?>
<commit_msg>Slight tweaks to the class blogs loader.<commit_after><?php

// Load utilities and settings
require_once( 'ClassBlogs/ClassBlogs.php' );
require_once( 'ClassBlogs/Settings.php' );
require_once( 'ClassBlogs/Utils.php' );

// If we're on the admin side, configure shared admin functionality
if ( is_admin() ) {
	require_once( 'ClassBlogs/Admin.php' );
}

// Load the suite's plugins
$plugins = array(
	'BasePlugin',
	'SidebarWidget',
	'Aggregation/Settings',
	'Aggregation/Aggregator',
	'Aggregation/SitewidePlugin',
	'Aggregation/SitewideComments',
	'Aggregation/SitewidePosts',
	'Aggregation/SitewideTags',
	'ClassmateComments',
	'DisableComments',
	'GravatarSignup',
	'NewUserConfiguration',
	'RandomImage',
	'StudentBlogLinks',
	'StudentBlogList',
	'StudentPseudonym',
	'WordCounter',
	'YouTubeClassPlaylist'
);
foreach ( $plugins as $plugin ) {
	require_once( 'ClassBlogs/Plugins/' . $plugin . '.php' );
}

/**
 * Performs global class-blogs plugin initialization actions
 *
 * @access private
 * @package Class Blogs
 * @since 0.1
 */
function _classblogs_init()
{
	// Loads translations for the current locale
	load_plugin_textdomain(
		'classblogs',
		false,
		basename( dirname( __FILE__ ) ) . '/languages' );
}
add_action( 'init', '_classblogs_init' );

?>

{'fraction_non_alphanumeric': 0.14037854889589904, 'fraction_numerical': 0.002365930599369085, 'mean_word_length': 5.2181372549019605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4802983', 'n_tokens_mistral': 881, 'n_tokens_neox': 844, 'n_words': 186}