<commit_before><?php

declare(strict_types=1);

namespace Rector\Polyfill\FeatureSupport;

use Rector\Php\PhpVersionProvider;

final class FunctionSupportResolver
{
    /**
     * @var string[][]
     */
    private const FUNCTIONS_BY_VERSION = [
        '5.6' => ['session_abort'],
    ];

    /**
     * @var PhpVersionProvider
     */
    private $phpVersionProvider;

    public function __construct(PhpVersionProvider $phpVersionProvider)
    {
        $this->phpVersionProvider = $phpVersionProvider;
    }<commit_msg>Added more functions to FunctionSupportResolver<commit_after><?php

declare(strict_types=1);

namespace Rector\Polyfill\FeatureSupport;

use Rector\Php\PhpVersionProvider;

final class FunctionSupportResolver
{
    /**
     * @var string[][]
     */
    private const FUNCTIONS_BY_VERSION = [
        '5.6' => ['session_abort'],
        '7.0' => ['random_int', 'random_bytes'],
    ];

    /**
     * @var PhpVersionProvider
     */
    private $phpVersionProvider;

    public function __construct(PhpVersionProvider $phpVersionProvider)
    {
        $this->phpVersionProvider = $phpVersionProvider;
    }
{'fraction_non_alphanumeric': 0.11936339522546419, 'fraction_numerical': 0.007073386383731211, 'mean_word_length': 3.287878787878788, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '1791873', 'n_tokens_mistral': 343, 'n_tokens_neox': 337, 'n_words': 59}