<commit_before>---

- name: Test distribution
  assert:
    that: >
      ansible_os_family == "RedHat" and
      ansible_distribution_major_version == 6

# Use check-dependencies.py from Graphite on Github
- name: Install packages
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - graphite-web
    - httpd

- name: Graphite Web config
  template:
    src: local_settings.py.j2
    dest: "{{ graphite_config_dir }}/local_settings.py"
  notify:
    - Restart Apache

- name: Fix some error messages in Django
  copy:
    src: app_settings.py
    dest: "{{ graphite_python_dir }}/app_settings.py"
    owner: root
    group: root
    mode: 0644
  notify:
    - Restart Apache

- name: Apache vhost config
  template:<commit_msg>Fixing comparison of distro version in assert<commit_after>---

- name: Test distribution
  assert:
    that: >
      ansible_os_family == "RedHat" and
      ansible_distribution_major_version | int == 6

# Use check-dependencies.py from Graphite on Github
- name: Install packages
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - graphite-web
    - httpd

- name: Graphite Web config
  template:
    src: local_settings.py.j2
    dest: "{{ graphite_config_dir }}/local_settings.py"
  notify:
    - Restart Apache

- name: Fix some error messages in Django
  copy:
    src: app_settings.py
    dest: "{{ graphite_python_dir }}/app_settings.py"
    owner: root
    group: root
    mode: 0644
  notify:
    - Restart Apache

- name: Apache vhost config
  template:
{'fraction_non_alphanumeric': 0.09764089121887287, 'fraction_numerical': 0.007863695937090432, 'mean_word_length': 2.827067669172932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1626536', 'n_tokens_mistral': 521, 'n_tokens_neox': 500, 'n_words': 142}