<commit_before>- @page_title = resource.iri

%h2= link_to resource, resource, 'data-type' => resource_class
%p= fancy_tag(resource, [:theorem, :local, :proven, :inclusion]) { |a| ' | ' + a}

- if can? :update, Link
  .pull-right
    .btn-group
      = link_to 'Edit Metadata', :edit_link, class: 'btn btn-default'
      = link_to 'Update Link', :update_version_link, class: 'btn btn-default'
      - if can? :delete, Link
        = link_to 'Delete Link', :link, confirm: 'Are you sure?', method: :delete, class: 'btn btn-default'

%h5 Links
= fancy_link resource.source
to
= fancy_link resource.target

- if !resource.entity_mappings.empty?
  %h5 Entities
  %table
    %thead
      %t
        %th Source
        %th Target
    %tbody
      - resource.entity_mappings.each do |mapping|
        %tr
          %td= mapping.source
          %td= mapping.target

%h5 Status
%p 
  Proven:  
  = resource.versions.current.proof_status
%p 
  Required Consstatus: 
  = resource.versions.current.required_cons_status
%p 
  Proven Consstatus: 
  = resource.versions.current.proven_cons_status<commit_msg>Revert "fast fix for show page of links"<commit_after>- @page_title = resource.iri

%h2= link_to resource, resource, 'data-type' => resource_class
%p= fancy_tag(resource, [:theorem, :local, :proven, :inclusion]) { |a| ' | ' + a}

- if can? :update, Link
  .pull-right
    .btn-group
      = link_to 'Edit Metadata', :edit_link, class: 'btn btn-default'
      = link_to 'Update Link', :update_version_link, class: 'btn btn-default'
      - if can? :delete, Link
        = link_to 'Delete Link', :link, confirm: 'Are you sure?', method: :delete, class: 'btn btn-default'

%h5 Links
= fancy_link resource.source
to
= fancy_link resource.target

- if !resource.entity_mappings.empty?
  %h5 Entities
  %table
    %thead
      %t
        %th Source
        %th Target
    %tbody
      - resource.entity_mappings.each do |mapping|
        %tr
          %td= mapping.source
          %td= mapping.target

%h5 Status
%p 
  Proven:  
  = resource.current_version.proof_status
%p 
  Required Consstatus: 
  = resource.current_version.required_cons_status
%p 
  Proven Consstatus: 
  = resource.current_version.proven_cons_status
{'fraction_non_alphanumeric': 0.12262443438914027, 'fraction_numerical': 0.0036199095022624436, 'mean_word_length': 3.1020408163265305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1439418', 'n_tokens_mistral': 766, 'n_tokens_neox': 749, 'n_words': 194}