<commit_before><commit_msg>Working on an interface to abstract the use of bcmath or gmp or to even just use plain ol php for math functions<commit_after><?php

namespace Bitpay\Precisionmath;

interface StrategyInterface
{

    /**
     * Converts value to string
     *
     * @return string
     */
    public static function toString($a);

    /**
     * Converts value to integer, SHOULD only be used on small numbers
     * such as a modulus return value
     *
     * @return integer
     */
    public static function toInteger($a);

    /**
     * a > b = 1
     * a = b = 0
     * a < b = -1
     *
     * @return integer
     */
    public static function compare($a, $b);

    /**
     * a / b
     *
     * @return mixed
     */
    public static function divide($a, $b);

    /**
     * a % b
     *
     * @return mixed
     */
    public static function modulus($a, $b);

    /**
     * Inverse Modulus
     *
     * @return mixed
     */
    public static function inverse($a, $b);

    /**
     * a * b
     *
     * @return mixed
     */
    public static function multiply($a, $b);

    /**
     * a + b
     *
     * @return mixed
     */
    public static function add($a, $b);

    /**
     * a - b
     *
     * @return mixed
     */
    public static function subtract($a, $b);
}
{'fraction_non_alphanumeric': 0.12202609363008442, 'fraction_numerical': 0.0023023791250959325, 'mean_word_length': 1.6558044806517311, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '3512541', 'n_tokens_mistral': 415, 'n_tokens_neox': 395, 'n_words': 130}