<commit_before>#!/bin/bash
# This script runs the test suites for the CI build

# Be verbose and fail script on the first error
set -xe

# By default: all test runs
if [ -z $1 ]; then
  TEST_SUITE="all"
else
  TEST_SUITE="$1"
fi

case $TEST_SUITE in
  linters)
    bundle exec rubocop -Dc .rubocop.yml
    jshint .
    ;;
  rspec)
    bundle exec rspec --color
    ;;
  *)
    bundle exec rubocop -Dc .rubocop.yml
    jshint .
    bundle exec rspec --color
    ;;
esac<commit_msg>Add slim-lint in travis linter suite<commit_after>#!/bin/bash
# This script runs the test suites for the CI build

# Be verbose and fail script on the first error
set -xe

# By default: all test runs
if [ -z $1 ]; then
  TEST_SUITE="all"
else
  TEST_SUITE="$1"
fi

case $TEST_SUITE in
  linters)
    bundle exec rubocop -Dc .rubocop.yml
    bundle exec slim-lint .
    jshint .
    ;;
  rspec)
    bundle exec rspec --color
    ;;
  *)
    bundle exec rubocop -Dc .rubocop.yml
    jshint .
    bundle exec rspec --color
    ;;
esac
{'fraction_non_alphanumeric': 0.09594460929772503, 'fraction_numerical': 0.003956478733926805, 'mean_word_length': 2.5017301038062283, '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': '7612660', 'n_tokens_mistral': 388, 'n_tokens_neox': 367, 'n_words': 129}