<commit_before>#!/bin/bash


cd js

echo -e "goog.provide('exports');\n\n" > exports.js


echo "window['Napster'] = Napster;" >> exports.js

for namespace in ${@} ; do
	echo "window['${namespace}'] = ${namespace};" >> exports.js
	grep '^var .*;' "${namespace}.js" | grep -v '=' | while read var ; do var="${var:4:${#var}-5}" ; var="${var%;}" ; echo "window['${namespace}']['${var}'] = ${namespace}.${var};" >> exports.js ; done
done<commit_msg>Exports goog.require<commit_after>#!/bin/bash


cd js

echo -e "goog.provide('exports');\n\n" > exports.js


for namespace in ${@} ; do
	echo "goog.require('${namespace}');" >> exports.js
	echo "window['${namespace}'] = ${namespace};" >> exports.js
	grep '^var .*;' "${namespace}.js" | grep -v '=' | while read var ; do var="${var:4:${#var}-5}" ; var="${var%;}" ; echo "window['${namespace}']['${var}'] = ${namespace}.${var};" >> exports.js ; done
done

echo "window['Napster'] = Napster;" >> exports.js
{'fraction_non_alphanumeric': 0.27771911298838436, 'fraction_numerical': 0.004223864836325237, 'mean_word_length': 4.925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '587033', 'n_tokens_mistral': 355, 'n_tokens_neox': 339, 'n_words': 75}