<commit_before>#!/bin/python
"""modify-color
------------
A color manipulation utility for the commandline.

Usage:
    modify-color [options] [<modifier> <amount>] color

Modifiers:
    Modifiers are specified by a type followed by an amount. Order is not
    guaranteed, so if it is required, pipe to another call. Also because 
    modifying hsb and rgb can interfere with each other when converting,
    only modify red,green,blue or hue,saturation,brightness in one call
    type:
      -h, --hue
      -s, --saturation
      -b, --brightness
      --red
      --green
      --blue

    amount examples:<commit_msg>Examples, info on stdin color added to docs<commit_after>#!/bin/python
"""modify-color
------------
A color manipulation utility for the commandline.

Usage:
    modify-color [options] [<modifier> <amount>] color

Examples:
    echo "#001122" | modify-color --out hsb --brightness +10%
    modify-color --in rgb --out rgb_float 125,255,50
    modify-color --red 100 FF3377
    modify-color --hue 360 --brightness 100 --saturation 50 "#000000" | modify-color --red +10%

Color:
    Format specified by --in, can be passed in as an argument or through stdin.
    See Examples.

Modifiers:
    Modifiers are specified by a type followed by an amount. Order is not
    guaranteed, so if it is required, pipe to another call. Also because 
    modifying hsb and rgb can interfere with each other when converting,
    only modify red,green,blue or hue,saturation,brightness in one call
    type:
      -h, --hue
      -s, --saturation
      -b, --brightness
      --red
      --green
      --blue

    amount examples:
{'fraction_non_alphanumeric': 0.10600490196078431, 'fraction_numerical': 0.02389705882352941, 'mean_word_length': 2.573304157549234, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '3658838', 'n_tokens_mistral': 528, 'n_tokens_neox': 472, 'n_words': 196}