<commit_before><?php
/**
 * Mathematician
 *
 * @author      <NAME> (Rican7)
 * @copyright   2014 <NAME>
 * @license     MIT
 * @version     0.1.0
 */

namespace Mathematician\Integer\Adapter;

/**
 * AdapterInterface
 *
 * @package Mathematician\Integer\Adapter
 */
interface AdapterInterface
{

    /**
     * Create an instance of a number adapter
     *
     * @param mixed $number The actual numeric value
     * @param int $radix    The "base" of the number system represented by $number
     * @static
     * @access public
     * @return self
     */
    public static function factory($number, $radix = 0);

    /**
     * Get the raw value
     *
     * @access public
     * @return mixed
     */
    public function getRawValue();

    /**
     * Get a string representation of the number
     *
     * @param int $radix
     * @access public
     * @return string
     */
    public function toString($radix = 10);

    /**
     * Compare numbers
     *
     * @param mixed $number
     * @access public
     * @return int
     */
    public function compareTo($number);

    /**
     * Add numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function add($number);

    /**
     * Subtract numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function sub($number);

    /**
     * Multiply numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function mul($number);

    /**
     * Divide numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function div($number);

    /**
     * Raise to a power
     *
     * @param mixed $power
     * @access public
     * @return self
     */
    public function pow($power);

    /**
     * Raise to a power and reduce by a modulus
     *
     * @param mixed $power
     * @param mixed $modulus
     * @access public
     * @return self
     */
    public function powMod($power, $modulus);

    /**
     * Get the square route
     *
     * @access public
     * @return self
     */
    public function sqrt();

    /**
     * Get the modulus
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function mod($number);


    /**
     * Magic Methods
     */

    /**
     * Get a string representation of the number
     *
     * @access public
     * @return string
     */
    public function __toString();
}
<commit_msg>Changing the AdapterInterface factory signature<commit_after><?php
/**
 * Mathematician
 *
 * @author      <NAME> (Rican7)
 * @copyright   2014 <NAME>
 * @license     MIT
 * @version     0.1.0
 */

namespace Mathematician\Integer\Adapter;

/**
 * AdapterInterface
 *
 * @package Mathematician\Integer\Adapter
 */
interface AdapterInterface
{

    /**
     * Create an instance of a number adapter
     *
     * @param mixed $number The actual numeric value
     * @param int $radix    (Optional) The "base" of the number system represented by $number
     * @static
     * @access public
     * @return self
     */
    public static function factory($number, $radix = null);

    /**
     * Get the raw value
     *
     * @access public
     * @return mixed
     */
    public function getRawValue();

    /**
     * Get a string representation of the number
     *
     * @param int $radix
     * @access public
     * @return string
     */
    public function toString($radix = 10);

    /**
     * Compare numbers
     *
     * @param mixed $number
     * @access public
     * @return int
     */
    public function compareTo($number);

    /**
     * Add numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function add($number);

    /**
     * Subtract numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function sub($number);

    /**
     * Multiply numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function mul($number);

    /**
     * Divide numbers
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function div($number);

    /**
     * Raise to a power
     *
     * @param mixed $power
     * @access public
     * @return self
     */
    public function pow($power);

    /**
     * Raise to a power and reduce by a modulus
     *
     * @param mixed $power
     * @param mixed $modulus
     * @access public
     * @return self
     */
    public function powMod($power, $modulus);

    /**
     * Get the square route
     *
     * @access public
     * @return self
     */
    public function sqrt();

    /**
     * Get the modulus
     *
     * @param mixed $number
     * @access public
     * @return self
     */
    public function mod($number);


    /**
     * Magic Methods
     */

    /**
     * Get a string representation of the number
     *
     * @access public
     * @return string
     */
    public function __toString();
}

{'fraction_non_alphanumeric': 0.11363636363636363, 'fraction_numerical': 0.0041144200626959246, 'mean_word_length': 1.7505387931034482, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '975992', 'n_tokens_mistral': 1518, 'n_tokens_neox': 1460, 'n_words': 449}