<commit_before># Snuggie [![Build Status](http://travis-ci.org/site5/snuggie.png)][Build Status]

Snuggie: Wraps the Softaculous API in a warm, loving embrace.

[Build Status]: http://travis-ci.org/site5/snuggie

## Installation

    gem install snuggie

## Usage

Create a new `Snuggie::NOC` object:

    noc = Snuggie::NOC.new(params = {})

Buy/renew a license

    noc.buy_license(params = {})

Refund a transaction

    noc.refund invoice_id

List all licenses

    noc.list_licenses

List licenses by IP

    noc.list_licenses :ip => '127.0.0.1'

List all expired licenses

    noc.list_licenses :expired => 1

List licenses expiring in 7 days

    noc.list_licenses :expired => 2

List licenses expiring in 15 days

    noc.list_licenses :expired => 3

Get invoice details

    noc.invoice_details id

Get unbilled transactions for the current month:

    noc.invoice_details

Cancel a license by key

    noc.cancel_license :key => 'KEY'

Cancel a license by IP

    noc.cancel_license :ip => 'IP'

Get Action/Activity logs for a license

    noc.license_logs :key => 'KEY'

## Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a future version
  unintentionally.
* Commit, do not mess with Rakefile, version, or history. (If you want to have
  your own version, that is fine but bump version in a commit by itself I can
  ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

## Copyright

Copyright (c) 2011 Site5 LLC. See LICENSE for details.<commit_msg>Tweak readme<commit_after># Snuggie [![Build Status](http://travis-ci.org/site5/snuggie.png)][Build Status]

Snuggie wraps the Softaculous API in a warm, loving embrace.

[Build Status]: http://travis-ci.org/site5/snuggie

## Installation

    gem install snuggie

## Usage

Create a new `Snuggie::NOC` object with your credentials:

    noc = Snuggie::NOC.new(
      :username => 'marty',
      :password => '<PASSWORD>'
    )

Buy/renew a license

    noc.buy_license(params = {})

Refund a transaction

    noc.refund invoice_id

List all licenses

    noc.list_licenses

List licenses by IP

    noc.list_licenses :ip => '127.0.0.1'

List all expired licenses

    noc.list_licenses :expired => 1

List licenses expiring in 7 days

    noc.list_licenses :expired => 2

List licenses expiring in 15 days

    noc.list_licenses :expired => 3

Get invoice details

    noc.invoice_details id

Get unbilled transactions for the current month:

    noc.invoice_details

Cancel a license by key

    noc.cancel_license :key => 'KEY'

Cancel a license by IP

    noc.cancel_license :ip => 'IP'

Get Action/Activity logs for a license

    noc.license_logs :key => 'KEY'

## Note on Patches/Pull Requests

* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a future version
  unintentionally.
* Commit, do not bump version. (If you want to have your own version, that is
  fine but bump version in a commit by itself I can ignore when I pull.)
* Send me a pull request. Bonus points for topic branches.

## Copyright

Copyright (c) 2011 Site5 LLC. See LICENSE for details.
{'fraction_non_alphanumeric': 0.08415841584158416, 'fraction_numerical': 0.011757425742574257, 'mean_word_length': 3.398639455782313, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '713200', 'n_tokens_mistral': 1098, 'n_tokens_neox': 1031, 'n_words': 399}