<commit_before>machine:
  environment:
    DB_DSN: "lekcije:lekcije@tcp(127.0.0.1:3306)/lekcije_test"
#    GOPATH: "${HOME}/go"
#    PATH: "${PATH}:${HOME}/go/bin"
  services:
    - mysql
dependencies:
  pre:
    - echo "" > ~/.gitconfig
    - git config --global url."https://github.com".insteadOf git://github.com
    - make setup
    - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS lekcije_test DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;"
    - mysql -uroot -e "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON \`lekcije\\_test%\`.* TO 'lekcije'@'%' IDENTIFIED BY 'lekcije'"
test:
  override:
    - make go_test<commit_msg>Fix Circle CI build error<commit_after>machine:
  environment:
    GOPATH: "${HOME}/.go_workspace"
    PATH: "${PATH}:${GOPATH}/bin"
    GOPATH_PROJECT: "${GOPATH}/src/github.com/oinume/lekcije"
    DB_DSN: "lekcije:lekcije@tcp(127.0.0.1:3306)/lekcije_test"
  services:
    - mysql
dependencies:
  pre:
    - echo "" > ~/.gitconfig
    - git config --global url."https://github.com".insteadOf git://github.com
    - mysql -uroot -e "CREATE DATABASE IF NOT EXISTS lekcije_test DEFAULT CHARACTER SET utf8mb4 DEFAULT COLLATE utf8mb4_unicode_ci;"
    - mysql -uroot -e "GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, LOCK TABLES ON \`lekcije\\_test%\`.* TO 'lekcije'@'%' IDENTIFIED BY 'lekcije'"
    - mkdir -p ${GOPATH_PROJECT}
    - rsync -a ~/lekcije/ ${GOPATH_PROJECT}/
    - cd ${GOPATH_PROJECT}
    - go get github.com/Masterminds/glide
    - go get golang.org/x/tools/cmd/goimports
    - go get bitbucket.org/liamstask/goose/cmd/goose
    - glide install
test:
  override:
    - cd ${GOPATH_PROJECT} && make go_test
{'fraction_non_alphanumeric': 0.1489237929028505, 'fraction_numerical': 0.016288539848749273, 'mean_word_length': 3.332493702770781, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6829610', 'n_tokens_mistral': 717, 'n_tokens_neox': 660, 'n_words': 149}