<commit_before>---

- name: Install dotfiles dependencies with APT
  apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time={{ aptcachetime }}
  with_items:
    - pwgen
    - imagemagick
    - libav-tools
    - cowsay
    - fortune

- name: Install dotfiles dependencies with Python PIP
  pip: name={{ item }} state=latest
  with_items:
    - httpie
    - Pygments

- name: Create public dotfiles directory
  file: path="{{ ansible_env.HOME }}/dotfiles/public" state=directory
  register: public_dotfiles_create

- name: Clone public dotfiles repository
  git: repo=https://github.com/Benoth/dotfiles.git dest="{{ ansible_env.HOME }}/dotfiles/public" update=yes accept_hostkey=yes

- name: Configure repository
  command: git config --local user.email "<EMAIL>"
  args:
    chdir: "{{ ansible_env.HOME }}/dotfiles/public"
  when: public_dotfiles_create.changed

- name: Configure repository
  command: git config --local user.name "Benoth"
  args:
    chdir: "{{ ansible_env.HOME }}/dotfiles/public"
  when: public_dotfiles_create.changed

- name: Create private dotfiles directory
  file: path="{{ ansible_env.HOME }}/dotfiles/private" state=directory
<commit_msg>Fix dotfiles role (owner + wan)<commit_after>---

- name: Install dotfiles dependencies with APT
  apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time={{ aptcachetime }}
  with_items:
    - pwgen
    - imagemagick
    - libav-tools
    - cowsay
    - fortune

- name: Install dotfiles dependencies with Python PIP
  pip: name={{ item }} state=latest
  with_items:
    - httpie
    - Pygments

- name: Create public dotfiles directory
  file: path="{{ ansible_env.HOME }}/dotfiles/public" state=directory
  register: public_dotfiles_create

- name: Clone public dotfiles repository
  git: repo=https://github.com/Benoth/dotfiles.git dest="{{ ansible_env.HOME }}/dotfiles/public" update=yes accept_hostkey=yes

- name: Configure repository
  command: git config --local user.email "<EMAIL>"
  args:
    chdir: "{{ ansible_env.HOME }}/dotfiles/public"
    warn: false
  when: public_dotfiles_create.changed

- name: Configure repository
  command: git config --local user.name "Benoth"
  args:
    chdir: "{{ ansible_env.HOME }}/dotfiles/public"
    warn: false
  when: public_dotfiles_create.changed

- name: Create private dotfiles directory
  file: path="{{ ansible_env.HOME }}/dotfiles/private" state=directory

- name: Fix dotfiles directory owner
  file: path="{{ ansible_env.HOME }}/dotfiles" owner="{{ ansible_env.USER }}" group="{{ ansible_env.USER }}" recurse=yes


{'fraction_non_alphanumeric': 0.11934477379095164, 'fraction_numerical': 0.0, 'mean_word_length': 3.990272373540856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '5911871', 'n_tokens_mistral': 816, 'n_tokens_neox': 811, 'n_words': 218}