<commit_before>name: metadata

on:
  # only run on metadata file changes
  push:
    paths:
      - 'CITATION.cff'
      - '.zenodo.json'
  pull_request:
    paths:
      - 'CITATION.cff'
      - '.zenodo.json'

jobs:
  cff-validate:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Validate CITATION.cff
        uses: docker://citationcff/cffconvert:latest
        with:
          args: --validate

  zenodo-validate:
    strategy:
      matrix:
        node-version:
          - 14

    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}
<commit_msg>Make metadata workflow run on its own changes<commit_after>name: metadata

on:
  # only run on metadata file changes
  push:
    paths:
      - 'CITATION.cff'
      - '.zenodo.json'
      - '.github/workflows/metadata.yml' # meta
  pull_request:
    paths:
      - 'CITATION.cff'
      - '.zenodo.json'
      - '.github/workflows/metadata.yml' # meta

jobs:
  cff-validate:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Validate CITATION.cff
        uses: docker://citationcff/cffconvert:latest
        with:
          args: --validate

  zenodo-validate:
    strategy:
      matrix:
        node-version:
          - 14

    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: Set up Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ matrix.node-version }}

{'fraction_non_alphanumeric': 0.11386696730552424, 'fraction_numerical': 0.005636978579481398, 'mean_word_length': 1.8174603174603174, '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': '751471', 'n_tokens_mistral': 611, 'n_tokens_neox': 573, 'n_words': 127}