<commit_before>spawn = require('child_process').spawn

module.exports = (input) ->
  spawn "python", ["ephemeris.py", "#{JSON.stringify(input)}"]
                , { cwd: __dirname }
<commit_msg>a comment about the future of ephemeris / implementations<commit_after>spawn = require('child_process').spawn

# The implementation method isn't checked yet.  So far, python is the only one.
# A node implementation may be added straight here in this module.
# The method could also become part of the input / configuration.
module.exports = (input, method = "py") ->
  spawn "python", ["ephemeris.py", "#{JSON.stringify(input)}"]
                , { cwd: __dirname }

{'fraction_non_alphanumeric': 0.13141993957703926, 'fraction_numerical': 0.0, 'mean_word_length': 3.8394160583941606, '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': '1029035', 'n_tokens_mistral': 195, 'n_tokens_neox': 189, 'n_words': 63}