<commit_before>
Installation

Computer vision support is provided by OpenCV. To use these features you will need to install OpenCV from your distribution's package manager or from source. You will also need to install the Python bindings. On Ubuntu these are found in the python3-opencv package.

Camera support uses the v4l2capture package which compiles C code. This code #includes the libv4l2.h header file which is part of the libv4l-dev package on Debian Linux distributions. You will need to install this package.

Something requires Python.h to compile. You will need to install the python3-dev package to make this header file available.

A patched version of the v4l2 package is required, since its maintainers are apparently deceased or otherwise incapacitated. A branch containing the patched version is available at https://bazaar.launchpad.net/~jgottula/python-v4l2/fix-for-bug-1664158/revision/31 and can alternatively be found here: https://github.com/bgottula/python-v4l2

To ensure that the patched version of the v4l2 package mentioned above is installed, pass the --process-dependency-links option to pip:

pip3 install --process-dependency-links .
<commit_msg>Update README to only refer to the GitHub fork of python-v4l2<commit_after>
Installation

Computer vision support is provided by OpenCV. To use these features you will need to install OpenCV from your distribution's package manager or from source. You will also need to install the Python bindings. On Ubuntu these are found in the python3-opencv package.

Camera support uses the v4l2capture package which compiles C code. This code #includes the libv4l2.h header file which is part of the libv4l-dev package on Debian Linux distributions. You will need to install this package.

Something requires Python.h to compile. You will need to install the python3-dev package to make this header file available.

A patched version of the v4l2 package is required, since it contains a number of bugs and its maintainers are apparently deceased or otherwise incapacitated. A branch containing the patched version is available here: https://github.com/bgottula/python-v4l2

To ensure that the patched version of the v4l2 package mentioned above is installed, pass the --process-dependency-links option to pip:

pip3 install --process-dependency-links .

{'fraction_non_alphanumeric': 0.04130808950086059, 'fraction_numerical': 0.017641996557659207, 'mean_word_length': 4.62953995157385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '1391809', 'n_tokens_mistral': 608, 'n_tokens_neox': 575, 'n_words': 324}