<commit_before>language: node_js
node_js:
  - 10.4
# every second counts
git:
  depth: 5
env:
  - NODE_ENV=production ESLINT_BEFORE_BUILD=false
jobs:
  include:
    - stage: test
      cache:
        directories:
          - node_modules
      install:
        - npm install
      script:
        - npm run lint -- --max-warnings=0
    - stage: test
      cache:
        directories:
          - node_modules
      install:
        - npm install
      script:
        - npm run test -- --maxWorkers=2
    - stage: test
      cache:
        directories:
          - server/node_modules
      env:
        - NODE_ENV=test
      install:
        - cd server && npm install --dev && cd ..
      script:
        - cd server && npm run test:once -- --maxWorkers=2 && cd ..
    # TODO: Code duplication calculator
    - stage: build
      services: docker
      cache:
        directories:
          - node_modules
          - server/node_modules<commit_msg>Install dev dependencies in linter<commit_after>language: node_js
node_js:
  - 10.4
# every second counts
git:
  depth: 5
env:
  - NODE_ENV=production ESLINT_BEFORE_BUILD=false
jobs:
  include:
    - stage: test
      cache:
        directories:
          - node_modules
      install:
        - npm install --dev
      script:
        - npm run lint -- --max-warnings=0
    - stage: test
      cache:
        directories:
          - node_modules
      install:
        - npm install
      script:
        - npm run test -- --maxWorkers=2
    - stage: test
      cache:
        directories:
          - server/node_modules
      env:
        - NODE_ENV=test
      install:
        - cd server && npm install --dev && cd ..
      script:
        - cd server && npm run test:once -- --maxWorkers=2 && cd ..
    # TODO: Code duplication calculator
    - stage: build
      services: docker
      cache:
        directories:
          - node_modules
          - server/node_modules
{'fraction_non_alphanumeric': 0.09227579056505962, 'fraction_numerical': 0.007257646448937273, 'mean_word_length': 1.5064935064935066, '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': '7093394', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 154}