<commit_before>---

- name: "IVM | Ensure folder requirements are met"
  become: yes
  become_user: root
  file:
    path: /usr/local/ivm
    state: directory
    mode: 0777
    owner: root

- name: "IVM | Ensure installed and updated"
  become: yes
  become_user: root
  npm:
    name: "ivm"
    executable: "/usr/local/bin/npm"
    path: "/usr/local/lib"

- name: "IVM | Create an executable"
  become: yes
  become_user: root
  file:
    src: "/usr/local/lib/node_modules/ivm/bin/ivm"
    dest: "/usr/local/bin/ivm"
    state: link
    force: yes
    owner: "{{ fubarhouse_user }}"
    mode: 0755

- name: "IVM | Ensure shell profiles are configured"
  become: yes
  become_user: "root"
  lineinfile:
    dest: "{{ fubarhouse_npm.user_dir }}/{{ item.filename }}"
    regexp: 'export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist'
    line:  'export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist;'
    state: present
  with_items:
    - "{{ fubarhouse_npm.shell_profiles }}"
  ignore_errors: yes<commit_msg>instead of using npm for installing ivm, we will clone and sym the built version - tested<commit_after>---

- name: "IVM | Ensure folder requirements are met"
  become: yes
  become_user: root
  file:
    path: /usr/local/ivm
    state: directory
    mode: 0777
    owner: root

- name: "IVM | Clone/Update"
  become: yes
  become_user: "{{ fubarhouse_user }}"
  git:
    repo: "https://github.com/demohi/ivm.git"
    dest: "{{ fubarhouse_npm.user_dir }}/.ivm"
    clone: yes
    update: yes
    force: yes
    version: master
    recursive: false
  changed_when: false

- name: "IOJS | Switch"
  become: yes
  become_user: root
  file:
    src: "{{ fubarhouse_npm.user_dir }}/.ivm/bin/ivm"
    dest: "/usr/local/bin/ivm"
    state: link
    force: yes
  changed_when: false

- name: "IVM | Create an executable"
  become: yes
  become_user: root
  file:
    src: "/usr/local/lib/node_modules/ivm/bin/ivm"
    dest: "/usr/local/bin/ivm"
    state: link
    force: yes
    owner: "{{ fubarhouse_user }}"
    mode: 0755

- name: "IVM | Ensure shell profiles are configured"
  become: yes
  become_user: "root"
  lineinfile:
    dest: "{{ fubarhouse_npm.user_dir }}/{{ item.filename }}"
    regexp: 'export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist'
    line:  'export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist;'
    state: present
  with_items:
    - "{{ fubarhouse_npm.shell_profiles }}"
  ignore_errors: yes
{'fraction_non_alphanumeric': 0.13164451827242524, 'fraction_numerical': 0.006644518272425249, 'mean_word_length': 2.9950248756218905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '600162', 'n_tokens_mistral': 944, 'n_tokens_neox': 939, 'n_words': 215}