<commit_before># This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2015, <NAME>

module Gallerist::App::Configuration

  def self.configure(*args, &block)
    Gallerist::App.instance_exec *args, &block
  end

  def self.registered(app)
    configure do
      enable :logging<commit_msg>Fix configure to only run for the specified environment<commit_after># This code is free software; you can redistribute it and/or modify it under
# the terms of the new BSD License.
#
# Copyright (c) 2015, <NAME>

module Gallerist::App::Configuration

  def self.configure(*envs, &block)
    if envs.empty? || envs.include?(Gallerist::App.environment.to_sym)
      Gallerist::App.instance_exec &block
    end
  end

  def self.registered(app)
    configure do
      enable :logging
{'fraction_non_alphanumeric': 0.09456264775413711, 'fraction_numerical': 0.009456264775413711, 'mean_word_length': 4.07185628742515, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6065291', 'n_tokens_mistral': 264, 'n_tokens_neox': 250, 'n_words': 90}