<commit_before>name: C/C++ CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  Doxygen:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - name: Setup
      run: |
        chmod +x utils/doxygen
      shell: bash
    - name: Validate Documentation
      run: |
        utils/doxygen .doxygen
      shell: bash

  Clang_Format:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
      with:
        path: hypervisor
    - name: Setup
      run: |
        sudo apt-get update
        sudo apt-get install -y clang cmake lld
      shell: bash
    - name: Validate Source Formatting
      run: |
        chmod +x hypervisor/utils/clang-format
        export PATH="$PWD/hypervisor/utils:$PATH"
        mkdir build && cd build
        cmake -DCMAKE_CXX_COMPILER="clang++" -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_CLANG_FORMAT=ON ../hypervisor
        make format
        cd ../hypervisor
        if [[ -n $(git diff) ]]; then
          echo "You must run make format before submitting a pull request"
          echo ""<commit_msg>fix issue with clang-format CI<commit_after>name: C/C++ CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  Doxygen:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - name: Setup
      run: |
        chmod +x utils/doxygen
      shell: bash
    - name: Validate Documentation
      run: |
        utils/doxygen .doxygen
      shell: bash

  Clang_Format:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
      with:
        path: hypervisor
    - name: Setup
      run: |
        sudo apt-get update
        sudo apt-get install -y clang cmake lld clang-format
      shell: bash
    - name: Validate Source Formatting
      run: |
        mkdir build && cd build
        cmake -DCMAKE_CXX_COMPILER="clang++" -DCMAKE_BUILD_TYPE=DEBUG -DENABLE_CLANG_FORMAT=ON ../hypervisor
        make format
        cd ../hypervisor
        if [[ -n $(git diff) ]]; then
          echo "You must run make format before submitting a pull request"
          echo ""
{'fraction_non_alphanumeric': 0.0967590418036637, 'fraction_numerical': 0.009394081728511038, 'mean_word_length': 1.9258241758241759, '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': '2069153', 'n_tokens_mistral': 733, 'n_tokens_neox': 691, 'n_words': 194}