<commit_before><?php
/**
 * Created by <NAME> - 30/05/2017 02:54 PM.
 */

namespace Enea\Cashier;

use Enea\Cashier\Contracts\CalculatorContract;

/**
 * Class Calculator.
 *
 * @author <NAME> <<EMAIL>>
 */
class Calculator implements CalculatorContract
{
    /**
     * Default value.
     *
     * @var int
     * */
    const ZERO = 0;

    /**
     * Absolute value.
     *
     * @var int
     * */
    const ABSOLUTE = 100;

    /**
     * Base price for item.
     *
     * @var float
     */
    protected $basePrice;

    /**
     * iIem quantity.
     *
     * @var int
     */
    private $quantity;

    /**
     * Tax price percentage.
     *
     * @var int
     */
    private $impostPercentage;

    /**
     * Discount item percentage.
     *
     * @var int
     */
    private $discountPercentage;

    /**
     * Plan discount Percentage.
     *
     * @var int
     */
    private $planDiscountPercentage;

    /**
     * Total decimals.
     *
     * @var int
     * */
    private $decimals;

    /**
     * Calculator constructor.
     *
     * @param float $basePrice
     * @param int $quantity
     * @param int $impostPercentage
     * @param int $discountPercentage
     * @param int $planDiscountPercentage
     */
    public function __construct(
        $basePrice,
        $quantity,
        $impostPercentage = self::ZERO,
        $discountPercentage = self::ZERO,
        $planDiscountPercentage = self::ZERO
    ) {
        $this->basePrice = $basePrice;
        $this->quantity = $quantity;
        $this->impostPercentage = $impostPercentage;
        $this->discountPercentage = $discountPercentage;
        $this->planDiscountPercentage = $planDiscountPercentage;
    }

    /**
     * Get the instance as an array.
     *
     * @return array
     */
    public function toArray()<commit_msg>Remove unused variable<commit_after><?php
/**
 * Created by <NAME> - 30/05/2017 02:54 PM.
 */

namespace Enea\Cashier;

use Enea\Cashier\Contracts\CalculatorContract;

/**
 * Class Calculator.
 *
 * @author <NAME> <<EMAIL>>
 */
class Calculator implements CalculatorContract
{
    /**
     * Default value.
     *
     * @var int
     * */
    const ZERO = 0;

    /**
     * Absolute value.
     *
     * @var int
     * */
    const ABSOLUTE = 100;

    /**
     * Base price for item.
     *
     * @var float
     */
    protected $basePrice;

    /**
     * iIem quantity.
     *
     * @var int
     */
    private $quantity;

    /**
     * Tax price percentage.
     *
     * @var int
     */
    private $impostPercentage;

    /**
     * Discount item percentage.
     *
     * @var int
     */
    private $discountPercentage;

    /**
     * Plan discount Percentage.
     *
     * @var int
     */
    private $planDiscountPercentage;

    /**
     * Calculator constructor.
     *
     * @param float $basePrice
     * @param int $quantity
     * @param int $impostPercentage
     * @param int $discountPercentage
     * @param int $planDiscountPercentage
     */
    public function __construct(
        $basePrice,
        $quantity,
        $impostPercentage = self::ZERO,
        $discountPercentage = self::ZERO,
        $planDiscountPercentage = self::ZERO
    ) {
        $this->basePrice = $basePrice;
        $this->quantity = $quantity;
        $this->impostPercentage = $impostPercentage;
        $this->discountPercentage = $discountPercentage;
        $this->planDiscountPercentage = $planDiscountPercentage;
    }

    /**
     * Get the instance as an array.
     *
     * @return array
     */
    public function toArray()
{'fraction_non_alphanumeric': 0.12301255230125523, 'fraction_numerical': 0.00892608089260809, 'mean_word_length': 1.816967792615868, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, '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': '6843137', 'n_tokens_mistral': 1184, 'n_tokens_neox': 1118, 'n_words': 243}