<commit_before>#!/bin/bash

#push image to docker hub
if [ -n "$DOCKER_EMAIL" ]; then
  docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  TAG=
  if [ -n "$TRAVIS_COMMIT" ]; then
    echo "Using travis commit ID as tag..."
    TAG=$TRAVIS_COMMIT
  fi
  if [ -z "$TAG" ]; then
    echo "Unable to determine tag to push to."
  fi
  echo "Pushing to yasp/yasp:${TAG}"
  docker tag yasp/yasp:latest yasp/yasp:${TAG}
  docker push yasp/yasp:${TAG}
  docker push yasp/yasp:latest
fi

if [ -n "$DEPLOY_WEBHOOK_URL" ]; then
  echo "Hitting deploy webhook URL..."
  curl $DEPLOY_WEBHOOK_URL/$DEPLOY_WEBHOOK_SECRET/$TRAVIS_BUILD_ID > /dev/null
fi

if [ -n "$KUBECONFIGDATA" ]; then
  #generation
  #cat ~/.kube/config | base64 -w 0
  #decode
  mkdir ~/.kube
  base64 --decode  <<< $KUBECONFIGDATA > ~/.kube/config
  #download kubectl
  wget https://github.com/yasp-dota/testfiles/raw/master/kubectl
  chmod +x kubectl
  export PATH="$PATH:$TRAVIS_BUILD_DIR"
  kubectl get rc -o name --selector tier=backend | cut -d '/' -f2 | xargs -n1 kubectl rolling-update --image=yasp/yasp:`git rev-parse HEAD`
fi<commit_msg>disable autodeploy until services are stable<commit_after>#!/bin/bash

#push image to docker hub
if [ -n "$DOCKER_EMAIL" ]; then
  docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
  TAG=
  if [ -n "$TRAVIS_COMMIT" ]; then
    echo "Using travis commit ID as tag..."
    TAG=$TRAVIS_COMMIT
  fi
  if [ -z "$TAG" ]; then
    echo "Unable to determine tag to push to."
  fi
  echo "Pushing to yasp/yasp:${TAG}"
  docker tag yasp/yasp:latest yasp/yasp:${TAG}
  docker push yasp/yasp:${TAG}
  docker push yasp/yasp:latest
fi

if [ -n "$DEPLOY_WEBHOOK_URL" ]; then
  echo "Hitting deploy webhook URL..."
  curl $DEPLOY_WEBHOOK_URL/$DEPLOY_WEBHOOK_SECRET/$TRAVIS_BUILD_ID > /dev/null
fi

if [ -n "$KUBECONFIGDATA" ]; then
  #generation
  #cat ~/.kube/config | base64 -w 0
  #decode
  mkdir ~/.kube
  base64 --decode  <<< $KUBECONFIGDATA > ~/.kube/config
  #download kubectl
  wget https://github.com/yasp-dota/testfiles/raw/master/kubectl
  chmod +x kubectl
  export PATH="$PATH:$TRAVIS_BUILD_DIR"
  #kubectl get rc -o name --selector tier=backend | cut -d '/' -f2 | xargs -n1 kubectl rolling-update --image=yasp/yasp:`git rev-parse HEAD`
fi
{'fraction_non_alphanumeric': 0.14454148471615721, 'fraction_numerical': 0.00611353711790393, 'mean_word_length': 3.5637450199203187, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2327469', 'n_tokens_mistral': 967, 'n_tokens_neox': 924, 'n_words': 232}