<commit_before># habit_client

HabitRPG client

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'habit_client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install habit_client

## Usage

```ruby
require 'habit_client'

habit = HabitClient.new(ENV['USER_ID'], ENV['API_TOKEN'])

# User stats
habit.user.stats.hp
# 50

# Get tasks
habit.user.tasks.each dp |task|
  puts task.text
end
```<commit_msg>Fixed typo in readme<commit_after># habit_client

A HabitRPG client gem

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'habit_client'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install habit_client

## Usage

```ruby
require 'habit_client'

habit = HabitClient.new(ENV['USER_ID'], ENV['API_TOKEN'])

# User stats
habit.user.stats.hp
# 50

# Get tasks
habit.user.tasks.each do |task|
  puts task.text
end
```
{'fraction_non_alphanumeric': 0.11891891891891893, 'fraction_numerical': 0.004324324324324324, 'mean_word_length': 4.202247191011236, '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': '2508427', 'n_tokens_mistral': 355, 'n_tokens_neox': 333, 'n_words': 97}