<commit_before>name: Continuous Integration
on:
  repository_dispatch:
    types: run-commit-tests
  push:
    branches:
      - master
  pull_request:
    types: [opened, synchronize]
    branches:
      - master

env:
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
  java-build:
    name: Java ${{ matrix.java }} (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        java: [ '8']
#        java: [ '8', '11' ]
        os: ['ubuntu-latest', 'windows-latest']
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
#      - name: Cache Gradle dependencies
#        uses: actions/cache@v1
#        with:
#          path: ~/.gradle/caches
#          key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle') }}
#          restore-keys: |
#            ${{ runner.os }}-gradle-caches-
#      - name: Cache Gradle wrappers
#        uses: actions/cache@v1
#        with:
#          path: ~/.gradle/wrapper
#          key: ${{ runner.os }}-gradle-wrapper
#      - name: Setup java
#        uses: actions/setup-java@v1
#        with:
#          java-version: ${{ matrix.java }}
#      - name: Build with Gradle
#        run: ./gradlew
      - name: Create crash logs archive (Linux)
#        if: failure()
        if: matrix.os == 'ubuntu-latest'
        run: find . -name '*.yml' -exec zip crash-logs.zip '{}' +
      - name: Create crash logs archive (Windows)
#        if: failure()
        if: matrix.os == 'windows-latest'
        run: echo 'How to find and zip files on Windows?'
      - name: Upload crash logs
        uses: actions/upload-artifact@v1
        with:
          name: crash-logs-${{ matrix.os }}-java-${{ matrix.java }}
          path: crash-logs.zip
#
#  cpp-gcc-build:tld
#    name: C++ GCC ${{ matrix.version }}
#    runs-on: ubuntu-latest
#    strategy:
#      fail-fast: false<commit_msg>[Java] Split package and upload for Windows and Linux<commit_after>name: Continuous Integration
on:
  repository_dispatch:
    types: run-commit-tests
  push:
    branches:
      - master
  pull_request:
    types: [opened, synchronize]
    branches:
      - master

env:
  GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
  java-build:
    name: Java ${{ matrix.java }} (${{ matrix.os }})
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        java: [ '8']
#        java: [ '8', '11' ]
        os: ['ubuntu-latest', 'windows-latest']
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
#      - name: Cache Gradle dependencies
#        uses: actions/cache@v1
#        with:
#          path: ~/.gradle/caches
#          key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/*.gradle') }}
#          restore-keys: |
#            ${{ runner.os }}-gradle-caches-
#      - name: Cache Gradle wrappers
#        uses: actions/cache@v1
#        with:
#          path: ~/.gradle/wrapper
#          key: ${{ runner.os }}-gradle-wrapper
#      - name: Setup java
#        uses: actions/setup-java@v1
#        with:
#          java-version: ${{ matrix.java }}
#      - name: Build with Gradle
#        run: ./gradlew
      - name: Package crash logs archive (Linux)
        id: package_crash_logs_linux
#        if: failure()
        if: matrix.os == 'ubuntu-latest'
        run: find . -name '*.yml' -exec zip crash-logs.zip '{}' +
      - name: Package crash logs archive (Windows)
        id: package_crash_logs_win
#        if: failure()
        if: matrix.os == 'windows-latest'
        run: echo 'How to find and zip files on Windows?'
      - name: Upload crash logs (Linux)
        if: ${{ steps.package_crash_logs_linux.outputs.file }}
        uses: actions/upload-artifact@v1
        with:
          name: crash-logs-linux-java-${{ matrix.java }}
          path: ${{ steps.package_crash_logs_linux.outputs.file }}
      - name: Upload crash logs (Windows)
        if: ${{ steps.package_crash_logs_win.outputs.file }}
        uses: actions/upload-artifact@v1
        with:
          name: crash-logs-windows-java-${{ matrix.java }}
          path: ${{ steps.package_crash_logs_win.outputs.file }}
#
#  cpp-gcc-build:tld
#    name: C++ GCC ${{ matrix.version }}
#    runs-on: ubuntu-latest
#    strategy:
#      fail-fast: false
{'fraction_non_alphanumeric': 0.1493202062822316, 'fraction_numerical': 0.004453820909517112, 'mean_word_length': 2.0176803394625176, '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': '5075277', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1362, 'n_words': 327}