<commit_before>global.getInterface = function (superclass) {
    let mixin = () => class extends superclass {};
    Object.setPrototypeOf(mixin, superclass.prototype);
    mixin[Symbol.hasInstance] = (o) => {
        let mixins = o.constructor['_applied_mixins'];
        return mixins.indexOf(mixin) != -1;
    };

    return mixin;
};

global.mix = function (superclass, ...interfaces) {
    superclass = superclass || class {};
    superclass = interfaces.reduce((a, b) => b(a), superclass);

    let mixed = (s => class extends s {})(superclass);
    Object.defineProperty(mixed, '_applied_mixins', {
        value: [superclass, ...interfaces],<commit_msg>fixed instanceof check for undefined values<commit_after>global.getInterface = function (superclass) {
    let mixin = () => class extends superclass {};
    Object.setPrototypeOf(mixin, superclass.prototype);
    mixin[Symbol.hasInstance] = (o) => {
        let mixins = o.constructor['_applied_mixins'];
        if (! mixins) {
            return false;
        }

        return mixins.indexOf(mixin) != -1;
    };

    return mixin;
};

global.mix = function (superclass, ...interfaces) {
    superclass = superclass || class {};
    superclass = interfaces.reduce((a, b) => b(a), superclass);

    let mixed = (s => class extends s {})(superclass);
    Object.defineProperty(mixed, '_applied_mixins', {
        value: [superclass, ...interfaces],
{'fraction_non_alphanumeric': 0.15024805102763997, 'fraction_numerical': 0.001417434443656981, 'mean_word_length': 3.253012048192771, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3899583', 'n_tokens_mistral': 429, 'n_tokens_neox': 417, 'n_words': 96}