<commit_before>#!/usr/bin/env bash
# Generate a Language x OS matrix for Travis CI.
#
# As of the end of 2018, Travis CI does not have any documentation on a matrix
# which is `language` x `os`, and putting `os` at the top-level of a matrix of
# language directives results in an error of "Could not parse .travis.yml".
#
# Accordingly, generate the matrix.
#
#     bash .travis.yml.bash > .travis.yml

main() {
    header
    python linux
    python osx
    ruby linux
    ruby osx
    cljs linux
    cljs osx
    footer
}

header() {
cat                                                                       <<___
# GENERATED FILE - DO NOT EDIT
#
# Generate with \`bash .travis.yml.bash > .travis.yml\`.

matrix:
  include:
___
}

python() {
os=$1

all                                                            $os && cat <<___
    - os: $os
___
linux                                                          $os && cat <<___
      language: python<commit_msg>Note which CI sections run "general" test suite.<commit_after>#!/usr/bin/env bash
# Generate a Language x OS matrix for Travis CI.
#
# As of the end of 2018, Travis CI does not have any documentation on a matrix
# which is `language` x `os`, and putting `os` at the top-level of a matrix of
# language directives results in an error of "Could not parse .travis.yml".
#
# Accordingly, generate the matrix.
#
#     bash .travis.yml.bash > .travis.yml

main() {
    header
    python linux # general
    python osx # general
    ruby linux
    ruby osx
    cljs linux
    cljs osx
    footer
}

header() {
cat                                                                       <<___
# GENERATED FILE - DO NOT EDIT
#
# Generate with \`bash .travis.yml.bash > .travis.yml\`.

matrix:
  include:
___
}

python() {
os=$1

all                                                            $os && cat <<___
    - os: $os
___
linux                                                          $os && cat <<___
      language: python
{'fraction_non_alphanumeric': 0.08934881373043917, 'fraction_numerical': 0.005047955577990914, 'mean_word_length': 1.4930817610062892, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2682249', 'n_tokens_mistral': 587, 'n_tokens_neox': 537, 'n_words': 210}