<commit_before>name: Compile and test the code

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
    
    - name: Install dependencies
      run: |
        sudo apt-get install -y --no-install-recommends \
        gcc \
        gfortran \
        liblapacke-dev \
        libopenblas-dev \
        libmetis-dev \
        libsuitesparse-dev \
        libmumps-seq-dev \
        libfftw3-dev

    - name: Set up Go 1.x
      uses: actions/setup-go@v2
      with:
        go-version: ^1.16

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2

    - name: Get dependencies
      run: |
        go get -v -t -d ./...
        if [ -f Gopkg.toml ]; then
            curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
            dep ensure
        fi

    - name: Build
      run: go build -v ./...

    - name: Test
      run: go test -v ./...
<commit_msg>Update GH Action<commit_after>name: Test & Coverage
on: [pull_request, push]
jobs:
  test_and_coverage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Install Libraries
        run: |
          sudo apt-get install -y --no-install-recommends \
          gcc \
          gfortran \
          libfftw3-dev \
          liblapacke-dev \
          libmetis-dev \
          libmumps-seq-dev \
          libopenblas-dev \
          libsuitesparse-dev
      - name: Install Go
        uses: actions/setup-go@v2
        with:
          go-version: ^1.17
      - name: Build all
        run: |
          bash ./all.bash
      - name: Test & Coverage
        run: |
          go test -coverprofile=coverage.out -covermode=atomic ./...
      - name: Upload to codecov.io
        uses: codecov/codecov-action@v1

{'fraction_non_alphanumeric': 0.10395235517054684, 'fraction_numerical': 0.007579859231185706, 'mean_word_length': 1.441215323645971, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4899479', 'n_tokens_mistral': 622, 'n_tokens_neox': 601, 'n_words': 149}