<commit_before>{% set config = pillar["pydotorg"] %}

git:
  pkg.installed

pydotorg-deps:
  pkg.installed:
    - pkgs:
      - build-essential
      - mercurial
      - python-docutils
      - python3-dev
      - yui-compressor

pydotorg-user:
  user.present:
    - name: pydotorg
    - home: /srv/pydotorg/
    - createhome: True

pydotorg-source:
  git.latest:
    - name: https://github.com/python/pythondotorg
    - target: /srv/pydotorg/pythondotorg/
    - rev: {{ config["branch"] }}
    - user: pydotorg
    - require:
      - user: pydotorg-user
      - pkg: git

/srv/pydotorg/env/:
  virtualenv_mod.managed:
    - user: pydotorg
    - requirements: /srv/pydotorg/pythondotorg/requirements.txt
    - python: python3
    - require:
      - git: pydotorg-source
      - pkg: pydotorg-deps
      - pkg: postgresql-client
<commit_msg>install virtualenv<commit_after>{% set config = pillar["pydotorg"] %}

git:
  pkg.installed

pydotorg-deps:
  pkg.installed:
    - pkgs:
      - build-essential
      - mercurial
      - python-docutils
      - python-virtualenv
      - python3-dev
      - yui-compressor

pydotorg-user:
  user.present:
    - name: pydotorg
    - home: /srv/pydotorg/
    - createhome: True

pydotorg-source:
  git.latest:
    - name: https://github.com/python/pythondotorg
    - target: /srv/pydotorg/pythondotorg/
    - rev: {{ config["branch"] }}
    - user: pydotorg
    - require:
      - user: pydotorg-user
      - pkg: git

/srv/pydotorg/env/:
  virtualenv_mod.managed:
    - user: pydotorg
    - requirements: /srv/pydotorg/pythondotorg/requirements.txt
    - python: python3
    - require:
      - git: pydotorg-source
      - pkg: pydotorg-deps
      - pkg: postgresql-client

{'fraction_non_alphanumeric': 0.12741087083576855, 'fraction_numerical': 0.0023378141437755697, 'mean_word_length': 2.1470588235294117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1965579', 'n_tokens_mistral': 668, 'n_tokens_neox': 635, 'n_words': 106}