<commit_before>require 'delegate'
require 'active_support/core_ext'

class Exhibit < SimpleDelegator
  @@exhibits = []
  
  def self.exhibits
    @@exhibits
  end
  
  def self.inherited(child)
    @@exhibits << child
  end

  def self.exhibit(object, context)
    return object if exhibited_object?(object)
    Rails.logger.debug "Exhibiting #{object.inspect}"
    Rails.logger.debug "Exhibit context: #{context}"<commit_msg>debug help<commit_after>require 'delegate'
require 'active_support/core_ext'

class Exhibit < SimpleDelegator
  @@exhibits = []
  
  def self.exhibits
    @@exhibits
  end
  
  def self.inherited(child)
    @@exhibits << child
  end

  def self.exhibit(object, context)
    return object if exhibited_object?(object)
    Rails.logger.debug "Registered exhibits: #{@@exhibits}"
    Rails.logger.debug "Exhibiting #{object.inspect}"
    Rails.logger.debug "Exhibit context: #{context}"
{'fraction_non_alphanumeric': 0.11441144114411442, 'fraction_numerical': 0.0, 'mean_word_length': 4.112359550561798, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4122211', 'n_tokens_mistral': 316, 'n_tokens_neox': 300, 'n_words': 66}