<commit_before>{% from "mongodb/map.jinja" import mongodb with context %}
{% set os_family = grains['os_family'] %}

{% if os_family == 'RedHat' %}
install_mongodb_gpg_key:
  cmd.run:
    - name: rpm --import {{ mongodb.gpg_key }}
    - require_in:
      - pkgrepo: add_mongodb_package_repository
{% endif %}

{% if mongodb.install_pkgrepo %}

{% if os_family == 'Debian' %}
ensure_dirmngr_is_installed:
  pkg.installed:
    - name: dirnmgr
    - refresh: True
{% endif %}

add_mongodb_package_repository:
  pkgrepo.managed:
    - humanname: MongoDB Repository
    {% if os_family == 'Debian' %}
    - name: {{ mongodb.repo }}
    {% elif os_family == 'RedHat' %}
    - name: MongoDB Repository
    - baseurl: {{ mongodb.repo }}
    - gpgcheck: 1
    - enabled: 1
    {% endif %}
    - keyid: {{ mongodb.key }}
    - keyserver: {{ mongodb.keyserver }}
    - refresh_db: True
    - require_in:
      - install_packages
{% endif %}<commit_msg>Fix typo<commit_after>{% from "mongodb/map.jinja" import mongodb with context %}
{% set os_family = grains['os_family'] %}

{% if os_family == 'RedHat' %}
install_mongodb_gpg_key:
  cmd.run:
    - name: rpm --import {{ mongodb.gpg_key }}
    - require_in:
      - pkgrepo: add_mongodb_package_repository
{% endif %}

{% if mongodb.install_pkgrepo %}

{% if os_family == 'Debian' %}
ensure_dirmngr_is_installed:
  pkg.installed:
    - name: dirmngr
    - refresh: True
{% endif %}

add_mongodb_package_repository:
  pkgrepo.managed:
    - humanname: MongoDB Repository
    {% if os_family == 'Debian' %}
    - name: {{ mongodb.repo }}
    {% elif os_family == 'RedHat' %}
    - name: MongoDB Repository
    - baseurl: {{ mongodb.repo }}
    - gpgcheck: 1
    - enabled: 1
    {% endif %}
    - keyid: {{ mongodb.key }}
    - keyserver: {{ mongodb.keyserver }}
    - refresh_db: True
    - require_in:
      - install_packages
{% endif %}
{'fraction_non_alphanumeric': 0.14917421417155036, 'fraction_numerical': 0.002131060202450719, 'mean_word_length': 2.9453781512605044, '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': '5287754', 'n_tokens_mistral': 764, 'n_tokens_neox': 663, 'n_words': 135}