<commit_before>version: 2.1

aliases:
  - &filter-ignore-gh-pages
    branches:
      ignore: gh-pages
  - &install
    pkg-manager: yarn
    override-ci-command: yarn install --immutable && yarn build:js
    cache-path: ~/.yarn/berry/cache
    include-branch-in-cache-key: false
    app-dir: ~/jest

orbs:
  node: circleci/node@4.7.0

jobs:
  test-node:
    parameters:
      node-version:
        type: string
      partial:
        type: boolean
        default: false
    working_directory: ~/jest
    executor: node/default
    steps:
      - checkout
      - node/install:
          node-version: << parameters.node-version >>
          install-npm: false
      - node/install-packages: *install
      - when:
          condition: << parameters.partial >>
          steps:
            - run:
                command: yarn test-ci-partial
      - unless:
          condition: << parameters.partial >>
          steps:
            - run:
                command: yarn test-ci
      - store_test_results:
          path: reports/junit

  test-jest-jasmine:
    working_directory: ~/jest
    executor: node/default
    steps:
      - checkout
      - node/install:
          lts: true<commit_msg>chore: force node v14 for jasmine build in CI<commit_after>version: 2.1

aliases:
  - &filter-ignore-gh-pages
    branches:
      ignore: gh-pages
  - &install
    pkg-manager: yarn
    override-ci-command: yarn install --immutable && yarn build:js
    cache-path: ~/.yarn/berry/cache
    include-branch-in-cache-key: false
    app-dir: ~/jest

orbs:
  node: circleci/node@4.7.0

jobs:
  test-node:
    parameters:
      node-version:
        type: string
      partial:
        type: boolean
        default: false
    working_directory: ~/jest
    executor: node/default
    steps:
      - checkout
      - node/install:
          node-version: << parameters.node-version >>
          install-npm: false
      - node/install-packages: *install
      - when:
          condition: << parameters.partial >>
          steps:
            - run:
                command: yarn test-ci-partial
      - unless:
          condition: << parameters.partial >>
          steps:
            - run:
                command: yarn test-ci
      - store_test_results:
          path: reports/junit

  test-jest-jasmine:
    working_directory: ~/jest
    executor: node/default
    steps:
      - checkout
      - node/install:
          node-version: '14'
{'fraction_non_alphanumeric': 0.10668855149774313, 'fraction_numerical': 0.005744768157570784, 'mean_word_length': 1.7028824833702882, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '192349', 'n_tokens_mistral': 768, 'n_tokens_neox': 727, 'n_words': 163}