<commit_before># Installation
**[Raspbian Jessie Lite](https://www.raspberrypi.org/downloads/raspbian/)**  

`ssh pi@192.168.0.108`  

**Fixes an issue with locales on vanilla Raspbian Jessie**  
`sudo locale-gen en_US en_US.UTF-8 && sudo dpkg-reconfigure locales`  

`mkdir .ssh && cd .ssh && touch authorized_keys && chmod 600 authorized_keys && nano authorized_keys`

**On host machine:**  
`cat .ssh/id_rsa.pub`  
**Paste into authorized_keys**

`sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get autoremove && sudo raspi-config`  
**Expand filesystem**  
**Change user password**  
**Reboot if it doesn't automatically do so**  

`sudo apt-get -y install git youtube-dl omxplayer tcpdump python-scapy python-setuptools`

**If needed:**  
`sudo apt-get install tcpreplay wireshark`

`git clone https://github.com/jessemillar/yoga-button.git && cd yoga-button && mkdir videos && mkdir dependencies && cd dependencies && git clone https://github.com/willprice/python-omxplayer-wrapper.git && cd python-omxplayer-wrapper && sudo python setup.py install && cd ../../videos && youtube-dl https://www.youtube.com/watch?v=0Xdof3DtZuk --output "yoga.%(ext)s" && cd .. && sudo python sniffer.py`

# Todo
- CEC ability
- Video scheduler interface
- Make sure the video player quits after a video finishes<commit_msg>Simplifying the README<commit_after># Installation
**[Raspbian Jessie Lite](https://www.raspberrypi.org/downloads/raspbian/)**  

`ssh pi@192.168.0.108`  

`mkdir .ssh && cd .ssh && touch authorized_keys && chmod 600 authorized_keys && nano authorized_keys`  

**On host machine:**  
`cat .ssh/id_rsa.pub`  
**Paste into authorized_keys**  

`sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get autoremove && sudo raspi-config`  
**Expand filesystem**  
**Change user password**  
**Reboot if it doesn't automatically do so**  

`sudo apt-get -y install git youtube-dl omxplayer tcpdump python-scapy python-setuptools python-dbus && git clone https://github.com/jessemillar/yoga-button.git && cd yoga-button && mkdir videos && mkdir dependencies && cd dependencies && git clone https://github.com/willprice/python-omxplayer-wrapper.git && cd python-omxplayer-wrapper && sudo python setup.py install && cd ../../videos && youtube-dl https://www.youtube.com/watch?v=0Xdof3DtZuk --output "yoga.%(ext)s" && cd .. && sudo python sniffer.py`  

# Todo
- CEC ability
- Video scheduler interface
- Make sure the video player quits after a video finishes
{'fraction_non_alphanumeric': 0.13802595359811246, 'fraction_numerical': 0.01219032638615808, 'mean_word_length': 4.129032258064516, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '995926', 'n_tokens_mistral': 890, 'n_tokens_neox': 813, 'n_words': 245}