<commit_before><?php

/**
 * This file is part of tenside/core.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * This project is provided in good faith and hope to be usable by anyone.
 *
 * @package    tenside/core
 * @author     <NAME> <<EMAIL>>
 * @copyright  2015 <NAME> <<EMAIL>>
 * @license    https://github.com/tenside/core/blob/master/LICENSE MIT
 * @link       https://github.com/tenside/core
 * @filesource
 */

namespace Tenside\Core\Task\Composer;

use Symfony\Component\Console\Input\ArrayInput;

/**
 * This task provides the basic framework for building tasks that perform composer commands.
 */
abstract class AbstractPackageManipulatingTask extends AbstractComposerCommandTask
{
    /**
     * The package to install.
     */
    const SETTING_PACKAGE = 'package';

    /**
     * The home path of tenside.
     */
    const SETTING_HOME = 'home';

    /**
     * The no update flag.
     */
    const SETTING_NO_UPDATE = 'no-update';

    /**
     * Retrieve the names of the packages to upgrade or null if none.
     *
     * @return array
     */
    public function getPackage()
    {
        return (array) $this->file->get(self::SETTING_PACKAGE);
    }

    /**
     * Retrieve the home path of tenside.
     *
     * @return string
     */
    public function getHome()<commit_msg>Fix comment<commit_after><?php

/**
 * This file is part of tenside/core.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * This project is provided in good faith and hope to be usable by anyone.
 *
 * @package    tenside/core
 * @author     <NAME> <<EMAIL>>
 * @copyright  2015 <NAME> <<EMAIL>>
 * @license    https://github.com/tenside/core/blob/master/LICENSE MIT
 * @link       https://github.com/tenside/core
 * @filesource
 */

namespace Tenside\Core\Task\Composer;

use Symfony\Component\Console\Input\ArrayInput;

/**
 * This task provides the basic framework for building tasks that perform composer commands.
 */
abstract class AbstractPackageManipulatingTask extends AbstractComposerCommandTask
{
    /**
     * The package to install.
     */
    const SETTING_PACKAGE = 'package';

    /**
     * The home path of tenside.
     */
    const SETTING_HOME = 'home';

    /**
     * The no update flag.
     */
    const SETTING_NO_UPDATE = 'no-update';

    /**
     * Retrieve the names of the packages to manipulate.
     *
     * @return array
     */
    public function getPackage()
    {
        return (array) $this->file->get(self::SETTING_PACKAGE);
    }

    /**
     * Retrieve the home path of tenside.
     *
     * @return string
     */
    public function getHome()
{'fraction_non_alphanumeric': 0.11398230088495576, 'fraction_numerical': 0.002831858407079646, 'mean_word_length': 2.595419847328244, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 4, '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': '4225378', 'n_tokens_mistral': 843, 'n_tokens_neox': 831, 'n_words': 262}