<commit_before>requirementsfinder
==================

A simple script to show requirements that are actually in use, in the same format as pip --freeze

============
Installation
============

You probably shouldn't right now, but if you must,
create a symlink in your path to requirementsfinder.py and mark it as executable::
    sudo ln -s /usr/bin/requirementsfinder /path/to/requirementsfinder.py
    sudo chmod +x /usr/bin/requirementsfinder

=====
Usage
=====

Running requirements finder will give the same out put as pip freeze, but
only with packages in use in the current directory (recursively)::

    myprompt$ requirementsfinder
    pip==6.1.1
    Flask==0.10.1
    requests==2.7.0


You can also specify a path::

    myprompt$ requirementsfinder example/
    Flask==0.10.1
    requests==2.7.0

==================
Gotchas, and TODOS
==================

* Will currently ignore any packages it can't find
    *should atleast warn that these imports couldn't find a package
* There is some very specific data that it is currently ignoring, but I forget what it is.
* Can not specify a specific virtualenv
* Probably only works on python 2.7
* Relies heavily on pip
    * add support for packages installed by yum
    * add support for packages installed by apt
    * figure out other ways people install packages<commit_msg>formatting<commit_after>requirementsfinder
==================

A simple script to show requirements that are actually in use, in the same format as pip --freeze

============
Installation
============

You probably shouldn't right now, but if you must,
create a symlink in your path to requirementsfinder.py and mark it as executable::
    sudo ln -s /usr/bin/requirementsfinder /path/to/requirementsfinder.py
    sudo chmod +x /usr/bin/requirementsfinder

=====
Usage
=====

Running requirements finder will give the same out put as pip freeze, but
only with packages in use in the current directory (recursively)::

    myprompt$ requirementsfinder
    pip==6.1.1
    Flask==0.10.1
    requests==2.7.0


You can also specify a path::

    myprompt$ requirementsfinder example/
    Flask==0.10.1
    requests==2.7.0

==================
Gotchas, and TODOS
==================

* Will currently ignore any packages it can't find
    * should atleast warn that these imports couldn't find a package
* There is some very specific data that it is currently ignoring, but I forget what it is.
* Can not specify a specific virtualenv
* Probably only works on python 2.7
* Relies heavily on pip
    * add support for packages installed by yum
    * add support for packages installed by apt
    * figure out other ways people install packages
{'fraction_non_alphanumeric': 0.11760299625468165, 'fraction_numerical': 0.014232209737827715, 'mean_word_length': 3.9280442804428044, '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': '554117', 'n_tokens_mistral': 740, 'n_tokens_neox': 691, 'n_words': 331}