<commit_before>require '/users/bryanp/code/pakyow/libs/pakyow/pakyow-support/lib/pakyow-support'
require '/users/bryanp/code/pakyow/libs/pakyow/pakyow-core/lib/pakyow-core'
require '/users/bryanp/code/pakyow/libs/pakyow/pakyow-presenter/lib/pakyow-presenter'
require '/users/bryanp/code/pakyow/libs/pakyow/pakyow-realtime/lib/pakyow-realtime'

require 'rack/test'

# disable the logger when staging
Pakyow::App.after :init do
  Pakyow.logger = Rack::NullLogger.new(app)
  Celluloid.logger = Pakyow.logger
end

# handle errors that occur
Pakyow::App.after :error do
  # puts request.error.message
  # puts request.error.backtrace

  raise request.error
end

# for when we don't stage the app
Celluloid.logger = Rack::NullLogger.new({})
<commit_msg>Remove env-specific config from ui tests<commit_after>require_relative '../../pakyow-support/lib/pakyow-support'
require_relative '../../pakyow-core/lib/pakyow-core'
require_relative '../../pakyow-presenter/lib/pakyow-presenter'
require_relative '../../pakyow-realtime/lib/pakyow-realtime'

require 'rack/test'

# disable the logger when staging
Pakyow::App.after :init do
  Pakyow.logger = Rack::NullLogger.new(app)
  Celluloid.logger = Pakyow.logger
end

# handle errors that occur
Pakyow::App.after :error do
  # puts request.error.message
  # puts request.error.backtrace

  raise request.error
end

# for when we don't stage the app
Celluloid.logger = Rack::NullLogger.new({})

{'fraction_non_alphanumeric': 0.13226032190342898, 'fraction_numerical': 0.0, 'mean_word_length': 4.56420233463035, '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': '1528836', 'n_tokens_mistral': 528, 'n_tokens_neox': 515, 'n_words': 97}