<commit_before>logging = require './logging'
fs = require 'fs'
path = require 'path'
yaml = require 'js-yaml'

VERSION = "0.0.1"

Config =
  DEFAULT_RULES_FILE: 'rules.coffee'
  DEFAULT_BUILD_FILE: 'build.yml'
  monitor: (value) ->
    if value? then @_monitor = value
    @_monitor

  version: -> VERSION

  # for tests
  reset: ->
    @_monitor = true

  # builin rules
  builtinRules: ->
    yaml.safeLoad """
      settings: &settings
        toClean: ['lib']
        toDistclean: ['node_modules']
        exec:
          cwd:
          env:
          stdio:
      clean:
        - exec: rm -rf %toClean

      distclean:
        - task: clean
        - exec: rm -rf %toDistclean
      """

Config.reset()

exports.Config = Config
exports.VERSION = VERSION<commit_msg>Might not be needed anymore, kept for the time being.<commit_after>logging = require './logging'
fs = require 'fs'
path = require 'path'

Config =
  DEFAULT_RULES_FILE: 'rules.coffee'
  DEFAULT_BUILD_FILE: 'build.yml'
  monitor: (value) ->
    if value? then @_monitor = value
    @_monitor

  # for tests
  reset: ->
    @_monitor = true

Config.reset()

exports.Config = Config
{'fraction_non_alphanumeric': 0.12250217202432667, 'fraction_numerical': 0.0026064291920069507, 'mean_word_length': 2.4803625377643503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3780480', 'n_tokens_mistral': 391, 'n_tokens_neox': 380, 'n_words': 103}