<commit_before><?php
declare(strict_types = 1);

namespace App\Services\Payments\Robokassa;

/**
 * Class Payment
 *
 * @author  D3lph1 <<EMAIL>>
 * @package App\Services\Payments\Robokassa
 */
class Payment
{
    /**
     * @var int
     */
    protected $number;

    /**
     * @var float
     */
    protected $amount;

    /**
     * @var string
     */
    protected $description;

    /**
     * @var string
     */
    protected $culture;

    /**
     * @var string
     */
    protected $currencyLabel;

    /**
     * @var string
     */
    protected $email;

    /**
     * @var array
     */
    protected $customParams = [];

    /**
     * Payment constructor.
     */
    public function __construct(int $number, float $amount)
    {
        $this->number = $number;
        $this->amount = $amount;
    }

    public function getNumber(): int
    {
        return $this->number;
    }

    public function getAmount(): float
    {
        return $this->amount;
    }

    public function getDescription(): ?string
    {
        return $this->description;
    }

    public function setDescription(string $description): self
    {
        $this->description = $description;

        return $this;
    }

    public function getCulture(): ?string
    {
        return $this->culture;
    }

    public function setCulture(string $culture): self
    {<commit_msg>Bug fix.<commit_after><?php
declare(strict_types = 1);

namespace App\Services\Payments\Robokassa;

/**
 * Class Payment
 *
 * @author  D3lph1 <<EMAIL>>
 * @package App\Services\Payments\Robokassa
 */
class Payment
{
    /**
     * @var int
     */
    protected $number;

    /**
     * @var float
     */
    protected $amount;

    /**
     * @var string
     */
    protected $description;

    /**
     * @var string
     */
    protected $culture;

    /**
     * @var string
     */
    protected $currencyLabel;

    /**
     * @var string
     */
    protected $email;

    /**
     * @var array
     */
    protected $customParams = [];

    /**
     * Payment constructor.
     */
    public function __construct(int $number, float $amount)
    {
        $this->number = $number;
        // Format as it requires robokassa.
        $this->amount = number_format($amount, 2, '.', '');
    }

    public function getNumber(): int
    {
        return $this->number;
    }

    /**
     * @return string Formatted amount string.
     */
    public function getAmount(): string
    {
        return $this->amount;
    }

    public function getDescription(): ?string
    {
        return $this->description;
    }

    public function setDescription(string $description): self
    {
        $this->description = $description;

        return $this;
    }

    public function getCulture(): ?string
    {
        return $this->culture;
    }

    public function setCulture(string $culture): self
    {
{'fraction_non_alphanumeric': 0.13305613305613306, 'fraction_numerical': 0.0024255024255024253, 'mean_word_length': 1.8669314796425025, 'pattern_counts': {'":': 0, '<': 9, '<?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': '813530', 'n_tokens_mistral': 878, 'n_tokens_neox': 834, 'n_words': 196}