<commit_before>require "json"
require "google/cloud/monitoring"

@project_id = ENV['PROJECT_ID']
@debug_mode = true unless ENV['STACKDRIVER_DEBUG'].empty?

def apply_resources
  resources = read_resources
  processed_notification_channels = process_notification_channels(resources["notification_channels"])
  process_uptime_checks(resources["uptime_checks"])
  process_alert_policies(resources["alert_policies"], processed_notification_channels)<commit_msg>Fix stackdriver debug var to work properly with module destruction<commit_after>require "json"
require "google/cloud/monitoring"

@project_id = ENV['PROJECT_ID']

if ENV['STACKDRIVER_DEBUG']
  @debug_mode = true unless ENV['STACKDRIVER_DEBUG'].empty?
end

def apply_resources
  resources = read_resources
  processed_notification_channels = process_notification_channels(resources["notification_channels"])
  process_uptime_checks(resources["uptime_checks"])
  process_alert_policies(resources["alert_policies"], processed_notification_channels)
{'fraction_non_alphanumeric': 0.09181636726546906, 'fraction_numerical': 0.0, 'mean_word_length': 10.662790697674419, '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': '405833', 'n_tokens_mistral': 287, 'n_tokens_neox': 285, 'n_words': 49}