<commit_before>module Nugrant
  class Config
    DEFAULT_PARAMS_FILENAME = ".vagrantuser"
    DEFAULT_PARAMS_FILETYPE = "yml"

    attr :params_filename, true
    attr :params_filetype, true

    def self.user_base_path()
      return File.expand_path("~")
    end

    def self.system_base_path()
      # TODO: Fixme, changed location on windows ...
      return "/etc"
    end
<commit_msg>Fixed tests on Windows  * Even if system-wide settings are not fully working on Windows, at least    tests passes now.<commit_after>require 'rbconfig'

module Nugrant
  class Config
    DEFAULT_PARAMS_FILENAME = ".vagrantuser"
    DEFAULT_PARAMS_FILETYPE = "yml"

    attr :params_filename, true
    attr :params_filetype, true

    def self.user_base_path()
      return File.expand_path("~")
    end

    def self.system_base_path()
      # TODO: Fixme, find the right location to put system wide settings on windows...
      if Config.on_windows?
        return "C:/etc"
      end

      return "/etc"
    end

	def self.on_windows?()
		return (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) != nil
	end
	
{'fraction_non_alphanumeric': 0.09230769230769231, 'fraction_numerical': 0.0, 'mean_word_length': 3.021818181818182, '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': '4187954', 'n_tokens_mistral': 362, 'n_tokens_neox': 343, 'n_words': 99}