<commit_before><?xml version="1.0" encoding="UTF-8"?>
<aggregators xmlns="http://www.ekylibre.org/XML/2013/aggregators">
  <aggregator name="veterinary_booklet" version="0.0" category="health">
    <parameters>
      <parameter name="campaigns" type="record-list" of="campaign" default="currents"/>
    </parameters>
    <section name="campaigns">
      <variable name="company" value="Entity.of_company"/>
      <property name="entity_name" value="company.full_name"/>
      <property name="address" value="company.default_mail_address.coordinate"/>
      <property name="breeding_number" value="Preference.get('services.synel17.login').value" />
      <sections for="campaign" in="campaigns">
        <property name="id" of="campaign" level="api"/>
        <title name="name" of="campaign"/>
        <sections for="intervention" in="campaign.interventions.of_nature(:animal_treatment)">
          <variable name="target" value="intervention.casts.of_role("animal_treatment-target").first.actor"/>
          <variable name="worker" value="intervention.casts.of_role("animal_treatment-doer").first.actor"/>
          <title name="name" of="intervention"/>
          <property name="id" of="intervention" level="api"/>
          <property name="started_at" of="intervention" type="datetime"/>
          <property name="stopped_at" of="intervention" type="datetime"/>
          <property name="duration" value="((intervention.stopped_at - intervention.started_at).to_d/(60*60*24)).round(2)" type="decimal"/>
          <section name="target" of="target">
            <property name="identification_number"/>
            <title name="name"/>
            <property name="id" level="api"/>
            <property name="type" level="api"/>
            <property name="url" value="id" level="api" type="url"/>
          </section>
          <section name="worker" of="worker">
            <property name="identification_number"/>
            <title name="name" of-type="record"/>
            <property name="id" level="api"/>
            <property name="person_id" level="api"/>
          </section>
          <section name="incident" of="intervention.incident" of-type="record">
            <property name="id" level="api"/>
            <title name="name"/>
            <property name="observed_at" type="datetime"/>
            <property name="state" level="api"/>
            <property name="description"/>
          </section>
          <section name="prescription" of="intervention.prescription">
            <property name="id" level="api"/>
            <title name="reference_number"/>
            <property name="prescriptor_name"/>
          </section>
          <matrix name="inputs" for="input" in="intervention.casts.of_role("animal_treatment-input")">
            <variable name="meat_withdrawal_period" value="input.actor.meat_withdrawal_period"/>
            <variable name="milk_withdrawal_period" value="input.actor.milk_withdrawal_period"/>
            <cell name="id" of="input" level="api"/>
            <within of="input.actor">
              <cell name="name"/>
              <cell name="variety" level="api"/>
            </within>
            <cell name="quantity" of="input" type="measure"/>
            <matrix name="withdrawal_periods">
              <cell name="meat_withdrawal_period" value="meat_withdrawal_period" type="measure"/>
              <cell name="milk_withdrawal_period" value="milk_withdrawal_period" type="measure"/>
            </matrix>
            <matrix name="sale_dates">
              <cell name="meat_saleable_on" value="(intervention.stopped_at + meat_withdrawal_period.to_d.send(meat_withdrawal_period.unit)).to_date" type="date"/>
              <cell name="milk_saleable_on" value="(intervention.stopped_at + milk_withdrawal_period.to_d.send(milk_withdrawal_period.unit)).to_date" type="date"/>
            </matrix>
          </matrix>
        </sections>
      </sections>
    </section>
  </aggregator>
</aggregators><commit_msg>aggregators reworks (but need data)<commit_after><?xml version="1.0" encoding="UTF-8"?>
<aggregators xmlns="http://www.ekylibre.org/XML/2013/aggregators">
  <aggregator name="veterinary_booklet" version="0.0" category="health">
    <parameters>
      <parameter name="campaigns" type="record-list" of="campaign" default="currents"/>
    </parameters>
    <section name="campaigns">
      <variable name="company" value="Entity.of_company"/>
      <property name="entity_name" value="company.full_name"/>
      <property name="address" value="company.default_mail_address.coordinate"/>
      <property name="breeding_number" value="Preference.get('services.synel17.login').value" />
      <sections for="campaign" in="campaigns">
        <property name="id" of="campaign" level="api"/>
        <title name="name" of="campaign"/>
        <sections for="intervention" in="campaign.interventions.of_nature(:animal_treatment)">
          <variable name="target" value="intervention.casts.of_role('animal_treatment-target').first.actor"/>
          <variable name="worker" value="intervention.casts.of_role('animal_treatment-doer').first.actor"/>
          <title name="name" of="intervention"/>
          <property name="id" of="intervention" level="api"/>
          <property name="started_at" of="intervention" type="datetime"/>
          <property name="stopped_at" of="intervention" type="datetime"/>
          <property name="duration" value="((intervention.stopped_at - intervention.started_at).to_d/(60*60*24)).round(2)" type="decimal"/>
          <section name="target" of="target">
            <property name="identification_number"/>
            <title name="name"/>
            <property name="id" level="api"/>
            <property name="type" level="api"/>
            <property name="url" value="id" level="api" type="url"/>
          </section>
          <section name="worker" of="worker">
            <property name="identification_number"/>
            <title name="name" of-type="record"/>
            <property name="id" level="api"/>
            <property name="person_id" level="api"/>
          </section>
          <section name="incident" of="intervention.incident" of-type="record">
            <property name="id" level="api"/>
            <title name="name"/>
            <property name="observed_at" type="datetime"/>
            <property name="state" level="api"/>
            <property name="description"/>
          </section>
          <section name="prescription" of="intervention.prescription">
            <property name="id" level="api"/>
            <title name="reference_number"/>
            <property name="prescriptor_name"/>
          </section>
          <matrix name="inputs" for="input" in="intervention.casts.of_role('animal_treatment-input')">
            <variable name="meat_withdrawal_period" value="input.actor.meat_withdrawal_period"/>
            <variable name="milk_withdrawal_period" value="input.actor.milk_withdrawal_period"/>
            <cell name="id" of="input" level="api"/>
            <within of="input.actor">
              <cell name="name"/>
              <cell name="variety" level="api"/>
            </within>
            <cell name="quantity" of="input" type="measure"/>
            <matrix name="withdrawal_periods">
              <cell name="meat_withdrawal_period" value="meat_withdrawal_period" type="measure"/>
              <cell name="milk_withdrawal_period" value="milk_withdrawal_period" type="measure"/>
            </matrix>
            <matrix name="sale_dates">
              <cell name="meat_saleable_on" value="(intervention.stopped_at + meat_withdrawal_period.to_d.send(meat_withdrawal_period.unit)).to_date" type="date"/>
              <cell name="milk_saleable_on" value="(intervention.stopped_at + milk_withdrawal_period.to_d.send(milk_withdrawal_period.unit)).to_date" type="date"/>
            </matrix>
          </matrix>
        </sections>
      </sections>
    </section>
  </aggregator>
</aggregators>
{'fraction_non_alphanumeric': 0.16173520561685056, 'fraction_numerical': 0.004513540621865597, 'mean_word_length': 3.0719754977029097, 'pattern_counts': {'":': 0, '<': 143, '<?xml version=': 2, '>': 143, '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': '4999439', 'n_tokens_mistral': 2337, 'n_tokens_neox': 2212, 'n_words': 379}