<commit_before># Lowdown

Lowdown is a Ruby client for the HTTP/2 version of the Apple Push Notification Service.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'lowdown'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install lowdown

## Usage

TODO: Write usage instructions here

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/alloy/lowdown.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

<commit_msg>[README] Add very simple example.<commit_after># Lowdown

Lowdown is a Ruby client for the HTTP/2 version of the Apple Push Notification Service.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'lowdown'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install lowdown

## Usage

You can use the `lowdown` bin that comes with this gem or in code at it’s simplest:

```ruby
notification = Lowdown::Notification.new(:token => "device-token", :payload => { :alert => "Hello World!" })

Lowdown::Client.production(true, File.read("path/to/certificate.pem")).connect do |client|
  client.send_notification(notification) do |response|
    if response.success?
      puts "Notification sent"
    else
      puts "Notification failed: #{response}"
    end
  end
end
```

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/alloy/lowdown.

## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).


{'fraction_non_alphanumeric': 0.09842041312272175, 'fraction_numerical': 0.001215066828675577, 'mean_word_length': 4.006079027355623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 2, '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': '272201', 'n_tokens_mistral': 493, 'n_tokens_neox': 468, 'n_words': 192}