<commit_before>---
- name: check current cjdns ref
  shell: "cat /opt/cjdns.ref | grep {{ cjdns_ref }}"
  ignore_errors: true
  register: cjdns_ref_present

- name: clone cjdns.git
  git:
    repo: https://github.com/hyperboria/cjdns.git
    dest: /opt/cjdns
    version: "{{ cjdns_ref }}"
    force: yes

- name: build cjdns
  shell: "./clean && ./do chdir=/opt/cjdns"
  when: "cjdns_ref_present.rc != 0"

- name: install cjdroute
  command: cp /opt/cjdns/cjdroute /usr/bin/<commit_msg>cjdns: avoid "textfile busy" errors<commit_after>---
- name: check current cjdns ref
  shell: "cat /opt/cjdns.ref | grep {{ cjdns_ref }}"
  ignore_errors: true
  register: cjdns_ref_present

- name: clone cjdns.git
  git:
    repo: https://github.com/hyperboria/cjdns.git
    dest: /opt/cjdns
    version: "{{ cjdns_ref }}"
    force: yes

- name: build cjdns
  shell: "./clean && ./do chdir=/opt/cjdns"
  when: "cjdns_ref_present.rc != 0"

- name: install cjdroute
  shell: "mv /usr/bin/cjdroute /usr/bin/cjdroute.old && cp /opt/cjdns/cjdroute /usr/bin/"
{'fraction_non_alphanumeric': 0.15355086372360843, 'fraction_numerical': 0.0019193857965451055, 'mean_word_length': 3.106299212598425, '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': '7570974', 'n_tokens_mistral': 436, 'n_tokens_neox': 425, 'n_words': 94}