<commit_before># Make editor executable from editor.sy
#
# This trivial bash script just wraps up the Spry code in a Nim executable
# with the code embedded as a Nim string. Below we pick the Spry modules
# we need, then we create an Interpreter, add the modules to it, and then
# eval the code.

rm -f editor.nim
cat << EOF > ./editor.nim

import spryvm, sprycore, sprylib, spryextend, spryos, spryio,
 spryoo, sprydebug, sprystring, sprymodules, spryreflect,
 spryblock, spryrawui<commit_msg>Updated the editor example to work on OSX again<commit_after># Make editor executable from editor.sy
#
# This trivial bash script just wraps up the Spry code in a Nim executable
# with the code embedded as a Nim string. Below we pick the Spry modules
# we need, then we create an Interpreter, add the modules to it, and then
# eval the code.

rm -f editor.nim
cat << EOF > ./editor.nim

import spryvm/spryvm, spryvm/sprycore, spryvm/sprylib, spryvm/spryextend,
 spryvm/spryos, spryvm/spryio, spryvm/spryoo, spryvm/sprydebug,
 spryvm/sprystring, spryvm/sprymodules, spryvm/spryreflect,
 spryvm/spryblock, spryvm/spryrawui
{'fraction_non_alphanumeric': 0.07450628366247755, 'fraction_numerical': 0.0, 'mean_word_length': 4.54726368159204, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1328328', 'n_tokens_mistral': 383, 'n_tokens_neox': 376, 'n_words': 149}