<commit_before><ul class="dropdown-menu dropdown-experiment-actions"
  aria-labelledby="exActionsMenu-<%= experiment.id %>"
  data-id="<%= experiment.id %>">

  <% if can_manage_experiment?(experiment) %>
  <li><%= link_to t('experiments.edit.label_title'),
                edit_project_experiment_url(project, experiment),
                remote: true,
                type: 'button',
                data: { id: experiment.id },
                class: 'edit-experiment' %></li>
  <% end %>
  <li data-hook="experiment-actions-second-child"></li>
  <% if can_clone_experiment?(experiment) %>
    <li><%= link_to t('experiments.clone.label_title'),
                    clone_modal_experiment_url(experiment),
                    remote: true, type: 'button',
                    class: 'clone-experiment help_tooltips',
                    data: {
                      tooltiplink: I18n.t('tooltips.link.experiment.copy'),
                      tooltipcontent: I18n.t('tooltips.text.experiment.copy')
                    } %></li>
  <% end %>
  <% if can_move_experiment?(experiment) %>
    <li><%= link_to t('experiments.move.label_title'),
                    move_modal_experiment_url(experiment),
                    remote: true, type: 'button',
                    class: 'move-experiment help_tooltips',
                    data: {
                      tooltiplink: I18n.t('tooltips.link.experiment.move'),
                      tooltipcontent: I18n.t('tooltips.text.experiment.move')
                    } %></li>
  <% end %>
  <% if can_manage_experiment?(experiment) %>
  <li><%= link_to t('experiments.archive.label_title'),
                archive_experiment_url(experiment),
                type: 'button',
                data: { confirm: t('experiments.canvas.archive_confirm') } %></li>
  <% end %>
</ul><commit_msg>Prevent archiving of experiments with at least one locked task<commit_after><ul class="dropdown-menu dropdown-experiment-actions"
  aria-labelledby="exActionsMenu-<%= experiment.id %>"
  data-id="<%= experiment.id %>">

  <% if can_manage_experiment?(experiment) %>
  <li><%= link_to t('experiments.edit.label_title'),
                edit_project_experiment_url(project, experiment),
                remote: true,
                type: 'button',
                data: { id: experiment.id },
                class: 'edit-experiment' %></li>
  <% end %>
  <li data-hook="experiment-actions-second-child"></li>
  <% if can_clone_experiment?(experiment) %>
    <li><%= link_to t('experiments.clone.label_title'),
                    clone_modal_experiment_url(experiment),
                    remote: true, type: 'button',
                    class: 'clone-experiment help_tooltips',
                    data: {
                      tooltiplink: I18n.t('tooltips.link.experiment.copy'),
                      tooltipcontent: I18n.t('tooltips.text.experiment.copy')
                    } %></li>
  <% end %>
  <% if can_move_experiment?(experiment) %>
    <li><%= link_to t('experiments.move.label_title'),
                    move_modal_experiment_url(experiment),
                    remote: true, type: 'button',
                    class: 'move-experiment help_tooltips',
                    data: {
                      tooltiplink: I18n.t('tooltips.link.experiment.move'),
                      tooltipcontent: I18n.t('tooltips.text.experiment.move')
                    } %></li>
  <% end %>
  <% if can_archive_experiment?(experiment) %>
  <li><%= link_to t('experiments.archive.label_title'),
                archive_experiment_url(experiment),
                type: 'button',
                data: { confirm: t('experiments.canvas.archive_confirm') } %></li>
  <% end %>
</ul>
{'fraction_non_alphanumeric': 0.1441635287789134, 'fraction_numerical': 0.004303388918773534, 'mean_word_length': 2.0483606557377048, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '5037125', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1058, 'n_words': 170}