<commit_before>name: Examples

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule:
    # Run this action daily at 7:00 UTC
    - cron: "0 7 * * *"

jobs:
  examples:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Check diff
      id: check-diff
      run: |
        git fetch origin master:master
        CHANGED_FILES=$(git diff --name-only master..HEAD | grep "tests/examples\|examples") || true;
        EXAMPLES_CHANGED=$([[ "$CHANGED_FILES" == *"examples"* ]] && echo "true" || echo "false")
        DOCKER_CHANGED=$([[ "$CHANGED_FILES" == *"Dockerfile"* ]] && echo "true" || echo "false")

        echo "CHANGED_FILES:"
        echo "$CHANGED_FILES"
        echo "EXAMPLES_CHANGED: $EXAMPLES_CHANGED"
        echo "DOCKER_CHANGED: $DOCKER_CHANGED"

        echo "::set-output name=examples_changed::$EXAMPLES_CHANGED"
        echo "::set-output name=docker_changed::$DOCKER_CHANGED"
<commit_msg>Disable example tests on pushes to master branch (#3111)<commit_after>name: Examples

on:
  pull_request:
    branches: [ master ]
  schedule:
    # Run this action daily at 7:00 UTC
    - cron: "0 7 * * *"

jobs:
  examples:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Check diff
      id: check-diff
      run: |
        git fetch origin master:master
        CHANGED_FILES=$(git diff --name-only master..HEAD | grep "tests/examples\|examples") || true;
        EXAMPLES_CHANGED=$([[ "$CHANGED_FILES" == *"examples"* ]] && echo "true" || echo "false")
        DOCKER_CHANGED=$([[ "$CHANGED_FILES" == *"Dockerfile"* ]] && echo "true" || echo "false")

        echo "CHANGED_FILES:"
        echo "$CHANGED_FILES"
        echo "EXAMPLES_CHANGED: $EXAMPLES_CHANGED"
        echo "DOCKER_CHANGED: $DOCKER_CHANGED"

        echo "::set-output name=examples_changed::$EXAMPLES_CHANGED"
        echo "::set-output name=docker_changed::$DOCKER_CHANGED"

{'fraction_non_alphanumeric': 0.1424923391215526, 'fraction_numerical': 0.008171603677221655, 'mean_word_length': 2.965587044534413, 'pattern_counts': {'":': 4, '<': 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': '6862199', 'n_tokens_mistral': 717, 'n_tokens_neox': 684, 'n_words': 153}