<commit_before># pytracer

A simple ray tracer written in Python using NumPy and PIL

To run, just do
`$ python main.py`

Until command-line parsing is added, you'll have to specify which scene file to parse in `main.py`. The `write_image` function in `main.py` calls PIL's `Image.show()`, which may not work on all platforms, so you may have to add an output file path to get it to work.<commit_msg>Updated readme to include command-line parsing.<commit_after># pytracer

A simple ray tracer written in Python using NumPy and PIL

Try running `$ python main.py -h` for an explanation of the input parameters. Look at one of the `.scene` input files to see how scenes are specified.

If no output file is specified with the `-o` flag, the output will be displayed with PIL's `Image.show()` method, which by default will attempt to display the image using the command `display`. If that command is not available on your system, that call will fail, and you will get no output.
{'fraction_non_alphanumeric': 0.06461538461538462, 'fraction_numerical': 0.0, 'mean_word_length': 4.275675675675676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2419142', 'n_tokens_mistral': 266, 'n_tokens_neox': 257, 'n_words': 159}