<commit_before>require "rails/generators"

module Mainstreet
  class AddressGenerator < Rails::Generators::Base
    def boom
      invoke "model", ["Address", "street:string", "street2:string", "city:string", "state:string", "zip_code:string", "latitude:decimal{15.10}", "longitude:decimal{15.10}", "verification_info:text", "original_attributes:text"], options
      insert_into_file "app/models/address.rb", "  acts_as_address\n", after: "ActiveRecord::Base\n"
    end
  end
end<commit_msg>Support Rails 5<commit_after>require "rails/generators"

module Mainstreet
  class AddressGenerator < Rails::Generators::Base
    def boom
      invoke "model", ["Address", "street:string", "street2:string", "city:string", "state:string", "zip_code:string", "latitude:decimal{15.10}", "longitude:decimal{15.10}", "verification_info:text", "original_attributes:text"], options
      insert_into_file "app/models/address.rb", "  acts_as_address\n", after: "ApplicationRecord\n"
    end
  end
end
{'fraction_non_alphanumeric': 0.15431472081218275, 'fraction_numerical': 0.019289340101522844, 'mean_word_length': 6.413533834586466, 'pattern_counts': {'":': 0, '<': 5, '<?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': '125808', 'n_tokens_mistral': 331, 'n_tokens_neox': 310, 'n_words': 61}