<commit_before>Topaz
=====

An implementation of the Ruby programming language, in Python, on top of PyPy's
VM toolchain.

You'll need to have `RPly`_ installed.

.. _`RPly`: https://github.com/alex/rply

To run the tests::

    $ py.test

To translate, first make sure the PyPy soruce is on your ``PYTHONPATH``, then
run::

    $ /path/to/pypy/src/pypy/translator/goal/translate.py -Ojit targetrupypy.py

This will compile Topaz with a JIT, it'll take 5-10 minutes.

To run Topaz directly on top of Python you can do::

    $ python -m rupypy /path/to/file.rb

<commit_msg>slightly more accurate readme<commit_after>Topaz
=====

An implementation of the Ruby programming language, in Python, using the
RPython VM toolchain.

You'll need to have `RPly`_ installed.

.. _`RPly`: https://github.com/alex/rply

To run the tests::

    $ py.test

To translate, first make sure the PyPy soruce is on your ``PYTHONPATH``, then
run::

    $ /path/to/pypy/src/pypy/translator/goal/translate.py -Ojit targetrupypy.py

This will compile Topaz with a JIT, it'll take 5-10 minutes.

To run Topaz directly on top of Python you can do::

    $ python -m rupypy /path/to/file.rb


{'fraction_non_alphanumeric': 0.1072961373390558, 'fraction_numerical': 0.005150214592274678, 'mean_word_length': 3.501930501930502, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5640170', 'n_tokens_mistral': 427, 'n_tokens_neox': 400, 'n_words': 146}