<commit_before># Snowplow Ruby Domain UserId

A gem that exposes the Snowplow domain userid in Rack applications. Also allows you to set your own domain userid that will be shared with the Snowplow Javascript tracker. Related Snowplow Google Group discussion [here](https://groups.google.com/forum/#!topic/snowplow-user/GFfhW25UuN8).

## Instructions

Add the gem to your Gemfile

```ruby
gem 'snowplow_ruby_duid', git: '<EMAIL>:simplybusiness/snowplow_ruby_duid'
```

### Rails

The helper will be included in `ActionController::Base` when the gem is loaded.

### Sinatra

Add the following to `Sinatra::Base`<commit_msg>Point to gem on Rubygems<commit_after># Snowplow Ruby Domain UserId

A gem that exposes the Snowplow domain userid in Rack applications. Also allows you to set your own domain userid that will be shared with the Snowplow Javascript tracker. Related Snowplow Google Group discussion [here](https://groups.google.com/forum/#!topic/snowplow-user/GFfhW25UuN8).

## Instructions

Add the gem to your Gemfile

```ruby
gem 'snowplow_ruby_duid'
```

### Rails

The helper will be included in `ActionController::Base` when the gem is loaded.

### Sinatra

Add the following to `Sinatra::Base`
{'fraction_non_alphanumeric': 0.08630705394190871, 'fraction_numerical': 0.004979253112033195, 'mean_word_length': 5.216494845360825, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2572360', 'n_tokens_mistral': 394, 'n_tokens_neox': 364, 'n_words': 143}