<commit_before>import providers from './app/providers'
import renderApp from './app'

console.log('load content script');

const jobTitle = providers['104'].getJobTitile()
const companyName = providers['104'].getCompanyName()

const node = document.createElement('div')
const nodeId = `${jobTitle}Cla`

console.log(jobTitle,companyName);
node.id = nodeId
document.body.appendChild(node)

renderApp(nodeId)<commit_msg>feat(content script): Add get provider name<commit_after>import providers from './app/providers'
import renderApp from './app'

console.log('load content script');

const getProviderName = () => {
    const matcher = location.host.match(/([^w\.]+)\.com/)
    if (matcher) {
        return matcher[1]
    }
}

const providerName = getProviderName()
console.log('providerName:', providerName);

const jobTitle = providers[providerName].getJobTitile()
const companyName = providers[providerName].getCompanyName()

const node = document.createElement('div')
const nodeId = `${jobTitle}Cla`

console.log(jobTitle,companyName);
node.id = nodeId
document.body.appendChild(node)

renderApp(nodeId)
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.006329113924050633, 'mean_word_length': 5.91875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6396628', 'n_tokens_mistral': 336, 'n_tokens_neox': 330, 'n_words': 74}