<commit_before>---

- include: windows-init.yml

- win_stat: path={{ bin_path_win }}\loki-master\loki.exe
  register: loki
- name: windows | loki download
  win_get_url:
    url: "{{ loki_win_release_rurl }}"
    dest: "{{ bin_path_win }}\{{ loki_win_release_rurl | basename }}"
  when: not loki.stat.exists and (do_download is defined and do_download)
## BUG/FIXME! Normally, properties creates/recurse/rm are not necessary but v2rc1 asked them.
- name: windows | loki unzip
  win_unzip:
      src: "{{ bin_path_win }}\\{{ loki_win_release_rurl | basename }}"
      dest: "{{ bin_path_win }}"
      creates: false
      recurse: false
      rm: false
  when: not loki.stat.exists and (do_download is defined and do_download)

- win_stat: path="{{ dst_path_win }}\\{{ prefix }}-Loki.txt"
  register: lokiout

## FIXME! still need ioc directory from https://github.com/Neo23x0/Loki
## https://github.com/Neo23x0/Loki/archive/master.zip<commit_msg>loki windows: fix archive url - missing escape<commit_after>---

- include: windows-init.yml

- win_stat: path={{ bin_path_win }}\loki-master\loki.exe
  register: loki
- name: windows | loki download
  win_get_url:
    url: "{{ loki_win_release_rurl }}"
    dest: "{{ bin_path_win }}\\{{ loki_win_release_rurl | basename }}"
  when: not loki.stat.exists and (do_download is defined and do_download)
## BUG/FIXME! Normally, properties creates/recurse/rm are not necessary but v2rc1 asked them.
- name: windows | loki unzip
  win_unzip:
      src: "{{ bin_path_win }}\\{{ loki_win_release_rurl | basename }}"
      dest: "{{ bin_path_win }}"
      creates: false
      recurse: false
      rm: false
  when: not loki.stat.exists and (do_download is defined and do_download)

- win_stat: path="{{ dst_path_win }}\\{{ prefix }}-Loki.txt"
  register: lokiout

## FIXME! still need ioc directory from https://github.com/Neo23x0/Loki
## https://github.com/Neo23x0/Loki/archive/master.zip
{'fraction_non_alphanumeric': 0.13655244029075805, 'fraction_numerical': 0.008307372793354102, 'mean_word_length': 3.7230392156862746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3182587', 'n_tokens_mistral': 700, 'n_tokens_neox': 697, 'n_words': 167}