<commit_before>(function (root, factory) {
    if (typeof define === 'function' && define.amd) define(['exports'], factory);
    else if (typeof exports === 'object') factory(exports);
    else factory(root.Inverse = {});
})(this, function (exports) {
    'use strict';
    
    var Inverse = function() {
        this._boundCallbacks = {};
        this._singletonCallbacks = {};
        this._instantiatedSingletons = {};
        this._registeredObjects = {};
    };
    
    var proto = Inverse.prototype;
    
    proto.make = function(name) {
        if (this._registeredObjects.hasOwnProperty(name)) {
            return this._registeredObjects[name];
        }
        
        if (this._singletonCallbacks.hasOwnProperty(name)) {
            if (!this._instantiatedSingletons.hasOwnProperty(name)) {
                this._instantiatedSingletons[name] = this._singletonCallbacks[name](this);
            }
            
            return this._instantiatedSingletons[name];
        }
        
        if (this._boundCallbacks.hasOwnProperty(name)) {
            return this._boundCallbacks[name](this);
        }
        
        return null;
    };
    
    proto.bind = function(name, callback) {
        this._boundCallbacks[name] = callback;
    };
    
    proto.singleton = function(name, callback) {
        this._singletonCallbacks[name] = callback;
    };
    
    proto.register = function(name, object) {
        this._registeredObjects[name] = object;
    };
});<commit_msg>Use the correct UMD pattern<commit_after>(function (root, factory) {
    if (typeof define === 'function' && define.amd) define([], factory);
    else if (typeof exports === 'object') module.exports = factory();
    else root.Inverse = factory();
})(this, function () {
    'use strict';
    
    var Inverse = function() {
        this._boundCallbacks = {};
        this._singletonCallbacks = {};
        this._instantiatedSingletons = {};
        this._registeredObjects = {};
    };
    
    var proto = Inverse.prototype;
    
    proto.make = function(name) {
        if (this._registeredObjects.hasOwnProperty(name)) {
            return this._registeredObjects[name];
        }
        
        if (this._singletonCallbacks.hasOwnProperty(name)) {
            if (!this._instantiatedSingletons.hasOwnProperty(name)) {
                this._instantiatedSingletons[name] = this._singletonCallbacks[name](this);
            }
            
            return this._instantiatedSingletons[name];
        }
        
        if (this._boundCallbacks.hasOwnProperty(name)) {
            return this._boundCallbacks[name](this);
        }
        
        return null;
    };
    
    proto.bind = function(name, callback) {
        this._boundCallbacks[name] = callback;
    };
    
    proto.singleton = function(name, callback) {
        this._singletonCallbacks[name] = callback;
    };
    
    proto.register = function(name, object) {
        this._registeredObjects[name] = object;
    };
    
    return Inverse;
});
{'fraction_non_alphanumeric': 0.1250414593698176, 'fraction_numerical': 0.0, 'mean_word_length': 2.23952738990333, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6661287', 'n_tokens_mistral': 841, 'n_tokens_neox': 820, 'n_words': 143}