<commit_before><?php

namespace Aza\Components\Math;
use Aza\Components\Common\CArray;
use Aza\Components\Math\Exceptions\Exception;

/**
 * Universal convertor between positional numeral systems.
 * Also supports huge integers.
 *
 * Supported bases from 2 to 62 inclusive, and custom numeral systems
 * (see {@link NumeralSystem::setSystem setSystem} method).
 *
 * Pure PHP realisation, but can use {@link http://php.net/gmp GMP}
 * and {@link http://php.net/math core PHP} functions for speed improvement.
 *
 * @link http://en.wikipedia.org/wiki/Numeral_system
 * @link http://en.wikipedia.org/wiki/Positional_notation
 *
 * @uses extension-gmp For speedup with basic 2-62 bases
 * @uses BigNumber For fractions conversion (currently not finished)
 *
 * @project Anizoptera CMF
 * @package system.math
 */
abstract class NumeralSystem
{
	//region Bundled custom numeral systems (examples)

	/**<commit_msg>[Anizoptera] Remove unneeded import<commit_after><?php

namespace Aza\Components\Math;
use Aza\Components\Math\Exceptions\Exception;

/**
 * Universal convertor between positional numeral systems.
 * Also supports huge integers.
 *
 * Supported bases from 2 to 62 inclusive, and custom numeral systems
 * (see {@link NumeralSystem::setSystem setSystem} method).
 *
 * Pure PHP realisation, but can use {@link http://php.net/gmp GMP}
 * and {@link http://php.net/math core PHP} functions for speed improvement.
 *
 * @link http://en.wikipedia.org/wiki/Numeral_system
 * @link http://en.wikipedia.org/wiki/Positional_notation
 *
 * @uses extension-gmp For speedup with basic 2-62 bases
 * @uses BigNumber For fractions conversion (currently not finished)
 *
 * @project Anizoptera CMF
 * @package system.math
 */
abstract class NumeralSystem
{
	//region Bundled custom numeral systems (examples)

	/**
{'fraction_non_alphanumeric': 0.11049723756906077, 'fraction_numerical': 0.0066298342541436465, 'mean_word_length': 4.373887240356083, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6135197', 'n_tokens_mistral': 553, 'n_tokens_neox': 519, 'n_words': 171}