<commit_before>language: ruby

cache:
  bundler: true
  directories:
    - reports
    - vendor/cache

rvm:
  - 2.6.5
  - ruby-head

addons:
  apt:
    sources:
      - elasticsearch-5.x
    packages:
      - elasticsearch
      - openjdk-8-jre-headless
  postgresql: "9.6"
  chrome: stable

services:
  - elasticsearch
  - memcached
  - docker

bundler_args: --jobs=3 --retry=3 --without development

git:
  submodules: true

before_install:
  - git submodule update --init
  - sh -c "if [ '$RUBYGEMS_VERSION' != 'latest' ]; then gem update --system $RUBYGEMS_VERSION; fi"
  - gem --version
  - script/install_toxiproxy.sh

before_script:
  - gem install bundler-audit -v 0.6.1
  - bundle audit update
  - cp config/database.yml.example config/database.yml
  - bundle exec rake db:create db:migrate db:test:prepare

script:
  - bundle exec rails test
  - bundle exec rake rubocop
  - bundle audit check
  - bundle exec brakeman
  - script/build_docker.sh
<commit_msg>Remove bundler-audit usage in travis ci<commit_after>language: ruby

cache:
  bundler: true
  directories:
    - reports
    - vendor/cache

rvm:
  - 2.6.5
  - ruby-head

addons:
  apt:
    sources:
      - elasticsearch-5.x
    packages:
      - elasticsearch
      - openjdk-8-jre-headless
  postgresql: "9.6"
  chrome: stable

services:
  - elasticsearch
  - memcached
  - docker

bundler_args: --jobs=3 --retry=3 --without development

git:
  submodules: true

before_install:
  - git submodule update --init
  - sh -c "if [ '$RUBYGEMS_VERSION' != 'latest' ]; then gem update --system $RUBYGEMS_VERSION; fi"
  - gem --version
  - script/install_toxiproxy.sh

before_script:
  - cp config/database.yml.example config/database.yml
  - bundle exec rake db:create db:migrate db:test:prepare

script:
  - bundle exec rails test
  - bundle exec rake rubocop
  - bundle exec brakeman
  - script/build_docker.sh

{'fraction_non_alphanumeric': 0.10554371002132196, 'fraction_numerical': 0.011194029850746268, 'mean_word_length': 2.7094861660079053, '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': '4683836', 'n_tokens_mistral': 695, 'n_tokens_neox': 673, 'n_words': 168}