<commit_before>module Spree
  class Post < Blog
    has_and_belongs_to_many :products, :join_table => 'spree_posts_products', :dependent => :destroy
    has_and_belongs_to_many :taxons, :join_table => 'spree_posts_taxons', :dependent => :destroy
    acts_as_commentable
    
    has_and_belongs_to_many :taxon_posts, :join_table => "spree_posts_taxon_posts", :class_name => "Spree::TaxonPost"
    
    attr_accessible :taxon_ids, :product_ids
    
    scope :published, lambda { where("published_at <= '#{Time.now}' AND active = 1") }
    scope :valid, lambda { where("from <= #{Time.now} AND to >= #{Time.now}") }
    
  end
end<commit_msg>fixed error for post model<commit_after>module Spree
  class Post < Blog
    has_and_belongs_to_many :products, :join_table => 'spree_posts_products'
    has_and_belongs_to_many :taxons, :join_table => 'spree_posts_taxons'
    acts_as_commentable
    
    has_and_belongs_to_many :taxon_posts, :join_table => "spree_posts_taxon_posts", :class_name => "Spree::TaxonPost"
    
    attr_accessible :taxon_ids, :product_ids
    
    scope :published, lambda { where("published_at <= '#{Time.now}' AND active = 1") }
    scope :valid, lambda { where("from <= #{Time.now} AND to >= #{Time.now}") }
    
  end
end
{'fraction_non_alphanumeric': 0.12510024057738572, 'fraction_numerical': 0.0016038492381716118, 'mean_word_length': 4.497797356828194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '6403370', 'n_tokens_mistral': 439, 'n_tokens_neox': 436, 'n_words': 89}