<commit_before>---
- name: Install kawax script
  get_url: url=https://github.com/ideascube/kawax-scripts/raw/master/kawax
    dest=/usr/local/bin/kawax
    mode=755

- cron:
    name: "Update catalog and download zim from kiwix"
    minute: "0"
    hour: "3"
    job: "/usr/local/bin/kawax update_catalogs && /usr/local/bin/kawax rsync_kiwix > /dev/null"

- name: Test if a fex file exist, if yes, the device is an Olimex
  stat: path=/boot/bin/lime2.bin
  register: fex_file

- name: Test if a fex file exist, if yes, the device is an Olimex
  stat: path=/boot/script.bin
  register: fex_file2

- include: lime2.yml
  when: fex_file.stat.exists is defined and fex_file.stat.exists 
    or fex_file2.stat.exists is defined and fex_file2.stat.exists
<commit_msg>Complete the kawax command<commit_after>---
- name: Install kawax script
  get_url: url=https://github.com/ideascube/kawax-scripts/raw/master/kawax
    dest=/usr/local/bin/kawax
    mode=755

- cron:
    name: "Update catalog and download zim from kiwix"
    minute: "0"
    hour: "3"
    job: "/usr/local/bin/kawax update_catalogs && /usr/local/bin/kawax extract_urls && /usr/local/bin/kawax rsync_kiwix >> /var/log/kawax.log 2>&1"

- name: Test if a fex file exist, if yes, the device is an Olimex
  stat: path=/boot/bin/lime2.bin
  register: fex_file

- name: Test if a fex file exist, if yes, the device is an Olimex
  stat: path=/boot/script.bin
  register: fex_file2

- include: lime2.yml
  when: fex_file.stat.exists is defined and fex_file.stat.exists 
    or fex_file2.stat.exists is defined and fex_file2.stat.exists

{'fraction_non_alphanumeric': 0.11516677155443675, 'fraction_numerical': 0.013845185651353053, 'mean_word_length': 3.3206521739130435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2820885', 'n_tokens_mistral': 626, 'n_tokens_neox': 607, 'n_words': 162}