<commit_before>require 'virtus/attribute/execution_variables'
require 'roar/representer/json'

module Hive
  module Messages
    class Job
      include Virtus.model
      include ActiveModel::Validations
      # include Roar::Representer::JSON
      # include Hive::Representers::JobRepresenter

      attribute :command, String
      attribute :job_id, Integer
      attribute :repository, String
      attribute :execution_directory, String
      attribute :target, Hash
      attribute :execution_variables, ExecutionVariables

      validates :command, :job_id, :repository, :execution_directory, :target, :execution_variables, presence: true

      def initialize(*args)
        self.extend(Hive::Representers::JobRepresenter)
        super(*args)
      end
    end
  end
end
<commit_msg>slight refactor to includes, starting to add client functionality<commit_after>require 'virtus/attribute/execution_variables'
require 'roar/representer/json'
require 'roar/representer/feature/client'

module Hive
  module Messages
    class Job
      include Virtus.model
      include ActiveModel::Validations
      include Roar::Representer::JSON
      include Hive::Representers::JobRepresenter
      include Roar::Representer::Feature::Client

      attribute :command, String
      attribute :job_id, Integer
      attribute :repository, String
      attribute :execution_directory, String
      attribute :target, Hash
      attribute :execution_variables, ExecutionVariables

      validates :command, :job_id, :repository, :execution_directory, :target, :execution_variables, presence: true
    end
  end
end

{'fraction_non_alphanumeric': 0.07510862818125388, 'fraction_numerical': 0.0, 'mean_word_length': 3.929663608562691, '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': '3915853', 'n_tokens_mistral': 442, 'n_tokens_neox': 412, 'n_words': 113}