<commit_before>version: 2
jobs:
    build:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - restore_cache:
                  keys:
                      - dependency-cache-{{ checksum "package-lock.json" }}
                      - dependency-cache-

            - run: npm install

            - save_cache:
                  paths:
                      - node_modules
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run ci:build
            - persist_to_workspace:
                  root: "."
                  paths:
                      - lib
                      - package-lock.json
                      - test/*.js
                      - test/unit
                      - util

    end-to-end/javascript:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - attach_workspace:
                  at: "."

            - restore_cache:
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run src:tsc
            - run: npm run test:tsc
            - run: npm run test:end-to-end -- --language=JavaScript

    verify:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - attach_workspace:
                  at: "."

            - restore_cache:
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run verify:ci

workflows:
    version: 2
    build_and_end_to_end:
        jobs:
            - build
            - end-to-end/javascript:
                  requires:
                      - build
            - verify:
                  requires:
                      - build<commit_msg>Added TypeScript end-to-end tests (#595)<commit_after>version: 2
jobs:
    build:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - restore_cache:
                  keys:
                      - dependency-cache-{{ checksum "package-lock.json" }}
                      - dependency-cache-

            - run: npm install

            - save_cache:
                  paths:
                      - node_modules
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run ci:build
            - persist_to_workspace:
                  root: "."
                  paths:
                      - lib
                      - package-lock.json
                      - test/*.js
                      - test/unit
                      - util

    end-to-end/javascript:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - attach_workspace:
                  at: "."

            - restore_cache:
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run test:end-to-end -- --language=JavaScript

    end-to-end/typescript:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - attach_workspace:
                  at: "."

            - restore_cache:
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run test:end-to-end -- --language=TypeScript

    verify:
        docker:
            - image: circleci/node:latest

        working_directory: ~/repo

        steps:
            - checkout

            - attach_workspace:
                  at: "."

            - restore_cache:
                  key: dependency-cache-{{ checksum "package-lock.json" }}

            - run: npm run verify:ci

workflows:
    version: 2
    build_and_end_to_end:
        jobs:
            - build
            - end-to-end/javascript:
                  requires:
                      - build
            - end-to-end/typescript:
                  requires:
                      - build
            - verify:
                  requires:
                      - build
{'fraction_non_alphanumeric': 0.09033613445378151, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 0.9129464285714286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '767434', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1024, 'n_words': 214}