<commit_before>language: java

jdk:
  - oraclejdk8

# build only commits to branch master or where pattern matches "n.n" (where n is a number), e.g. 5.2
branches:
  only:
    - master
    - /^\d+(\.\d+)+$/

#os:
#  - linux
#  - osx

# copy the settings.xml for maven from the "travis" branch
before_install:
# - "git clone -b travis `git config --get remote.origin.url` target/travis"

services:
  - mysql # server:"127.0.0.1"; user:"root"; password:""
  - postgresql "9.6" # server:"127.0.0.1"; user:"postgres"; password:""
  - mongodb #  server:"127.0.0.1" user/pass see below
  - memcached # Memcached uses the default configuration and binds to localhost.

before_script:
  - mysql -e "create database IF NOT EXISTS testdb;" -uroot
  - psql -c 'create database testdb;' -U postgres
  - sleep 15 # necessary for the mongodb because it does not accept connections immediately
  - mongo testdb --eval 'db.createUser({user:"travis", pwd:"<PASSWORD>", roles:["readWrite"]});'
  - mongo testdb --eval "printjson(db.version())"
  - mongo testdb --eval "db.auth({user:"travis", pwd:"<PASSWORD>"})"
  # - mongo test --eval 'db.addUser("travis", "test");'
  # for more see https://docs.travis-ci.com/user/database-setup

<commit_msg>troubleshooting mongodb test 06<commit_after>language: java

jdk:
  - oraclejdk8

# build only commits to branch master or where pattern matches "n.n" (where n is a number), e.g. 5.2
branches:
  only:
    - master
    - /^\d+(\.\d+)+$/

#os:
#  - linux
#  - osx

# copy the settings.xml for maven from the "travis" branch
before_install:
# - "git clone -b travis `git config --get remote.origin.url` target/travis"

services:
  - mysql # server:"127.0.0.1"; user:"root"; password:""
  - postgresql "9.6" # server:"127.0.0.1"; user:"postgres"; password:""
  - mongodb #  server:"127.0.0.1" user/pass see below
  - memcached # Memcached uses the default configuration and binds to localhost.

before_script:
  - mysql -e "create database IF NOT EXISTS testdb;" -uroot
  - psql -c 'create database testdb;' -U postgres
  - sleep 15 # necessary for the mongodb because it does not accept connections immediately
  - mongo testdb --eval 'db.createUser({user:"travis", pwd:"<PASSWORD>", roles:["readWrite"]});'
  - mongo testdb --eval "printjson(db.version())"
  - mongo testdb --eval 'db.auth({user:"travis", pwd:"<PASSWORD>"})'
  # - mongo test --eval 'db.addUser("travis", "test");'
  # for more see https://docs.travis-ci.com/user/database-setup


{'fraction_non_alphanumeric': 0.1610032362459547, 'fraction_numerical': 0.021035598705501618, 'mean_word_length': 3.5127737226277373, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 6, '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': '3038645', 'n_tokens_mistral': 905, 'n_tokens_neox': 875, 'n_words': 257}