<commit_before>
module Bixby
  module ApiView
    class Check < ::ApiView::Base

      for_model ::Check

      def self.convert(obj)
        hash = attrs(obj, :all)
        hash[:name] = obj.command.name

        return hash
      end

    end # Check
  end # ApiView
end # Bixby<commit_msg>added a runhost_id to the check.rb in app/views/models<commit_after>
module Bixby
  module ApiView
    class Check < ::ApiView::Base

      for_model ::Check

      def self.convert(obj)
        hash = attrs(obj, :all)
        hash[:name] = obj.command.name
        hash[:runhost_id] = obj.agent.host_id
        return hash
      end

    end # Check
  end # ApiView
end # Bixby
{'fraction_non_alphanumeric': 0.09402985074626866, 'fraction_numerical': 0.0, 'mean_word_length': 2.241545893719807, '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': '2233540', 'n_tokens_mistral': 223, 'n_tokens_neox': 221, 'n_words': 60}