<commit_before># Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2.1
orbs:
  codecov: codecov/codecov@1.0.5
jobs:

  test_py36:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py36_env python=3.6 -yq
            source activate py36_env
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py36_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  build_py37:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - restore_cache:  # ensure this step occurs *before* installing dependencies
          key: deps2-{{ checksum "setup.py" }}
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            if [[ -e /opt/conda/envs/py37_env ]]; then
                echo "Restoring environment from cache"
                source activate py37_env
            else
                conda create -n py37_env python=3.7 -yq
                source activate py37_env
                pip install -e .[tests,doc]
            fi
            python setup.py install --user
      - save_cache:  # environment cache tied to requirements
          key: deps2-{{ checksum "setup.py" }}
          paths:
            - "/opt/conda/envs/py37_env"

  test_py38:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py38_env python=3.8 -yq
            source activate py38_env
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py38_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  test_py39:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py39_env python=3.9 -yq
            source activate py39_env
            conda update setuptools pip
            conda install distlib
            #pip install --upgrade "setuptools>=54"
            #pip install --upgrade pip
            #pip install --upgrade distlib
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py39_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  test_py310:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py310_env python=3.10 -yq
            pip install --upgrade "setuptools>=54"
            pip install --upgrade pip
            pip install --upgrade distlib
            source activate py310_env<commit_msg>Update config.yml<commit_after># Python CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-python/ for more details
#
version: 2.1
orbs:
  codecov: codecov/codecov@1.0.5
jobs:

  test_py36:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py36_env python=3.6 -yq
            source activate py36_env
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py36_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  build_py37:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - restore_cache:  # ensure this step occurs *before* installing dependencies
          key: deps2-{{ checksum "setup.py" }}
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            if [[ -e /opt/conda/envs/py37_env ]]; then
                echo "Restoring environment from cache"
                source activate py37_env
            else
                conda create -n py37_env python=3.7 -yq
                source activate py37_env
                pip install -e .[tests,doc]
            fi
            python setup.py install --user
      - save_cache:  # environment cache tied to requirements
          key: deps2-{{ checksum "setup.py" }}
          paths:
            - "/opt/conda/envs/py37_env"

  test_py38:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py38_env python=3.8 -yq
            source activate py38_env
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py38_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  test_py39:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py39_env python=3.9 -yq
            source activate py39_env
            pip install --upgrade "setuptools>=54"
            pip install --upgrade pip
            pip install --upgrade distlib
            pip install -e .[tests,doc]
            python setup.py install --user
      - run:
          name: Run tests
          command:  |
            apt-get update
            apt-get install -yqq make
            source activate py39_env
            py.test --ignore=rapidtide/candidatetests rapidtide

  test_py310:
    working_directory: /tmp/src/rapidtide
    docker:
      - image: continuumio/miniconda3
    steps:
      - checkout
      - persist_to_workspace:
          root: /tmp
          paths:
              - src/rapidtide
      - run:  # will overwrite rapidtide installation each time
          name: Generate environment
          command:  |
            conda create -n py310_env python=3.10 -yq
            pip install --upgrade "setuptools>=54"
            pip install --upgrade pip
            pip install --upgrade distlib
            source activate py310_env
{'fraction_non_alphanumeric': 0.07226354941551541, 'fraction_numerical': 0.017947809658755462, 'mean_word_length': 1.5238379022646007, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4398446', 'n_tokens_mistral': 2525, 'n_tokens_neox': 2376, 'n_words': 661}