<commit_before><?php

/*
 * Box plugin for HiDev
 *
 * @link      https://github.com/hiqdev/hidev-box
 * @package   hidev-box
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
 */

namespace hidev\box\controllers;

/**
 * Goal for box.json config file.
 */
class BoxJsonController extends \hidev\controllers\FileController
{
    protected $_file = 'box.json';
}<commit_msg>changed actionSave to save only items to fix conflict with `chown`<commit_after><?php

/*
 * Box plugin for HiDev
 *
 * @link      https://github.com/hiqdev/hidev-box
 * @package   hidev-box
 * @license   BSD-3-Clause
 * @copyright Copyright (c) 2016, HiQDev (http://hiqdev.com/)
 */

namespace hidev\box\controllers;

use hidev\helpers\Helper;

/**
 * Goal for box.json config file.
 */
class BoxJsonController extends \hidev\controllers\FileController
{
    protected $_file = 'box.json';

    public function actionSave()
    {
        $this->_items = Helper::uniqueConfig($this->_items);
        $this->getFile()->save($this->getItems());
        return 0;
    }

}
{'fraction_non_alphanumeric': 0.14708603145235893, 'fraction_numerical': 0.010175763182238668, 'mean_word_length': 3.193798449612403, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4424831', 'n_tokens_mistral': 366, 'n_tokens_neox': 359, 'n_words': 82}