<commit_before>name: main
on:
  push:
    branches:
      - main
  pull_request:

jobs:
  install:
    name: Install Dependencies
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
  #<% if (checkFormat) { %>
  check-format:
    name: Check Format
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Check Format
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> format:check
  #<% } %>
  #<% if (lint) { %>
  lint:
    name: Lint
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Lint
        run: <% if (yarn) { %>yarn lint<% } else { %>npm run lint --<% } %> --format junit -o reports/lint-results.xml
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: lint-results
          path: reports/lint-results.xml
  #<% } %>
  #<% if (checkTypes) { %>
  check-types:
    name: Check Typescript Types
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Check Typescript Types
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> check-types
  #<% } %>
  #<% if (unitTests) { %>
  unit-test:
    name: Unit Tests
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Unit Tests
        run: <% if (yarn) { %>yarn test:coverage<% } else { %>npm run test:coverage --<% } %> --ci --reporters=default --reporters=jest-junit
        env:
          JEST_JUNIT_OUTPUT_FILE: 'reports/unit-test-results.xml'
      - name: Upload Report to Codecov
        uses: codecov/codecov-action@v2
        if: always()
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: unit-test-results
          path: reports/unit-test-results.xml
  #<% } %>
  #<% if (e2eTests) { %>
  e2e-test:
    name: E2E Tests
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: E2E Tests
        run: <% if (yarn) { %>yarn test:e2e<% } else { %>npm run test:e2e --<% } %> --ci --reporters=default --reporters=jest-junit
        env:
          JEST_JUNIT_OUTPUT_FILE: 'reports/e2e-test-results.xml'
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: e2e-test-results
          path: reports/e2e-test-results.xml
  #<% } %>
  #<% if (build) { %>
  build:
    name: Build
    runs-on: ubuntu-latest
    needs:
      #<% if (checkFormat) { %>
      - check-format
      #<% } %>
      #<% if (lint) { %>
      - lint
      #<% } %>
      #<% if (checkTypes) { %>
      - check-types
      #<% } %>
      #<% if (unitTests) { %>
      - unit-test
      #<% } %>
      #<% if (e2eTests) { %>
      - e2e-test
      #<% } %>
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Build
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> build
      #<% } %>
      #<% if (checkSize) { %>
      - name: Upload Build Artifact
        uses: actions/upload-artifact@v2
        with:
          name: bundle
          path: <%= name %>.min.*
  size:
    name: Check Size
    runs-on: ubuntu-latest
    needs: build
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup
        uses: ./.github/actions/setup
      - name: Download Build Artifact
        uses: actions/download-artifact@v2
        with:
          name: bundle
      - name: Check Size
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> size
  #<% } %><commit_msg>refactor: update checkout github action<commit_after>name: main
on:
  push:
    branches:
      - main
  pull_request:

jobs:
  install:
    name: Install Dependencies
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
  #<% if (checkFormat) { %>
  check-format:
    name: Check Format
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Check Format
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> format:check
  #<% } %>
  #<% if (lint) { %>
  lint:
    name: Lint
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Lint
        run: <% if (yarn) { %>yarn lint<% } else { %>npm run lint --<% } %> --format junit -o reports/lint-results.xml
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: lint-results
          path: reports/lint-results.xml
  #<% } %>
  #<% if (checkTypes) { %>
  check-types:
    name: Check Typescript Types
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Check Typescript Types
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> check-types
  #<% } %>
  #<% if (unitTests) { %>
  unit-test:
    name: Unit Tests
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Unit Tests
        run: <% if (yarn) { %>yarn test:coverage<% } else { %>npm run test:coverage --<% } %> --ci --reporters=default --reporters=jest-junit
        env:
          JEST_JUNIT_OUTPUT_FILE: 'reports/unit-test-results.xml'
      - name: Upload Report to Codecov
        uses: codecov/codecov-action@v2
        if: always()
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: unit-test-results
          path: reports/unit-test-results.xml
  #<% } %>
  #<% if (e2eTests) { %>
  e2e-test:
    name: E2E Tests
    runs-on: ubuntu-latest
    needs: install
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: E2E Tests
        run: <% if (yarn) { %>yarn test:e2e<% } else { %>npm run test:e2e --<% } %> --ci --reporters=default --reporters=jest-junit
        env:
          JEST_JUNIT_OUTPUT_FILE: 'reports/e2e-test-results.xml'
      - name: Upload Report
        uses: actions/upload-artifact@v2
        if: always()
        with:
          name: e2e-test-results
          path: reports/e2e-test-results.xml
  #<% } %>
  #<% if (build) { %>
  build:
    name: Build
    runs-on: ubuntu-latest
    needs:
      #<% if (checkFormat) { %>
      - check-format
      #<% } %>
      #<% if (lint) { %>
      - lint
      #<% } %>
      #<% if (checkTypes) { %>
      - check-types
      #<% } %>
      #<% if (unitTests) { %>
      - unit-test
      #<% } %>
      #<% if (e2eTests) { %>
      - e2e-test
      #<% } %>
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Build
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> build
      #<% } %>
      #<% if (checkSize) { %>
      - name: Upload Build Artifact
        uses: actions/upload-artifact@v2
        with:
          name: bundle
          path: <%= name %>.min.*
  size:
    name: Check Size
    runs-on: ubuntu-latest
    needs: build
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Setup
        uses: ./.github/actions/setup
      - name: Download Build Artifact
        uses: actions/download-artifact@v2
        with:
          name: bundle
      - name: Check Size
        run: <% if (yarn) { %>yarn<% } else { %>npm run<% } %> size
  #<% } %>
{'fraction_non_alphanumeric': 0.15048543689320387, 'fraction_numerical': 0.005919962112242482, 'mean_word_length': 1.7398637690561143, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1351332', 'n_tokens_mistral': 3056, 'n_tokens_neox': 2824, 'n_words': 664}