<commit_before>module Spree
  class VariantSale < ActiveRecord::Base
    belongs_to :variant
    belongs_to :sale
    belongs_to :user

    validates_presence_of :variant_id, :sale_id

    scope :active, -> { where('? >= start_date AND (end_date IS NULL OR ? < end_date)', Time.zone.now, Time.zone.now) }
  end
end
<commit_msg>Active scope in VariantSale changed to use Time.zone.today<commit_after>module Spree
  class VariantSale < ActiveRecord::Base
    belongs_to :variant
    belongs_to :sale
    belongs_to :user

    validates_presence_of :variant_id, :sale_id

    scope :active, -> { where('? >= start_date AND (end_date IS NULL OR ? < end_date)', Time.zone.today, Time.zone.today) }
  end
end

{'fraction_non_alphanumeric': 0.10241820768136557, 'fraction_numerical': 0.0, 'mean_word_length': 3.9577464788732395, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4310149', 'n_tokens_mistral': 246, 'n_tokens_neox': 240, 'n_words': 63}