<commit_before><?php

namespace Assistant\Module\Common\Controller;

use Assistant\Module\Common;
use Cocur\BackgroundProcess\BackgroundProcess;

class TaskController extends Common\Controller\AbstractController
{
    use Common\Extension\Traits\TargetPathService;

    public function calculateAudioData()
    {
        $pathname = $this->app->request()->post('pathname');

        // TODO: "/data" configa
        // TODO: "/collection" configa

        (new BackgroundProcess(
            sprintf('php /data/app/console.php track:calculate-audio-data -w "/collection/%s"', ltrim($pathname, '/'))
        ))->run();
    }

    public function clean()
    {
        $pathname = $this->app->request()->post('pathname');

        // TODO: "/data" configa
        // TODO: "/collection" configa

        (new BackgroundProcess(
            sprintf('php /data/app/console.php track:clean -r "/collection/%s"', ltrim($pathname, '/'))
        ))->run();
    }

    public function move()
    {
        $data = $this->app->request->post();<commit_msg>Removed incorrect use after browse module changes<commit_after><?php

namespace Assistant\Module\Common\Controller;

use Assistant\Module\Common;
use Cocur\BackgroundProcess\BackgroundProcess;

class TaskController extends Common\Controller\AbstractController
{
    public function calculateAudioData()
    {
        $pathname = $this->app->request()->post('pathname');

        // TODO: "/data" configa
        // TODO: "/collection" configa

        (new BackgroundProcess(
            sprintf('php /data/app/console.php track:calculate-audio-data -w "/collection/%s"', ltrim($pathname, '/'))
        ))->run();
    }

    public function clean()
    {
        $pathname = $this->app->request()->post('pathname');

        // TODO: "/data" configa
        // TODO: "/collection" configa

        (new BackgroundProcess(
            sprintf('php /data/app/console.php track:clean -r "/collection/%s"', ltrim($pathname, '/'))
        ))->run();
    }

    public function move()
    {
        $data = $this->app->request->post();
{'fraction_non_alphanumeric': 0.15911282545805208, 'fraction_numerical': 0.0, 'mean_word_length': 2.685612788632327, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2493309', 'n_tokens_mistral': 584, 'n_tokens_neox': 575, 'n_words': 119}