<commit_before>= statsd-ruby {<img src="https://secure.travis-ci.org/reinh/statsd.svg" />}[http://travis-ci.org/reinh/statsd]

A Ruby client for {StatsD}[https://github.com/etsy/statsd]

= Installing

Bundler:
  gem "statsd-ruby"

= Basic Usage

  # Set up a global Statsd client for a server on localhost:9125
  $statsd = Statsd.new 'localhost', 9125

  # Set up a global Statsd client for a server on IPv6 port 9125
  $statsd = Statsd.new '::1', 9125

  # Send some stats
  $statsd.increment 'garets'
  $statsd.timing 'glork', 320
  $statsd.gauge 'bork', 100

  # Use {#time} to time the execution of a block
  $statsd.time('account.activate') { @account.activate! }

  # Create a namespaced statsd client and increment 'account.activate'
  statsd = Statsd.new('localhost').tap{|sd| sd.namespace = 'account'}
  statsd.increment 'activate'

= Testing

Run the specs with <tt>rake spec</tt>

= Performance

* A short note about DNS: If you use a dns name for the host option, then you will want to use a local caching dns service for optimial performance (e.g. nscd).

= Extensions / Libraries / Extra Docs

* See the wiki[https://github.com/reinh/statsd/wiki]

== Contributing to statsd

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it<commit_msg>Fix typo in README<commit_after>= statsd-ruby {<img src="https://secure.travis-ci.org/reinh/statsd.svg" />}[http://travis-ci.org/reinh/statsd]

A Ruby client for {StatsD}[https://github.com/etsy/statsd]

= Installing

Bundler:
  gem "statsd-ruby"

= Basic Usage

  # Set up a global Statsd client for a server on localhost:9125
  $statsd = Statsd.new 'localhost', 9125

  # Set up a global Statsd client for a server on IPv6 port 9125
  $statsd = Statsd.new '::1', 9125

  # Send some stats
  $statsd.increment 'garets'
  $statsd.timing 'glork', 320
  $statsd.gauge 'bork', 100

  # Use {#time} to time the execution of a block
  $statsd.time('account.activate') { @account.activate! }

  # Create a namespaced statsd client and increment 'account.activate'
  statsd = Statsd.new('localhost').tap{|sd| sd.namespace = 'account'}
  statsd.increment 'activate'

= Testing

Run the specs with <tt>rake spec</tt>

= Performance

* A short note about DNS: If you use a dns name for the host option, then you will want to use a local caching dns service for optimal performance (e.g. nscd).

= Extensions / Libraries / Extra Docs

* See the wiki[https://github.com/reinh/statsd/wiki]

== Contributing to statsd

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
{'fraction_non_alphanumeric': 0.10812720848056537, 'fraction_numerical': 0.01696113074204947, 'mean_word_length': 3.949300699300699, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, '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': '853620', 'n_tokens_mistral': 1003, 'n_tokens_neox': 910, 'n_words': 340}