<commit_before><?php

namespace N98\Magento\Command\Script\Repository;

use N98\Util\OperatingSystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;

class ScriptLoader
{
    /**
     * @var array
     */
    protected $_scriptFiles = array();

    /**
     * @var string
     */
    protected $_homeScriptFolder = '';

    /**
     * @var string
     */
    protected $_magentoRootFolder = '';

    /**
     * @var array
     */
    protected $_scriptFolders = array();

    /**
     * @param array  $scriptFolders
     * @param string $magentoRootFolder
     */
    public function __construct(array $scriptFolders, $magentoRootFolder = null)
    {
        $this->_magentoRootFolder = $magentoRootFolder;
        if (OperatingSystem::isWindows()) {
            $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/n98-magerun/scripts';
        } else {
            $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/.n98-magerun/scripts';
        }

        $this->_scriptFolders = $scriptFolders;
        $this->_scriptFolders[] = $this->_homeScriptFolder;
        foreach ($this->_scriptFolders as $key => $scriptFolder) {<commit_msg>[TASK] Fixed base script folders.<commit_after><?php

namespace N98\Magento\Command\Script\Repository;

use N98\Util\OperatingSystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;

class ScriptLoader
{
    /**
     * @var array
     */
    protected $_scriptFiles = array();

    /**
     * @var string
     */
    protected $_homeScriptFolder = '';

    /**
     * @var string
     */
    protected $_magentoRootFolder = '';

    /**
     * @var array
     */
    protected $_scriptFolders = array();

    /**
     * @param array  $scriptFolders
     * @param string $magentoRootFolder
     */
    public function __construct(array $scriptFolders, $magentoRootFolder = null)
    {
        $this->_magentoRootFolder = $magentoRootFolder;
        if (OperatingSystem::isWindows()) {
            $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/n98-magerun2/scripts';
        } else {
            $this->_homeScriptFolder = OperatingSystem::getHomeDir() . '/.n98-magerun2/scripts';
        }

        $this->_scriptFolders = $scriptFolders;
        $this->_scriptFolders[] = $this->_homeScriptFolder;
        foreach ($this->_scriptFolders as $key => $scriptFolder) {
{'fraction_non_alphanumeric': 0.13552960800667221, 'fraction_numerical': 0.007506255212677231, 'mean_word_length': 2.668195718654434, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '12349', 'n_tokens_mistral': 740, 'n_tokens_neox': 732, 'n_words': 126}