<commit_before>{% set github_version = salt['pillar.get']('github:version') %}
{%- if github_version %}
github-hub:
  archive.extracted:
    - name: /opt/github/
    - source: https://github.com/github/hub/releases/download/v{{ github_version }}/hub-linux-amd64-{{ github_version }}.tgz
    - source_hash: sha256={{ salt['pillar.get']('github:sha256sum') }}
    - archive_format: tar
    - tar_options: -z --strip-components=1
{%- endif %}
<commit_msg>Add source_hash_update to hub state<commit_after>{% set github_version = salt['pillar.get']('github:version') %}
{%- if github_version %}
github-hub:
  archive.extracted:
    - name: /opt/github/
    - source: https://github.com/github/hub/releases/download/v{{ github_version }}/hub-linux-amd64-{{ github_version }}.tgz
    - source_hash: sha256={{ salt['pillar.get']('github:sha256sum') }}
{%- if grains['saltversioninfo'] >= [2016, 3, 0] %}
    - source_hash_update: true
{%- endif %}
    - archive_format: tar
    - tar_options: -z --strip-components=1
{%- endif %}

{'fraction_non_alphanumeric': 0.1917808219178082, 'fraction_numerical': 0.023483365949119372, 'mean_word_length': 3.966019417475728, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6472775', 'n_tokens_mistral': 397, 'n_tokens_neox': 350, 'n_words': 62}