<commit_before>class OptionType < ActiveRecord::Base
  has_many :option_values, :order => :position, :dependent => :destroy, :attributes => true
  has_many :product_option_types
  has_and_belongs_to_many :prototypes
  validates_presence_of [:name, :presentation]
end<commit_msg>Associated product_option_types should be destroyed when option_type is destroyed.<commit_after>class OptionType < ActiveRecord::Base
  has_many :option_values, :order => :position, :dependent => :destroy, :attributes => true
  has_many :product_option_types, :dependent => :destroy
  has_and_belongs_to_many :prototypes
  validates_presence_of [:name, :presentation]
end

{'fraction_non_alphanumeric': 0.09538461538461539, 'fraction_numerical': 0.0, 'mean_word_length': 7.797297297297297, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6854597', 'n_tokens_mistral': 199, 'n_tokens_neox': 194, 'n_words': 47}