<commit_before>- name: Update APT package cache
  apt: update_cache=yes

- name: Install system packages
  apt: name={{ item }} state=latest
  notify: reload systemd
  with_items:
    - sudo
    - python-software-properties
    - sqlite3
    - supervisor
    - nginx

- name: Install python2 packages
  when: openwisp2_python in ["python2.7", "python2"]
  apt: name={{ item }} state=latest
  with_items:
    - python-pip
    - python-dev
    - python-virtualenv

- name: Install python3 packages
  when: openwisp2_python == "python3"
  apt: name={{ item }} state=latest
  with_items:
    - python3
    - python3-pip
    - python3-dev
    - python-virtualenv

- name: Install python wheel (optional, allowed to fail)
  ignore_errors: yes
  apt: name={{ item }} state=latest
  with_items:
    - python-wheel
    - python3-wheel

- name: Install python3-virtualenv
  when: ansible_distribution != 'Ubuntu'
  apt: name={{ item }} state=latest
  with_items:
    - python3-virtualenv

- name: Install git if using development version of any openwisp module
  apt: name=git state=latest
  when: not openwisp2_stable or not openwisp2_netjsonconfig_stable
<commit_msg>Ensure supervisorctl is started #3<commit_after>- name: Update APT package cache
  apt: update_cache=yes

- name: Install system packages
  apt: name={{ item }} state=latest
  notify: reload systemd
  with_items:
    - sudo
    - python-software-properties
    - sqlite3
    - supervisor
    - nginx

- name: ensure supervisor is started
  service: name=supervisor state=started

- name: Install python2 packages
  when: openwisp2_python in ["python2.7", "python2"]
  apt: name={{ item }} state=latest
  with_items:
    - python-pip
    - python-dev
    - python-virtualenv

- name: Install python3 packages
  when: openwisp2_python == "python3"
  apt: name={{ item }} state=latest
  with_items:
    - python3
    - python3-pip
    - python3-dev
    - python-virtualenv

- name: Install python wheel (optional, allowed to fail)
  ignore_errors: yes
  apt: name={{ item }} state=latest
  with_items:
    - python-wheel
    - python3-wheel

- name: Install python3-virtualenv
  when: ansible_distribution != 'Ubuntu'
  apt: name={{ item }} state=latest
  with_items:
    - python3-virtualenv

- name: Install git if using development version of any openwisp module
  apt: name=git state=latest
  when: not openwisp2_stable or not openwisp2_netjsonconfig_stable

{'fraction_non_alphanumeric': 0.0967741935483871, 'fraction_numerical': 0.014474772539288668, 'mean_word_length': 3.304270462633452, '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': '6385263', 'n_tokens_mistral': 789, 'n_tokens_neox': 770, 'n_words': 226}