<commit_before>---
- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}/+simple'
  when: ansible_distribution_version == "12.04" and openstack.pypi_mirror is defined
  register: result
  until: result|succeeded
  retries: 5

- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}/+simple'
  when: ansible_distribution_version != "12.04"
  register: result
  until: result|succeeded
  retries: 5

- name: root user pip config directory
  file: dest=/root/.pip state=directory

- name: pip config file
  template: src=etc/pip.conf dest=/root/.pip/pip.conf
  when: openstack.pypi_mirror is defined

- name: easyinstall config file
  template: src=etc/pydistutils.cfg dest=/root/.pydistutils.cfg
  when: openstack.easy_install_mirror is defined

- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}/+simple'
  when: ansible_distribution_version == "12.04" and openstack.pypi_mirror is not defined
  register: result
  until: result|succeeded
  retries: 5

- name: uninstall python-setuptools
  apt: pkg=python-setuptools state=absent<commit_msg>Don't add +simple to pypi_mirror (#2129)<commit_after>---
- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}'
  when: ansible_distribution_version == "12.04" and openstack.pypi_mirror is defined
  register: result
  until: result|succeeded
  retries: 5

- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}'
  when: ansible_distribution_version != "12.04"
  register: result
  until: result|succeeded
  retries: 5

- name: root user pip config directory
  file: dest=/root/.pip state=directory

- name: pip config file
  template: src=etc/pip.conf dest=/root/.pip/pip.conf
  when: openstack.pypi_mirror is defined

- name: easyinstall config file
  template: src=etc/pydistutils.cfg dest=/root/.pydistutils.cfg
  when: openstack.easy_install_mirror is defined

- name: update pip
  pip: name=pip version={{ common.pip_version }}
       extra_args='-i {{ openstack.pypi_mirror }}'
  when: ansible_distribution_version == "12.04" and openstack.pypi_mirror is not defined
  register: result
  until: result|succeeded
  retries: 5

- name: uninstall python-setuptools
  apt: pkg=python-setuptools state=absent
{'fraction_non_alphanumeric': 0.11533791987049777, 'fraction_numerical': 0.013759611493322542, 'mean_word_length': 4.226215644820296, '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': '3283794', 'n_tokens_mistral': 899, 'n_tokens_neox': 817, 'n_words': 209}