<commit_before>name: CI
on:
  push:
    branches:
      - master
      - '[0-9]+.[0-9]+'
  pull_request:
    branches:
      - master
      - '[0-9]+.[0-9]+'
  schedule:
    - cron:  '0 4 * * *'
jobs:
  Test:
    name: Run tests
    strategy:
      matrix:
        os: [ubuntu-latest]
        jdk: [8, 11]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-${{ matrix.jdk }}
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: ${{ matrix.jdk }}
      - name: Run tests
        run: mvn -q clean verify -B
      - name: Publish Unit Test Results
        uses: scacap/action-surefire-report@v1
        if: ${{ always() }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
  Apollo-Link-Tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.19.0]
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-8
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: 8
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: sh start-apollo-tests-server.sh
        working-directory: vertx-web-graphql
      - run: npm install
        working-directory: vertx-web-graphql/tests/apollo
      - run: npm run test
        working-directory: vertx-web-graphql/tests/apollo
      - run: sh show-apollo-tests-server-logs.sh
        working-directory: vertx-web-graphql
        if: ${{ failure() }}
      - run: sh stop-apollo-tests-server.sh
        working-directory: vertx-web-graphql
        if: ${{ always() }}
  SockJS-WriteHandler-Tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.19.0]
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-8
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: 8
      - name: Use Node.js ${{ matrix.node-version }}<commit_msg>Attach Apollo log to action artifact<commit_after>name: CI
on:
  push:
    branches:
      - master
      - '[0-9]+.[0-9]+'
  pull_request:
    branches:
      - master
      - '[0-9]+.[0-9]+'
  schedule:
    - cron:  '0 4 * * *'
jobs:
  Test:
    name: Run tests
    strategy:
      matrix:
        os: [ubuntu-latest]
        jdk: [8, 11]
    runs-on: ${{ matrix.os }}
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-${{ matrix.jdk }}
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: ${{ matrix.jdk }}
      - name: Run tests
        run: mvn -q clean verify -B
      - name: Publish Unit Test Results
        uses: scacap/action-surefire-report@v1
        if: ${{ always() }}
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
  Apollo-Link-Tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.19.0]
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-8
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: 8
      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}
      - run: sh start-apollo-tests-server.sh
        working-directory: vertx-web-graphql
      - run: npm install
        working-directory: vertx-web-graphql/tests/apollo
      - run: npm run test
        working-directory: vertx-web-graphql/tests/apollo
      - uses: actions/upload-artifact@v2
        if: ${{ always() }}
        with:
          name: ApolloTestsServer.log
          path: ~/ApolloTestsServer.log
      - run: sh show-apollo-tests-server-logs.sh
        working-directory: vertx-web-graphql
        if: ${{ failure() }}
      - run: sh stop-apollo-tests-server.sh
        working-directory: vertx-web-graphql
        if: ${{ always() }}
  SockJS-WriteHandler-Tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [10.19.0]
    steps:
      - uses: actions/cache@v2
        with:
          path: ~/.m2/repository
          key: maven-java-8
      - name: Checkout
        uses: actions/checkout@v2
      - name: Install JDK
        uses: joschi/setup-jdk@v2
        with:
          java-version: 8
      - name: Use Node.js ${{ matrix.node-version }}
{'fraction_non_alphanumeric': 0.13119415109666938, 'fraction_numerical': 0.016856214459788788, 'mean_word_length': 1.6506996770721205, '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': '1516663', 'n_tokens_mistral': 1709, 'n_tokens_neox': 1646, 'n_words': 350}