<commit_before>version: 2
jobs:
  build:
    docker:
      # https://circleci.com/docs/2.0/circleci-images/#nodejs
      - image: circleci/node:latest

    working_directory: ~/ofreport.com

    environment:
      NUXT_BUILD_DIR: ~/ofreport.com/dist
      PER_PAGE: "10"
      APP_ENV: "prod"

    steps:
      - checkout

      # Download and cache dependencies
      - 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 md2json
      - run: yarn generate

  deploy:
    docker:
      # https://circleci.com/docs/2.0/circleci-images/#nodejs
      - image: circleci/node:latest

    working_directory: ~/ofreport.com

    steps:
      - run:
          name: Install Gulp
          command: sudo npm install -g gulp
      - run:
          name: Deploy to S3
          command: gulp deploy

workflows:
  version: 2
  build-deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build
          # filters:
          #   branches:
          #     only: master<commit_msg>Install Gulp locally.<commit_after>version: 2
jobs:
  build:
    docker:
      # https://circleci.com/docs/2.0/circleci-images/#nodejs
      - image: circleci/node:latest

    working_directory: ~/ofreport.com

    environment:
      NUXT_BUILD_DIR: ~/ofreport.com/dist
      PER_PAGE: "10"
      APP_ENV: "prod"

    steps:
      - checkout

      # Download and cache dependencies
      - 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 md2json
      - run: yarn generate

  deploy:
    docker:
      # https://circleci.com/docs/2.0/circleci-images/#nodejs
      - image: circleci/node:latest

    working_directory: ~/ofreport.com

    steps:
      - run:
          name: Install Gulp globally
          command: sudo npm install -g gulp
      - run:
          name: Install Gulp locally
          command: npm install gulp
      - run:
          name: Deploy to S3
          command: gulp deploy

workflows:
  version: 2
  build-deploy:
    jobs:
      - build
      - deploy:
          requires:
            - build
          # filters:
          #   branches:
          #     only: master
{'fraction_non_alphanumeric': 0.09490655917918651, 'fraction_numerical': 0.009527299377061194, 'mean_word_length': 1.5803402646502835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3264361', 'n_tokens_mistral': 864, 'n_tokens_neox': 807, 'n_words': 203}