<commit_before>- name: create local product directory
  file: path="{{localinstallation}}/{{product.name}}-{{product.version}}" state=directory mode="0755"
  register: product_directory

- name: check if binary artifact is already here
  stat: path="{{localinstallation}}/{{product.name}}-{{product.version}}/{{product.name}}"
  register: stf
  when: not product.bundle|default(False)

- name: check if bundle artifact is already here
  stat: path="{{localinstallation}}/{{product.name}}-{{product.version}}/{{product.package}}"
  register: std
  when: product.bundle|default(False)

- name: evaluate if artifact already here
  set_fact:
    already_here: "{{ stf.stat.exists|default(False) }}"
  when: "{{ stf.stat is defined }}"

- name: evaluate if bundle already here
  set_fact:
    already_here: "{{ std.stat.exists|default(False) }}"
  when: "{{ std.stat is defined }}"

- name: download product
  get_url: >
    url={{product.url}}/{{product.package}}
    dest={{localinstallation}}/{{product.name}}-{{product.version}}
  when: not already_here

- name: unpack tgz product
  shell: >
    cd {{localinstallation}}/{{product.name}}-{{product.version}} && tar xzf {{product.package}} --strip-components 1
  when: not already_here and product.is == "tgz"
<commit_msg>check if binary or product installed<commit_after>- name: create local product directory
  file: path="{{localinstallation}}/{{product.name}}-{{product.version}}" state=directory mode="0755"
  register: product_directory

- name: check if binary artifact is already here
  stat: path="{{localinstallation}}/{{product.name}}-{{product.version}}/{{product.binary|default(product.name)}}"
  register: stf
  when: not product.bundle|default(False)

- name: check if bundle artifact is already here
  stat: path="{{localinstallation}}/{{product.name}}-{{product.version}}/{{product.package}}"
  register: std
  when: product.bundle|default(False)

- name: evaluate if artifact already here
  set_fact:
    already_here: "{{ stf.stat.exists|default(False) }}"
  when: "{{ stf.stat is defined }}"

- name: evaluate if bundle already here
  set_fact:
    already_here: "{{ std.stat.exists|default(False) }}"
  when: "{{ std.stat is defined }}"

- name: download product
  get_url: >
    url={{product.url}}/{{product.package}}
    dest={{localinstallation}}/{{product.name}}-{{product.version}}
  when: not already_here

- name: unpack tgz product
  shell: >
    cd {{localinstallation}}/{{product.name}}-{{product.version}} && tar xzf {{product.package}} --strip-components 1
  when: not already_here and product.is == "tgz"

{'fraction_non_alphanumeric': 0.16685979142526072, 'fraction_numerical': 0.003862495171881035, 'mean_word_length': 4.873015873015873, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1024311', 'n_tokens_mistral': 814, 'n_tokens_neox': 773, 'n_words': 193}