<commit_before>class ActionController::Base
  around_filter :audit

  def audit
    audit_id(self.session)
    DEFAULT_AUDIT_LOG.audit(self, self.current_user)
    yield
    DEFAULT_AUDIT_LOG.end_audit
  end
  
  private 
  def audit_id(session)
    session[:audit_id] ||= generate_id<commit_msg>call to class method...<commit_after>class ActionController::Base
  around_filter :audit

  def audit
    audit_id(self.session)
    DEFAULT_AUDIT_LOG.audit(self, self.current_user)
    yield
    DEFAULT_AUDIT_LOG.end_audit
  end
  
  private 
  def audit_id(session)
    session[:audit_id] ||= self.class.generate_id
{'fraction_non_alphanumeric': 0.08319738988580751, 'fraction_numerical': 0.0, 'mean_word_length': 4.074380165289257, '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': '6487185', 'n_tokens_mistral': 221, 'n_tokens_neox': 214, 'n_words': 36}