<commit_before>music.py
========

A simple script intended to quickly play internet music streams from the commandline. Focus on being simple and effective, I use this when programming to help me get in the zone, so I wanted something that would turn on some music then get out of my way!

Requirements
------------
VLC needs to be installed.

I've only used it on OSX, I suspect with tweaks to the paths (namely the VLC executable path) it should work on other *nix systems. It won't run on Windows since it communicates with VLC via a UNIX socket.

Installation
------------

- Put it somewhere in your path, I personally use ~/bin/music
- `$ chmod +x ~/bin/music`
- run it: `$ music`

One Liner:

`$ bash < <(curl -s https://raw.github.com/ctcherry/music.py/master/install.sh)`

Configuration
-------------

The script will auto-create its configuration file in ~/.music. It's a very simple file, and includes a few DI.fm streams by default, feel free to add anything that VLC supports. The format is one `name_here: http://url` entry per line.<commit_msg>Note python version, minor wording and formating fixes<commit_after>music.py
========

A simple script intended to quickly play internet music streams from the commandline. Focus on being simple and effective, I use this when programming to help me get in the zone, so I wanted something that would turn on some music then get out of my way!

Requirements
------------
VLC needs to be installed.

Tested with Python 2.7.1, probably works on other recent versions too.

I've only used it on OSX, I suspect with tweaks to the paths (mainly the VLC executable path) it should work on other *nix systems. It won't run on Windows since it communicates with VLC via a UNIX socket.

Installation
------------

- Put the music.py file it somewhere in your path, I personally use `~/bin` and just name it `music`
- Give it executable permission `$ chmod +x ~/bin/music`
- Run it: `$ music`

One Liner:

`$ bash < <(curl -s https://raw.github.com/ctcherry/music.py/master/install.sh)`

Configuration
-------------

The script will auto-create its configuration file in `~/.music`. It's a very simple file, and includes a few DI.fm streams by default, feel free to add anything that VLC supports. The format is `name_here: http://url` one entry per line.
{'fraction_non_alphanumeric': 0.10642919200695047, 'fraction_numerical': 0.0013032145960034753, 'mean_word_length': 3.4034416826003824, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '6009118', 'n_tokens_mistral': 654, 'n_tokens_neox': 623, 'n_words': 341}