<commit_before>version: 2
jobs:
  type_check:
    working_directory: /tmp/cpdt
    docker:
      - image: eldesh/coq:8.5pl3
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - run:
          name: type check
          command: |
            make
      - persist_to_workspace:
          root: /tmp/cpdt
          paths:
              - src
              - latex

  make_doc:
    working_directory: /tmp/cpdt
    docker:
      - image: eldesh/coq:8.5pl3
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - attach_workspace:
          at: /tmp/cpdt
      - run:
          name: install texlive
          command: |
            sudo apt-get update -y
            sudo apt-get install -y --no-install-recommends texlive-science texlive-lang-japanese texlive-latex-extra lmodern

      - run:
          name: generate html
          command: |
            make html
      - store_artifacts:
          path: ./html

      - run:
          name: generate pdf
          command: |
            make latex/cpdt.pdf
      - store_artifacts:
          path: ./latex/cpdt.pdf

workflows:
  version: 2
  build_doc:
    jobs:
      - type_check
      - make_doc:
          requires:
            - type_check
<commit_msg>ci: apply Coq 8.9 image on eldesh.<commit_after>version: 2
jobs:
  type_check:
    working_directory: /tmp/cpdt
    docker:
      - image: eldesh/coq:v8.9.1
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - run:
          name: type check
          command: |
            make
      - persist_to_workspace:
          root: /tmp/cpdt
          paths:
              - src
              - latex

  make_doc:
    working_directory: /tmp/cpdt
    docker:
      - image: eldesh/coq:v8.9.1
    shell: /bin/bash --login -eo pipefail
    steps:
      - checkout
      - attach_workspace:
          at: /tmp/cpdt
      - run:
          name: install texlive
          command: |
            sudo apt-get update -y
            sudo apt-get install -y --no-install-recommends texlive-science texlive-lang-japanese texlive-latex-extra lmodern

      - run:
          name: generate html
          command: |
            make html
      - store_artifacts:
          path: ./html

      - run:
          name: generate pdf
          command: |
            make latex/cpdt.pdf
      - store_artifacts:
          path: ./latex/cpdt.pdf

workflows:
  version: 2
  build_doc:
    jobs:
      - type_check
      - make_doc:
          requires:
            - type_check
{'fraction_non_alphanumeric': 0.08886255924170616, 'fraction_numerical': 0.0071090047393364926, 'mean_word_length': 1.3069216757741349, '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': '2055292', 'n_tokens_mistral': 833, 'n_tokens_neox': 795, 'n_words': 188}