<commit_before>require 'monkeysupport/c_proxy'
require 'monkeysupport/memoizable'

require 'monkeysupport_c'

unless $MonkeyModuleExcludes && $MonkeyModuleExcludes.include? "inflector"
  require 'monkeysupport/activesupport/inflector'
end
  
unless $MonkeyModuleExcludes && $MonkeyModuleExcludes.include? "output_safety"
  if ["1.8.7", "1.9.1"].include? RUBY_VERSION
    require 'output_safety_ext'
  else
    puts "** MonkeySupport: output_safety module was not designed to work with #{RUBY_VERSION}. Extension not loaded."
  end
end<commit_msg>inconsequential refactoring to exclusion logic<commit_after>require 'monkeysupport/c_proxy'
require 'monkeysupport/memoizable'

require 'monkeysupport_c'

excluded = $MonkeyModuleExcludes || []

unless excluded.include? "inflector"
  require 'monkeysupport/activesupport/inflector'
end
  
unless excluded.include? "output_safety"
  if ["1.8.7", "1.9.1"].include? RUBY_VERSION
    require 'output_safety_ext'
  else
    puts "** MonkeySupport: output_safety module was not designed to work with #{RUBY_VERSION}. Extension not loaded."
  end
end
{'fraction_non_alphanumeric': 0.10101010101010101, 'fraction_numerical': 0.011019283746556474, 'mean_word_length': 5.855345911949685, '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': '73239', 'n_tokens_mistral': 373, 'n_tokens_neox': 368, 'n_words': 83}