<commit_before>---  
- name: Install nginx
  apt: pkg={{ item }} state=latest
  with_items:
    - nginx
    
- name: Remove default nginx config
  file: path=/etc/nginx/sites-enabled/default state=absent
  notify: Restart nginx

- name: Copy ssl certificates
  copy: src={{certificate_src}} dest={{certificate_dest}}
  when: ssl_enabled
  notify: Restart nginx
  
- name: Copy ssl certificate key
  copy: src={{{certificate_key_src}} dest={{certificate_key_dest}}
  when: ssl_enabled
  notify: Restart nginx

- name: Copy ssl dhparam
  copy: src={{dhparam_src}} dest={{dhparam_dest}}
  when: ssl_enabled
  notify: Restart nginx

- name: Copy ssl configuration
  template: src=ssl.conf dest=/etc/nginx/sites-available/ssl.conf
  when: ssl_enabled
  notify: Restart nginx

- name: Link ssl configuration
  file: path=/etc/nginx/sites-enabled/ssl.conf src=/etc/nginx/sites-available/ssl.conf state=link
  when: ssl_enabled
  notify: Restart nginx
  
- name: Ensure nginx is running
  service: name=nginx state=running
<commit_msg>fixed typo<commit_after>---  
- name: Install nginx
  apt: pkg={{ item }} state=latest
  with_items:
    - nginx
    
- name: Remove default nginx config
  file: path=/etc/nginx/sites-enabled/default state=absent
  notify: Restart nginx

- name: Copy ssl certificates
  copy: src={{certificate_src}} dest={{certificate_dest}}
  when: ssl_enabled
  notify: Restart nginx
  
- name: Copy ssl certificate key
  copy: src={{certificate_key_src}} dest={{certificate_key_dest}}
  when: ssl_enabled
  notify: Restart nginx

- name: Copy ssl dhparam
  copy: src={{dhparam_src}} dest={{dhparam_dest}}
  when: ssl_enabled
  notify: Restart nginx

- name: Copy ssl configuration
  template: src=ssl.conf dest=/etc/nginx/sites-available/ssl.conf
  when: ssl_enabled
  notify: Restart nginx

- name: Link ssl configuration
  file: path=/etc/nginx/sites-enabled/ssl.conf src=/etc/nginx/sites-available/ssl.conf state=link
  when: ssl_enabled
  notify: Restart nginx
  
- name: Ensure nginx is running
  service: name=nginx state=running

{'fraction_non_alphanumeric': 0.10975609756097561, 'fraction_numerical': 0.0, 'mean_word_length': 4.153266331658291, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6856983', 'n_tokens_mistral': 736, 'n_tokens_neox': 709, 'n_words': 183}