<commit_before>%input{type: :hidden, name: 'return_to', value: (params[:return_to].presence || request.referer)}
%br
.form-actions
  %button.btn.btn-primary{type: "submit", name: "_save", :'data-disable-with' => t("admin.form.save")}
    %i.icon-white.icon-ok
    = t("admin.form.save")
  %span.extra_buttons
    - if authorized? :new, @abstract_model
      %button.btn.btn-info{type: "submit", name: "_add_another", :'data-disable-with' => t("admin.form.save_and_add_another")}
        = t("admin.form.save_and_add_another")
    - if authorized? :edit, @abstract_model
      %button.btn.btn-info{type: "submit", name: "_add_edit", :'data-disable-with' => t("admin.form.save_and_edit")}
        = t("admin.form.save_and_edit")
    %button.btn{type: "submit", name: "_continue", :'data-disable-with' => t("admin.form.cancel")}
      %i.icon-remove
      = t("admin.form.cancel")<commit_msg>Update for the deprecated form-actions class to fix submit buttons partial<commit_after>%input{type: :hidden, name: 'return_to', value: (params[:return_to].presence || request.referer)}
%br

.form-group
  .col-sm-offset-2.col-sm-10
    %button.btn.btn-primary{type: "submit", name: "_save", :'data-disable-with' => t("admin.form.save")}
      %i.icon-white.icon-ok
      = t("admin.form.save")
    %span.extra_buttons
      - if authorized? :new, @abstract_model
        %button.btn.btn-info{type: "submit", name: "_add_another", :'data-disable-with' => t("admin.form.save_and_add_another")}
          = t("admin.form.save_and_add_another")
      - if authorized? :edit, @abstract_model
        %button.btn.btn-info{type: "submit", name: "_add_edit", :'data-disable-with' => t("admin.form.save_and_edit")}
          = t("admin.form.save_and_edit")
      %button.btn{type: "submit", name: "_continue", :'data-disable-with' => t("admin.form.cancel")}
        %i.icon-remove
        = t("admin.form.cancel")
{'fraction_non_alphanumeric': 0.19440042260961438, 'fraction_numerical': 0.001584786053882726, 'mean_word_length': 3.8940568475452197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6738246', 'n_tokens_mistral': 680, 'n_tokens_neox': 675, 'n_words': 106}