<commit_before><iati-activity xml:lang="en" default-currency="USD" last-updated-datetime="<%= Time.now.xmlschema %>" linked-data-uri="http://ngoaidmap.org/iati/activities/<%= project.id %>" hierarchy="1">
  <iati-identifier>TBC</iati-identifier>
  <reporting-org ref="TBC#NGO Number" type="TBC#Will send" secondary-reporter="1">
      <narrative>NGO Aid Map</narrative>
  </reporting-org>
  <title>
   <narrative><%= project.name %></narrative>
  </title>
  <description type="1">
   <narrative><%= strip_tags(project.description) %></narrative>
  </description>
  <participating-org ref="<%= project.primary_organization.try(:iati_organizationid) %>" role="4" type="<%= project.primary_organization.try(:organization_type_code) %>">
    <narrative><%= project.primary_organization.try(:name) %> </narrative>
  </participating-org>
  <% project.donors.each do  |d| %>
    <participating-org ref="TBC #ADD field to donors" role="1" type="TBC #Add field to donors">
      <narrative><%= d.name %> </narrative>
    </participating-org>
  <% end %>
  <other-identifier ref="TBC #organization intervention id" type="A1">
   <owner-org ref="TBC Organization Intervention ID">
    <narrative>TBC Organization reference</narrative>
   </owner-org>
  </other-identifier>
  <activity-status code="<%= project.activity_status %>" />
    <activity-date iso-date="<%= project.start_date %>" type="1">
     <narrative>Planned start date of the activity</narrative>
    </activity-date>
    <activity-date iso-date="<%= project.end_date %>" type="3">
     <narrative>Planned end date of the activity</narrative>
    </activity-date>

  <contact-info type="1">
   <person-name>
    <narrative><%= project.contact_person %></narrative>
   </person-name>
   <job-title>
    <narrative><%= project.contact_position %></narrative>
   </job-title>
   <email><%= project.contact_email %></email>
   <website><%= project.website %></website>
  </contact-info>
  <activity-scope code="<%= project.activity_scope_code %>" />
  <% project.iati_countries.each do |c| %>
    <recipient-country code="<%= c %>" percentage="<%= 100/project.iati_countries.length #if there is more than one country blank %>" />
  <% end %>
  <% project.iati_locations.each do |l| %>
    <location ref="<%= l.uid %>">
     <!-- <location-reach code="1" /> -->
     <location-id vocabulary="G1 #Provider" code="<%= l.uid %>" />
     <name>
      <narrative><%= l.name %></narrative>
     </name>
     <description>
      <narrative><%=l.name %>, <%= l.country_name %></narrative>
     </description>
     <administrative vocabulary="G1 #provider " level="<%= l.adm_level %>" code="<%= l.uid %>" />
     <point srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
      <pos><%= l.latitude %> <%= l.longitude %></pos>
     </point><commit_msg>adds geolocation scopes<commit_after><iati-activity xml:lang="en" default-currency="USD" last-updated-datetime="<%= Time.now.xmlschema %>" linked-data-uri="http://ngoaidmap.org/iati/activities/<%= project.id %>" hierarchy="1">
  <iati-identifier>US-EIN-13-3287064-<%= project.intervention_id %></iati-identifier>
  <reporting-org ref="US-EIN-13-3287064" type="2" secondary-reporter="1">
      <narrative>NGO Aid Map</narrative>
  </reporting-org>
  <title>
   <narrative><%= project.name %></narrative>
  </title>
  <description type="1">
   <narrative><%= strip_tags(project.description) %></narrative>
  </description>
  <participating-org ref="<%= project.primary_organization.try(:iati_organizationid) %>" role="4" type="<%= project.primary_organization.try(:organization_type_code) %>">
    <narrative><%= project.primary_organization.try(:name) %> </narrative>
  </participating-org>
  <% project.donors.each do  |d| %>
    <participating-org ref="<%= d.iati_organizationid %>" role="1" type="<%= d.organization_type_code %>">
      <narrative><%= d.name %> </narrative>
    </participating-org>
  <% end %>
  <other-identifier ref="<%= project.intervention_id %>" type="A1">
   <owner-org ref="Organization Intervention ID">
    <narrative>Organization reporting data</narrative>
   </owner-org>
  </other-identifier>
  <activity-status code="<%= project.activity_status %>" />
    <activity-date iso-date="<%= project.start_date %>" type="1">
     <narrative>Planned start date of the activity</narrative>
    </activity-date>
    <activity-date iso-date="<%= project.end_date %>" type="3">
     <narrative>Planned end date of the activity</narrative>
    </activity-date>

  <contact-info type="1">
   <person-name>
    <narrative><%= project.contact_person %></narrative>
   </person-name>
   <job-title>
    <narrative><%= project.contact_position %></narrative>
   </job-title>
   <email><%= project.contact_email %></email>
   <website><%= project.website %></website>
  </contact-info>
  <activity-scope code="<%= project.activity_scope_code %>" />
  <% project.iati_countries.each do |c| %>
    <recipient-country code="<%= c %>" percentage="<%= project.iati_countries.length == 1 ? 100 : '' #if there is more than one country then blank %>" />
  <% end %>
  <% project.iati_locations.each do |l| %>
    <location ref="<%= l.uid %>">
     <!-- <location-reach code="1" /> -->
     <location-id vocabulary="<%= l.provider %>" code="<%= l.uid %>" />
     <name>
      <narrative><%= l.name %></narrative>
     </name>
     <description>
      <narrative><%=l.name %>, <%= l.country_name %></narrative>
     </description>
     <administrative vocabulary="<%= l.provider %>" level="<%= l.adm_level %>" code="<%= l.uid %>" />
     <point srsName="http://www.opengis.net/def/crs/EPSG/0/4326">
      <pos><%= l.latitude %> <%= l.longitude %></pos>
     </point>
{'fraction_non_alphanumeric': 0.20678085820236625, 'fraction_numerical': 0.010241921243157337, 'mean_word_length': 4.070725156669651, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 215, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '402341', 'n_tokens_mistral': 2118, 'n_tokens_neox': 1946, 'n_words': 349}