<commit_before><h4><%= active_scaffold_config.show.label -%></h4>

<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>

<p class="form-footer">
  <%= link_to as_(:close), main_path_to_return, :class => 'as_cancel', :remote => true, 'data-refresh' => false %>
  <%= loading_indicator_tag(:action => :create, :id => params[:id]) %>
</p><commit_msg>Bugfix: Close link in show partial should only use ajax if request was ajax<commit_after><h4><%= active_scaffold_config.show.label -%></h4>

<%= render :partial => 'show_columns', :locals => {:columns => active_scaffold_config.show.columns} -%>

<p class="form-footer">
  <%= link_to as_(:close), main_path_to_return, :class => 'as_cancel', :remote => request.xhr?, 'data-refresh' => false %>
  <%= loading_indicator_tag(:action => :create, :id => params[:id]) %>
</p>
{'fraction_non_alphanumeric': 0.2113163972286374, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 6.048780487804878, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 35, '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': '1870367', 'n_tokens_mistral': 321, 'n_tokens_neox': 303, 'n_words': 62}