<commit_before>- hosts: all
  name: MEMCACHE

  tasks:

    - name: Install memcached DEP
      apt: pkg={{ item }} state=installed update_cache=true install_recommends=yes
      sudo: yes
      with_items:
        - memcached
#        - build-essential

    - name: Create tha "input" file
      shell: echo "yes\n" > inputYES
      sudo: yes
      ignore_errors: no

    - name: Config memcache
      shell: sudo pecl install -f memcache < inputYES
      sudo: yes
      ignore_errors: no

    - name: Create memcache.ini files
      shell: echo "extension=memcache.so" | sudo tee /etc/php5/conf.d/memcache.ini
      sudo: yes
      ignore_errors: no
      with_items:
        - /etc/php5/conf.d/memcache.ini
        - /etc/php5/fpm/conf.d/memcache.ini

    - name: Delete the "input" file
      shell: rm -f inputYES
      sudo: yes
      ignore_errors: no

    # Finalise

    - name: Restart Nginx
      service: name=nginx state=restarted
      sudo: yes

    - name: Restart PHP
      service: name=php5-fpm state=restarted
      sudo: yes
<commit_msg>memcache cfg file creatio now is using items iterator<commit_after>- hosts: all
  name: MEMCACHE

  tasks:

    - name: Install memcached DEP
      apt: pkg={{ item }} state=installed update_cache=true install_recommends=yes
      sudo: yes
      with_items:
        - memcached
#        - build-essential

    - name: Create tha "input" file
      shell: echo "yes\n" > inputYES
      sudo: yes
      ignore_errors: no

    - name: Config memcache
      shell: sudo pecl install -f memcache < inputYES
      sudo: yes
      ignore_errors: no

    - name: Create memcache.ini files
      shell: echo "extension=memcache.so" | sudo tee {{ item }}
      sudo: yes
      ignore_errors: no
      with_items:
        - /etc/php5/conf.d/memcache.ini
        - /etc/php5/fpm/conf.d/memcache.ini

    - name: Delete the "input" file
      shell: rm -f inputYES
      sudo: yes
      ignore_errors: no

    # Finalise

    - name: Restart Nginx
      service: name=nginx state=restarted
      sudo: yes

    - name: Restart PHP
      service: name=php5-fpm state=restarted
      sudo: yes

{'fraction_non_alphanumeric': 0.08976157082748948, 'fraction_numerical': 0.0032725572697522207, 'mean_word_length': 2.0703012912482066, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4307314', 'n_tokens_mistral': 734, 'n_tokens_neox': 679, 'n_words': 198}