<commit_before>name: CI

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

jobs:
  testandinstall:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    - name: Ensure all files were formatted as per gofmt
      run: |
        [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]

    - name: run tests
      run: go test ./...

    - name: install binaries
      run: go install github.com/stapelberg/scan2drive github.com/stapelberg/scan2drive/cmd/...
<commit_msg>GitHub Actions: ensure we are on Go 1.16<commit_after>name: CI

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

jobs:
  testandinstall:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2

    # Ensure we are on Go 1.16 (GitHub Actions defaults to 1.15)
    - uses: actions/setup-go@v2
      with:
        go-version: '^1.16.4'

    - run: go version

    - name: Ensure all files were formatted as per gofmt
      run: |
        [ "$(gofmt -l $(find . -name '*.go') 2>&1)" = "" ]

    - name: run tests
      run: go test ./...

    - name: install binaries
      run: go install github.com/stapelberg/scan2drive github.com/stapelberg/scan2drive/cmd/...

{'fraction_non_alphanumeric': 0.13442622950819672, 'fraction_numerical': 0.019672131147540985, 'mean_word_length': 2.1796875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2328989', 'n_tokens_mistral': 462, 'n_tokens_neox': 429, 'n_words': 118}