<commit_before><?php

namespace Buycraft\PocketMine\Util;


use Buycraft\PocketMine\BuycraftPlugin;
use pocketmine\scheduler\PluginTask;
use pocketmine\Server;

class RunAsyncTask extends PluginTask
{
    private $asyncTask;

    /**
     * RunAsyncTask constructor.
     * @param $plugin
     * @param $asyncTask
     */
    public function __construct(BuycraftPlugin $plugin, $asyncTask)
    {
        parent::__construct($plugin);
        $this->asyncTask = $asyncTask;
    }

    /**
     * Actions to execute when run
     *
     * @param $currentTick
     *
     * @return void
     */
    public function onRun($currentTick)
    {
        Server::getInstance()->getScheduler()->scheduleAsyncTask($this->asyncTask);
    }
}<commit_msg>Update RunAsyncTask.php<commit_after><?php

namespace Buycraft\PocketMine\Util;


use Buycraft\PocketMine\BuycraftPlugin;
use pocketmine\scheduler\PluginTask;
use pocketmine\Server;

class RunAsyncTask extends PluginTask
{
    private $asyncTask;

    /**
     * RunAsyncTask constructor.
     * @param $plugin
     * @param $asyncTask
     */
    public function __construct(BuycraftPlugin $plugin, $asyncTask)
    {
        parent::__construct($plugin);
        $this->asyncTask = $asyncTask;
    }

    /**
     * Actions to execute when run
     *
     * @param $currentTick
     *
     * @return void
     */
    public function onRun(int$currentTick)
    {
        Server::getInstance()->getScheduler()->scheduleAsyncTask($this->asyncTask);
    }
}
{'fraction_non_alphanumeric': 0.1157190635451505, 'fraction_numerical': 0.0, 'mean_word_length': 2.8656330749354004, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '7650723', 'n_tokens_mistral': 456, 'n_tokens_neox': 442, 'n_words': 85}