<commit_before>- name: Make sure that apt requirements are present update_cache=yes cache_valid_time=3600
  apt: name={{ item }} state=present
  with_items:
    - python-apt
    - python-pycurl

- name: Add the debian wheezy-backports repo
  apt_repository: repo='deb http://ftp.us.debian.org/debian wheezy-backports main' state=present
  when: ansible_distribution == "Debian"  # Should make sure this is wheezy at some point, but for now, fuck it.

- name: Install nodejs
  apt: name=nodejs state=present default_release=wheezy-backports

# So, it turns out that debian is fucking stupid, and installs node at /usr/bin/nodejs, WHICH IS NOT THE RIGHT BINARY NAME
- name: Symlink the node BINARY
  file: state=link src=/usr/bin/nodejs path=/usr/bin/node

- name: Check if npm is installed
  command: which npm
  register: npm_installed
  ignore_errors: True

- name: Get the npm install script
  get_url: dest=/tmp/npm_install.sh url=https://www.npmjs.org/install.sh sha256sum=5c493b8be14d639f1ae76539cd8265777e69fa5ffd920b212cecee63c72f3564
  when: npm_installed|failed

- name: Install npm
  raw: sh /tmp/npm_install.sh<commit_msg>Shouldn't install npm if it already exists<commit_after>- name: Make sure that apt requirements are present update_cache=yes cache_valid_time=3600
  apt: name={{ item }} state=present
  with_items:
    - python-apt
    - python-pycurl

- name: Add the debian wheezy-backports repo
  apt_repository: repo='deb http://ftp.us.debian.org/debian wheezy-backports main' state=present
  when: ansible_distribution == "Debian"  # Should make sure this is wheezy at some point, but for now, fuck it.

- name: Install nodejs
  apt: name=nodejs state=present default_release=wheezy-backports

# So, it turns out that debian is fucking stupid, and installs node at /usr/bin/nodejs, WHICH IS NOT THE RIGHT BINARY NAME
- name: Symlink the node BINARY
  file: state=link src=/usr/bin/nodejs path=/usr/bin/node

- name: Check if npm is installed
  command: which npm
  register: npm_installed
  ignore_errors: True

- name: Get the npm install script
  get_url: dest=/tmp/npm_install.sh url=https://www.npmjs.org/install.sh sha256sum=5c493b8be14d639f1ae76539cd8265777e69fa5ffd920b212cecee63c72f3564
  when: npm_installed|failed

- name: Install npm
  raw: sh /tmp/npm_install.sh
  when: npm_installed|failed
{'fraction_non_alphanumeric': 0.08648881239242685, 'fraction_numerical': 0.04044750430292599, 'mean_word_length': 4.470588235294118, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3586164', 'n_tokens_mistral': 880, 'n_tokens_neox': 771, 'n_words': 237}