<commit_before>name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master

jobs:
  linux:
    runs-on: ubuntu-latest
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    # TODO: rename azure-pipelines/linux/xvfb.init to github-actions
    - run: |
        sudo apt-get update
        sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0
        sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
        sudo chmod +x /etc/init.d/xvfb
        sudo update-rc.d xvfb defaults
        sudo service xvfb start
      name: Setup Build Environment
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    # TODO: cache node modules
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron x64
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
      name: Run Unit Tests
    - run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
      name: Run Integration Tests

  windows:
    runs-on: windows-2016
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    - uses: actions/setup-python@v1
      with:
        python-version: '2.x'
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: .\scripts\test.bat --tfs "Unit Tests"
      name: Run Unit Tests
    - run: .\scripts\test-integration.bat --tfs "Integration Tests"
      name: Run Integration Tests

  darwin:
    runs-on: macos-latest
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron x64
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: ./scripts/test.sh --tfs "Unit Tests"
      name: Run Unit Tests
    - run: ./scripts/test-integration.sh --tfs "Integration Tests"
      name: Run Integration Tests
<commit_msg>GitHub Actions: include release branches for PRs<commit_after>name: CI

on:
  push:
    branches:
      - master
  pull_request:
    branches:
      - master
      - release/*

jobs:
  linux:
    runs-on: ubuntu-latest
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    # TODO: rename azure-pipelines/linux/xvfb.init to github-actions
    - run: |
        sudo apt-get update
        sudo apt-get install -y libxkbfile-dev pkg-config libsecret-1-dev libxss1 dbus xvfb libgtk-3-0
        sudo cp build/azure-pipelines/linux/xvfb.init /etc/init.d/xvfb
        sudo chmod +x /etc/init.d/xvfb
        sudo update-rc.d xvfb defaults
        sudo service xvfb start
      name: Setup Build Environment
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    # TODO: cache node modules
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron x64
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: DISPLAY=:10 ./scripts/test.sh --tfs "Unit Tests"
      name: Run Unit Tests
    - run: DISPLAY=:10 ./scripts/test-integration.sh --tfs "Integration Tests"
      name: Run Integration Tests

  windows:
    runs-on: windows-2016
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    - uses: actions/setup-python@v1
      with:
        python-version: '2.x'
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: .\scripts\test.bat --tfs "Unit Tests"
      name: Run Unit Tests
    - run: .\scripts\test-integration.bat --tfs "Integration Tests"
      name: Run Integration Tests

  darwin:
    runs-on: macos-latest
    env:
      CHILD_CONCURRENCY: "1"
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    steps:
    - uses: actions/checkout@v1
    - uses: actions/setup-node@v1
      with:
        node-version: 10
    - run: yarn --frozen-lockfile
      name: Install Dependencies
    - run: yarn electron x64
      name: Download Electron
    - run: yarn gulp hygiene --skip-tslint
      name: Run Hygiene Checks
    - run: yarn gulp tslint
      name: Run TSLint Checks
    - run: yarn monaco-compile-check
      name: Run Monaco Editor Checks
    - run: yarn compile
      name: Compile Sources
    - run: yarn download-builtin-extensions
      name: Download Built-in Extensions
    - run: ./scripts/test.sh --tfs "Unit Tests"
      name: Run Unit Tests
    - run: ./scripts/test-integration.sh --tfs "Integration Tests"
      name: Run Integration Tests

{'fraction_non_alphanumeric': 0.09394975471978594, 'fraction_numerical': 0.009811208562509291, 'mean_word_length': 2.1780821917808217, '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': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5182182', 'n_tokens_mistral': 2321, 'n_tokens_neox': 2176, 'n_words': 637}