<commit_before>/*
**  ComponentJS -- Component System for JavaScript <http://componentjs.com>
**  Copyright (c) 2009-2012 <NAME> <http://engelschall.com>
**
**  This Source Code Form is subject to the terms of the Mozilla Public
**  License, v. 2.0. If a copy of the MPL was not distributed with this
**  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*  singleton component: root of the tree */
_cs.root = new _cs.comp("<root>", null, []);

/*  singleton component: special return value on lookups */
_cs.none = new _cs.comp("<none>", null, []);
<commit_msg>provide error catching for usages on the none component<commit_after>/*
**  ComponentJS -- Component System for JavaScript <http://componentjs.com>
**  Copyright (c) 2009-2012 <NAME> <http://engelschall.com>
**
**  This Source Code Form is subject to the terms of the Mozilla Public
**  License, v. 2.0. If a copy of the MPL was not distributed with this
**  file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/

/*  singleton component: root of the tree */
_cs.root = new _cs.comp("<root>", null, []);

/*  singleton component: special return value on lookups */
_cs.none = new _cs.comp("<none>", null, []);

/*  reasonable error catching for _cs.none usage  */
var methods = [
    "create", "destroy", "detach", "exists", "guard", "hook", "invoke",
    "latch", "link", "listen", "listening", "model", "notify", "observe",
    "plug", "property", "publish", "register", "service_enabled", "socket",
    "spool", "spooled", "state", "state_compare", "store", "subscribe",
    "subscribers", "touch", "unlatch", "unlisten", "unobserve", "unplug",
    "unregister", "unspool", "unsubscribe", "value", "values"
];
_cs.foreach(methods, function (method) {
    _cs.none[method] = function () {
        throw _cs.exception(method, "no such component");
    };
});

{'fraction_non_alphanumeric': 0.17608695652173914, 'fraction_numerical': 0.013043478260869565, 'mean_word_length': 4.002717391304348, 'pattern_counts': {'":': 0, '<': 13, '<?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': '6516227', 'n_tokens_mistral': 606, 'n_tokens_neox': 583, 'n_words': 197}