<commit_before>- title "Dataset <em>#{breakable(@data_node.suffix)}</em>".html_safe
- process_node = @data_node.producer

%p
  %b Project:
  = link_to @sample.project.name, @sample.project
  &mdash;
  %b Sample:
  = link_to @sample.name, @sample

= render :partial => "images/on_object", :object => @data_node
= render :partial => "comments/on_object", :object => @data_node

- if @data_node.hideable?
  %h2
    %span.action-links
      - text = @data_node.hidden ? "Include Node in" : "Exclude Node from"
      - url = toggle_data_node_url(@data_node)
      = link_to "#{text} Sample View", url, :method => :put

%h2 Details:

.tabs-container
  %input{ :name => 'active_tab', :type => 'hidden' }
  %ul
    = tab_link('#general', 'General')
    = tab_link('#predecessors', 'Predecessors')
    = tab_link('#successors', 'Successors')
    = tab_link('#parameters', 'Parameters')
    = tab_link('#output', 'Process Output')
    = tab_link('#history', 'History Entry')

  #general
    = render "properties"

  #parameters
    = render "parameters"

  #output
    - unless process_node.output_log.blank?
      %pre.code= process_node.output_log

  #history
    - unless process_node.history.blank?
      %pre.code= process_node.history

  #predecessors
    = render :partial => "dataset", :locals => { :graph => @sample.graph }, |
             :collection => @data_node.predecessors.resolved |

    - unless @data_node.predecessors.missing.empty?
      %h4 Unresolved:
      %ul
      - for v in @data_node.predecessors.missing
        %li= v.identifier || v.name

  #successors
    = render :partial => "dataset", :locals => { :graph => @sample.graph }, |
             :collection => @data_node.successors |
.clear
<commit_msg>Data node view shows import messages<commit_after>- title "Dataset <em>#{breakable(@data_node.suffix)}</em>".html_safe
- process_node = @data_node.producer

%p
  %b Project:
  = link_to @sample.project.name, @sample.project
  &mdash;
  %b Sample:
  = link_to @sample.name, @sample

= render :partial => "images/on_object", :object => @data_node
= render :partial => "comments/on_object", :object => @data_node

- unless @data_node.messages.empty?
  %h2 Import Messages:
  = format_text @data_node.messages.split("\n").map { |t| '* ' + t }.join("\n") 

- if @data_node.hideable?
  %h2
    %span.action-links
      - text = @data_node.hidden ? "Include Node in" : "Exclude Node from"
      - url = toggle_data_node_url(@data_node)
      = link_to "#{text} Sample View", url, :method => :put

%h2 Details:

.tabs-container
  %input{ :name => 'active_tab', :type => 'hidden' }
  %ul
    = tab_link('#general', 'General')
    = tab_link('#predecessors', 'Predecessors')
    = tab_link('#successors', 'Successors')
    = tab_link('#parameters', 'Parameters')
    = tab_link('#output', 'Process Output')
    = tab_link('#history', 'History Entry')

  #general
    = render "properties"

  #parameters
    = render "parameters"

  #output
    - unless process_node.output_log.blank?
      %pre.code= process_node.output_log

  #history
    - unless process_node.history.blank?
      %pre.code= process_node.history

  #predecessors
    = render :partial => "dataset", :locals => { :graph => @sample.graph }, |
             :collection => @data_node.predecessors.resolved |

    - unless @data_node.predecessors.missing.empty?
      %h4 Unresolved:
      %ul
      - for v in @data_node.predecessors.missing
        %li= v.identifier || v.name

  #successors
    = render :partial => "dataset", :locals => { :graph => @sample.graph }, |
             :collection => @data_node.successors |
.clear

{'fraction_non_alphanumeric': 0.15983379501385042, 'fraction_numerical': 0.0019390581717451524, 'mean_word_length': 3.355850422195416, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 37, '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': '1865675', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1205, 'n_words': 253}