<commit_before>module Bosh::HealthMonitor
  module Events
    class Heartbeat < Base

      CORE_JOBS = Set.new(%w(cloud_controller dea health_manager nats router routerv2 stager uaa vcap_redis))

      SERVICE_JOBS_PREFIXES = %w(mysql mongodb redis rabbit postgresql vblob).join("|")
      SERVICE_JOBS_GATEWAY_REGEX = /(#{SERVICE_JOBS_PREFIXES})_gateway$/i
      SERVICE_JOBS_NODE_REGEX = /(#{SERVICE_JOBS_PREFIXES})_node(.*)/i

      SERVICE_AUXILIARY_JOBS = Set.new(%w(serialization_data_server backup_manager))

      attr_reader :metrics
<commit_msg>add accessors for common heartbeat fields<commit_after>module Bosh::HealthMonitor
  module Events
    class Heartbeat < Base

      CORE_JOBS = Set.new(%w(cloud_controller dea health_manager nats router routerv2 stager uaa vcap_redis))

      SERVICE_JOBS_PREFIXES = %w(mysql mongodb redis rabbit postgresql vblob).join("|")
      SERVICE_JOBS_GATEWAY_REGEX = /(#{SERVICE_JOBS_PREFIXES})_gateway$/i
      SERVICE_JOBS_NODE_REGEX = /(#{SERVICE_JOBS_PREFIXES})_node(.*)/i

      SERVICE_AUXILIARY_JOBS = Set.new(%w(serialization_data_server backup_manager))

      attr_reader :agent_id, :deployment, :job, :index, :metrics

{'fraction_non_alphanumeric': 0.09507640067911714, 'fraction_numerical': 0.001697792869269949, 'mean_word_length': 5.01530612244898, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2137177', 'n_tokens_mistral': 437, 'n_tokens_neox': 407, 'n_words': 75}