<commit_before>const selToWhere = sel => {
  if (/^\./.test(sel)) {
    return {attributes: {class: sel.substring(1)}};
  }
  else if (/^#/.test(sel)) {
    return {attributes: {id: sel.substring(1)}};
  }
  else if (/^\[/.test(sel)) {
    return {attributes: {[sel.substring(1, sel.length - 1)]: null}};
  }
  
  return {nodeName: sel};
  
};

module.exports = {
  selToWhere,
};<commit_msg>fixup! Only allow JSX in .test.js<commit_after>const selToWhere = sel => {
  if (/^\./.test(sel)) {
    return {attributes: {class: sel.substring(1)}};
  }
  else if (/^#/.test(sel)) {
    return {attributes: {id: sel.substring(1)}};
  }
  else if (/^\[/.test(sel)) {
    return {attributes: {[sel.substring(1, sel.length - 1)]: null}};
  }

  return {nodeName: sel};

};

module.exports = {
  selToWhere,
};
{'fraction_non_alphanumeric': 0.22625, 'fraction_numerical': 0.01, 'mean_word_length': 3.086734693877551, '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': '5353740', 'n_tokens_mistral': 316, 'n_tokens_neox': 306, 'n_words': 65}