<commit_before>class RootComponent extends HTMLElement {
    constructor(){
        super();
    }
    buildShadowRoot(id = '') {
        const templateSelector = `template${id !== '' ? `#${id}` : ``}`;
        const template = RootComponent.ownerDocuments[this.localName].querySelector(templateSelector);
        typeof ShadyCSS !== 'undefined' && ShadyCSS.prepareTemplate(template, this.localName);
        const shadowRoot = this.attachShadow({mode: `open`});
        
        shadowRoot.appendChild(template.content.cloneNode(true), true);
        return shadowRoot;<commit_msg>added the shadyCSS step: • Added a default connectedCallback, this is to run the buildShadyCSS step of the shady polyfill. • note, if a component uses the connectedCallback function it will need to call buildShadyCSS itself. This is the reason it was seperated into it's own function<commit_after>class RootComponent extends HTMLElement {
    constructor(){
        super();
    }
    connectedCallback() {
        this.buildShadyCSS();
    }
    buildShadyCSS(){
        typeof ShadyCSS !== 'undefined' && ShadyCSS.styleElement(this);
    }
    buildShadowRoot(id = '') {
        const templateSelector = `template${id !== '' ? `#${id}` : ``}`;
        const template = RootComponent.ownerDocuments[this.localName].querySelector(templateSelector);
        typeof ShadyCSS !== 'undefined' && ShadyCSS.prepareTemplate(template, this.localName);
        const shadowRoot = this.attachShadow({mode: `open`});

        shadowRoot.appendChild(template.content.cloneNode(true), true);
        return shadowRoot;
{'fraction_non_alphanumeric': 0.12161310649023314, 'fraction_numerical': 0.0, 'mean_word_length': 3.656891495601173, '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': '3308032', 'n_tokens_mistral': 414, 'n_tokens_neox': 415, 'n_words': 106}