<commit_before>class <%= options[:namespace] ? options[:namespace].camelize + '::' : '' %><%= @model_name %> < <%= options[:namespace] ? options[:namespace].camelize : 'ActiveRecord' %>::Base
  attr_accessible <%= @columns.map(&:name).sort.map{|c| ":#{c}"}.join(', ') %>

  <% @associations.each do |cardinality, associations| -%><% associations.each do |a| -%><%= "#{cardinality} :#{a[:name]}" %>
<% end %><% end %>
end

<commit_msg>add class name to associations if legacy provided<commit_after>class <%= options[:namespace] ? options[:namespace].camelize + '::' : '' %><%= @model_name %> < <%= options[:namespace] ? options[:namespace].camelize : 'ActiveRecord' %>::Base
  attr_accessible <%= @columns.map(&:name).sort.map{|c| ":#{c}"}.join(', ') %>

<% @associations.each do |cardinality, associations|
  -%><% associations.each do |a|
  -%><%= "  #{cardinality} :#{a[:name]}" +
         (options[:namespace] ? ", :class_name => '#{options[:namespace].camelize}::#{a[:name].singularize.camelize}'" : '')
  %>
<% end %><% end %>
end


{'fraction_non_alphanumeric': 0.26711668273866923, 'fraction_numerical': 0.0, 'mean_word_length': 5.611464968152866, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 22, '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': '3013000', 'n_tokens_mistral': 380, 'n_tokens_neox': 349, 'n_words': 56}