<commit_before># TaxCalculation

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'tax_calculation'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install tax_calculation

## Usage

TODO: Write usage instructions here

## Contributing

1. Fork it ( http://github.com/<my-github-username>/tax_calculation/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 new Pull Request
<commit_msg>Write usage<commit_after># TaxCalculation

TaxCauculation is consumption tax calculation in ruby.

## Installation

Add this line to your application's Gemfile:

    gem 'tax_calculation'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install tax_calculation

## Usage

```ruby
calculation = TaxCalculation.new(rate: 0.08, tax_inclusive: true)
calculation.items << TaxCalculation::Item.new(price: 1080, quantity: 1)
calculation.items << TaxCalculation::Item.new(price: 540,  quantity: 2)
calculation.total_price #=> 2160
calculation.tax         #=> 160
```

Calculation unit price and tax(I'm looking for a better way...)

```ruby
calculation = taxCalculation.new(rate: 0.08, tax_inclusive: false)
calculation.items << TaxCalculation::Item.new(price: 1000, quantity: 1)
calculation.total_price #=> 1080
calculation.tax         #=> 80
```



## Contributing

1. Fork it ( http://github.com/<my-github-username>/tax_calculation/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 new Pull Request

{'fraction_non_alphanumeric': 0.11129848229342328, 'fraction_numerical': 0.02417088251826869, 'mean_word_length': 4.235294117647059, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '2381101', 'n_tokens_mistral': 624, 'n_tokens_neox': 539, 'n_words': 189}