<commit_before>defaults_go: &DEFAULTS_GO
  language: go
  go: "1.9.2"
  cache:
    directories:
      - vendor

defaults_js: &DEFAULTS_JS
  language: node_js
  node_js: "8"
  # install defaults to "npm install", which is done via make
  install: []
  cache:
    directories:
      - node_modules

jobs:
  include:
    - stage: Lint docs
      <<: *DEFAULTS_JS
      script: make lint-docs

    - stage: Test Go code
      <<: *DEFAULTS_GO
      before_script:
        - make mock-assets
      script: make test-go

    - stage: Test JavaScript code
      <<: *DEFAULTS_JS
      env:
        - NODE_ENV=test
      script: make test-js

    - stage: Lint Go code
      <<: *DEFAULTS_GO
      script: make lint-go

    - stage: Lint JavaScript code
      <<: *DEFAULTS_JS
      script: make lint-js

    - stage: Build Docker image
      language: generic
      sudo: true<commit_msg>Move lint docs stage closer to other lint stages<commit_after>defaults_go: &DEFAULTS_GO
  language: go
  go: "1.9.2"
  cache:
    directories:
      - vendor

defaults_js: &DEFAULTS_JS
  language: node_js
  node_js: "8"
  # install defaults to "npm install", which is done via make
  install: []
  cache:
    directories:
      - node_modules

jobs:
  include:
    - stage: Test Go code
      <<: *DEFAULTS_GO
      before_script:
        - make mock-assets
      script: make test-go

    - stage: Test JavaScript code
      <<: *DEFAULTS_JS
      env:
        - NODE_ENV=test
      script: make test-js

    - stage: Lint Go code
      <<: *DEFAULTS_GO
      script: make lint-go

    - stage: Lint JavaScript code
      <<: *DEFAULTS_JS
      script: make lint-js

    - stage: Lint docs
      <<: *DEFAULTS_JS
      script: make lint-docs

    - stage: Build Docker image
      language: generic
      sudo: true
{'fraction_non_alphanumeric': 0.09126321647189761, 'fraction_numerical': 0.004451864218141347, 'mean_word_length': 2.0946643717728053, 'pattern_counts': {'":': 0, '<': 23, '<?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': '701938', 'n_tokens_mistral': 612, 'n_tokens_neox': 604, 'n_words': 173}