<commit_before>%div.btn-group
  - if resource.oops_supported? && !(req = resource.versions.current.try(:request))
    %button.btn= link_to 'Test with OOPS!', ontology_ontology_version_oops_request_path(resource, resource.parent ? resource.parent.versions.current : resource.versions.current), method: 'post' unless resource.versions.current.nil?
  -if can? :edit, resource
    %button.btn= link_to 'Edit', [:edit, resource]
    %button.btn= link_to 'Delete', resource, :confirm => 'Do you really want to delete this ontology?', :method => :delete
    %button.btn= link_to 'New Version', new_ontology_ontology_version_path(resource, :from => 'http-client')
    %button.btn.dropdown-toggle{"data-toggle"=>"dropdown"}
      %span.caret
    %ul.dropdown-menu.pull-right<commit_msg>Evaluate Button in the ontology view<commit_after>.btn-group
  - if resource.oops_supported? && !(req = resource.versions.current.try(:request))
    .btn-group
      %button.btn.dropdown-toggle{"data-toggle"=>"dropdown"}
        Evaluate
        %span.caret
      %ul.dropdown-menu
        %li= link_to 'design with OOPS!', ontology_ontology_version_oops_request_path(resource, resource.parent ? resource.parent.versions.current : resource.versions.current), method: 'post' unless resource.versions.current.nil?
  -if can? :edit, resource
    %button.btn= link_to 'Edit', [:edit, resource]
    %button.btn= link_to 'Delete', resource, :confirm => 'Do you really want to delete this ontology?', :method => :delete
    %button.btn= link_to 'New Version', new_ontology_ontology_version_path(resource, :from => 'http-client')
    %button.btn.dropdown-toggle{"data-toggle"=>"dropdown"}
      %span.caret
    %ul.dropdown-menu.pull-right
{'fraction_non_alphanumeric': 0.14402810304449648, 'fraction_numerical': 0.0, 'mean_word_length': 4.64026402640264, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '231339', 'n_tokens_mistral': 534, 'n_tokens_neox': 527, 'n_words': 113}