<commit_before><?php

namespace DevGroup\DeferredTasks\helpers;

use Symfony\Component\Process\ProcessBuilder;
use Yii;

/**
 * Class DeferredHelper is the main helper class for deferred tasks module.
 *
 * @package DevGroup\DeferredTasks\helpers
 */
class DeferredHelper
{
    /**
     * Performs immediate task start - fire and forget.
     * Used in web requests to start task in background.
     * @param integer $taskId
     */
    public static function runImmediateTask($taskId)
    {
        $command = new ProcessBuilder();
        $command->setWorkingDirectory(Yii::getAlias('@app'));
        $command->setPrefix(PHP_BINARY);<commit_msg>tmp fix ext-manager<commit_after><?php

namespace DevGroup\DeferredTasks\helpers;

use Symfony\Component\Process\ProcessBuilder;
use Yii;

/**
 * Class DeferredHelper is the main helper class for deferred tasks module.
 *
 * @package DevGroup\DeferredTasks\helpers
 */
class DeferredHelper
{
    /**
     * Performs immediate task start - fire and forget.
     * Used in web requests to start task in background.
     * @param integer $taskId
     */
    public static function runImmediateTask($taskId)
    {
        $command = new ProcessBuilder();
        $command->setWorkingDirectory(Yii::getAlias('@app'));
        $command->setPrefix(PHP_BINDIR . '/php');
{'fraction_non_alphanumeric': 0.10618792971734148, 'fraction_numerical': 0.0, 'mean_word_length': 3.45578231292517, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3285745', 'n_tokens_mistral': 368, 'n_tokens_neox': 370, 'n_words': 102}