<commit_before>class ProductpageBlock < ActiveRecord::Base
  belongs_to :product
  validates_presence_of :name
  validates_uniqueness_of :name, :scope => [:product_id]
  validate :no_attachement_errors
  has_attached_file :image,
                    :styles => { :mini => '48x48>', :large => '940x940>' },
                    :default_style => :original,
                    :url => "/assets/products/:id/productpage_blocks/:style/:basename.:extension",
                    :path => ":rails_root/public/assets/products/:id/productpage_blocks/:style/:basename.:extension"
  has_attached_file :popup,
                    :styles => { :mini => '48x48>'},
                    :default_style => :original,
                    :url => "/assets/products/:id/productpage_blocks/popup/:style/:basename.:extension",
                    :path => ":rails_root/public/assets/products/:id/productpage_blocks/popup/:style/:basename.:extension"
  acts_as_list
<commit_msg>Needed a fixed larger size of popup for originals that are just absolutely huge.<commit_after>class ProductpageBlock < ActiveRecord::Base
  belongs_to :product
  validates_presence_of :name
  validates_uniqueness_of :name, :scope => [:product_id]
  validate :no_attachement_errors
  has_attached_file :image,
                    :styles => { :mini => '48x48>', :large => '940x940>' },
                    :default_style => :original,
                    :url => "/assets/products/:id/productpage_blocks/:style/:basename.:extension",
                    :path => ":rails_root/public/assets/products/:id/productpage_blocks/:style/:basename.:extension"
  has_attached_file :popup,
                    :styles => { :mini => '48x48>', :standard => '800x800>', :large => '940x940>'},
                    :default_style => :standard,
                    :url => "/assets/products/:id/productpage_blocks/popup/:style/:basename.:extension",
                    :path => ":rails_root/public/assets/products/:id/productpage_blocks/popup/:style/:basename.:extension"
  acts_as_list

{'fraction_non_alphanumeric': 0.13968410661401776, 'fraction_numerical': 0.019743336623889437, 'mean_word_length': 2.746765249537893, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 37, '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': '7565165', 'n_tokens_mistral': 617, 'n_tokens_neox': 597, 'n_words': 93}