<commit_before>version: 2


shared: &shared
  working_directory: ~/shorttext

  steps:
    - checkout

    - run:
        name: Apt Install
        command: |
          sudo apt-get update
          sudo apt-get install libc6
          conda install --yes libgcc
          sudo apt-get install python3-dev

    - run:
        name: Installing Miniconda
        command: |
          wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
          chmod +x miniconda.sh
          ./miniconda.sh -b
          export PATH=/home/travis/miniconda3/bin:$PATH;
          conda update --yes conda

    - run:
        name: Installing Packages
        command: |
          conda create --yes -n shorttext-test python=$TRAVIS_PYTHON_VERSION
          source activate shorttext-test
          pip install Cython
          pip install -U numpy
          pip install -U scipy
          pip install -U tensorflow>=2.0.0
          pip install google-compute-engine
          pip install -U .

    - run:
        name: Run Unit Tests
        command: |
          pip install -r test_requirements.txt
          python setup.py test


jobs:
  py37:
    machine: # executor type
      image: ubuntu-2004:202010-01
    <<: *shared
    docker:
      -image: circleci/python:3.7

  py38:
    machine: # executor type
      image: ubuntu-2004:202010-01
    <<: *shared
    docker:
      -image: circleci/python:3.8


workflows:
  version: 2
  build:
    jobs:
      - py37
      - py38<commit_msg>put a space before "image"'s<commit_after>version: 2


shared: &shared
  working_directory: ~/shorttext

  steps:
    - checkout

    - run:
        name: Apt Install
        command: |
          sudo apt-get update
          sudo apt-get install libc6
          conda install --yes libgcc
          sudo apt-get install python3-dev

    - run:
        name: Installing Miniconda
        command: |
          wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
          chmod +x miniconda.sh
          ./miniconda.sh -b
          export PATH=/home/travis/miniconda3/bin:$PATH;
          conda update --yes conda

    - run:
        name: Installing Packages
        command: |
          conda create --yes -n shorttext-test python=$TRAVIS_PYTHON_VERSION
          source activate shorttext-test
          pip install Cython
          pip install -U numpy
          pip install -U scipy
          pip install -U tensorflow>=2.0.0
          pip install google-compute-engine
          pip install -U .

    - run:
        name: Run Unit Tests
        command: |
          pip install -r test_requirements.txt
          python setup.py test


jobs:
  py37:
    <<: *shared
    docker:
      - image: circleci/python:3.7

  py38:
    <<: *shared
    docker:
      - image: circleci/python:3.8


workflows:
  version: 2
  build:
    jobs:
      - py37
      - py38
{'fraction_non_alphanumeric': 0.08553761593953968, 'fraction_numerical': 0.025420817588457576, 'mean_word_length': 1.6448683015440508, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 5, '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': '1506755', 'n_tokens_mistral': 975, 'n_tokens_neox': 895, 'n_words': 241}