<commit_before><?php
/**
 * @brief		Faker Application Class
 * @author		<a href='https://www.Makoto.io'><NAME></a>
 * @copyright	(c) 2015 <NAME>
 * @package		IPS Social Suite
 * @subpackage	Faker
 * @since		20 Aug 2015
 * @version		
 */
 
namespace IPS\faker;
\IPS\IPS::$PSR0Namespaces['Faker'] = \IPS\ROOT_PATH . '/applications/faker/sources/3rd_party/vendor/fzaninotto/faker/src/Faker';

/**
 * Faker Application Class
 * @package IPS\faker
 */
class _Application extends \IPS\Application
{
	/**
	 * Application icon
	 *
	 * @return  string
	 */
	public function get__icon()
	{
		return 'plus-square';
	}

	/**
	 * Dynamic AdminCP menu generator for extensions
	 *
	 * @return array
	 */
	public function acpMenu()
	{
		$extensions = \IPS\faker\Faker::allExtensions();

		$menu = array();
		foreach ( $extensions as $key => $extension )
		{
			$splitKey = explode('_', $key);

			/* What app is this extension for? */
			$app = property_exists( $extension, 'app' ) ? $extension::$app : $splitKey[0];

			/* Make sure the application is enabled */
			if ( !\IPS\Application::appIsEnabled( $app ) ) {
				continue;
			}

			/* Do we need to create a new category for this app? */
			if ( !in_array($app, $menu) ) {
				$menu[ $app ] = array();
			}<commit_msg>(Bugfix) We really need to stop trying to treat PHP's in_array() like Python's in operator<commit_after><?php
/**
 * @brief		Faker Application Class
 * @author		<a href='https://www.Makoto.io'><NAME></a>
 * @copyright	(c) 2015 Mak<NAME>
 * @package		IPS Social Suite
 * @subpackage	Faker
 * @since		20 Aug 2015
 * @version		
 */
 
namespace IPS\faker;
\IPS\IPS::$PSR0Namespaces['Faker'] = \IPS\ROOT_PATH . '/applications/faker/sources/3rd_party/vendor/fzaninotto/faker/src/Faker';

/**
 * Faker Application Class
 * @package IPS\faker
 */
class _Application extends \IPS\Application
{
	/**
	 * Application icon
	 *
	 * @return  string
	 */
	public function get__icon()
	{
		return 'plus-square';
	}

	/**
	 * Dynamic AdminCP menu generator for extensions
	 *
	 * @return array
	 */
	public function acpMenu()
	{
		$extensions = \IPS\faker\Faker::allExtensions();

		$menu = array();
		foreach ( $extensions as $key => $extension )
		{
			$splitKey = explode('_', $key);

			/* What app is this extension for? */
			$app = property_exists( $extension, 'app' ) ? $extension::$app : $splitKey[0];

			/* Make sure the application is enabled */
			if ( !\IPS\Application::appIsEnabled( $app ) ) {
				continue;
			}

			/* Do we need to create a new category for this app? */
			if ( !isset( $menu[ $app ] ) ) {
				$menu[ $app ] = array();
			}
{'fraction_non_alphanumeric': 0.16109188773548636, 'fraction_numerical': 0.009996155324875048, 'mean_word_length': 3.196774193548387, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2043741', 'n_tokens_mistral': 992, 'n_tokens_neox': 883, 'n_words': 231}