<commit_before>#!/usr/bin/env node
const index = process.argv.indexOf(__filename)
if (index === -1 || index === process.argv.length - 1)
  throw new Error('this should only be used to load a jsx file')
require('import-jsx')(require('path').resolve(process.argv[index + 1]))
<commit_msg>make the jsx runner work with snapshots properly<commit_after>#!/usr/bin/env node
if (__filename !== process.argv[1] || process.argv.length < 3)
  throw new Error('this should only be used to load a jsx file')
process.argv.splice(1, 1)
require('import-jsx')(require('path').resolve(process.argv[1]))

{'fraction_non_alphanumeric': 0.16382252559726962, 'fraction_numerical': 0.013651877133105802, 'mean_word_length': 5.450549450549451, 'pattern_counts': {'":': 0, '<': 4, '<?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': '1482580', 'n_tokens_mistral': 192, 'n_tokens_neox': 185, 'n_words': 54}