<commit_before><?php

/*
 * This file is part of Hashids.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Hashids;

/**
 * This is the math class.
 *
 * @author <NAME> <<EMAIL>>
 */
class Math
{
    /**
     * Add two arbitrary precision numbers.
     *
     * @param int $a
     * @param int $b
     *
     * @return int
     */
    public static function add($a, $b)
    {
        if (function_exists('gmp_add')) {
            return gmp_add($a, $b);
        }

        if (function_exists('bcadd')) {
            return bcadd($a, $b);
        }
    }

    /**
     * Divide two arbitrary precision numbers.
     *
     * @param int $a
     * @param int $b
     *
     * @return int
     */
    public static function div($a, $b)
    {
        if (function_exists('gmp_div_q')) {
            return gmp_div_q($a, $b);
        }

        if (function_exists('bcdiv')) {
            return bcdiv($a, $b);
        }
    }

    /**
     * Get string value of a variable.
     *
     * @param mixed $a
     *
     * @return string
     */
    public static function str($a)
    {
        if (function_exists('gmp_strval')) {
            return gmp_strval($a);
        }

        return strval($a);
    }
}<commit_msg>Remove string helper from math class<commit_after><?php

/*
 * This file is part of Hashids.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Hashids;

/**
 * This is the math class.
 *
 * @author <NAME> <<EMAIL>>
 */
class Math
{
    /**
     * Add two arbitrary precision numbers.
     *
     * @param int $a
     * @param int $b
     *
     * @return int
     */
    public static function add($a, $b)
    {
        if (function_exists('gmp_add')) {
            return gmp_add($a, $b);
        }

        if (function_exists('bcadd')) {
            return bcadd($a, $b);
        }
    }

    /**
     * Divide two arbitrary precision numbers.
     *
     * @param int $a
     * @param int $b
     *
     * @return int
     */
    public static function div($a, $b)
    {
        if (function_exists('gmp_div_q')) {
            return gmp_div_q($a, $b);
        }

        if (function_exists('bcdiv')) {
            return bcdiv($a, $b);
        }
    }
}
{'fraction_non_alphanumeric': 0.13766019016122363, 'fraction_numerical': 0.0, 'mean_word_length': 1.7160493827160495, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '50755', 'n_tokens_mistral': 788, 'n_tokens_neox': 780, 'n_words': 220}