<commit_before>- hidden = dataset.hidden ? ' hidden' : ''
- hideable = hideable ? ' hideable' : ''
- level = 0 unless defined?(level) and level
- graph = dataset.project.graph unless defined?(graph) and graph
- pred = "x#{graph.pred(dataset.id).to_a.join('x')}x"
- succ = "x#{graph.succ(dataset.id).to_a.join('x')}x"

%div{ :id => "x#{dataset.id}x", :class => "data-set#{hideable}", |
      :'data-pred' => pred, :'data-succ' => succ } |
  %a{ :href => data_node_url(dataset) }
    %div{ :class => "data-set-header #{dataset.status}#{hidden}", |
          :style => "margin-left: #{level * 8}pt" } |
      &nbsp;
      %dfn= (dataset.data_type || "").underscore.humanize.titleize
      == (#{h(dataset.last_suffix)})
      &nbsp;
      - if dataset.images.empty?
        &mdash;
      - else
        = image_tag("grains-tiny.png", :alt => "")
      &nbsp;
      = format_time(dataset.date, :mode => :terse)
      - if dataset.filename
        &nbsp; &bull;
      .data-set-popup
        - pic = dataset.images.first
        - if pic
          - thumbnail = pic.thumbnail(80,80) || pic
          %img{ :src => nested_url_for([dataset, thumbnail]), :alt => "", |
                :width => 80, :height => 80 } |
        .blurb
          = dataset.suffix
          - if dataset.status == 'missing'
            %em (unresolved)
            %br
          - else
            - if dataset.status == 'error'
              %em (rejected)
            %br
            %dfn Sample:
            = dataset.sample.name
            %br
            %dfn Process:
            = (dataset.producer.data_type || "").underscore.humanize
            %br
            %dfn Time:
            = format_time(dataset.date, :mode => :sortable, :zone => true)
            %br
            %dfn Operator:
            = dataset.producer.run_by || '&mdash;'.html_safe
            %br
      .clear<commit_msg>Display identifier for unresolved data node<commit_after>- hidden = dataset.hidden ? ' hidden' : ''
- hideable = hideable ? ' hideable' : ''
- level = 0 unless defined?(level) and level
- graph = dataset.project.graph unless defined?(graph) and graph
- pred = "x#{graph.pred(dataset.id).to_a.join('x')}x"
- succ = "x#{graph.succ(dataset.id).to_a.join('x')}x"

%div{ :id => "x#{dataset.id}x", :class => "data-set#{hideable}", |
      :'data-pred' => pred, :'data-succ' => succ } |
  - if dataset.status == 'missing'
    %div{ :class => "data-set-header #{dataset.status}#{hidden}", |
          :style => "margin-left: #{level * 8}pt" } |
      &nbsp;
      %dfn= dataset.identifier
      &nbsp;
      %em (unresolved)
  - else
    %a{ :href => data_node_url(dataset) }
      %div{ :class => "data-set-header #{dataset.status}#{hidden}", |
            :style => "margin-left: #{level * 8}pt" } |
        &nbsp;
        %dfn= (dataset.data_type || "").underscore.humanize.titleize
        == (#{h(dataset.last_suffix)})
        &nbsp;
        - if dataset.images.empty?
          &mdash;
        - else
          = image_tag("grains-tiny.png", :alt => "")
        &nbsp;
        = format_time(dataset.date, :mode => :terse)
        - if dataset.filename
          &nbsp; &bull;
        .data-set-popup
          - pic = dataset.images.first
          - if pic
            - thumbnail = pic.thumbnail(80,80) || pic
            %img{ :src => nested_url_for([dataset, thumbnail]), :alt => "", |
                  :width => 80, :height => 80 } |
          .blurb
            = dataset.suffix
            - if dataset.status == 'error'
              %em (rejected)
            %br
            %dfn Sample:
            = dataset.sample.name
            %br
            %dfn Process:
            = (dataset.producer.data_type || "").underscore.humanize
            %br
            %dfn Time:
            = format_time(dataset.date, :mode => :sortable, :zone => true)
            %br
            %dfn Operator:
            = dataset.producer.run_by || '&mdash;'.html_safe
            %br
        .clear
{'fraction_non_alphanumeric': 0.17234418369921775, 'fraction_numerical': 0.005299015897047691, 'mean_word_length': 1.8273894436519258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '2542941', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1279, 'n_words': 251}