<commit_before>import * as lucid from '../../../Lucid/Lucid/src';
import polymorph from '../../../Polymorph/Polymorph/src/polymorph';
import sQuery from '../../../sQuery/sQuery/src/squery';

// import * as lucid from '../../../Lucid/Lucid/dist/lucid';
// import polymorph from '../../../Polymorph/Polymorph/dist/polymorph';
// import sQuery from '../../../sQuery/sQuery/dist/squery';

import deepextend from 'deep-extend';

if (typeof window !== 'undefined') {
    // Attach Synergy tools to global object
    Object.assign(window, {
        Synergy: window.Synergy || {},
        ...lucid
    });

    // Declare global Synergy properties
    Object.assign(Synergy, {
        styleParser: polymorph,
        config: (...params) => deepextend({}, ...params),
        theme: theme
    });
}

/**
 * Synergy Theme
 * 
 * @param {*} modules
 * @param {*} ui
 * @param {*} theme
 */
function theme(modules, ui, theme) {
    window.ui = Synergy.config(ui, theme);

    delete window.ui.modules;

    sQuery.init({
        modifierGlue: theme['modifier-glue'],
        componentGlue: theme['component-glue']
    });<commit_msg>updating readme<commit_after>import * as lucid from '../../../Lucid/Lucid/src';
import polymorph from '../../../Polymorph/Polymorph/src/polymorph';
import sQuery from '../../../sQuery/sQuery/src/squery';

// import * as lucid from '../../../Lucid/Lucid/dist/lucid';
// import polymorph from '../../../Polymorph/Polymorph/dist/polymorph';
// import sQuery from '../../../sQuery/sQuery/dist/squery';

// @TODO sQuery.init needs to be called upon importing this file...

import deepextend from 'deep-extend';

if (typeof window !== 'undefined') {
    // Attach Synergy tools to global object
    Object.assign(window, {
        Synergy: window.Synergy || {},
        ...lucid
    });

    // Declare global Synergy properties
    Object.assign(Synergy, {
        styleParser: polymorph,
        config: (...params) => deepextend({}, ...params),
        theme: theme
    });
}

/**
 * Synergy Theme
 * 
 * @param {*} modules
 * @param {*} globals
 * @param {*} theme
 */
function theme(modules, theme, globals) {
    window.ui = Synergy.config(globals, theme);

    delete window.ui.modules;

    sQuery.init({
        modifierGlue: theme['modifier-glue'],
        componentGlue: theme['component-glue']
    });
{'fraction_non_alphanumeric': 0.18943298969072164, 'fraction_numerical': 0.0, 'mean_word_length': 2.5181268882175227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3165799', 'n_tokens_mistral': 767, 'n_tokens_neox': 735, 'n_words': 169}