<commit_before>class Hash
  def compact
    delete_if { |k, v| !v }
  end
end

require 'resque'

# Configure CapsuleCRM connection
require 'capsulecrm'
CapsuleCRM.account_name = ENV['CAPSULECRM_ACCOUNT_NAME']
CapsuleCRM.api_token = ENV['CAPSULECRM_API_TOKEN']
CapsuleCRM.initialize!

require 'helpers/metrics_helper'
require 'helpers/membership_helper'
require 'helpers/google_drive_helper'
require 'helpers/product_helper'

require 'github/github_connection'
require 'github/organisation_monitor'
require 'github/issue_monitor'
require 'github/watchers_forks_monitor'
require 'github/pull_request_monitor'
require 'github/outgoing_pull_request_monitor'

require 'gemnasium/dependency_metrics'

require 'trello/trello_board'
require 'trello/trello_boards'
require 'trello/trello_tasks'
require 'trello/quarterly_progress'

require 'hubot/hubot_monitor'

require 'certificates/certificate_count'

require 'capsulecrm/capsule_helper'
require 'capsulecrm/opportunity_age_monitor'
require 'capsulecrm/membership_count'
require 'capsulecrm/membership_coverage'
require 'capsulecrm/membership_renewals'
require 'capsulecrm/pipeline_metrics'

require 'google_drive/financial_metrics'
require 'google_drive/network_metrics'

require 'precisemedia/press_metrics'

require 'diversity/diversity_metrics'

require 'airbrake/application_errors'

def environment
  ENV['RACK_ENV'] || 'production'
end<commit_msg>automatically include everything<commit_after>class Hash
  def compact
    delete_if { |k, v| !v }
  end
end

# Configure CapsuleCRM connection
require 'capsulecrm'
CapsuleCRM.account_name = ENV['CAPSULECRM_ACCOUNT_NAME']
CapsuleCRM.api_token = ENV['CAPSULECRM_API_TOKEN']
CapsuleCRM.initialize!

# Require helpers first
Dir.glob(File.expand_path("helpers/*.rb", File.dirname(__FILE__))).each do |inc|
  require inc
end

# Require everything else in lib
Dir.glob(File.expand_path("**/*.rb", File.dirname(__FILE__))).each do |inc|
  puts inc
  require inc
end

def environment
  ENV['RACK_ENV'] || 'production'
end
{'fraction_non_alphanumeric': 0.09646941819990054, 'fraction_numerical': 0.0, 'mean_word_length': 7.489451476793249, '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': '7115856', 'n_tokens_mistral': 707, 'n_tokens_neox': 696, 'n_words': 133}