<commit_before>---

- name: Create django root directory 
  file:
    path: "{{ django_root }}"
    state: directory
    owner: "{{ django_user }}" 
    group: root
    mode: 0775 

- name: Make virtualenv dir
  file:
    name: "{{ django_venv }}"
    state: directory
    owner: "{{ django_user }}"
    group: root
    mode: 0775

- name: Setup virtualenv
  command: "env -i PATH=$PATH bash -c 'virtualenv -p /usr/bin/{{ virtualenv_python_version }} --system-site-packages {{ django_venv }}'"
  args:
    chdir: "{{ django_venv }}"
    creates: "{{ django_venv }}/bin/python"
  remote_user: "{{ django_user }}"

- name: Copy core source items 
  synchronize:
    src: "/src/{{ item }}"
    dest: "{{ django_root }}"
    owner: "{{ sync_conductor_owner|default(no) }}"
  remote_user: "{{ django_user }}"
  with_items: "{{ core_source_files }}"

- name: Install requirements with raw command
  command: "env -i PATH=$PATH bash -c 'source {{ django_venv }}/bin/activate && pip install -r {{ django_root }}/requirements.txt'"

- name: Place postactivate script with secure permissions<commit_msg>switching no to false<commit_after>---

- name: Create django root directory 
  file:
    path: "{{ django_root }}"
    state: directory
    owner: "{{ django_user }}" 
    group: root
    mode: 0775 

- name: Make virtualenv dir
  file:
    name: "{{ django_venv }}"
    state: directory
    owner: "{{ django_user }}"
    group: root
    mode: 0775

- name: Setup virtualenv
  command: "env -i PATH=$PATH bash -c 'virtualenv -p /usr/bin/{{ virtualenv_python_version }} --system-site-packages {{ django_venv }}'"
  args:
    chdir: "{{ django_venv }}"
    creates: "{{ django_venv }}/bin/python"
  remote_user: "{{ django_user }}"

- name: Copy core source items 
  synchronize:
    src: "/src/{{ item }}"
    dest: "{{ django_root }}"
    owner: "{{ sync_conductor_owner|default(false) }}"
  remote_user: "{{ django_user }}"
  with_items: "{{ core_source_files }}"

- name: Install requirements with raw command
  command: "env -i PATH=$PATH bash -c 'source {{ django_venv }}/bin/activate && pip install -r {{ django_root }}/requirements.txt'"

- name: Place postactivate script with secure permissions
{'fraction_non_alphanumeric': 0.15293582157487484, 'fraction_numerical': 0.007282658170232135, 'mean_word_length': 3.361111111111111, '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': '2717839', 'n_tokens_mistral': 753, 'n_tokens_neox': 722, 'n_words': 200}