<commit_before># redeye

A command line utility for restarting a shell process if changes are detected in one (or many) directories. Takes one mandatory argument: the file to run in process. Any changes to that file and Redeye will kill and restart it for you automatically. Defaults to running script with "ruby" executable, and watching for changes every five (5) seconds. Will detect changes to any file, as well as any new files/folders that are added

*Note:* Redeye will only restart the given process if there's a change to an existing file or if an entirely new file is detected. It will not restart the process if an empty folder is created, for instance.

## Usage:
    redeye [options] <file-to-run> 
      -h/--help
      -w/--watch: comma delimited list of files, folders to watch
      -x/--executable: executable that runs the program, defaults to "ruby"
      -i/--interval: time interval to check for file modifications
      -r/--restart on error: auto-restart the program if exits with anything but 0

## Examples:

    $ redeye.rb server-script.rb

Spawn new process "ruby server-script.rb". Watch for changes to "server-script.rb", if any are detected it kills and restarts the subprocess.

    $ redeye.rb -w /usr/lib/data server-script.rb

Watch for changes to to any file in "/usr/lib/data" (and all it's subfolders), as well as "server-script.rb".

    $ redeye.rb -w /usr/lib/data,/usr/bin,/usr/var server-script.rb

Watch for changes in all the following: /usr/lib/data, /usr/bin, /usr/var, server-script.rb
<commit_msg>lower-cased rest of readme: who needs capital letters?<commit_after># redeye

A command line utility for restarting a shell process if changes are detected in one (or many) directories. Takes one mandatory argument: the file to run in process. Any changes to that file and Redeye will kill and restart it for you automatically. Defaults to running script with "ruby" executable, and watching for changes every five (5) seconds. Will detect changes to any file, as well as any new files/folders that are added

*Note:* Redeye will only restart the given process if there's a change to an existing file or if an entirely new file is detected. It will not restart the process if an empty folder is created, for instance.

## usage:
    redeye [options] <file-to-run> 
      -h/--help
      -w/--watch: comma delimited list of files, folders to watch
      -x/--executable: executable that runs the program, defaults to "ruby"
      -i/--interval: time interval to check for file modifications
      -r/--restart on error: auto-restart the program if exits with anything but 0

## examples:

    $ redeye.rb server-script.rb

Spawn new process "ruby server-script.rb". Watch for changes to "server-script.rb", if any are detected it kills and restarts the subprocess.

    $ redeye.rb -w /usr/lib/data server-script.rb

Watch for changes to to any file in "/usr/lib/data" (and all it's subfolders), as well as "server-script.rb".

    $ redeye.rb -w /usr/lib/data,/usr/bin,/usr/var server-script.rb

Watch for changes in all the following: /usr/lib/data, /usr/bin, /usr/var, server-script.rb

{'fraction_non_alphanumeric': 0.08389154704944178, 'fraction_numerical': 0.0012759170653907496, 'mean_word_length': 3.4356435643564356, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7071833', 'n_tokens_mistral': 911, 'n_tokens_neox': 873, 'n_words': 437}