<commit_before>module Appsignal
  class Agent
    ACTION = 'log_entries'.freeze
    AGGREGATOR_LIMIT = 5 # Five minutes with a sleep time of 60 seconds

    attr_accessor :aggregator, :thread, :master_pid, :pid, :active, :sleep_time,
                  :transmitter, :subscriber, :paused, :aggregator_queue, :revision

    def initialize
      return unless Appsignal.config.active?
      if Appsignal.config.env == 'development'
        @sleep_time = 10.0
      else
        @sleep_time = 60.0
      end
      @master_pid       = Process.pid
      @pid              = @master_pid
      @aggregator       = Aggregator.new
      @transmitter      = Transmitter.new(ACTION)<commit_msg>Set aggregator limit to three<commit_after>module Appsignal
  class Agent
    ACTION = 'log_entries'.freeze
    AGGREGATOR_LIMIT = 3 # Three minutes with a sleep time of 60 seconds

    attr_accessor :aggregator, :thread, :master_pid, :pid, :active, :sleep_time,
                  :transmitter, :subscriber, :paused, :aggregator_queue, :revision

    def initialize
      return unless Appsignal.config.active?
      if Appsignal.config.env == 'development'
        @sleep_time = 10.0
      else
        @sleep_time = 60.0
      end
      @master_pid       = Process.pid
      @pid              = @master_pid
      @aggregator       = Aggregator.new
      @transmitter      = Transmitter.new(ACTION)
{'fraction_non_alphanumeric': 0.08544532947139753, 'fraction_numerical': 0.013034033309196235, 'mean_word_length': 2.3789731051344742, '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': '3588042', 'n_tokens_mistral': 440, 'n_tokens_neox': 404, 'n_words': 105}