<commit_before>---
- name: Create libexec directory
  file: path={{ ipfs_tika_path }} state=directory owner=root group=root mode=755
- name: Download ipfs-tika
  get_url: url={{ ipfs_tika_mirror}}{{ ipfs_tika_jar }} dest={{ ipfs_tika_path }}/{{ ipfs_tika_jar }} owner=root group=root checksum="sha1:{{ ipfs_tika_sha1 }}"
  notify: restart ipfs-tika
- group: name=ipfs-tika system=true state=present
- user: name=ipfs-tika comment="IPFS tika daemon" group=ipfs system=true state=present home="/nonexistent" shell=/usr/sbin/nologin
- template: src=ipfs-tika.service dest=/etc/systemd/system/ipfs-tika.service
  notify: restart ipfs-tika
- service: name=ipfs-tika enabled=yes state=started
  notify: restart ipfs-tika<commit_msg>Explicitly delete ipfs-tika temp files.<commit_after>---
- name: Create libexec directory
  file: path={{ ipfs_tika_path }} state=directory owner=root group=root mode=755
- name: Download ipfs-tika
  get_url: url={{ ipfs_tika_mirror}}{{ ipfs_tika_jar }} dest={{ ipfs_tika_path }}/{{ ipfs_tika_jar }} owner=root group=root checksum="sha1:{{ ipfs_tika_sha1 }}"
  notify: restart ipfs-tika
- group: name=ipfs-tika system=true state=present
- user: name=ipfs-tika comment="IPFS tika daemon" group=ipfs system=true state=present home="/nonexistent" shell=/usr/sbin/nologin
- template: src=ipfs-tika.service dest=/etc/systemd/system/ipfs-tika.service
  notify: restart ipfs-tika
- service: name=ipfs-tika enabled=yes state=started
  notify: restart ipfs-tika
- name: Enable ipfs-tika stale temp removal
  cron:
    name: Delete stale temp files
    minute: "23"
    hour: "*"
    job: "find /tmp -maxdepth 1 -user ipfs-tika -cmin +60 -name '*.tmp' -delete"
    state: present
    cron_file: /etc/crontab
    user: ipfs-tika
  become: true
{'fraction_non_alphanumeric': 0.13310580204778158, 'fraction_numerical': 0.008532423208191127, 'mean_word_length': 4.882943143812709, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6260883', 'n_tokens_mistral': 652, 'n_tokens_neox': 643, 'n_words': 150}