<commit_before>"""Use to run examples using pymunk located one folder level up.
Useful if you have the whole pymunk source tree and want to run the examples 
in a quick and dirty way.

For example, to run the breakout demo::

    > cd examples
    > python run.py breakout.py
"""

import sys
sys.path.insert(0,'..')

if len(sys.argv) > 1:
    name = sys.argv[1]
    sys.argv = sys.argv[1:]
    del sys
    exec(compile(open(name).read(), name, 'exec'))
    
else:
    print(__doc__)<commit_msg>small change in run.py to make it easier to use with pyglet (probably only useful to me, but shouldnt create any disadvantages)<commit_after>"""Use to run examples using pymunk located one folder level up.
Useful if you have the whole pymunk source tree and want to run the examples 
in a quick and dirty way. (a poor man's virtualenv if you like)

For example, to run the breakout demo::

    > cd examples
    > python run.py breakout.py
"""

import sys
sys.path.insert(1,'..')
sys.path.insert(1,'../../../pyglet')

if len(sys.argv) > 1:
    name = sys.argv[1]
    sys.argv = sys.argv[1:]
    del sys
    
    execfile(name)
    
else:
    print(__doc__)
{'fraction_non_alphanumeric': 0.11130434782608696, 'fraction_numerical': 0.00782608695652174, 'mean_word_length': 3.1402877697841727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '7508315', 'n_tokens_mistral': 382, 'n_tokens_neox': 370, 'n_words': 148}