<commit_before>name: build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest

    container:
      image:  google/dart:beta

    steps:
      - uses: actions/checkout@v2

      - name: Print Dart SDK version
        run: dart --version

      - name: Cache pub dependencies
        uses: actions/cache@v2
        env:
          cache-name: tar-cache-deps
        with:
          path: .dart_tool
          key: ${{ env.cache-name }}

      - name: Install dependencies
        env: 
          PUB_CACHE: ".dart_tool/pub_cache"
        run: dart pub get

      - name: Verify formatting
        run: dart format --output=none --set-exit-if-changed .

      - name: Analyze project source
        run: dart analyze --fatal-infos

      - name: Run tests
        run: dart test<commit_msg>Use correct pub cache for dart test<commit_after>name: build

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    runs-on: ubuntu-latest

    container:
      image:  google/dart:beta

    steps:
      - uses: actions/checkout@v2

      - name: Print Dart SDK version
        run: dart --version

      - name: Cache pub dependencies
        uses: actions/cache@v2
        env:
          cache-name: tar-cache-deps
        with:
          path: .dart_tool
          key: ${{ env.cache-name }}

      - name: Install dependencies
        env: 
          PUB_CACHE: ".dart_tool/pub_cache"
        run: dart pub get

      - name: Verify formatting
        run: dart format --output=none --set-exit-if-changed .

      - name: Analyze project source
        run: dart analyze --fatal-infos

      - name: Run tests
        env:
          PUB_CACHE: ".dart_tool/pub_cache"
        run: dart test
{'fraction_non_alphanumeric': 0.09625069949636261, 'fraction_numerical': 0.002238388360380526, 'mean_word_length': 1.6927710843373494, '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': '1848016', 'n_tokens_mistral': 585, 'n_tokens_neox': 545, 'n_words': 154}