<commit_before># Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
_setup_environment:
  install_gcloud: &install_gcloud
    # Following tutorial on https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
    name: Install Gcloud
    command: |
      curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-236.0.0-linux-x86_64.tar.gz
      tar zxf google-cloud-sdk-236.0.0-linux-x86_64.tar.gz google-cloud-sdk
      ./google-cloud-sdk/install.sh --rc-path /home/circleci/.bashrc -q
      source /home/circleci/.bashrc
      gcloud components update -q
  install_nox: &install_nox
    name: Install Nox
    command: |
      sudo apt-get -qqy install python3-pip
      sudo python3 -m pip install --upgrade nox-automation
  install_cloud_sql_proxy: &install_cloud_sql_proxy
    name: Install Cloud SQL Proxy
    command: |
      sudo curl -L -o /usr/local/bin/cloud_sql_proxy https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64
      sudo chmod +x /usr/local/bin/cloud_sql_proxy
  dump_credentials: &dump_credentials
    name: Dump Google Cloud Credentials to file
    # Content of service account key is saved in the environment variable $GCP_CREDENTIAL
    command: |
      echo ${GCP_CREDENTIAL} > "${GOOGLE_APPLICATION_CREDENTIALS}"
      gcloud auth activate-service-account --key-file ${GOOGLE_APPLICATION_CREDENTIALS}
      gcloud --quiet config set project ${GOOGLE_PROJECT_ID}

version: 2
jobs:
  Unit Test:
    docker:
      - image: googleapis/nox:0.18.2

    steps:
      - checkout
      - run:<commit_msg>Do not do components update after installing gcloud. (#298)<commit_after># Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
_setup_environment:
  install_gcloud: &install_gcloud
    # Following tutorial on https://cloud.google.com/sdk/docs/quickstart-debian-ubuntu
    name: Install Gcloud
    command: |
      curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-236.0.0-linux-x86_64.tar.gz
      tar zxf google-cloud-sdk-236.0.0-linux-x86_64.tar.gz google-cloud-sdk
      ./google-cloud-sdk/install.sh --rc-path /home/circleci/.bashrc -q
      source /home/circleci/.bashrc
  install_nox: &install_nox
    name: Install Nox
    command: |
      sudo apt-get -qqy install python3-pip
      sudo python3 -m pip install --upgrade nox-automation
  install_cloud_sql_proxy: &install_cloud_sql_proxy
    name: Install Cloud SQL Proxy
    command: |
      sudo curl -L -o /usr/local/bin/cloud_sql_proxy https://dl.google.com/cloudsql/cloud_sql_proxy.linux.amd64
      sudo chmod +x /usr/local/bin/cloud_sql_proxy
  dump_credentials: &dump_credentials
    name: Dump Google Cloud Credentials to file
    # Content of service account key is saved in the environment variable $GCP_CREDENTIAL
    command: |
      echo ${GCP_CREDENTIAL} > "${GOOGLE_APPLICATION_CREDENTIALS}"
      gcloud auth activate-service-account --key-file ${GOOGLE_APPLICATION_CREDENTIALS}
      gcloud --quiet config set project ${GOOGLE_PROJECT_ID}

version: 2
jobs:
  Unit Test:
    docker:
      - image: googleapis/nox:0.18.2

    steps:
      - checkout
      - run:
{'fraction_non_alphanumeric': 0.10295021511985249, 'fraction_numerical': 0.01997541487400123, 'mean_word_length': 3.167733674775928, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3906769', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1067, 'n_words': 247}