<commit_before>---

# Install composer and drush.

- name: Install composer
  shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer
    creates=/usr/bin/composer

- name: Make sure /usr/lib/composer exists
  action: file path=/usr/lib/composer state=directory

- name: Ensure composer cache is writeable
  file:
    path: /usr/lib/composer/cache
    mode: 0777
    recurse: yes

- name: Set up composer environment variables
  template: src=composer.sh.j2 dest=/etc/profile.d/composer.sh

- name: Install drush
  shell: source /etc/profile.d/composer.sh && cd /usr/lib/composer && composer global require drush/drush:{{ drush.version }} && drush
    creates=/usr/bin/drush

- name: Install prestissimo
  shell: source /etc/profile.d/composer.sh && cd /usr/lib/composer && composer global require "hirak/prestissimo:^0.3"<commit_msg>Make composer cache writeable after installing everything as root.<commit_after>---

# Install composer and drush.

- name: Install composer
  shell: curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/bin/composer
    creates=/usr/bin/composer

- name: Make sure /usr/lib/composer exists
  action: file path=/usr/lib/composer state=directory

- name: Set up composer environment variables
  template: src=composer.sh.j2 dest=/etc/profile.d/composer.sh

- name: Install drush
  shell: source /etc/profile.d/composer.sh && cd /usr/lib/composer && composer global require drush/drush:{{ drush.version }} && drush
    creates=/usr/bin/drush

- name: Install prestissimo
  shell: source /etc/profile.d/composer.sh && cd /usr/lib/composer && composer global require "hirak/prestissimo:^0.3"

- name: Ensure composer cache is writeable
  file:
    path: /usr/lib/composer/cache
    state: directory
    mode: 0777
    recurse: yes


{'fraction_non_alphanumeric': 0.12197802197802197, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 3.5753768844221105, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5813257', 'n_tokens_mistral': 612, 'n_tokens_neox': 601, 'n_words': 159}