<commit_before># multimedia

Random multimedia scripts

## SMJ7 Installation Instructions

### OS X

```
brew install mplayer
pip install mutagen scandir
git clone https://github.com/swdd/multimedia.git
./multimedia/smj7.py
```

### Linux Distributions

#### Arch

```
sudo pacman -S python2-pip mplayer
pip install mutagen scandir
git clone https://github.com/swdd/multimedia.git
./multimedia/smj7.py
```

#### Fedora / RedHat

```<commit_msg>Added help output to README<commit_after># multimedia

Random multimedia scripts

## SMJ7 Auto-Generated Help

```
% ./smj7.py -h
usage: smj7.py [-h] [-l LOCATION] [-q QUERY] [--database DATABASE] [--freshen]
               [--force-rescan] [--json] [--show-paths] [-i INDENT]
               [--force-serial] [--syntax] [-d]

A simple command-line media indexer and jukebox.

optional arguments:
  -h, --help            show this help message and exit
  -l LOCATION, --location LOCATION
                        the location to search for media files [~/Music]
  -q QUERY, --query QUERY
                        input an SMJ7-style query, followed by playlist
                        commands, and disable interactive mode (see --syntax)
  --database DATABASE   the location to store the media database
                        [~/.smj/smj7.sqlite]
  --freshen             search for new files and scan them, and remove stale
                        files from the database, useful when adding new albums
  --force-rescan        nuke the database and start from scratch, useful when
                        a lot has changed since the last scan
  --json                skip playback and interactive selection, just output
                        matching results in JSON
  --show-paths          include path information in JSON track output
  -i INDENT, --indent INDENT
                        with --json, # of spaces to indent by, set to 0 to
                        dump block of text [2]
  --force-serial        disable parallelized media parsing, useful for slower
                        machines or older mechanical hard disk drives
  --syntax              show SMJ7-sylte syntax guide
  -d, --debug           enable debug mode

Note: mplayer is required to play files.
```

## SMJ7 Installation Instructions

### OS X

```
brew install mplayer
pip install mutagen scandir
git clone https://github.com/swdd/multimedia.git
./multimedia/smj7.py
```

### Linux Distributions

#### Arch

```
sudo pacman -S python2-pip mplayer
pip install mutagen scandir
git clone https://github.com/swdd/multimedia.git
./multimedia/smj7.py
```

#### Fedora / RedHat

```
{'fraction_non_alphanumeric': 0.09811465948441708, 'fraction_numerical': 0.0061562139284340135, 'mean_word_length': 2.166869671132765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3413368', 'n_tokens_mistral': 771, 'n_tokens_neox': 713, 'n_words': 272}