<commit_before># ## Observatory
# Observatory-galileo is a nodejs / client logging framework with flexible architecture.
# It was developed as a basis for [Observatory Logging & Monitoring Suite](http://observatoryjs.com)
# but can be used standalone independent of [Meteor](http://meteor.com).
# Although you should *really* try Meteor. You'll love it, we promise :)
#
# Below is the full API documentation, useful if you want to extend the framework. If you just want to
# jump to usage, start reading with [Generic Emitter](#abcde).
#
# ### Basic framework architecture notes
# * `MessageEmitters` emit messages - either from explicit calls to `logger.debug()` etc or by in turn listening or
# monitoring some other provider: e.g., http connect module, external log service etc. Emitters use formatters
# (`Observatory.formatters`) -->
# * `Formatters` form or tranform messages into predefined json format that is acceptably by -->
# * `Loggers` receive formatted messages from emitters and either buffer them or process immediately,
# by applying further output formatting - e.g., adding ANSI colors or html tags - and output them into
# different out devices - console, mongo collection etc.

###

  # Commented out for Meteor usage

require = if Npm? then Npm.require else require
_ = require 'underscore'
###

# ### Constants and common definitions
Observatory = Observatory ? {}

_.extend Observatory,
  # Log level (severity) definitions
  LOGLEVEL:
    SILENT: -1
    FATAL: 0
    ERROR: 1
    WARNING: 2
    INFO: 3
    VERBOSE: 4
    DEBUG: 5
    MAX: 6
    NAMES: ["FATAL", "ERROR", "WARNING", "INFO", "VERBOSE", "DEBUG", "MAX"]

  settings:
    maxSeverity: 3
    printToConsole: true

  # Initializing the system - creating loggers, subscribing etc
  # Currently creates 1 ConsoleLogger and subscribes it system-wide.
  # Also initializes default logger (Generic Emitter).
  # TODO: add tests and settings format
  initialize: (settings)-> f.call this, settings for f in @_initFunctions<commit_msg>changed defaults to NOT print to console<commit_after># ## Observatory
# Observatory-galileo is a nodejs / client logging framework with flexible architecture.
# It was developed as a basis for [Observatory Logging & Monitoring Suite](http://observatoryjs.com)
# but can be used standalone independent of [Meteor](http://meteor.com).
# Although you should *really* try Meteor. You'll love it, we promise :)
#
# Below is the full API documentation, useful if you want to extend the framework. If you just want to
# jump to usage, start reading with [Generic Emitter](#abcde).
#
# ### Basic framework architecture notes
# * `MessageEmitters` emit messages - either from explicit calls to `logger.debug()` etc or by in turn listening or
# monitoring some other provider: e.g., http connect module, external log service etc. Emitters use formatters
# (`Observatory.formatters`) -->
# * `Formatters` form or tranform messages into predefined json format that is acceptably by -->
# * `Loggers` receive formatted messages from emitters and either buffer them or process immediately,
# by applying further output formatting - e.g., adding ANSI colors or html tags - and output them into
# different out devices - console, mongo collection etc.

###

  # Commented out for Meteor usage

require = if Npm? then Npm.require else require
_ = require 'underscore'
###

# ### Constants and common definitions
Observatory = Observatory ? {}

_.extend Observatory,
  # Log level (severity) definitions
  LOGLEVEL:
    SILENT: -1
    FATAL: 0
    ERROR: 1
    WARNING: 2
    INFO: 3
    VERBOSE: 4
    DEBUG: 5
    MAX: 6
    NAMES: ["FATAL", "ERROR", "WARNING", "INFO", "VERBOSE", "DEBUG", "MAX"]

  settings:
    maxSeverity: 3
    printToConsole: false

  # Initializing the system - creating loggers, subscribing etc
  # Currently creates 1 ConsoleLogger and subscribes it system-wide.
  # Also initializes default logger (Generic Emitter).
  # TODO: add tests and settings format
  initialize: (settings)-> f.call this, settings for f in @_initFunctions
{'fraction_non_alphanumeric': 0.09122287968441814, 'fraction_numerical': 0.004930966469428008, 'mean_word_length': 4.039751552795031, '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': '4403169', 'n_tokens_mistral': 1157, 'n_tokens_neox': 1084, 'n_words': 497}