<commit_before><commit_msg>Adding moduly interface<commit_after><?php namespace Arcanedev\Moduly\Contracts;

use Arcanedev\Moduly\Bases\Collection;
use Arcanedev\Moduly\Entities\ModulesCollection;

/**
 * Interface ModulyInterface
 * @package Arcanedev\Moduly\Contracts
 */
interface ModulyInterface
{
    /* ------------------------------------------------------------------------------------------------
     |  Main Functions
     | ------------------------------------------------------------------------------------------------
     */
    /**
     * Register all modules
     */
    public function register();

    /**
     * Get all modules
     *
     * @return ModulesCollection
     */
    public function all();

    /**
     * Get all module slugs
     *
     * @return array
     */
    public function slugs();

    /**
     * Get modules based on where clause.
     *
     * @param  string  $key
     * @param  mixed   $value
     *
     * @return Collection
     */
    public function where($key, $value);

    /**
     * Check if the given module exists.
     *
     * @param  string  $name
     *
     * @return bool
     */
    public function exists($name);

    /**
     * Returns count of all modules.
     *
     * @return int
     */
    public function count();

    /**
     * Gets all enabled modules.
     *
     * @return ModulesCollection
     */
    public function enabled();

    /**
     * Gets all disabled modules.
     *
     * @return ModulesCollection
     */
    public function disabled();
}
{'fraction_non_alphanumeric': 0.22294654498044328, 'fraction_numerical': 0.0, 'mean_word_length': 1.3257575757575757, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '5916658', 'n_tokens_mistral': 398, 'n_tokens_neox': 390, 'n_words': 100}