<commit_before>module Librato::Metrics

  # manages writing and reading annotation streams for a
  # given client connection
  class Annotator

    def initialize(options={})
      @client = options[:client] || Librato::Metrics.client
    end

    # Creates a new annotation on the annotation stream
    #
    # @example Simple annotation
    #   annotator.add :deployments, 'deployed v45'
    #<commit_msg>Document annotator options<commit_after>module Librato::Metrics

  # manages writing and reading annotation streams for a
  # given client connection
  class Annotator

    # @option options [Client] :client Client instance used to connect to Metrics
    def initialize(options={})
      @client = options[:client] || Librato::Metrics.client
    end

    # Creates a new annotation on the annotation stream
    #
    # @example Simple annotation
    #   annotator.add :deployments, 'deployed v45'
    #
{'fraction_non_alphanumeric': 0.0781078107810781, 'fraction_numerical': 0.0044004400440044, 'mean_word_length': 3.527363184079602, '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': '3081631', 'n_tokens_mistral': 260, 'n_tokens_neox': 236, 'n_words': 85}