<commit_before>const getAssetPath = () => {
  // get an element that references assets
  const el = document.querySelector('[src*="assets/"]')

  // get the prefix of the asset path
  if (el) {
    const src = el.getAttribute('src')
    const prefix = src.substr(0, src.indexOf('assets/'))
    return prefix;
  }

  return undefined;
}

// store orginal baseUrl
const originalBaseUrl = global.baseUrl;

// set the baseUrl for svgstore
global.baseUrl = getAssetPath();
<commit_msg>make asset path check more specific<commit_after>const getAssetPath = () => {
  // get an element that references assets
  const el = document.querySelector('[src*="assets/scripts.js"]')

  // get the prefix of the asset path
  if (el) {
    const src = el.getAttribute('src')
    const prefix = src.substr(0, src.indexOf('assets/scripts.js'))
    return prefix;
  }

  return undefined;
}

// store orginal baseUrl
const originalBaseUrl = global.baseUrl;

// set the baseUrl for svgstore
global.baseUrl = getAssetPath();

{'fraction_non_alphanumeric': 0.12574850299401197, 'fraction_numerical': 0.001996007984031936, 'mean_word_length': 3.6435185185185186, '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': '3800390', 'n_tokens_mistral': 304, 'n_tokens_neox': 303, 'n_words': 93}