<commit_before># Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:12
    steps:
      - checkout
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-
      - run: yarn install
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: yarn pkg
      - save_cache:
          paths:
            - lib
            - binaries
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
  deploy-npm:
    docker:
      - image: circleci/node:12
    steps:
      - checkout
      - restore_cache:
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
      - run:
          command: |
            echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
            npm publish
  deploy-release:
    docker:
      - image: circleci/golang:latest
    steps:
      - checkout
      - restore_cache:
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
      - run: go get github.com/tcnksm/ghr
      - run: ghr --username $CIRCLE_PROJECT_USERNAME $CIRCLE_TAG binaries/

workflows:
  version: 2
  build-deploy:
    jobs:
      - build:
          filters:
            tags:
              only: /.*/
      - deploy-npm:
          requires:
            - build
          filters:
            tags:
              only: /v\d+(\.\d+)*/
            branches:
              ignore: /.*/
      - deploy-release:
          requires:
            - build
          filters:
            tags:
              only: /v\d+(\.\d+)*/<commit_msg>Enable build CI at all branches<commit_after># Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      - image: circleci/node:12
    steps:
      - checkout
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-
      - run: yarn install
      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}
      - run: yarn pkg
      - save_cache:
          paths:
            - lib
            - binaries
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
  deploy-npm:
    docker:
      - image: circleci/node:12
    steps:
      - checkout
      - restore_cache:
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
      - run:
          command: |
            echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
            npm publish
  deploy-release:
    docker:
      - image: circleci/golang:latest
    steps:
      - checkout
      - restore_cache:
          key: v1-build-{{ .Environment.CIRCLE_SHA1 }}
      - run: go get github.com/tcnksm/ghr
      - run: ghr --username $CIRCLE_PROJECT_USERNAME $CIRCLE_TAG binaries/

workflows:
  version: 2
  build-deploy:
    jobs:
      - build:
          filters:
            branches:
              only: /.*/
            tags:
              only: /.*/
      - deploy-npm:
          requires:
            - build
          filters:
            tags:
              only: /v\d+(\.\d+)*/
            branches:
              ignore: /.*/
      - deploy-release:
          requires:
            - build
          filters:
            tags:
              only: /v\d+(\.\d+)*/
{'fraction_non_alphanumeric': 0.11411411411411411, 'fraction_numerical': 0.010374010374010374, 'mean_word_length': 1.3487179487179488, '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': '5283407', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1107, 'n_words': 248}