<commit_before><%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({
<% attributes.each_index do |idx| -%>
  <%= attributes[idx][:name].camelize(:lower) %>: <%=
  if %w(references belongs_to).member?(attributes[idx][:type])
    "DS.belongsTo('%s.%s')" % [application_name.camelize, attributes[idx][:name].camelize]
  else
    "DS.attr('%s')" % attributes[idx][:type]
  end
  %><% if (idx < attributes.length-1) %>,<% end %>
<% end -%>
});<commit_msg>Use brock argument for simple access<commit_after><%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({
<% attributes.each_with_index do |attribute, idx| -%>
  <%= attribute[:name].camelize(:lower) %>: <%=
  if %w(references belongs_to).member?(attribute[:type])
    "DS.belongsTo('%s.%s')" % [application_name.camelize, attribute[:name].camelize]
  else
    "DS.attr('%s')" % attribute[:type]
  end
  %><% if (idx < attributes.length-1) %>,<% end %>
<% end -%>
});
{'fraction_non_alphanumeric': 0.23919915700737618, 'fraction_numerical': 0.002107481559536354, 'mean_word_length': 5.209150326797386, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, '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': '6417859', 'n_tokens_mistral': 371, 'n_tokens_neox': 350, 'n_words': 52}