<commit_before>---
dependencies:
  - role: meta/repository
    repository_key: '<KEY>'
    repository_url: 'deb http://ppa.launchpad.net/chris-lea/nginx-devel/ubuntu trusty main'

  - role: meta/monitor
    monitor_name: nginx
    monitor_pidfile: "{{ nginx_pidfile_path }}"

  - role: packages/fluentd
    fluentd_sources:
      - path: "{{ nginx_access_log_path }}"
        format: '/^(?<time>[^ ]+ [^ ]+) \[(?<log_level>.*)\] (?<pid>\d*).(?<tid>[^:]*): (?<message>.*)$/'
        tag: nginx.access
      - path: "{{ nginx_error_log_path }}"
        format: '/^(?<time>[^ ]+ [^ ]+) \[(?<log_level>.*)\] (?<pid>\d*).(?<tid>[^:]*): (?<message>.*)$/'
        tag: nginx.error

  - role: package/logrotate
    logrotate_name: nginx
    logrotate_create_logs_with_owner: "{{ nginx_user }}"
<commit_msg>Package should not be pluralized. Derp<commit_after>---
dependencies:
  - role: meta/repository
    repository_key: '<KEY>'
    repository_url: 'deb http://ppa.launchpad.net/chris-lea/nginx-devel/ubuntu trusty main'

  - role: meta/monitor
    monitor_name: nginx
    monitor_pidfile: "{{ nginx_pidfile_path }}"

  - role: package/fluentd
    fluentd_sources:
      - path: "{{ nginx_access_log_path }}"
        format: '/^(?<time>[^ ]+ [^ ]+) \[(?<log_level>.*)\] (?<pid>\d*).(?<tid>[^:]*): (?<message>.*)$/'
        tag: nginx.access
      - path: "{{ nginx_error_log_path }}"
        format: '/^(?<time>[^ ]+ [^ ]+) \[(?<log_level>.*)\] (?<pid>\d*).(?<tid>[^:]*): (?<message>.*)$/'
        tag: nginx.error

  - role: package/logrotate
    logrotate_name: nginx
    logrotate_create_logs_with_owner: "{{ nginx_user }}"

{'fraction_non_alphanumeric': 0.23271604938271606, 'fraction_numerical': 0.0, 'mean_word_length': 3.254593175853018, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '7168657', 'n_tokens_mistral': 673, 'n_tokens_neox': 606, 'n_words': 93}