<commit_before>json.partial! "info", :run => @run

json.partial! "inputs", :inputs => @run.inputs

if @run.outputs.size > 0
  json.outputs @run.outputs do |output|
    json.name output.name
    json.depth output.depth
    json.uri run_path(@run) + "/output/#{output.name}"
  end

  json.outputs_zip @run.results.url
end

unless @run.log.blank?
  json.log @run.log.url
end

unless @interaction.nil?
  json.interaction do
    json.serial @interaction.serial
    json.uri interaction_redirect(@interaction)
  end
end<commit_msg>[TAV-466] Add port metadata to JSON output.<commit_after>json.partial! "info", :run => @run

json.partial! "inputs", :inputs => @run.inputs

if @run.outputs.size > 0
  json.outputs @run.outputs do |output|
    json.name output.name
    json.depth output.depth
    json.type output.metadata[:type]
    json.size output.metadata[:size]
    json.uri run_path(@run) + "/output/#{output.name}"
  end

  json.outputs_zip @run.results.url
end

unless @run.log.blank?
  json.log @run.log.url
end

unless @interaction.nil?
  json.interaction do
    json.serial @interaction.serial
    json.uri interaction_redirect(@interaction)
  end
end
{'fraction_non_alphanumeric': 0.13518197573656845, 'fraction_numerical': 0.004332755632582322, 'mean_word_length': 3.753086419753086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '521952', 'n_tokens_mistral': 404, 'n_tokens_neox': 392, 'n_words': 91}