<commit_before>machine:
  environment:
    GODIST: "go1.8.linux-amd64.tar.gz"
    PATH: "/usr/local/go/bin:/usr/local/go_workspace/bin:~/.go_workspace/bin:${PATH}"
    GOPATH: "${HOME}/.go_workspace:/usr/local/go_workspace:${HOME}/.go_project"
    PROJECT: "${HOME}/.go_project/src/github.com/jamesnetherton/homehub-cli"
  post:
    - mkdir -p download
    - mkdir -p ${HOME}/.go_project/src/github.com/jamesnetherton/
    - cd ${HOME}/.go_project/src/github.com/jamesnetherton/ && ln -s ${HOME}/homehub-cli homehub-cli
    - test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
    - sudo rm -rf /usr/local/go
    - sudo tar -C /usr/local -xzf download/$GODIST

dependencies:
  cache_directories:
    - ~/download
  override:
    - cd ${PROJECT} && make build

test:
  override:
    - cd ${PROJECT} && make test

deployment:
  release:
    branch: release
    commands:
      - cd ${PROJECT} && make release<commit_msg>Remove explicit build before test<commit_after>machine:
  environment:
    GODIST: "go1.8.linux-amd64.tar.gz"
    PATH: "/usr/local/go/bin:/usr/local/go_workspace/bin:~/.go_workspace/bin:${PATH}"
    GOPATH: "${HOME}/.go_workspace:/usr/local/go_workspace:${HOME}/.go_project"
    PROJECT: "${HOME}/.go_project/src/github.com/jamesnetherton/homehub-cli"
  post:
    - mkdir -p download
    - mkdir -p ${HOME}/.go_project/src/github.com/jamesnetherton/
    - cd ${HOME}/.go_project/src/github.com/jamesnetherton/ && ln -s ${HOME}/homehub-cli homehub-cli
    - test -e download/$GODIST || curl -o download/$GODIST https://storage.googleapis.com/golang/$GODIST
    - sudo rm -rf /usr/local/go
    - sudo tar -C /usr/local -xzf download/$GODIST

dependencies:
  cache_directories:
    - ~/download

test:
  override:
    - cd ${PROJECT} && make test

deployment:
  release:
    branch: release
    commands:
      - cd ${PROJECT} && make release
{'fraction_non_alphanumeric': 0.16421825813221405, 'fraction_numerical': 0.004197271773347324, 'mean_word_length': 3.066098081023454, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2033169', 'n_tokens_mistral': 726, 'n_tokens_neox': 701, 'n_words': 124}