<commit_before>@Blog = {}

Blog.settings =
  comments: {}
  rss: {}
  language: {}

Blog.config = (appConfig) ->
  # No deep extend in underscore :-(
  if appConfig.comments
    @settings.comments = _.extend(@settings.comments, appConfig.comments)
    delete appConfig.comments
  @settings = _.extend(@settings, appConfig)
  
  if appConfig.language
    @settings.language = _.extend(@settings.language, appConfig.language)
    delete appConfig.language
  @settings = _.extend(@settings, appConfig)


##############################################################################
# Server-side config
#


if Meteor.isServer<commit_msg>Fix deep extends issue with default language settings (#220)<commit_after>@Blog = {}

Blog.settings =
  comments: {}
  rss: {}
  language: {}

Blog.config = (appConfig) ->
  # No deep extend in underscore :-(
  for key in ['comments', 'rss', 'language']
    if appConfig[key]
      @settings[key] = _.extend(@settings[key], appConfig[key])
      delete appConfig[key]

  @settings = _.extend(@settings, appConfig)


##############################################################################
# Server-side config
#


if Meteor.isServer
{'fraction_non_alphanumeric': 0.2514919011082694, 'fraction_numerical': 0.0025575447570332483, 'mean_word_length': 4.563981042654029, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5582454', 'n_tokens_mistral': 344, 'n_tokens_neox': 320, 'n_words': 75}