<commit_before><div class="block-slot-field__buttons pl-2 ml-auto">
  <button type="button" class="block-slot-field__button--low-priority btn btn-xs btn-outline-secondary" data-block-add title="Add block">
    <%= bootstrap_icon('plus') %>
  </button>
  <%= link_to_remove_association f,
        class: 'block-slot-field__button--low-priority btn btn-xs btn-outline-secondary',
        title: 'Remove block',
        data: {
          confirm: "Are you sure you want to remove this block?" } do %>
    <%= bootstrap_icon('dash') %>
  <% end %>
  <button type="button" class="btn btn-xs btn-outline-secondary" data-collapse-trigger title="Collapse block">
    <%= bootstrap_icon 'chevron-down', class: 'collapse-trigger__chevron-down' %>
    <%= bootstrap_icon 'chevron-up', class: 'collapse-trigger__chevron-up' %>
  </button>
</div><commit_msg>Cache block slot field buttons partial<commit_after><% cache_if f.object.present?, [f.object, f.object.try(:block_record)], expires_in: 4.weeks do %>
  <div class="block-slot-field__buttons pl-2 ml-auto">
    <button type="button" class="block-slot-field__button--low-priority btn btn-xs btn-outline-secondary" data-block-add title="Add block">
      <%= bootstrap_icon('plus') %>
    </button>
    <%= link_to_remove_association f,
          class: 'block-slot-field__button--low-priority btn btn-xs btn-outline-secondary',
          title: 'Remove block',
          data: {
            confirm: "Are you sure you want to remove this block?" } do %>
      <%= bootstrap_icon('dash') %>
    <% end %>
    <button type="button" class="btn btn-xs btn-outline-secondary" data-collapse-trigger title="Collapse block">
      <%= bootstrap_icon 'chevron-down', class: 'collapse-trigger__chevron-down' %>
      <%= bootstrap_icon 'chevron-up', class: 'collapse-trigger__chevron-up' %>
    </button>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.1606469002695418, 'fraction_numerical': 0.0016172506738544475, 'mean_word_length': 3.7346938775510203, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '3871325', 'n_tokens_mistral': 622, 'n_tokens_neox': 574, 'n_words': 127}