<commit_before>require 'spree/core/validators/email'

module Spree
  class Order < ActiveRecord::Base
    token_resource

    attr_accessible :line_items, :bill_address_attributes, :ship_address_attributes, :payments_attributes,
                    :ship_address, :bill_address, :line_items_attributes, :number,
                    :shipping_method_id, :email, :use_billing, :special_instructions

    if Spree.user_class
      belongs_to :user, :class_name => Spree.user_class.to_s
    else
      belongs_to :user<commit_msg>Specify :class_name argument for all belongs_to (and some has_many) associations in core and promo<commit_after>require 'spree/core/validators/email'

module Spree
  class Order < ActiveRecord::Base
    token_resource

    attr_accessible :line_items, :bill_address_attributes, :ship_address_attributes, :payments_attributes,
                    :ship_address, :bill_address, :line_items_attributes, :number,
                    :shipping_method_id, :email, :use_billing, :special_instructions

    if Spree.user_class
      belongs_to :user, :class_name => Spree.user_class.to_s
    else
      belongs_to :user, :class_name => "Spree::User"
{'fraction_non_alphanumeric': 0.0831191088260497, 'fraction_numerical': 0.0, 'mean_word_length': 3.928270042194093, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '7634434', 'n_tokens_mistral': 365, 'n_tokens_neox': 354, 'n_words': 74}