<commit_before>name: CI
on:
  push:
    branches:
      - '**'
    tags-ignore:
      - '**'
    paths:
      - '**/*.swift'
      - '.github/workflows/*.yml'
  pull_request:
    paths:
      - '**/*.swift'
      - '.github/workflows/*.yml'
jobs:
  test:
    strategy:
      matrix:
        os:
          - ubuntu-latest
          - macOS-latest
        swift-compat-ver:
          - '5'
          # - '4.2'
          # - '4'
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2
    - name: Use a cache for ".build" directory.
      uses: actions/cache@v1
      with:
        path: .build
        key: build-${{ github.workspace }}-${{ runner.os }}-${{ matrix.swift-compat-ver }}-${{ hashFiles('**/*.swift') }}
        restore-keys: |
          build-${{ github.workspace }}-${{ runner.os }}-${{ matrix.swift-compat-ver }}-
          build-${{ github.workspace }}-${{ runner.os }}-
          build-${{ github.workspace }}-
    - uses: YOCKOW/Action-setup-swift@master
      with:
        swift-version: '5.2.2'
    - name: Try to build products with debug mode.
      run: |
        swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
        if [ $? != 0 ]; then
          echo "Failed to build products with debug mode."
          rm -rf $(cd .build/debug && pwd -P)
        fi
      continue-on-error: true
    - name: Test with debug mode.
      run: swift test --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
    - name: Try to build products with release mode.
      run: |
        swift build --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
        if [ $? != 0 ]; then
          echo "Failed to build products with release mode."
          rm -rf $(cd .build/release && pwd -P)
        fi
      continue-on-error: true
    - name: Test with release mode.
      run: swift test --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}<commit_msg>Update CI workflow.<commit_after>name: CI
on:
  push:
    branches:
      - '**'
    tags-ignore:
      - '**'
    paths:
      - '**/*.swift'
      - '.github/workflows/*.yml'
  pull_request:
    paths:
      - '**/*.swift'
      - '.github/workflows/*.yml'
jobs:
  check-xctest-manifests:
    name: 'Check XCTestManifests.swift'
    runs-on: macOS-latest
    steps:
      - uses: actions/checkout@v2
      - run: swift test --generate-linuxmain
      - run: git diff --exit-code
  test:
    strategy:
      matrix:
        os:
          - ubuntu-latest
          - macOS-latest
        swift-compat-ver:
          - '5'
          # - '4.2'
          # - '4'
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v2
    - name: Use a cache for ".build" directory.
      uses: actions/cache@v1
      with:
        path: .build
        key: build-${{ github.workspace }}-${{ runner.os }}-${{ matrix.swift-compat-ver }}-${{ hashFiles('**/*.swift') }}
        restore-keys: |
          build-${{ github.workspace }}-${{ runner.os }}-${{ matrix.swift-compat-ver }}-
          build-${{ github.workspace }}-${{ runner.os }}-
          build-${{ github.workspace }}-
    - uses: YOCKOW/Action-setup-swift@master
      with:
        swift-version: '5.2.4'
    - name: Try to build products with debug mode.
      run: |
        swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
        if [ $? != 0 ]; then
          echo "Failed to build products with debug mode."
          rm -rf $(cd .build/debug && pwd -P)
        fi
      continue-on-error: true
    - name: Test with debug mode.
      run: swift test --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
    - name: Try to build products with release mode.
      run: |
        swift build --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
        if [ $? != 0 ]; then
          echo "Failed to build products with release mode."
          rm -rf $(cd .build/release && pwd -P)
        fi
      continue-on-error: true
    - name: Test with release mode.
      run: swift test --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
{'fraction_non_alphanumeric': 0.15623572407492006, 'fraction_numerical': 0.005253540429419826, 'mean_word_length': 1.8453541260558803, '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': '2324854', 'n_tokens_mistral': 1476, 'n_tokens_neox': 1374, 'n_words': 355}