<commit_before>---
# Optional really; just allows us to release updates to deoplete sorter
# extension dependency (commandt.score).
- name: vim | install twine via pip3
  pip: executable=pip3 name=twine

- name: vim | install commandt.score via pip3
  pip: executable=pip3 name=commandt.score

- name: vim | require .vim symlink to have been established
  stat: path=~/.vim
  register: dot_vim_stat
  failed_when: dot_vim_stat.stat.islnk is not defined or not dot_vim_stat.stat.islnk

- name: vim | create deoplete directories
  file: path={{ item }} state=directory
  with_items:
    - ~/.vim/rplugin
    - ~/.vim/rplugin/python3
    - ~/.vim/rplugin/python3/deoplete
    - ~/.vim/rplugin/python3/deoplete/filter
    - ~/.vim/rplugin/python3/deoplete/sources
  when: dot_vim_stat.stat.islnk is defined and dot_vim_stat.stat.islnk

- name: vim | copy deoplete extensions
  file: force=yes
        path=~/{{ item }}
        src={{ ansible_env.PWD }}/roles/vim/files/{{ item }}
        state=link
  with_items:
    - .vim/rplugin/python3/deoplete/filter/sorter_smart.py
    - .vim/rplugin/python3/deoplete/sources/mail.py
    - .vim/rplugin/python3/deoplete/sources/masochist.py<commit_msg>Use a consistent access pattern for the stat result object<commit_after>---
# Optional really; just allows us to release updates to deoplete sorter
# extension dependency (commandt.score).
- name: vim | install twine via pip3
  pip: executable=pip3 name=twine

- name: vim | install commandt.score via pip3
  pip: executable=pip3 name=commandt.score

- name: vim | require .vim symlink to have been established
  stat: path=~/.vim
  register: dot_vim_stat
  failed_when: not dot_vim_stat.stat.exists or not dot_vim_stat.stat.islnk

- name: vim | create deoplete directories
  file: path={{ item }} state=directory
  with_items:
    - ~/.vim/rplugin
    - ~/.vim/rplugin/python3
    - ~/.vim/rplugin/python3/deoplete
    - ~/.vim/rplugin/python3/deoplete/filter
    - ~/.vim/rplugin/python3/deoplete/sources
  when: dot_vim_stat.stat.exists and dot_vim_stat.stat.islnk

- name: vim | copy deoplete extensions
  file: force=yes
        path=~/{{ item }}
        src={{ ansible_env.PWD }}/roles/vim/files/{{ item }}
        state=link
  with_items:
    - .vim/rplugin/python3/deoplete/filter/sorter_smart.py
    - .vim/rplugin/python3/deoplete/sources/mail.py
    - .vim/rplugin/python3/deoplete/sources/masochist.py
{'fraction_non_alphanumeric': 0.11995002082465639, 'fraction_numerical': 0.009162848812994586, 'mean_word_length': 3.289285714285714, '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': '6247247', 'n_tokens_mistral': 888, 'n_tokens_neox': 849, 'n_words': 190}