<commit_before>.row
  = semantic_form_for relic, :url => section_relic_path(relic.id, :section => :links), :remote => true, :html => { :"data-next-id" => relic.links.length + 1 } do |f|
    #links.links_container{ :style => (relic.links.select(&:url?).length == 0 ? "display: none" : "") }
      %p.header
        %span.number= t('views.relics.edit.links.number')
        %span.url= t('views.relics.edit.links.source_type')
        %span.info= t('views.relics.edit.links.url')
        %span.action= t('views.relics.edit.links.action')
      %ol.sortable
        - relic.all_links.select(&:url?).sort_by{ |e| e.position || 1000 }.each do |link|
          = f.semantic_fields_for :links, link do |f2|
            = content_tag_for :li, link, :class => "move" do
              = f2.input :category, :label => false, :collection => Link::UrlCategories
              = f2.input :url, :label => false, :hint => false, :class => "url"
              = f2.input :name, :label => false, :hint => false, :class => "info"
              - if relic.is_group?
                = f2.input :relic_id, as: :select, label: "dotyczy", include_blank: false, required: false, collection: Hash[relic.root.descendants.map {|d| [d.identification, d.id] }.insert(0, ['całego zespołu zabytków', relic.id])]
              = f2.hidden_field :position, :class => "link-position"
              = f2.hidden_field :_destroy
              = f2.hidden_field :kind, :value => "url"
              = link_to t('views.relics.edit.delete'), '#', :class => "remove_link"
              .description Opis:
              .arrow
        %script{ :type => "text/html", :id => "link_template", :"data-container" => "#links" }
          = f.semantic_fields_for :links, relic.links.build do |f2|
            %li.link.move

              = f2.input :category, :label => false, :collection => Link::UrlCategories
              = f2.input :url, :label => false, :hint => false, :class => "url"
              = f2.input :name, :label => false, :hint => false, :class => "info"
              - if relic.is_group?
                .apply-to
                  = f2.input :relic_id, as: :select, label: "Dotyczy", required: false, collection: Hash[relic.root.descendants.map {|d| [
              = f2.hidden_field :position, :class => "link-position"
              = f2.hidden_field :_destroy<commit_msg>fixed links form for relic profile<commit_after>.row
  = semantic_form_for relic, :url => section_relic_path(relic.id, :section => :links), :remote => true, :html => { :"data-next-id" => relic.links.length + 1 } do |f|
    #links.links_container{ :style => (relic.links.select(&:url?).length == 0 ? "display: none" : "") }
      %p.header
        %span.number= t('views.relics.edit.links.number')
        %span.url= t('views.relics.edit.links.source_type')
        %span.info= t('views.relics.edit.links.url')
        %span.action= t('views.relics.edit.links.action')
      %ol.sortable
        - relic.all_links.select(&:url?).sort_by{ |e| e.position || 1000 }.each do |link|
          = f.semantic_fields_for :links, link do |f2|
            = content_tag_for :li, link, :class => "move" do
              = f2.input :category, :label => false, :collection => Link::UrlCategories
              = f2.input :url, :label => false, :hint => false, :class => "url"
              = f2.input :name, :label => false, :hint => false, :class => "info"
              - if relic.is_group?
                = f2.input :relic_id, as: :select, label: "dotyczy", include_blank: false, required: false, collection: Hash[relic.root.descendants.map {|d| [d.identification, d.id] }.insert(0, ['całego zespołu zabytków', relic.id])]
              = f2.hidden_field :position, :class => "link-position"
              = f2.hidden_field :_destroy
              = f2.hidden_field :kind, :value => "url"
              = link_to t('views.relics.edit.delete'), '#', :class => "remove_link"
              .description Opis:
              .arrow
        %script{ :type => "text/html", :id => "link_template", :"data-container" => "#links" }
          = f.semantic_fields_for :links, relic.links.build do |f2|
            %li.link.move
              = f2.input :category, :label => false, :collection => Link::UrlCategories
              = f2.input :url, :label => false, :hint => false, :class => "url"
              = f2.input :name, :label => false, :hint => false, :class => "info"
              - if relic.is_group?
                = f2.input :relic_id, as: :select, label: "dotyczy", required: false, collection: Hash[relic.root.descendants.map {|d| [d.identification, d.id] }.insert(0, ['całego zespołu zabytków', relic.id])]
              = f2.hidden_field :position, :class => "link-position"
              = f2.hidden_field :_destroy
{'fraction_non_alphanumeric': 0.1723775488753416, 'fraction_numerical': 0.009459743535841917, 'mean_word_length': 2.4428364688856727, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '7134868', 'n_tokens_mistral': 1619, 'n_tokens_neox': 1576, 'n_words': 340}