<commit_before>sudo: required

services:
  - docker

before_install:
  #login to dockerhub
  - docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD

script:
  #build the image
  - docker build -t $DOCKER_IMAGE_NAME .
  #test image
  # - docker run ...

after_success:
  #tag the image w/ tagging scheme
  - docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TAGGING_SCHEME
  #push the image to dockerhub
  - docker push $DOCKER_IMAGE_NAME

env:
  #helper for branch determination
  - PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
  #branch determination
  - BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
  #github repo name
  - GITHUB_REPO_NAME=$(echo `curl -s curl -s https://api.github.com/repos/$TRAVIS_REPO_SLUG | jq -r .name`)
  #dockerhub repo name
  - DOCKER_HUB_REPO_NAME="biggis"
  #docker image name
  - DOCKER_IMAGE_NAME=$DOCKER_HUB_REPO_NAME/$GITHUB_REPO_NAME
  #docker tagging scheme
  - TAGGING_SCHEME=$TRAVIS_BUILD_NUMBER-$BRANCH.$TRAVIS_COMMIT
<commit_msg>Changes to .travis.yml<commit_after>sudo: required

services:
  - docker

before_install:
  #login to dockerhub
  #- docker login -e $DOCKER_HUB_EMAIL -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
  - echo 'docker login ...'


script:
  #build the image
  #- docker build -t $DOCKER_IMAGE_NAME .
  - echo 'docker build ...'
  #test image
  - echo 'docker run ...'

after_success:
  #tag the image w/ tagging scheme
  - docker tag $DOCKER_IMAGE_NAME:latest $DOCKER_IMAGE_NAME:$TAGGING_SCHEME
  #push the image to dockerhub
  - docker push $DOCKER_IMAGE_NAME

env:
  #helper for branch determination
  - PR=https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST
  #branch determination
  - BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo `curl -s $PR | jq -r .head.ref`; fi)
  #github repo name
  - GITHUB_REPO_NAME=$(echo `curl -s curl -s https://api.github.com/repos/$TRAVIS_REPO_SLUG | jq -r .name`)
  #dockerhub repo name
  - DOCKER_HUB_REPO_NAME="biggis"
  #docker image name
  - DOCKER_IMAGE_NAME=$DOCKER_HUB_REPO_NAME/$GITHUB_REPO_NAME
  #docker tagging scheme
  - TAGGING_SCHEME=$TRAVIS_BUILD_NUMBER-$BRANCH.$TRAVIS_COMMIT

{'fraction_non_alphanumeric': 0.11275576839355682, 'fraction_numerical': 0.0, 'mean_word_length': 4.1066666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5139119', 'n_tokens_mistral': 949, 'n_tokens_neox': 905, 'n_words': 197}