<commit_before><?php
/**
 * Created by PhpStorm.
 * User: Anders
 * Date: 31.10.2016
 * Time: 21.22
 */



namespace StackGuru\CoreLogic;
use \Discord\Discord;
use \Discord\WebSockets\Event;


class Bot extends Database
{
    private $discord            = \Discord\Discord::class;

    private $callbacks = [
        // string "callback_name" => [callable, callable, ... ],
    ];

    private $commands = [
        // string "command_name" => [boolean sudo, string class, string description],
    ];

    /**
     * Bot constructor.
     *
     * @param array $options = []
     * @param bool $shutup
     */
    function __construct (array $options = [], bool $shutup = null)
    {
        /*
         * Used for testing the bot methods
         */
        if ($shutup !== null && $shutup === true) {
            return;
        }

        /*
         * Verify parameter to have required keys
         */
        $options = Utils\ResolveOptions::verify($options, ["discord", "commands", "database"]);
<commit_msg>Update Bot.php<commit_after><?php
/**
 * Created by PhpStorm.
 * User: Anders
 * Date: 31.10.2016
 * Time: 21.22
 */



namespace StackGuru\CoreLogic;
use \Discord\Discord;
use \Discord\WebSockets\Event;


class Bot extends Database
{
    private $discord    = \Discord\Discord::class;

    private $callbacks  = [
        // string "callback_name"   => [callable, callable, ... ],
    ];

    private $commands   = [
        // string "command_name"    => [
        //      string "command_name"       => [boolean sudo, string class, string description],
        //      string "sub_command_name"   => [boolean sudo, string class, string description],
        // ],
    ];

    /**
     * Bot constructor.
     *
     * @param array $options = []
     * @param bool $shutup
     */
    function __construct (array $options = [], bool $shutup = null)
    {
        /*
         * Used for testing the bot methods
         */
        if ($shutup !== null && $shutup === true) {
            return;
        }

        /*
         * Verify parameter to have required keys
         */
        $options = Utils\ResolveOptions::verify($options, ["discord", "commands", "database"]);

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.010953902327704245, 'mean_word_length': 1.962162162162162, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '7210091', 'n_tokens_mistral': 682, 'n_tokens_neox': 644, 'n_words': 165}