<commit_before>require 'singleton'
require 'caruby/util/log'
require 'caruby/util/collection'
require 'caruby/util/options'
require 'caruby/util/visitor'
require 'catissue/resource'
require 'catissue/database'
require 'catissue/util/controlled_value'
require 'caruby/util/transitive_closure'
require 'caruby/domain/properties'

module CaTissue
  # This ControlledValues class loads caTissue permissible values from the database.
  # Use of this class requires the +dbi+ gem and the following caTissue database access
  # properties are defined in the
  # home directory .catissue.yaml file:
  # * :database_host - the database host
  # * :database - the database name
  # * :database_user - the database username (not the caTissue login name)
  # * :database_password - the database password (not the caTissue login password)
  #
  # The default :database_host is the application :host property value, which in turn
  # defaults to +localhost+.
  #
  # The optional :database_port property overrides the default MySQL port.
  #
  # ControlledValues is an auxiliary utility class and is not used by the CaTissue Ruby API.
  class ControlledValues<commit_msg>Refer to SQLExecutor for option descriptions.<commit_after>require 'singleton'
require 'caruby/util/log'
require 'caruby/util/collection'
require 'caruby/util/options'
require 'caruby/util/visitor'
require 'catissue/resource'
require 'catissue/database'
require 'catissue/util/controlled_value'
require 'caruby/util/transitive_closure'
require 'caruby/domain/properties'

module CaTissue
  # This ControlledValues class loads caTissue permissible values from the database.
  # Use of this class requires the +dbi+ gem. See {CaRuby::SQLExecutor#initialize}
  # for a description of the database access properties.
  class ControlledValues
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.0, 'mean_word_length': 5.147260273972603, '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': '3821211', 'n_tokens_mistral': 522, 'n_tokens_neox': 509, 'n_words': 178}