<commit_before>sudo: required
dist: trusty
braches:
  only:
    -master
    -develop-CI
servises:
  - docker
before_install:
  # set up awscli packages
  - pip install --user awscli
  - mkdir ~/.aws/
  - echo -e "[default]\naws_access_key_id=$AWS_ACCESS_KEY_ID\naws_secret_access_key=$AWS_SECRET_ACCESS_KEY\nregion=$AWS_REGION">~/.aws/config
  - login=$(aws ecr get-login --no-include-email --region us-west-2)
  - $login
  - task_arns_str=$(aws ecs list-tasks --cluster $CLUSTER_NAME | grep -oE arn\:aws\:ecs\:[^\"]*)
  - task_arns=($task_arns_str)
  - for arn in ${task_arns[@]}; do
  - aws ecs stop-task --cluster $CLUSTER_NAME --task $arn
  - done
script:
  - docker build --build-arg DB_URL=$DATABASE_URL --build-arg DB_USERNAME=$DATABASE_USERNAME --build-arg DB_PASSWORD=$DATABASE_PASSWORD -t d2g_api_repository .
after_success:
  - docker tag d2g_api_repository:latest 919834907758.dkr.ecr.us-west-2.amazonaws.com/d2g_api_repository:latest
  - docker push 919834907758.dkr.ecr.us-west-2.amazonaws.com/d2g_api_repository:latest
  - task_arns_str=$(aws ecs list-tasks --cluster $CLUSTER_NAME | grep -oE arn\:aws\:ecs\:[^\"]*)
  - task_arns=($task_arns_str)
  - for arn in ${task_arns[@]}; do
  - aws ecs stop-task --cluster $CLUSTER_NAME --task $arn
  - done<commit_msg>make deploy brilliant v3. test<commit_after>sudo: required
dist: trusty
braches:
  only:
    -master
    -develop-CI
servises:
  - docker
before_install:
  # set up awscli packages
  - pip install --user awscli
  - mkdir ~/.aws/
  - echo -e "[default]\naws_access_key_id=$AWS_ACCESS_KEY_ID\naws_secret_access_key=$AWS_SECRET_ACCESS_KEY\nregion=$AWS_REGION">~/.aws/config
  - login=$(aws ecr get-login --no-include-email --region us-west-2)
  - $login
  - task_arns_str=$(aws ecs list-tasks --cluster $CLUSTER_NAME | grep -oE arn\:aws\:ecs\:[^\"]*)
  - task_arns=($task_arns_str)
  - for arn in ${task_arns[@]}; do aws ecs stop-task --cluster $CLUSTER_NAME --task $arn; done
script:
  - docker build --build-arg DB_URL=$DATABASE_URL --build-arg DB_USERNAME=$DATABASE_USERNAME --build-arg DB_PASSWORD=$DATABASE_PASSWORD -t d2g_api_repository .
after_success:
  - docker tag d2g_api_repository:latest 919834907758.dkr.ecr.us-west-2.amazonaws.com/d2g_api_repository:latest
  - docker push 919834907758.dkr.ecr.us-west-2.amazonaws.com/d2g_api_repository:latest
  - task_arns_str=$(aws ecs list-tasks --cluster $CLUSTER_NAME | grep -oE arn\:aws\:ecs\:[^\"]*)
  - task_arns=($task_arns_str)
  - for arn in ${task_arns[@]}; do
  - aws ecs stop-task --cluster $CLUSTER_NAME --task $arn
  - done
{'fraction_non_alphanumeric': 0.14765625, 'fraction_numerical': 0.024609375, 'mean_word_length': 3.9061302681992336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2516155', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1035, 'n_words': 191}