<commit_before>- name: Make a directory for virtualenv
  file:
      path: "{{ deploy }}/env"
      state: directory
      mode: "u+rwx,g+rwx,o-rw"
- name: Upgrade pip to latest in virtualenv
  pip:
    name: pip
    state: latest
    virtualenv: "{{ deploy }}/env"
    virtualenv_site_packages: yes
  ignore_errors: true
- name: Set perms
  file:
      path: "{{ deploy }}/env"
      state: directory
      mode: "u+rwx,g+rwx,o-rw"
- name: Install requirements via pip (MySQLdb should be system version and skipped)
  pip:
    virtualenv: "{{ deploy }}/env"
    requirements: "{{ deploy }}/requirements.txt"
    virtualenv_site_packages: yes
- name: Install npm packages from packages.json
  npm:
    path: "{{ deploy }}"
- name: Install local_settings.py
  copy:
    src: "{{ lookup('env', 'HOME') }}/.deploy/{{ local_settings_path }}"
    dest: "{{ deploy }}/{{ djangoapp }}/local_settings.py"
-- name: Configure log file
  file:
    path: '{{ install_root }}/winthrop.log'
    state: touch
    owner: deploy
    group: apache
    mode: 0770
- name: On QA server only, set the GID correctly for log access
  shell: "sudo chgrp -R {{ project_user }} {{ install_root }}/winthrop.log"
  when: group == "qa"
  args:
    warn: False
    executable: /bin/bash
- name: Run ./manage.py collectstatic
  django_manage:
    command: collectstatic
    app_path: "{{ deploy }}"
    virtualenv: "{{ deploy }}/env"
# Ownership needs to deploy/apache for production
- name: Configure CACHE for django-compressor
  file:
    path: '{{ deploy }}/static/CACHE'
    state: directory
    owner: deploy
    group: apache
    mode: 0771
# On QA server the actual owner for purposes of CACHE needs to be the
# user associated with the WSGI Daemon, in this case a manual call to sudo
- name: chgrp the CACHE folder to project user
  shell: "sudo chgrp -R {{ project_user }} {{ deploy }}/static/CACHE"
  when: group == "qa"<commit_msg>Remove stray - in ansible deploy<commit_after>- name: Make a directory for virtualenv
  file:
      path: "{{ deploy }}/env"
      state: directory
      mode: "u+rwx,g+rwx,o-rw"
- name: Upgrade pip to latest in virtualenv
  pip:
    name: pip
    state: latest
    virtualenv: "{{ deploy }}/env"
    virtualenv_site_packages: yes
  ignore_errors: true
- name: Set perms
  file:
      path: "{{ deploy }}/env"
      state: directory
      mode: "u+rwx,g+rwx,o-rw"
- name: Install requirements via pip (MySQLdb should be system version and skipped)
  pip:
    virtualenv: "{{ deploy }}/env"
    requirements: "{{ deploy }}/requirements.txt"
    virtualenv_site_packages: yes
- name: Install npm packages from packages.json
  npm:
    path: "{{ deploy }}"
- name: Install local_settings.py
  copy:
    src: "{{ lookup('env', 'HOME') }}/.deploy/{{ local_settings_path }}"
    dest: "{{ deploy }}/{{ djangoapp }}/local_settings.py"
- name: Configure log file
  file:
    path: '{{ install_root }}/winthrop.log'
    state: touch
    owner: deploy
    group: apache
    mode: 0770
- name: On QA server only, set the GID correctly for log access
  shell: "sudo chgrp -R {{ project_user }} {{ install_root }}/winthrop.log"
  when: group == "qa"
  args:
    warn: False
    executable: /bin/bash
- name: Run ./manage.py collectstatic
  django_manage:
    command: collectstatic
    app_path: "{{ deploy }}"
    virtualenv: "{{ deploy }}/env"
# Ownership needs to deploy/apache for production
- name: Configure CACHE for django-compressor
  file:
    path: '{{ deploy }}/static/CACHE'
    state: directory
    owner: deploy
    group: apache
    mode: 0771
# On QA server the actual owner for purposes of CACHE needs to be the
# user associated with the WSGI Daemon, in this case a manual call to sudo
- name: chgrp the CACHE folder to project user
  shell: "sudo chgrp -R {{ project_user }} {{ deploy }}/static/CACHE"
  when: group == "qa"
{'fraction_non_alphanumeric': 0.12493492972410203, 'fraction_numerical': 0.004164497657470068, 'mean_word_length': 3.150107991360691, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2121969', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1234, 'n_words': 427}