<commit_before># Books::Utils

This gem includes various [Calibre](http://calibre-ebook.com) -related utilities.

## Installation

Install it yourself as:

    $ gem install books-utils
    
It should install the dependencies itself automagically (namely Ox & Oj for
XML and JSON support.

## BUGS

Not tested on Windows at all, no system to check on.  Tested on OSX.
Should work on FreeBSD and Linux.  If not please submit issues (and patch
if you can).

## Usage

Usage: newer-than [-h] [-f format] [-d DATE | -t DAYS]

Default is 1 day.

    -d, --since=DATE                 Use that date to search after
    -f, --format=json|yaml|xml       Specify output format
    -t, --newer-than=DAYS            Threshold date to look for
    -h  --help                       Display this usage

## Contributing

1. Fork it ( https://github.com/[my-github-username]/books-utils/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request<commit_msg>More details.<commit_after># Books::Utils

This gem includes various [Calibre](http://calibre-ebook.com) -related utilities.
For the moment a wrapper around the `calibredb` utility with more output formats.

## Installation

Install it yourself as:

    $ gem install books-utils

## Dependencies

It should install the dependencies itself automagically (namely Ox & Oj for
XML and JSON support.

You MUST install the command-line utilities from within Calibre for this to
work as it relies on `calibredb` for querying the library.

## BUGS

Not tested on Windows at all, no system to check on.  Tested on OSX.
Should work on FreeBSD and Linux.  If not please submit issues (and patch
if you can).

## Usage

Usage: newer-than [-h] [-f format] [-d DATE | -t DAYS]

Default is 1 day.

    -d, --since=DATE                 Use that date to search after
    -f, --format=json|yaml|xml       Specify output format
    -t, --newer-than=DAYS            Threshold date to look for
    -h  --help                       Display this usage

## Output formats
 
The default is a simple space-delimited output, suited for cut&paste. You can
also generate JSON, YAML or XML by specifying the `-f` option.
 
## Contributing

1. Fork it ( https://github.com/[my-github-username]/books-utils/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
{'fraction_non_alphanumeric': 0.09444872783346184, 'fraction_numerical': 0.004626060138781804, 'mean_word_length': 2.9022556390977443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2384077', 'n_tokens_mistral': 796, 'n_tokens_neox': 749, 'n_words': 343}