<commit_before>---
- lineinfile: dest=~/.bash_profile line='# for pyenv by ansible-mac-setup'
- lineinfile: dest=~/.bash_profile line='export PYENV_ROOT="$HOME/.pyenv"'
- lineinfile: dest=~/.bash_profile line='export PATH="$PYENV_ROOT/bin:$PATH"'
- lineinfile: dest=~/.bash_profile line='export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"'
- lineinfile: dest=~/.bash_profile line='export WORKON_HOME=~/.virtualenvs'

- name: install latest python
  shell: pyenv install $(pyenv install -l | grep -v - | tail -1)

- name: rehash
  shell: pyenv rehash

- name: set latest python
  shell: pyenv global $(pyenv install -l | grep -v - | tail -1)

- name: create virtualenvs dir
  file: path=~/.virtualenvs state=directory

- name: install pip mods for virtualenv
  pip:
    name:
      - virtualenv
      - virtualenvwrapper

- lineinfile: dest=~/.bash_profile line='eval "$(pyenv init -)"'
- lineinfile: dest=~/.bash_profile line='if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi'
- lineinfile: dest=~/.bash_profile line='pyenv virtualenvwrapper_lazy'

- name: source ~/.bash_profile
  shell: source ~/.bash_profile<commit_msg>remove venv dir from py role<commit_after>---
- lineinfile: dest=~/.bash_profile line='# for pyenv by ansible-mac-setup'
- lineinfile: dest=~/.bash_profile line='export PYENV_ROOT="$HOME/.pyenv"'
- lineinfile: dest=~/.bash_profile line='export PATH="$PYENV_ROOT/bin:$PATH"'
- lineinfile: dest=~/.bash_profile line='export PYENV_VIRTUALENVWRAPPER_PREFER_PYVENV="true"'
- lineinfile: dest=~/.bash_profile line='export WORKON_HOME=~/.virtualenvs'

- name: install latest python
  shell: pyenv install $(pyenv install -l | grep -v - | tail -1)

- name: rehash
  shell: pyenv rehash

- name: set latest python
  shell: pyenv global $(pyenv install -l | grep -v - | tail -1)

- name: install pip mods for virtualenv
  pip:
    name:
      - virtualenv
      - virtualenvwrapper

- lineinfile: dest=~/.bash_profile line='eval "$(pyenv init -)"'
- lineinfile: dest=~/.bash_profile line='if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi'
- lineinfile: dest=~/.bash_profile line='pyenv virtualenvwrapper_lazy'

- name: source ~/.bash_profile
  shell: source ~/.bash_profile
{'fraction_non_alphanumeric': 0.14759169244365886, 'fraction_numerical': 0.0017675651789659744, 'mean_word_length': 4.192660550458716, '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': '7362317', 'n_tokens_mistral': 823, 'n_tokens_neox': 780, 'n_words': 197}