<commit_before># BitsyClient

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'bitsy_client'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install bitsy_client

## Usage

First, you have to tell the gem where to find the Bitsy server:

    BitsyClient.site = "http://someserver.com:80"

Then you can call:

    BitsyClient::PaymentDepot.new(...)
    BitsyClient::PaymentDepot.find(2)

## Testing

    bundle exec rspec spec

If you delete the vcr cassettes, then when you run the specs it will attempt to connect to a Bitsy server at `http://localhost:3000`. If that does not start it will complain. Remember to start the Bitcoin daemon for Bitsy too.

## Contributing

1. Fork it
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 new Pull Request

If you find this useful, consider sharing some BTC love: `1PwQWijmJ39hWXk9X3CdAhEdExdkANEAPk`<commit_msg>Add example creation of PaymentDepot<commit_after># BitsyClient

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'bitsy_client'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install bitsy_client

## Usage

First, you have to tell the gem where to find the Bitsy server:

    BitsyClient.site = "http://someserver.com:80"

Then you can call:

    pd = BitsyClient::PaymentDepot.create(
      min_payment: 0.2,
      initial_tax_rate: 0.5,
      added_tax_rate: 0.1,
      tax_address: "the taxes go here",
      owner_address: "the rest of the money goes here",
    )
    pd.id # the database id
    pd.address # the payment depot's Bitcoin address

    BitsyClient::PaymentDepot.find(2)

## Testing

    bundle exec rspec spec

If you delete the vcr cassettes, then when you run the specs it will attempt to connect to a Bitsy server at `http://localhost:3000`. If that does not start it will complain. Remember to start the Bitcoin daemon for Bitsy too.

## Contributing

1. Fork it
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 new Pull Request

If you find this useful, consider sharing some BTC love: `1PwQWijmJ39hWXk9X3CdAhEdExdkANEAPk`
{'fraction_non_alphanumeric': 0.07770961145194274, 'fraction_numerical': 0.016359918200409, 'mean_word_length': 3.632575757575758, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4903410', 'n_tokens_mistral': 817, 'n_tokens_neox': 756, 'n_words': 321}