<commit_before># logcat-color
A colorful and highly configurable alternative to the `adb logcat` command from
the Android SDK.

# Installation

**Installation with pip / easy_install** (may require sudo)
    
    $ pip install logcat-color
    .. or ..
    $ easy_install logcat-color

**Installation from source** (requires setuptools, may require sudo)
    
    $ python setup.py install

## Examples

Run and colorify `adb logcat`
    
    $ logcat-color

Colorify an old logcat text file you have laying around
    
    $ logcat-color < /path/to/my.log

Pipe logcat-color to egrep for only the tags you care about
    
    $ logcat-color -e | egrep '(Tag1|Tag2)'

Run logcat-color with a [custom profile](#profiles) for [filters](#profile_filters), colors, and custom arguments)
    
    $ logcat-color <profile-name>
<commit_msg>added better source installation docs<commit_after># logcat-color
A colorful and highly configurable alternative to the `adb logcat` command from
the Android SDK.

# Installation

**Installation with pip / easy_install** (may require sudo)
    
    $ pip install logcat-color
    .. or ..
    $ easy_install logcat-color

**Installation from source** (requires setuptools, may require sudo)

To get the source, simply [download and extract a release tarball](https://github.com/marshall/logcat-color/downloads).
Alternatively, you can clone the logcat-color git repository directly:
    
    $ git clone git://github.com/marshall/logcat-color.git

To install logcat-color from the source directory, run:
    
    $ python setup.py install

## Examples

Run and colorify `adb logcat`
    
    $ logcat-color

Colorify an old logcat text file you have laying around
    
    $ logcat-color < /path/to/my.log

Pipe logcat-color to egrep for only the tags you care about
    
    $ logcat-color -e | egrep '(Tag1|Tag2)'

Run logcat-color with a [custom profile](#profiles) for [filters](#profile_filters), colors, and custom arguments)
    
    $ logcat-color <profile-name>

{'fraction_non_alphanumeric': 0.08927680798004987, 'fraction_numerical': 0.00199501246882793, 'mean_word_length': 3.3894967177242887, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '1709576', 'n_tokens_mistral': 616, 'n_tokens_neox': 598, 'n_words': 215}