<commit_before>class VmdbDatabaseSetting < ApplicationRecord
  self.table_name = 'pg_catalog.pg_settings'
  self.primary_key = 'name'

  def self.sortable?
    true
  end

  virtual_belongs_to :vmdb_database
  virtual_column :description,      :type => :string
  virtual_column :minimum_value,    :type => :integer
  virtual_column :maximum_value,    :type => :integer
  virtual_column :vmdb_database_id, :type => :integer

  attr_writer :vmdb_database

  def vmdb_database
    @vmdb_database ||= VmdbDatabase.my_database
  end

  delegate :id, :to => :vmdb_database, :prefix => true

  def minimum_value
    min_val || ''
  end<commit_msg>VmdbDatabaseSetting state value as virtual column<commit_after>class VmdbDatabaseSetting < ApplicationRecord
  self.table_name = 'pg_catalog.pg_settings'
  self.primary_key = 'name'

  def self.sortable?
    true
  end

  virtual_belongs_to :vmdb_database
  virtual_column :description,      :type => :string
  virtual_column :minimum_value,    :type => :integer
  virtual_column :maximum_value,    :type => :integer
  virtual_column :vmdb_database_id, :type => :integer
  virtual_column :value,            :type => :string

  attr_writer :vmdb_database

  def vmdb_database
    @vmdb_database ||= VmdbDatabase.my_database
  end

  delegate :id, :to => :vmdb_database, :prefix => true

  def minimum_value
    min_val || ''
  end
{'fraction_non_alphanumeric': 0.09203798392987582, 'fraction_numerical': 0.0, 'mean_word_length': 4.150375939849624, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '7640919', 'n_tokens_mistral': 468, 'n_tokens_neox': 439, 'n_words': 100}