<commit_before>import {
    tests,
    testsObservable,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    SplitTest,
    initialize,
    UserConfig,
    shouldShowUI
} from './main';
import { UserAgentInfo } from './useragentinfo';
import { uiFactory } from './ui';

initialize();

const ui = uiFactory(
    testsObservable,
    reset,
    getCurrentTestVariation,
    getUserAgentInfo
);

function domReady(cb: () => void) {
    if (document.readyState !== 'loading') {
        return cb();
    }
    document.addEventListener('DOMContentLoaded', cb);
}

domReady(() => {
    setTimeout(async () => {
        if (await shouldShowUI()) {
            ui.show();
        }
    }, 0);
});

export {
    tests,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    ui,
    SplitTest
};

export default {
    tests,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    ui,
    SplitTest,
    initialize
};<commit_msg>fix: correctly export initialize function<commit_after>import {
    tests,
    testsObservable,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    SplitTest,
    initialize,
    UserConfig,
    shouldShowUI
} from './main';
import { UserAgentInfo } from './useragentinfo';
import { uiFactory } from './ui';

initialize();

const ui = uiFactory(
    testsObservable,
    reset,
    getCurrentTestVariation,
    getUserAgentInfo
);

function domReady(cb: () => void) {
    if (document.readyState !== 'loading') {
        return cb();
    }
    document.addEventListener('DOMContentLoaded', cb);
}

domReady(() => {
    setTimeout(async () => {
        if (await shouldShowUI()) {
            ui.show();
        }
    }, 0);
});

export {
    tests,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    ui,
    SplitTest,
    initialize
};

export default {
    tests,
    config,
    getUserAgentInfo,
    getTest,
    create,
    getCurrentTestVariation,
    setCurrentTestVariation,
    reset,
    ui,
    SplitTest,
    initialize
};
{'fraction_non_alphanumeric': 0.11082693947144075, 'fraction_numerical': 0.0008525149190110827, 'mean_word_length': 2.5777439024390243, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5059520', 'n_tokens_mistral': 730, 'n_tokens_neox': 725, 'n_words': 151}