<commit_before>require 'config/environment'

class MonitoringJob
  def initialize(options={})
    @options = options
  end

  def run
    tb_stats = TorqueboxStatsMonitor.new

    response = Zabbix::Sender18.send(hostname, @options['host'], @options['port']) do
      [:get_threads_stats, :get_memory_stats, :get_classes_stats, :get_deployment_descriptors, :get_os_stats].each do |method|
        tb_stats.send(method).each do |key,value|
          send key, value<commit_msg>fix: Sender18 nie jest w namespejsie<commit_after>require 'config/environment'

class MonitoringJob
  def initialize(options={})
    @options = options
  end

  def run
    tb_stats = TorqueboxStatsMonitor.new

    response = ZabbixSender18.send(hostname, @options['host'], @options['port']) do
      [:get_threads_stats, :get_memory_stats, :get_classes_stats, :get_deployment_descriptors, :get_os_stats].each do |method|
        tb_stats.send(method).each do |key,value|
          send key, value
{'fraction_non_alphanumeric': 0.11202466598150052, 'fraction_numerical': 0.006166495375128468, 'mean_word_length': 4.597701149425287, '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': '6775737', 'n_tokens_mistral': 314, 'n_tokens_neox': 306, 'n_words': 66}