<commit_before>require 'simple_enumerations'
require 'symbol_extension'
require 'action_view/form_helper'
ActiveRecord::Base.send(:include, Wijet::SimpleEnumerations)
ActionView::Helpers::FormBuilder.send(:include, Wijet::FormHelper)<commit_msg>Fixed init.rb, stopped the plugin from crashing when enumeration file doesn't exist<commit_after>if File.exists?(File.join(RAILS_ROOT, 'config', 'enumerations.yml'))
  require 'simple_enumerations'
  require 'symbol_extension'
  require 'action_view/form_helper'
  ActiveRecord::Base.send(:include, Wijet::SimpleEnumerations)
  ActionView::Helpers::FormBuilder.send(:include, Wijet::FormHelper)
end
{'fraction_non_alphanumeric': 0.11975116640746501, 'fraction_numerical': 0.0, 'mean_word_length': 10.709090909090909, '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': '6352932', 'n_tokens_mistral': 197, 'n_tokens_neox': 196, 'n_words': 35}