<commit_before>name: Haxe-Checkstyle Linux

on:
  push:
    branches:
    - dev
  pull_request:
    branches:
    - dev
  schedule:
    - cron: '15 23 * * *'

jobs:
  haxe4-rc5:
    env: 
      CC_TEST_REPORTER_ID: 1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js 10
      uses: actions/setup-node@v1
      with:
        node-version: 10
    - name: Installing codeclimate client
      run: |
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
        chmod +x ./cc-test-reporter
        ./cc-test-reporter before-build
    - name: NPM install
      run: npm ci
    - name: Prepare Haxe 4.0.0-rc.5
      run: |
        npx lix download haxe 4.0.0-rc.5
        npx lix use haxe 4.0.0-rc.5
    - name: Lix download
      run: npx lix download
    - name: Print versions
      run: |
        npx haxe -version
        npx neko -version
        npx haxelib list
    - name: Build neko versions
      run: |
        npx haxe build.hxml
        npx haxe buildDebug.hxml
    - name: Build NodeJs version
      run: npx haxe buildJS.hxml
    - name: Build C++ version
      run: npx haxe buildCpp.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Run eval tests
      run: npx haxe -D codecov_json buildTest.hxml
    - name: Run Java tests
      run: npx haxe testJava.hxml
    - name: Format and upload codeclimate coverage
      if: success()
      run: |
        ( \
          cd src; \
          ../cc-test-reporter format-coverage -t lcov ../lcov.info; \
          ../cc-test-reporter upload-coverage; \
        )
    - name: Upload results to codecov
      if: success()
      run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"

  haxe4-nightly:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js 10
      uses: actions/setup-node@v1
      with:
        node-version: 10
    - name: NPM install
      run: npm ci
    - name: Prepare Haxe 4 nightly
      run: |
        npx lix download haxe nightly
        npx lix use haxe nightly
    - name: Lix download
      run: npx lix download
    - name: Print versions
      run: |
        npx haxe -version
        npx neko -version
        npx haxelib list
    - name: Build neko versions
      run: |
        npx haxe build.hxml
        npx haxe buildDebug.hxml
    - name: Build NodeJs version
      run: npx haxe buildJS.hxml
    - name: Build C++ version
      run: npx haxe buildCpp.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Run eval tests
      run: npx haxe -D codecov_json buildTest.hxml
    - name: Run Java tests
      run: npx haxe testJava.hxml

  haxe347:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js 10
      uses: actions/setup-node@v1
      with:
        node-version: 10
    - name: NPM install
      run: npm ci
    - name: Prepare Haxe 3.4.7
      run: |
        npx lix download haxe 3.4.7
        npx lix use haxe 3.4.7
        mv haxe_libraries haxe4_libraries
        mv haxe3_libraries haxe_libraries
    - name: Lix download
      run: npx lix download
    - name: Print versions
      run: |
        npx haxe -version
        npx neko -version
        npx haxelib list
    - name: Build neko versions
      run: |
        npx haxe build.hxml
        npx haxe buildDebug.hxml
    - name: Build NodeJs version
      run: npx haxe buildJS.hxml
    - name: Build C++ version
      run: npx haxe buildCpp.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Run neko tests
      run: npx haxe -D codecov_json buildTest.hxml
    - name: Run Java tests
      run: npx haxe testJava.hxml<commit_msg>trying out strategy matrix for github actions<commit_after>name: Haxe-Checkstyle Linux

on:
  push:
    branches:
    - dev
  pull_request:
    branches:
    - dev
  schedule:
    - cron: '15 23 * * *'

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        haxe-version: ['3.4.7', '4.0.0-rc.5', 'nightly']
    env:
      CC_TEST_REPORTER_ID: 1dff6f89d7179dff5db635c6b4fe64acdd5694c9ed44d7da5f12f0f7d3d163b7
    steps:
    - uses: actions/checkout@v1
    - name: Use Node.js 10
      uses: actions/setup-node@v1
      with:
        node-version: 10
    - name: Installing codeclimate client
      if: haxe-version == '4.0.0-rc.5'
      run: |
        curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
        chmod +x ./cc-test-reporter
        ./cc-test-reporter before-build
    - name: NPM install
      run: npm ci
    - name: Install Haxe version ${{ haxe-version }}
      run: |
        npx lix download haxe ${{ haxe-version }}
        npx lix use haxe ${{ haxe-version }}
    - name: Prepare Haxe 3 dependencies
      if: haxe-version == '3.4.7'
      run: |
        mv haxe_libraries haxe4_libraries
        mv haxe3_libraries haxe_libraries
    - name: Lix download
      run: npx lix download
    - name: Print versions
      run: |
        npx haxe -version
        npx neko -version
        npx haxelib list
    - name: Build neko versions
      run: |
        npx haxe build.hxml
        npx haxe buildDebug.hxml
    - name: Build NodeJs version
      run: npx haxe buildJS.hxml
    - name: Build C++ version
      run: npx haxe buildCpp.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Build JSON schema
      run: npx haxe buildSchema.hxml
    - name: Run eval tests
      run: npx haxe -D codecov_json buildTest.hxml
    - name: Run Java tests
      run: npx haxe testJava.hxml
    - name: Format and upload codeclimate coverage
      if: success() && haxe-version == '4.0.0-rc.5'
      run: |
        ( \
          cd src; \
          ../cc-test-reporter format-coverage -t lcov ../lcov.info; \
          ../cc-test-reporter upload-coverage; \
        )
    - name: Upload results to codecov
      if: success() && haxe-version == '4.0.0-rc.5'
      run: bash <(curl -s https://codecov.io/bash) || echo "Codecov did not collect coverage reports"
{'fraction_non_alphanumeric': 0.09097942132136778, 'fraction_numerical': 0.024601578214451494, 'mean_word_length': 1.8818546589389211, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 32}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6799806', 'n_tokens_mistral': 2414, 'n_tokens_neox': 2272, 'n_words': 647}