<commit_before>//   Copyright 2012 <NAME>
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.


(function () {
    // Modularize your applications with cement.js
    var cement = {},
        modules = {},
        moduleInitialisers = {}; // functions that create modules
    // all modules can dispatch events with base.dispatch("eventName") and listened to with module.on("eventname")  
    function addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers) {
        moduleBase.dispatch = function (eventName, data1, data2, data3, data4) {
            if (moduleEventHandlers[eventName]) {
                moduleEventHandlers[eventName](data1, data2, data3, data4);
            }
        };
        moduleExports.on = function (eventName, eventHandler) {
            moduleEventHandlers[eventName] = eventHandler;
        };
    }
    cement.define = function (moduleName, moduleInitialiser) {
        var moduleBase = {},
            moduleExports = {},
            moduleEventHandlers = {};
        moduleInitialisers[moduleName] = moduleInitialiser;
        addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers);
        moduleInitialiser(moduleBase, moduleExports);
        modules[moduleName] = moduleExports;
    };
    cement.createInstance = function (moduleName) {
        var moduleBase = {},
            moduleExports = {},
            moduleEventHandlers = {};
        addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers);
        moduleInitialisers[moduleName](moduleBase, moduleExports);
        return moduleExports;
    };
    cement.require = function (moduleName) {
        if (modules[moduleName]) {
            return modules[moduleName];
        } else {
            throw new Error("module : " + moduleName + " is not defined.\n ");
        }
    };
    window.cmt = window.cement = cement;
}());<commit_msg>testing develop branch<commit_after>//   Copyright 2012 <NAME>
//
//   Licensed under the Apache License, Version 2.0 (the "License");
//   you may not use this file except in compliance with the License.
//   You may obtain a copy of the License at
//
//       http://www.apache.org/licenses/LICENSE-2.0
//
//   Unless required by applicable law or agreed to in writing, software
//   distributed under the License is distributed on an "AS IS" BASIS,
//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//   See the License for the specific language governing permissions and
//   limitations under the License.


(function () {
    // Modularize your applications with cement.js
    var cement = {},
        modules = {},
        moduleInitialisers = {}; // functions that create modules
    // all modules can dispatch events with base.dispatch("eventName") and listened to with module.on("eventname")  
    function addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers) {
        moduleBase.dispatch = function (eventName, data1, data2, data3, data4) {
            if (moduleEventHandlers[eventName]) {
                moduleEventHandlers[eventName](data1, data2, data3, data4);
            }
        };
        moduleExports.on = function (eventName, eventHandler) {
            moduleEventHandlers[eventName] = eventHandler;
        };
    }
    cement.define = function (moduleName, moduleInitialiser) {
        var moduleBase = {},
            moduleExports = {},
            moduleEventHandlers = {};
        moduleInitialisers[moduleName] = moduleInitialiser;
        addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers);
        moduleInitialiser(moduleBase, moduleExports);
        modules[moduleName] = moduleExports;
    };
    cement.createInstance = function (moduleName) {
        var moduleBase = {},
            moduleExports = {},
            moduleEventHandlers = {};
        addDispatchAndOnMethods(moduleBase, moduleExports, moduleEventHandlers);
        moduleInitialisers[moduleName](moduleBase, moduleExports);
        return moduleExports;
    };
    cement.require = function (moduleName) {
        if (modules[moduleName]) {
            return modules[moduleName];
        } else {
            throw new Error("module : " + moduleName + " is not defined.\n ");
        }
    };
    // testing putting something on develop branch 
    window.cmt = window.cement = cement;
}());
{'fraction_non_alphanumeric': 0.09846153846153846, 'fraction_numerical': 0.006564102564102564, 'mean_word_length': 2.7079847908745247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6378247', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1237, 'n_words': 368}