<commit_before>language: go
go:
  - 1.15.x
cache:
  directories:
    - "$HOME/.local"
services:
  - docker
before_install:
  - sudo apt-get update
  - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
  - docker --version
  - pip install --user --upgrade awscli
  - export PATH=$PATH:$HOME/.local/bin
install:
  - go get
before_script:
  - go test -race -tags test -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
  - bash <(curl -s https://codecov.io/bash)
before_deploy:
  - echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
  - docker build -t Ptt-Alertor/ptt-alertor .
  - eval $(aws ecr get-login --region us-west-2 --no-include-email)
  - docker tag Ptt-Alertor/ptt-alertor:latest $AWS_Docker_Repo:latest
  - docker push $AWS_Docker_Repo:latest
deploy:
  - provider: script
    script:
      - bash ./ecs-deploy -r us-west-2 -c Production-Cluster -n Ptt-Alertor -i $AWS_Docker_Repo -m 0 -M 100 -t 600 -D 1
    on:
      branch: master
notifications:
  slack: Ptt-Alertor:9oYnHKf0nlRn8QafX4PRZ1lC
env:
  global:
    - GO111MODULE=on
    - AWS_ACCESS_KEY_ID=AKIAVDUITF6YSMX5ZSVN<commit_msg>:green_heart: fix docker build must lower case<commit_after>language: go
go:
  - 1.15.x
cache:
  directories:
    - "$HOME/.local"
services:
  - docker
before_install:
  - sudo apt-get update
  - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
  - docker --version
  - pip install --user --upgrade awscli
  - export PATH=$PATH:$HOME/.local/bin
install:
  - go get
before_script:
  - go test -race -tags test -coverprofile=coverage.txt -covermode=atomic ./...
after_success:
  - bash <(curl -s https://codecov.io/bash)
before_deploy:
  - echo $DOCKERHUB_PASSWORD | docker login -u $DOCKERHUB_USERNAME --password-stdin
  - docker build -t ptt-alertor/ptt-alertor .
  - eval $(aws ecr get-login --region us-west-2 --no-include-email)
  - docker tag ptt-alertor/ptt-alertor:latest $AWS_Docker_Repo:latest
  - docker push $AWS_Docker_Repo:latest
deploy:
  - provider: script
    script:
      - bash ./ecs-deploy -r us-west-2 -c Production-Cluster -n Ptt-Alertor -i $AWS_Docker_Repo -m 0 -M 100 -t 600 -D 1
    on:
      branch: master
notifications:
  slack: Ptt-Alertor:9oYnHKf0nlRn8QafX4PRZ1lC
env:
  global:
    - GO111MODULE=on
    - AWS_ACCESS_KEY_ID=<KEY>
{'fraction_non_alphanumeric': 0.12980358667805295, 'fraction_numerical': 0.018787361229718188, 'mean_word_length': 3.018867924528302, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '3564389', 'n_tokens_mistral': 960, 'n_tokens_neox': 898, 'n_words': 211}