<commit_before># CircleCI automatically reads this file from our repo and uses it for
# configuration. Docs: https://circleci.com/docs/configuration
checkout:
  post:
    - git submodule sync
    - git submodule update --init

dependencies:
  pre:
    - curl -o $HOME/google_appengine_1.9.28.zip https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.28.zip
    - unzip -q -d $HOME $HOME/google_appengine_1.9.28.zip
  post:
    - ln -s $VIRTUAL_ENV local  # we use app engine's vendor module to point here
    - pip install coverage coveralls  # for https://coveralls.io/

machine:
  environment:
    PYTHONPATH: $PYTHONPATH:$HOME/google_appengine

test:
  override:
    - python -m coverage run --include=oauth_dropins/webutil/handlers.py,oauth_dropins/webutil/models.py,oauth_dropins/webutil/util.py -m unittest discover -v
    - python -m coverage html -d $CIRCLE_ARTIFACTS
  post:
    - if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls; fi
<commit_msg>circle: switch from app engine SDK to gcloud<commit_after># CircleCI automatically reads this file from our repo and uses it for
# configuration. Docs: https://circleci.com/docs/configuration
checkout:
  post:
    - git submodule sync
    - git submodule update --init

dependencies:
  pre:
    - sudo `which gcloud` -q components install app-engine-python app-engine-python-extras
  post:
    - ln -s $VIRTUAL_ENV local  # we use app engine's vendor module to point here
    - pip install coverage coveralls  # for https://coveralls.io/

machine:
  environment:
    PYTHONPATH: $PYTHONPATH:/opt/google-cloud-sdk/platform/google_appengine

test:
  override:
    - python -m coverage run --include=oauth_dropins/webutil/handlers.py,oauth_dropins/webutil/models.py,oauth_dropins/webutil/util.py -m unittest discover -v
    - python -m coverage html -d $CIRCLE_ARTIFACTS
  post:
    - if [ "$COVERALLS_REPO_TOKEN" != "" ]; then coveralls; fi

{'fraction_non_alphanumeric': 0.103125, 'fraction_numerical': 0.00625, 'mean_word_length': 3.5306603773584904, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, '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': '7334543', 'n_tokens_mistral': 656, 'n_tokens_neox': 643, 'n_words': 172}