<commit_before>#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"..","lib")))
require 'rubygems'
require 'munin2graphite'

if ARGV.last && File.stat(ARGV.last)
  Munin2Graphite::Config.config_file = ARGV.last
else
  Munin2Graphite::Config.config_file = File.expand_path(File.join(File.dirname(__FILE__),"..","conf","munin2graphite.conf"))
end

scheduler = Munin2Graphite::Scheduler.new(Munin2Graphite::Config)
scheduler.start<commit_msg>Added a solution for the memory leakage<commit_after>#!/usr/bin/env ruby
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"..","lib")))
require 'rubygems'
require 'munin2graphite'

if ARGV.last && File.stat(ARGV.last)
  Munin2Graphite::Config.config_file = ARGV.last
else
  Munin2Graphite::Config.config_file = File.expand_path(File.join(File.dirname(__FILE__),"..","conf","munin2graphite.conf"))
end

Thread.abort_on_exception = true 

scheduler = Munin2Graphite::Scheduler.new(Munin2Graphite::Config)
scheduler.start
{'fraction_non_alphanumeric': 0.16216216216216217, 'fraction_numerical': 0.012012012012012012, 'mean_word_length': 7.695652173913044, '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': '195965', 'n_tokens_mistral': 376, 'n_tokens_neox': 366, 'n_words': 45}