<commit_before>intro_to_python_profiling
=========================

A very brief introduction to profiling python programs

First:
------

 * Open http://docs.python.org/2/library/profile.html for reference.

Second:
-------

 * Read example.py.
 * It doesn't matter whether you see the two performance bugs that are
   not-very-hidden in there.

Third:
------

 * Run './example.py small.txt'
 * It's slow.
   * How slow?  Run 'time ./example.py small.txt'
   * 'time' is a command-line tool that is the simplest and most basic
     profiling tool.<commit_msg>Add instructions for cloning the repo<commit_after>intro_to_python_profiling
=========================

A very brief introduction to profiling python programs

First:
------

 * Open http://docs.python.org/2/library/profile.html for reference.
 * Clone this repository by running:
   * git clone https://github.com/ggould256/intro_to_python_profiling.git
   * cd intro_to_python_profiling

Second:
-------

 * Read example.py.
 * It doesn't matter whether you see the two performance bugs that are
   not-very-hidden in there.

Third:
------

 * Run './example.py small.txt'
 * It's slow.
   * How slow?  Run 'time ./example.py small.txt'
   * 'time' is a command-line tool that is the simplest and most basic
     profiling tool.
{'fraction_non_alphanumeric': 0.15104570100697134, 'fraction_numerical': 0.0038729666924864447, 'mean_word_length': 3.167741935483871, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3413634', 'n_tokens_mistral': 399, 'n_tokens_neox': 368, 'n_words': 130}