<commit_before>app-pkgs:
  pkg.installed:
    - names:
      - python-virtualenv
      - python-devel
      - MySQL-python

settings:
  file.managed:
    - name: /var/www/myapp/settings.py
    - source: salt://django-demo/settings.py
    - template: jinja

nginx:
  pkg:
    - latest
  service:
    - running
    - watch:
      - file: nginxconf

nginxconf:
  file.managed:
    - name: /etc/nginx/conf.d/default.conf
    - source: salt://django-demo/nginx.conf
    - template: jinja
    - makedirs: True
    - mode: 755<commit_msg>Some work in the django mod.<commit_after>app-pkgs:
  pkg.installed:
    - names:
      - python-virtualenv
      - python-devel
      - MySQL-python

nginx:
  pkg:
    - latest
  service:
    - running
    - watch:
      - file: nginxconf

nginxconf:
  file.managed:
    - name: /etc/nginx/conf.d/default.conf
    - source: salt://django-demo/nginx.conf
    - template: jinja
    - makedirs: True
    - mode: 755

python-gunicorn:
  pkg.installed

Django14:
  pkg.installed

/var/www:
  file.directory:
    - user: root

django-project-init:
  cmd.wait:
    - name: /usr/bin/django-admin startproject myapp
    - cwd: /var/www
    - watch:
      - pkg: Django14

settings:
  file.managed:
    - name: /var/www/myapp/settings.py
    - source: salt://django-demo/settings.py
    - template: jinja

django-server:
  cmd.wait:
    - name: /usr/bin/gunicorn --daemon myapp.wsgi:application
    - cwd: /var/www/myapp
    - watch:
      - file: settings
{'fraction_non_alphanumeric': 0.12990527740189445, 'fraction_numerical': 0.006765899864682003, 'mean_word_length': 2.0060975609756095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4913725', 'n_tokens_mistral': 572, 'n_tokens_neox': 540, 'n_words': 102}