<commit_before><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2017 Cross Solution (http://cross-solution.de)
 * @license   MIT
 * @author    @author <NAME> <<EMAIL>>
 */

namespace SimpleImport;

use Core\ModuleManager\ModuleConfigLoader;
use Zend\ModuleManager\Feature\DependencyIndicatorInterface;
use Zend\Console\Adapter\AdapterInterface as Console;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;

/**
 * Bootstrap module
 */
class Module implements DependencyIndicatorInterface, ConsoleUsageProviderInterface
{

    /**
     * Loads module specific configuration.
     *
     * @return array
     */
    public function getConfig()
    {
        return ModuleConfigLoader::load(__DIR__ . '/config');
    }

    /**
     * {@inheritDoc}
     * @see DependencyIndicatorInterface::getModuleDependencies()
     */
    public function getModuleDependencies()
    {
        return ['Jobs'];
    }
    
    /**
     * {@inheritDoc}
     * @see ConsoleUsageProviderInterface::getConsoleUsage()
     */
    public function getConsoleUsage(Console $console)
    {
        return [
            'Simple import operations',
            'simpleimport import [--limit]'  => 'Executes a data import for all registered crawlers',
            'simpleimport add-crawler --name --organization= --feed-uri [--runDelay] [--type] [--jobInitialState]'  => 'Adds a new import crawler',
            ['--limit=INT', 'Number of crawlers to check per run. Default 3. 0 means no limit'],
            ['--name=STRING', 'The name of a crawler'],
            ['--organization==STRING', 'The ID of an organization'],
            ['--feed-uri=STRING', 'The URI pointing to a data to import'],
            ['--runDelay=INT', 'The number of minutes the next import run will be proceeded again'],
            ['--type=STRING', 'The type of an import (e.g. job)'],
            ['--type=jobInitialState', 'The initial state of an imported job'],
        ];
    }
}<commit_msg>Fixed console usage typo #1<commit_after><?php
/**
 * YAWIK
 *
 * @filesource
 * @copyright (c) 2013 - 2017 Cross Solution (http://cross-solution.de)
 * @license   MIT
 * @author    @author <NAME> <<EMAIL>>
 */

namespace SimpleImport;

use Core\ModuleManager\ModuleConfigLoader;
use Zend\ModuleManager\Feature\DependencyIndicatorInterface;
use Zend\Console\Adapter\AdapterInterface as Console;
use Zend\ModuleManager\Feature\ConsoleUsageProviderInterface;

/**
 * Bootstrap module
 */
class Module implements DependencyIndicatorInterface, ConsoleUsageProviderInterface
{

    /**
     * Loads module specific configuration.
     *
     * @return array
     */
    public function getConfig()
    {
        return ModuleConfigLoader::load(__DIR__ . '/config');
    }

    /**
     * {@inheritDoc}
     * @see DependencyIndicatorInterface::getModuleDependencies()
     */
    public function getModuleDependencies()
    {
        return ['Jobs'];
    }
    
    /**
     * {@inheritDoc}
     * @see ConsoleUsageProviderInterface::getConsoleUsage()
     */
    public function getConsoleUsage(Console $console)
    {
        return [
            'Simple import operations',
            'simpleimport import [--limit]'  => 'Executes a data import for all registered crawlers',
            'simpleimport add-crawler --name --organization= --feed-uri [--runDelay] [--type] [--jobInitialState]'  => 'Adds a new import crawler',
            ['--limit=INT', 'Number of crawlers to check per run. Default 3. 0 means no limit'],
            ['--name=STRING', 'The name of a crawler'],
            ['--organization==STRING', 'The ID of an organization'],
            ['--feed-uri=STRING', 'The URI pointing to a data to import'],
            ['--runDelay=INT', 'The number of minutes the next import run will be proceeded again'],
            ['--type=STRING', 'The type of an import (e.g. job)'],
            ['--jobInitialState=STRING', 'The initial state of an imported job'],
        ];
    }
}
{'fraction_non_alphanumeric': 0.13112683173319858, 'fraction_numerical': 0.005305709954522486, 'mean_word_length': 2.7104029990627927, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '439877', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1055, 'n_words': 312}