<commit_before><?php

global $maera_i18n;

// The available options
$maera_admin_options = apply_filters( 'maera/admin/options', array(
	'shell'       => 'core',
	'import_data' => '',
	'dev_mode'    => 1,
	'cache'       => '0'
) );

// Get the available shells
$available_shells = apply_filters( 'maera/shells/available', array() ); ?>

<form method="post" action="options.php">

	<?php $settings = get_option( 'maera_admin_options', $maera_admin_options ); ?>
	<?php settings_fields( 'maera_admin_options' ); ?>

	<div id="maera_shell_select" class="postbox ">
		<h3 class="hndle"><span><?php echo $maera_i18n['shellselection']; ?></span></h3>
		<div class="inside">
			<?php echo apply_filters( 'maera/admin/shell_select_description', $maera_i18n['shellselectdescr'] ); ?>
			<br>
			<?php foreach( $available_shells as $available_shell ) : ?>
				<input type="radio" id="<?php echo $available_shell['value']; ?>" name="maera_admin_options[shell]" value="<?php esc_attr_e( $available_shell['value'] ); ?>" <?php checked( $settings['shell'], $available_shell['value'] ); ?> />
				<label for="<?php echo $available_shell['value']; ?>"><?php echo $available_shell['label']; ?></label><br />
			<?php endforeach; ?>
		</div>
	</div>

	<div id="maera_dev_mode" class="postbox"><commit_msg>Hide shell select if only 1 is available.<commit_after><?php

global $maera_i18n;

// The available options
$maera_admin_options = apply_filters( 'maera/admin/options', array(
	'shell'       => 'core',
	'import_data' => '',
	'dev_mode'    => 1,
	'cache'       => '0'
) );

// Get the available shells
$available_shells = apply_filters( 'maera/shells/available', array() ); ?>

<form method="post" action="options.php">

	<?php $settings = get_option( 'maera_admin_options', $maera_admin_options ); ?>
	<?php settings_fields( 'maera_admin_options' ); ?>

	<?php if ( 1 < count( $available_shells ) ) : ?>
		<div id="maera_shell_select" class="postbox ">
			<h3 class="hndle"><span><?php echo $maera_i18n['shellselection']; ?></span></h3>
			<div class="inside">
				<?php echo apply_filters( 'maera/admin/shell_select_description', $maera_i18n['shellselectdescr'] ); ?>
				<br>
				<?php foreach( $available_shells as $available_shell ) : ?>
					<input type="radio" id="<?php echo $available_shell['value']; ?>" name="maera_admin_options[shell]" value="<?php esc_attr_e( $available_shell['value'] ); ?>" <?php checked( $settings['shell'], $available_shell['value'] ); ?> />
					<label for="<?php echo $available_shell['value']; ?>"><?php echo $available_shell['label']; ?></label><br />
				<?php endforeach; ?>
			</div>
		</div>
	<?php endif; ?>

	<div id="maera_dev_mode" class="postbox">
{'fraction_non_alphanumeric': 0.20335820895522388, 'fraction_numerical': 0.008208955223880597, 'mean_word_length': 5.413875598086125, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 67, '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': '7630217', 'n_tokens_mistral': 979, 'n_tokens_neox': 924, 'n_words': 183}