<commit_before>language: python
dist: xenial
python:
  - "3.5"
services:
  - mysql
  - docker
before_install:
  - sudo apt-get update
  - sudo apt-get install apache2 apache2-dev
  - sudo apt-get install python3-dev
  - sudo apt-get install libssl-dev libcurl4-openssl-dev
  - sudo apt-get install libmysqlclient-dev
# command to install dependencies
install: pip install -r requirements/local.txt
# command to setup database
before_script:
  - mysql -u root -e "CREATE DATABASE chris_dev CHARACTER SET utf8;"
  - mysql -u root -e "GRANT ALL ON chris_dev.* TO 'chris'@'localhost' IDENTIFIED BY '<PASSWORD>';"
  - mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'chris'@'localhost';"
  - cd chris_backend
  - python manage.py migrate
  - pman --raw 1 --http --port 5010 --listeners 12 --ip 127.0.0.1 &
  - sleep 5
# command to run tests
script:
  - python manage.py test
notifications:
  slack: fnndsc:gGPIVAOtMikWomA1EKrVYIjO<commit_msg>Now using containerized env to run tests<commit_after>language: python
dist: xenial
services:
  - docker
before_script:
  - echo "Starting CUBE containerized development environment using ./docker-compose.yml"
  - docker-compose up -d
  - echo " "
  - echo "Waiting until mysql server is ready to accept connections..."
  - docker-compose exec chris_dev_db sh -c 'while ! mysqladmin -uroot -prootp status 2> /dev/null; do sleep 5; done;'
  - docker-compose exec chris_dev_db mysql -uroot -prootp -e 'GRANT ALL PRIVILEGES ON *.* TO "chris"@"%"'
  - echo " "
  - echo "Making migrations..."
  - docker-compose exec chris_dev python manage.py migrate
  - echo " "
  - echo "Registering plugins..."
  - docker-compose exec chris_dev /bin/bash -c 'python plugins/services/manager.py --add fnndsc/pl-simplefsapp 2> /dev/null;'
  - docker-compose exec chris_dev /bin/bash -c 'python plugins/services/manager.py --add fnndsc/pl-simpledsapp 2> /dev/null;'
  - echo "Running Django tests..."
# command to run tests
script:
  - docker-compose exec chris_dev python manage.py test
notifications:
  slack: fnndsc:gGPIVAOtMikWomA1EKrVYIjO
{'fraction_non_alphanumeric': 0.11057225994180407, 'fraction_numerical': 0.013094083414161009, 'mean_word_length': 3.427038626609442, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '1714213', 'n_tokens_mistral': 765, 'n_tokens_neox': 712, 'n_words': 223}