<commit_before>raspi-bear
==========

Software to create a digitally empowered teddy bear!

Installation
============
RaspiBear is written for python3.3 or later. 
*Sudo apt-get install python3.3*

Best setup a python virtualenv. 

Pygame
------
Pygame version >= 1.9.2 is required for py3 support. 
 
*sudo apt-get install mercurial*

*sudo apt-get purge python-pygame*

*pip uninstall pygame*

*sudo apt-get install python3-dev libsdl1.2-dev libsmpeg-dev libfreetype6-dev libsdl-mixer1.2-dev*

*hg clone https://bitbucket.org/pygame/pygame*

*cd pygame*

*/configure*

*sudo mkdir /usr/include/pythonx.xm/pygame*

*sudo chown 0777 /usr/include/pythonx.xm/pygame*

In your virtualenv:
./setup.py install

Mjpeg streamer
--------------
First install the dependencies:
*sudo apt-get install libjpeg8-dev imagemagick libv4l-dev*

*sudo ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h*

*wget http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip*

*unzip mjpg-streamer-code-182.zip*

*cd mjpg-streamer-code-182/mjpg-streamer*

*make*

*sudo cp mjpg_streamer /usr/local/bin*

*sudo cp output_*.so input_*.so /usr/local/lib/*

start mjpeg_streamer:
<commit_msg>fixed readme ln -fs<commit_after>raspi-bear
==========

Software to create a digitally empowered teddy bear!

Installation
============
RaspiBear is written for python3.3 or later. 
*Sudo apt-get install python3.3*

Best setup a python virtualenv. 

Pygame
------
Pygame version >= 1.9.2 is required for py3 support. 
 
*sudo apt-get install mercurial*

*sudo apt-get purge python-pygame*

*pip uninstall pygame*

*sudo apt-get install python3-dev libsdl1.2-dev libsmpeg-dev libfreetype6-dev libsdl-mixer1.2-dev*

*hg clone https://bitbucket.org/pygame/pygame*

*cd pygame*

*/configure*

*sudo mkdir /usr/include/pythonx.xm/pygame*

*sudo chown 0777 /usr/include/pythonx.xm/pygame*

In your virtualenv:
./setup.py install

Mjpeg streamer
--------------
First install the dependencies:
*sudo apt-get install libjpeg8-dev imagemagick libv4l-dev*

*sudo ln -fs /usr/include/linux/videodev2.h /usr/include/linux/videodev.h*

*wget http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip*

*unzip mjpg-streamer-code-182.zip*

*cd mjpg-streamer-code-182/mjpg-streamer*

*make*

*sudo cp mjpg_streamer /usr/local/bin*

*sudo cp output_*.so input_*.so /usr/local/lib/*

start mjpeg_streamer:

{'fraction_non_alphanumeric': 0.14731226918342225, 'fraction_numerical': 0.024620434961017644, 'mean_word_length': 3.8857715430861726, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '34561', 'n_tokens_mistral': 1001, 'n_tokens_neox': 929, 'n_words': 217}