<commit_before>object @inventory => ""

node :title do |inventory|
  "Catálogo de datos abiertos de #{inventory.organization.title}"
end

node :description do
  ""
end

node :homepage do
  ""
end

node :issued do |inventory|
  "#{inventory.organization.first_published_catalog.publish_date}"
end

node :modified do |inventory|
  "#{inventory.organization.current_catalog.publish_date}"
end

node :language do
  "es"
end

node :license do
  "http://datos.gob.mx/tos/"
end

child :datasets => :dataset do |inventory|
  attributes :title, :description, :modified, :contactPoint, :identifier, :accessLevel, :accessLevelComment, :license, :spatial

  node :publisher do |dataset|
    attributes :publisher => dataset.publisher, :mbox => dataset.mbox
  end

  node :keyword do |dataset|
    dataset.keywords
  end

  child :distributions => :distribution do |dataset|
    attributes :spatial, :temporal, :accrualPeriodicity, :title, :description, :mediaType, :downloadURL
  end
end<commit_msg>Se agregaron metadatos faltantes a datasets y distribution para generar json (license y language).<commit_after>object @inventory => ""

node :title do |inventory|
  "Catálogo de datos abiertos de #{inventory.organization.title}"
end

node :description do
  ""
end

node :homepage do
  ""
end

node :issued do |inventory|
  "#{inventory.organization.first_published_catalog.publish_date}"
end

node :modified do |inventory|
  "#{inventory.organization.current_catalog.publish_date}"
end

node :language do
  "es"
end

node :license do
  "http://datos.gob.mx/tos/"
end

child :datasets => :dataset do |inventory|
  attributes :title, :description, :modified, :contactPoint, :identifier, :accessLevel, :accessLevelComment, :license, :spatial

  node :language do
    "es"
  end

  node :publisher do |dataset|
    attributes :name => dataset.publisher, :mbox => dataset.mbox
  end

  node :keyword do |dataset|
    dataset.keywords
  end

  child :distributions => :distribution do |dataset|
    attributes :spatial, :temporal, :accrualPeriodicity, :title, :description, :mediaType, :downloadURL

    node :license do
      "http://datos.gob.mx/tos/"
    end
  end
end
{'fraction_non_alphanumeric': 0.1161170459823502, 'fraction_numerical': 0.0, 'mean_word_length': 4.624020887728459, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '920139', 'n_tokens_mistral': 708, 'n_tokens_neox': 686, 'n_words': 200}