<commit_before>json.prettify!

json.plans @org_projects.each do |project|
  json.id             project.id
  json.grant_number   project.grant_number
  json.template do
    json.title        project.dmptemplate.title
    json.id           project.dmptemplate.id
  end
  json.project do
    json.title        project.title
  end
  json.funder do
    json.name         project.funder_name
  end
  json.principal_investigator do
    json.name         project.principal_investigator
  end
  json.data_contact do
    json.info         project.data_contact<commit_msg>added org_id field to plans metadata as a returned plan can belong to somebody else's organisation<commit_after>json.prettify!

json.plans @org_projects.each do |project|
  json.id             project.id
  json.grant_number   project.grant_number
  json.org_id         project.organisation_id
  json.template do
    json.title        project.dmptemplate.title
    json.id           project.dmptemplate.id
  end
  json.project do
    json.title        project.title
  end
  json.funder do
    json.name         project.funder_name
  end
  json.principal_investigator do
    json.name         project.principal_investigator
  end
  json.data_contact do
    json.info         project.data_contact
{'fraction_non_alphanumeric': 0.0549800796812749, 'fraction_numerical': 0.0, 'mean_word_length': 2.4130434782608696, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2266080', 'n_tokens_mistral': 386, 'n_tokens_neox': 380, 'n_words': 86}