<commit_before>git:
  pkg.installed{% if grains['oscodename'] == 'buster' %}:
    - fromrepo: {{ grains['oscodename'] }}-backports
{%- endif %}

{%- if grains['os'] == 'Ubuntu' %}
git-ppa:
  pkgrepo.managed:
    - ppa: git-core/ppa
    - require_in:
      - pkg: git
{%- endif %}

{%- if salt['pillar.get']('git-lfs:enabled') %}
git-lfs:
  pkgrepo.managed:
    - humanname: Git-LFS
    - name: deb https://packagecloud.io/github/git-lfs/{{ grains['os']|lower }}/ {{ grains['oscodename'] }} main
    - dist: {{ grains['oscodename'] }}
    - file: /etc/apt/sources.list.d/git-lfs.list
    - key_url: https://packagecloud.io/github/git-lfs/gpgkey
    - require_in:
      - pkg: git-lfs
  pkg.installed:
    - refresh: True
{%- endif %}<commit_msg>refactor(system.git): move git-ppa so it may affect the git pkg<commit_after>{%- if grains['os'] == 'Ubuntu' %}
git-ppa:
  pkgrepo.managed:
    - ppa: git-core/ppa
    - require_in:
      - pkg: git
{%- endif %}

git:
  pkg.installed{% if grains['oscodename'] == 'buster' %}:
    - fromrepo: {{ grains['oscodename'] }}-backports
{%- endif %}

{%- if salt['pillar.get']('git-lfs:enabled') %}
git-lfs:
  pkgrepo.managed:
    - humanname: Git-LFS
    - name: deb https://packagecloud.io/github/git-lfs/{{ grains['os']|lower }}/ {{ grains['oscodename'] }} main
    - dist: {{ grains['oscodename'] }}
    - file: /etc/apt/sources.list.d/git-lfs.list
    - key_url: https://packagecloud.io/github/git-lfs/gpgkey
    - require_in:
      - pkg: git-lfs
  pkg.installed:
    - refresh: True
{%- endif %}
{'fraction_non_alphanumeric': 0.21001300390117036, 'fraction_numerical': 0.0, 'mean_word_length': 2.9260204081632653, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '484659', 'n_tokens_mistral': 651, 'n_tokens_neox': 583, 'n_words': 100}