<commit_before>machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
  environment:
    MODULE_NAME: awsranchhand
    AWS_ACCESS_KEY_ID: 1
    AWS_SECRET_ACCESS_KEY: 1
    DOCKER_IMAGE: pcrofts/$MODULE_NAME
    GOPATH: $HOME/.go_workspace
    PATH: $GOPATH/bin:$PATH
    SRC_PATH: $GOPATH/src/github.com/margic
    SRC_DIR: $ZENPATH/$MODULE_NAME
  services:
    - docker

checkout:
  post:
    - rm -rf $SRC_PATH
    - mkdir -p "$SRC_PATH"
    - cp -R ~/$MODULE_NAME "$SRC_DIR"
    - mkdir -p ~/download_cache

dependencies:
  pre:
    - git clone --single-branch --depth 1 <EMAIL>:zencoder/bolt-ops.git ~/ops
    - ~/ops/circle_steps/install_golang ~/download_cache
    - ~/ops/circle_steps/install_glide  ~/download_cache
    # Get the go junit report generator
    - go get -u github.com/jstemmer/go-junit-report
  cache_directories:
    - "~/download_cache"
    - "~/gocode/bin"
  override:
    - docker info
    - cd "$SRC_DIR"  && glide install

test:
  pre:
    - cd "$SRC_DIR" && make builddocker
  override:
    # run the tests and output a junit style report in the circle folder
    - mkdir -p $CIRCLE_TEST_REPORTS/junit
    - go test -v ./... | go-junit-report > $CIRCLE_TEST_REPORTS/junit/test-results.xml

deployment:
  hub:
    branch: master
    commands:
      # Build the builder image
      - make builddocker
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      # no need to push every time for testing build.
      - docker push pcrofts/awsranchhand
<commit_msg>Fix paths in circle yml<commit_after>machine:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
  environment:
    MODULE_NAME: awsranchhand
    AWS_ACCESS_KEY_ID: 1
    AWS_SECRET_ACCESS_KEY: 1
    DOCKER_IMAGE: pcrofts/$MODULE_NAME
    GOPATH: $HOME/.go_workspace
    PATH: $GOPATH/bin:$PATH
    SRC_PATH: $GOPATH/src/github.com/margic
    SRC_DIR: $SRC_PATH/$MODULE_NAME
  services:
    - docker

checkout:
  post:
    - rm -rf $SRC_PATH
    - mkdir -p "$SRC_PATH"
    - cp -R ~/$MODULE_NAME "$SRC_DIR"
    - mkdir -p ~/download_cache

dependencies:
  pre:
    - git clone --single-branch --depth 1 <EMAIL>:zencoder/bolt-ops.git ~/ops
    - ~/ops/circle_steps/install_golang ~/download_cache
    - ~/ops/circle_steps/install_glide  ~/download_cache
    # Get the go junit report generator
    - go get -u github.com/jstemmer/go-junit-report
  cache_directories:
    - "~/download_cache"
    - "~/gocode/bin"
  override:
    - docker info
    - cd "$SRC_DIR"  && glide install

test:
  pre:
    - cd "$SRC_DIR" && make builddocker
  override:
    # run the tests and output a junit style report in the circle folder
    - mkdir -p $CIRCLE_TEST_REPORTS/junit
    - go test -v ./... | go-junit-report > $CIRCLE_TEST_REPORTS/junit/test-results.xml

deployment:
  hub:
    branch: master
    commands:
      # Build the builder image
      - docker tag $MODULE_NAME $DOCKER_IMAGE:latest
      - docker tag $MODULE_NAME $DOCKER_IMAGE:$CIRCLE_SHA1
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker push pcrofts/awsranchhand

{'fraction_non_alphanumeric': 0.11410658307210031, 'fraction_numerical': 0.005329153605015674, 'mean_word_length': 2.6762672811059907, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '281392', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1169, 'n_words': 269}