<commit_before>import Path from './path.js';
import Style from './style.js';
import Binder from './binder.js';
import Loader from './loader.js';
import Observer from './observer.js';
import Extend from './utility/extend.js';

export default Object.freeze({

    async setup (options = {}) {
        const { components } = options;

        if (components) {
            return Promise.all(components.map(component => {
                if (typeof component === 'string') {
                    const path = Path.resolve(component); 
                    return Loader.load(path).then(load => {
                        return this.define(load.default);
                    });
                } else {
                    return this.define(component);
                }
            }));
        }

    },

    style (style, name) {

        style = style.replace(/\n|\r|\t/g, '');
        style = style.replace(/:host/g, name);
<commit_msg>removed path.resolve<commit_after>import Style from './style.js';
import Binder from './binder.js';
import Loader from './loader.js';
import Observer from './observer.js';
import Extend from './utility/extend.js';

export default Object.freeze({

    async setup (options = {}) {
        const { components } = options;

        if (components) {
            return Promise.all(components.map(component => {
                if (typeof component === 'string') {
                    return Loader.load(component).then(load => {
                        return this.define(load.default);
                    });
                } else {
                    return this.define(component);
                }
            }));
        }

    },

    style (style, name) {

        style = style.replace(/\n|\r|\t/g, '');
        style = style.replace(/:host/g, name);

{'fraction_non_alphanumeric': 0.14357262103505844, 'fraction_numerical': 0.0, 'mean_word_length': 1.6363636363636365, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2080609', 'n_tokens_mistral': 488, 'n_tokens_neox': 462, 'n_words': 112}