<commit_before># direncode 1.0

Encodes all video files in a source directory to a destination directory. Optionally, the source directory will be watched continuously for changes and any new files will be encoded.

## Requirements

* Operating System:
    * Mac OS X 10.9.5 (Mavericks) or later
    * Linux &mdash; probably works, but untested
    * Windows &mdash; probably works, but untested
* [Python] 2.7 or later
    * Python 3.x &mdash; probably works, but untested
* [hbencode] 1.1 or later

[Python]: http://www.python.org
[hbencode]: https://github.com/davidfstr/hbencode

## Installation

1. Install and configure all requirements mentioned above. In particular [hbencode] has some required configuration.
2. Copy `direncode.py` to somewhere in your system path.

## Usage

Encode all files in directory `/srcdir` to directory `/dstdir` using:

```
direncode.py /srcdir /dstdir
```

Continously encode all files that appear in `/srcdir` to directory `/dstdir` until you interrupt the program with Control-C:

```
direncode.py --watch /srcdir /dstdir
```

## Support

If you run into problems or have questions, feel free to file a
[bug] or [contact] me.

[contact]: http://dafoster.net/about#contact
[bug]: https://github.com/davidfstr/direncode/issues

## License

This software is licensed under the [MIT License].

[MIT License]: https://github.com/davidfstr/direncode/blob/master/LICENSE.txt<commit_msg>Mention watchdog dependency in README.<commit_after># direncode 1.0

Encodes all video files in a source directory to a destination directory. Optionally, the source directory will be watched continuously for changes and any new files will be encoded.

## Requirements

* Operating System:
    * Mac OS X 10.9.5 (Mavericks) or later
    * Linux &mdash; probably works, but untested
    * Windows &mdash; probably works, but untested
* [Python] 2.7 or later
    * Python 3.x &mdash; probably works, but untested
* [hbencode] 1.1 or later
* [watchdog] 0.8.3 or later

[Python]: http://www.python.org
[hbencode]: https://github.com/davidfstr/hbencode
[watchdog]: https://pypi.python.org/pypi/watchdog

## Installation

1. Install and configure all requirements mentioned above.
    * In particular [hbencode] has some required configuration.
    * [watchdog] can usually be installed with `pip install watchdog`.
2. Copy `direncode.py` to somewhere in your system path.

## Usage

Encode all files in directory `/srcdir` to directory `/dstdir` using:

```
direncode.py /srcdir /dstdir
```

Continously encode all files that appear in `/srcdir` to directory `/dstdir` until you interrupt the program with Control-C:

```
direncode.py --watch /srcdir /dstdir
```

## Support

If you run into problems or have questions, feel free to file a
[bug] or [contact] me.

[contact]: http://dafoster.net/about#contact
[bug]: https://github.com/davidfstr/direncode/issues

## License

This software is licensed under the [MIT License].

[MIT License]: https://github.com/davidfstr/direncode/blob/master/LICENSE.txt
{'fraction_non_alphanumeric': 0.10636182902584493, 'fraction_numerical': 0.009609012591119947, 'mean_word_length': 4.1431005110732535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 7, 'lorem ipsum': 0, 'www.': 2, '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': '2689176', 'n_tokens_mistral': 953, 'n_tokens_neox': 918, 'n_words': 354}