<commit_before>name: KumuluzEE CI

on: [push, pull_request]

jobs:
  test:
    name: Build and test
    runs-on: 'ubuntu-latest'

    strategy:
      matrix:
        java-version: ['11', '15']

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Set up JDK ${{ matrix.java-version }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java-version }}

      - name: Cache Maven packages
        uses: actions/cache@v2
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2

      - name: Install
        run: mvn --show-version --update-snapshots --batch-mode clean install -DskipTests=true

      - name: Test
        run: mvn --batch-mode test

  publish:
    name: Publish to OSSRH<commit_msg>Added Java 17 to CI<commit_after>name: KumuluzEE CI

on: [push, pull_request]

jobs:
  test:
    name: Build and test
    runs-on: 'ubuntu-latest'

    strategy:
      matrix:
        java-version: ['11', '17']

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Set up JDK ${{ matrix.java-version }}
        uses: actions/setup-java@v1
        with:
          java-version: ${{ matrix.java-version }}

      - name: Cache Maven packages
        uses: actions/cache@v2
        with:
          path: ~/.m2
          key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2

      - name: Install
        run: mvn --show-version --update-snapshots --batch-mode clean install -DskipTests=true

      - name: Test
        run: mvn --batch-mode test

  publish:
    name: Publish to OSSRH
{'fraction_non_alphanumeric': 0.13837209302325582, 'fraction_numerical': 0.012790697674418604, 'mean_word_length': 1.882747068676717, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4208377', 'n_tokens_mistral': 596, 'n_tokens_neox': 556, 'n_words': 147}