<commit_before>- name: Chmod manage.py
  file: path=/opt/eclaim_revamp/eclaim/manage.py state=file mode=0775

- name: Run eclaim migrate auth
  django_manage: command="{{ item }} --noinput" app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2
  with_items:
    - 'migrate auth'
    - 'migrate'
    - 'collectstatic'

  # - name: Run eclaim migrate
  # django_manage: command="migrate --noinput" app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2

  # - name: Run eclaim collectstatic
  # django_manage: command=collectstatic app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2

- name: Run psql to pull in initial config data
  become_method: sudo
  become: yes
  become_user: postgres 
  shell: psql -U postgres -h {{ db_server_ip }} -w eclaim < /opt/eclaim_revamp/sql_scripts/{{ item }}.sql
  with_items:
    - initial_config
    - initial_sql_script
    - tmp_hrms 
<commit_msg>re #159 Fix breakage in tests<commit_after>- name: Chmod manage.py
  file: path=/opt/eclaim_revamp/eclaim/manage.py state=file mode=0775

- name: Run eclaim migrate auth
  django_manage: command="{{ item }} --noinput" app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2
  with_items:
    - 'migrate auth'
    - 'migrate'
    - 'collectstatic'

  # - name: Run eclaim migrate
  # django_manage: command="migrate --noinput" app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2

  # - name: Run eclaim collectstatic
  # django_manage: command=collectstatic app_path=/opt/eclaim_revamp/eclaim virtualenv=/opt/miniconda2

- name: Run psql to pull in initial config data
  become_method: sudo
  become: yes
  become_user: postgres 
  shell: PGPASSWORD=eclaim psql -U postgres -h {{ db_server_ip }} -w eclaim < /opt/eclaim_revamp/sql_scripts/{{ item }}.sql
  with_items:
    - initial_config
    - initial_sql_script
    - tmp_hrms 

{'fraction_non_alphanumeric': 0.10991379310344827, 'fraction_numerical': 0.009159482758620689, 'mean_word_length': 3.874015748031496, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3958139', 'n_tokens_mistral': 687, 'n_tokens_neox': 655, 'n_words': 148}