<commit_before># Sanjose
**Google Cloud Message.**

Sanjose is a simple gem for sending Google Cloud Message.

> This project is inspired by [houston](https://github.com/mattt/houston) and named as following the series of world-class command-line utilities.

## Installation

Add this line to your application's Gemfile:

    gem 'sanjose'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sanjose

## Usage

```ruby
GCM = Sanjose::Client.new
GCM.gcm_api_key = "<KEY>"

# An example of the registration id sent back when a device registers for notifications
registration_id = "<KEY>"

# Create a notification that alerts a message to the user.
notification = Sanjose::Notification.new(devices: [registration_id])
notification.collapse_key = "Hello, World!"
notification.data = {foo: "bar"}

# And... sent! That's all it takes.
GCM.push(notification)
```

## Command Line Tool

Sanjose also comes with the `gcm` binary, which provides a convenient way to test notifications from the command line.

    $ gcm push "<regstration_id>" -k "<api_key>" -c "Hello from the command line!"
    
With custom data support

    $ gcm push "<regstration_id>" -k "<api_key>" -c "Hello from the command line!" -d "{\"foo\":\"bar\"}"


## Enabling Google Cloud Message on Android

There is tutorial for Google Cloud Message [Getting started](http://developer.android.com/google/gcm/index.html) from Google.

## Contact

<NAME>

- http://github.com/minsikzzang
- http://twitter.com/minsikzzang
- <EMAIL>

## License

Sanjose is available under the MIT license. See the LICENSE file for more info.<commit_msg>readme file updated / fixed - multicast_id is not returned<commit_after># Sanjose
**Google Cloud Message.**

Sanjose is a simple gem for sending Google Cloud Message.

> This project is inspired by [houston](https://github.com/mattt/houston) and named as following the series of world-class command-line utilities.

## Installation

Add this line to your application's Gemfile:

    gem 'sanjose'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sanjose

## Usage

```ruby
GCM = Sanjose::Client.new
GCM.gcm_api_key = "<KEY>"

# An example of the registration id sent back when a device registers for notifications
registration_id = "APA91bH35MqYza3xfc2hfag6Rr8VQPSOmi2nrUOPABlFwowfVMZNHaBGBpx-zQ7nuv9qzCEosepUMPKyOrVn0UncZMa__E2sWuM2Q53fjJ5loqIY1QKCza3MkxAu1rvyhhzJP3meEqpmv-kjBuRTeWe_ysRUICupE-awrK1eiStmmm2Y_VBBSs4"

# Create a notification that alerts a message to the user.
notification = Sanjose::Notification.new(devices: [registration_id])
notification.collapse_key = "Hello, World!"
notification.data = {foo: "bar"}

# And... sent! That's all it takes.
GCM.push(notification)
```

## Command Line Tool

Sanjose also comes with the `gcm` binary, which provides a convenient way to test notifications from the command line.

    $ gcm push "<regstration_id>" -k "<api_key>" -c "Hello from the command line!"
    
With custom data support

    $ gcm push "<regstration_id>" -k "<api_key>" -c "Hello from the command line!" -d "{\"foo\":\"bar\"}"


## Enabling Google Cloud Message on Android

There is tutorial for Google Cloud Message [Getting started](http://developer.android.com/google/gcm/gs.html) from Google.

## Contact

<NAME>

- http://github.com/minsikzzang
- http://twitter.com/minsikzzang
- <EMAIL>

## License

Sanjose is available under the MIT license. See the LICENSE file for more info.
{'fraction_non_alphanumeric': 0.10433526011560694, 'fraction_numerical': 0.006936416184971098, 'mean_word_length': 4.365891472868217, 'pattern_counts': {'":': 2, '<': 18, '<?xml version=': 0, '>': 20, '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': '1235390', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1098, 'n_words': 382}