<commit_before><?php

/*
 * Task runner, code generator and build tool for easier continuos integration
 *
 * @link      https://github.com/hiqdev/hidev
 * @package   hidev
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
 */

namespace hidev\controllers;

/**
 * Update goal.
 */
class UpdateController extends CommonController
{
    public function actionMake()
    {
        $this->makeUpdate();
        $this->module->runRequest('');
    }

    public function makeUpdate()
    {
        exec('cd .hidev;composer update --prefer-source');
    }
}
<commit_msg>improved calling composer in UpdateGoal<commit_after><?php

/*
 * Task runner, code generator and build tool for easier continuos integration
 *
 * @link      https://github.com/hiqdev/hidev
 * @package   hidev
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
 */

namespace hidev\controllers;

/**
 * Update goal.
 */
class UpdateController extends CommonController
{
    public function actionMake()
    {
        $this->makeUpdate();
        $this->module->runRequest('');
    }

    public function makeUpdate()
    {
        $this->passthru('composer', ['update', '-d', '.hidev', '--prefer-source', '--ansi']);
    }
}

{'fraction_non_alphanumeric': 0.14878621769772904, 'fraction_numerical': 0.014095536413469069, 'mean_word_length': 2.956656346749226, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, 'https://': 2, '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': '3852176', 'n_tokens_mistral': 408, 'n_tokens_neox': 394, 'n_words': 94}