<commit_before><addon>
  <name>{{ addon.name }}</name>
  <type id="{{ addon.type.id }}">{{ amo.ADDON_TYPE[addon.type.id] }}</type>
  <guid>{{ addon.guid }}</guid>
  <version>{{ addon.current_version.version }}</version>
  <status id="{{ addon.status }}">{{ amo.STATUS_CHOICES[addon.status] }}</status>
  <authors>
    {% for author in addon.authors.filter(addonuser__listed=True) %}
    {% if api_version >= 1.5 %}
    <author>
      <name>{{ author.display_name }}</name>
      <link>{{ settings.SITE_URL + author.get_absolute_url() + '?src=api' }}</link>
    </author>
    {% else %}
    <author>{{ author.display_name }}</author>
    {% endif %}
    {% endfor %}
  </authors>
  <summary>{{ addon.summary }}</summary>
  <description>{{ addon.description }}</description>
  <icon>{{ addon.icon_url }}</icon>
  <compatible_applications>
    {% if addon.current_version %}
    {% for app in addon.current_version.applicationsversions_set.all() %}
    {% if amo.APP_IDS.get(app.application_id) %}
    <application>
      <name>{{ amo.APP_IDS[app.application_id].pretty }}</name>
      <application_id>{{ app.application_id }}</application_id>
      <min_version>{{ app.min }}</min_version>
      <max_version>{{ app.max }}</max_version>
      <appID>{{ amo.APP_IDS[app.application_id].guid }}</appID>
    </application>
    {% endif %}
    {% endfor %}
    {% endif %}
  </compatible_applications>
  <all_compatible_os>
    {% if addon.current_version %}
    {% for os in addon.current_version.supported_platforms %}
    <os>{{ os }}</os>
    {% endfor %}
    {% endif %}
  </all_compatible_os>
  <eula>{{ addon.eula|hide_none }}</eula>
  <thumbnail>{{ addon.thumbnail_url }}</thumbnail>
  <rating>{{ addon.bayesian_rating|wround(0, 'ceil') }}</rating>
  <learnmore>
    {{ settings.SITE_URL+addon.get_absolute_url()+'?src=api' }}</learnmore>
  {% if addon.current_version %}
  {% for file in addon.current_version.files.all() %}
  <install hash="{{ file.hash }}" os="{{ file.platform.name }}"
    size="{{ file.size }}kb">
    {{ file.get_absolute_url('api') }}
  </install>
  {% endfor %}
  {% endif %}
  {% if api_version >= 1.5 %}
  {% if addon.wants_contributions %}
  <contribution_data>
    <link>{{ addon.contribution_url + '?src=api' }}</link>
    <suggested_amount>{{ addon.suggested_amount }}</suggested_amount>
    <meet_developers>{{ addon.meet_developers_url + '?src=api' }}</meet_developers>
  </contribution_data>
  {% endif %}
  <num_reviews>{{ addon.total_reviews }}</num_reviews>
  <reviews>{{ addon.reviews_url + '?src=api' }}</reviews>
  <total_downloads>{{ addon.total_downloads }}</total_downloads>
  <weekly_downloads>{{ addon.weekly_downloads }}</weekly_downloads>
  <daily_users>{{ addon.average_daily_users }}</daily_users>
  <created>{{ addon.created }}</created>
  <last_updated>{{ addon.last_updated }}</last_updated>
  {% endif %}
</addon>
<commit_msg>cache addon.xml by the addon object<commit_after>{% cache addon %}
<addon>
  <name>{{ addon.name }}</name>
  <type id="{{ addon.type.id }}">{{ amo.ADDON_TYPE[addon.type.id] }}</type>
  <guid>{{ addon.guid }}</guid>
  <version>{{ addon.current_version.version }}</version>
  <status id="{{ addon.status }}">{{ amo.STATUS_CHOICES[addon.status] }}</status>
  <authors>
    {% for author in addon.authors.filter(addonuser__listed=True) %}
    {% if api_version >= 1.5 %}
    <author>
      <name>{{ author.display_name }}</name>
      <link>{{ settings.SITE_URL + author.get_absolute_url() + '?src=api' }}</link>
    </author>
    {% else %}
    <author>{{ author.display_name }}</author>
    {% endif %}
    {% endfor %}
  </authors>
  <summary>{{ addon.summary }}</summary>
  <description>{{ addon.description }}</description>
  <icon>{{ addon.icon_url }}</icon>
  <compatible_applications>
    {% if addon.current_version %}
    {% for app in addon.current_version.applicationsversions_set.all() %}
    {% if amo.APP_IDS.get(app.application_id) %}
    <application>
      <name>{{ amo.APP_IDS[app.application_id].pretty }}</name>
      <application_id>{{ app.application_id }}</application_id>
      <min_version>{{ app.min }}</min_version>
      <max_version>{{ app.max }}</max_version>
      <appID>{{ amo.APP_IDS[app.application_id].guid }}</appID>
    </application>
    {% endif %}
    {% endfor %}
    {% endif %}
  </compatible_applications>
  <all_compatible_os>
    {% if addon.current_version %}
    {% for os in addon.current_version.supported_platforms %}
    <os>{{ os }}</os>
    {% endfor %}
    {% endif %}
  </all_compatible_os>
  <eula>{{ addon.eula|hide_none }}</eula>
  <thumbnail>{{ addon.thumbnail_url }}</thumbnail>
  <rating>{{ addon.bayesian_rating|wround(0, 'ceil') }}</rating>
  <learnmore>
    {{ settings.SITE_URL+addon.get_absolute_url()+'?src=api' }}</learnmore>
  {% if addon.current_version %}
  {% for file in addon.current_version.files.all() %}
  <install hash="{{ file.hash }}" os="{{ file.platform.name }}"
    size="{{ file.size }}kb">
    {{ file.get_absolute_url('api') }}
  </install>
  {% endfor %}
  {% endif %}
  {% if api_version >= 1.5 %}
  {% if addon.wants_contributions %}
  <contribution_data>
    <link>{{ addon.contribution_url + '?src=api' }}</link>
    <suggested_amount>{{ addon.suggested_amount }}</suggested_amount>
    <meet_developers>{{ addon.meet_developers_url + '?src=api' }}</meet_developers>
  </contribution_data>
  {% endif %}
  <num_reviews>{{ addon.total_reviews }}</num_reviews>
  <reviews>{{ addon.reviews_url + '?src=api' }}</reviews>
  <total_downloads>{{ addon.total_downloads }}</total_downloads>
  <weekly_downloads>{{ addon.weekly_downloads }}</weekly_downloads>
  <daily_users>{{ addon.average_daily_users }}</daily_users>
  <created>{{ addon.created }}</created>
  <last_updated>{{ addon.last_updated }}</last_updated>
  {% endif %}
</addon>
{% endcache %}
{'fraction_non_alphanumeric': 0.20202888583218706, 'fraction_numerical': 0.0017193947730398899, 'mean_word_length': 4.12511013215859, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 163, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5655217', 'n_tokens_mistral': 2264, 'n_tokens_neox': 2054, 'n_words': 351}