<commit_before>module Onlinenic
  #This module is responsible for config file operations
  module Config
    require "fileutils"
    
    filename  = "onlinenic.yml"
    @dest     = File.expand_path("#{File.dirname(__FILE__)}/../../../../../config/#{filename}")
    @src      = filename

    #gets configuration options from config file
    def self.get(env = RAILS_ENV)
      YAML::load(IO.read(@dest))[env]
    end

    #copies config file unless it exists
    def self.copy
      if exists?
        p "Config file already initialized."
      else
        p "Initializing config file."<commit_msg>config file path fixed<commit_after>module Onlinenic
  #This module is responsible for config file operations
  module Config
    require "fileutils"
    
    filename  = "onlinenic.yml"
    @dest     = File.expand_path("#{File.dirname(__FILE__)}/../../../../../config/#{filename}")
    @src      = File.expand_path("#{File.dirname(__FILE__)}/../../#{filename}")

    #gets configuration options from config file
    def self.get(env = RAILS_ENV)
      YAML::load(IO.read(@dest))[env]
    end

    #copies config file unless it exists
    def self.copy
      if exists?
        p "Config file already initialized."
      else
        p "Initializing config file. Check config/onlinenic.yml"
{'fraction_non_alphanumeric': 0.12490302560124127, 'fraction_numerical': 0.0, 'mean_word_length': 2.6134453781512605, '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': '5735714', 'n_tokens_mistral': 383, 'n_tokens_neox': 372, 'n_words': 106}