<commit_before><%
record = list_record if list_record # compat with render :partial :collection
dont_show_calculations ||= false
tr_class = cycle("", "even-record")
tr_class += " #{list_row_class(record)}" if respond_to? :list_row_class
url_options = params_for(:action => :list, :id => record.id)
-%>

<tr class="record <%= tr_class %>" id="<%= element_row_id(:action => :list, :id => record.id) %>">
  <%= render :partial => 'list_record_columns', :locals => {:record => record} %>
  <%= render :partial => 'list_actions', :locals => {:record => record, :url_options => url_options} if active_scaffold_config.action_links.any? {|link| link.type == :member } %>
</tr>
<script type="text/javascript">
//<![CDATA[
  <%= update_page do |page|
        page.replace active_scaffold_calculations_id, :partial => 'list_calculations'
      end if not dont_show_calculations and active_scaffold_config.list.columns.any? {|c| c.calculation?} %>
//]]>
</script><commit_msg>only add javascript tag if there are calculations defined<commit_after><%
record = list_record if list_record # compat with render :partial :collection
dont_show_calculations ||= false
tr_class = cycle("", "even-record")
tr_class += " #{list_row_class(record)}" if respond_to? :list_row_class
url_options = params_for(:action => :list, :id => record.id)
-%>

<tr class="record <%= tr_class %>" id="<%= element_row_id(:action => :list, :id => record.id) %>">
  <%= render :partial => 'list_record_columns', :locals => {:record => record} %>
  <%= render :partial => 'list_actions', :locals => {:record => record, :url_options => url_options} if active_scaffold_config.action_links.any? {|link| link.type == :member } %>
</tr>
<% if not dont_show_calculations and active_scaffold_config.list.columns.any? {|c| c.calculation?} %>
<script type="text/javascript">
//<![CDATA[
  <%= update_page do |page|
        page.replace active_scaffold_calculations_id, :partial => 'list_calculations'
      end %>
//]]>
</script>
<% end %>
{'fraction_non_alphanumeric': 0.18126888217522658, 'fraction_numerical': 0.0, 'mean_word_length': 5.623333333333333, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 51, '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': '7548978', 'n_tokens_mistral': 701, 'n_tokens_neox': 664, 'n_words': 152}