<commit_before>#!/bin/bash

setup_ssh() {
    eval "$(ssh-agent -s)"
    chmod 600 .travis/deploy.key
    ssh-add .travis/deploy.key
    ssh-keyscan ${REMOTE_HOST} >> $HOME/.ssh/known_hosts
}
setup_git() {
  git config user.email "<EMAIL>"
  git config user.name "Travis CI"
  git remote add public ${REMOTE_HOST_GIT_URL}
  git remote -v
  yes | cp -rf .travis/public-gitignore .gitignore
  yes | cp -rf .travis/public-package.json package.json
}

commit_files() {
  git add .
  git commit --message "Version: $PACKAGE_VERSION Commit: $TRAVIS_COMMIT"
}

upload_files() {
  git push --quiet --set-upstream public master
}

if [[ $TRAVIS_BRANCH == 'master' ]]
then
  PACKAGE_VERSION=$(cat package.json \
    | grep version \
    | head -1 \
    | awk -F: '{ print $2 }' \
    | sed 's/[",]//g')
  export PACKAGE_VERSION=$PACKAGE_VERSION

  setup_ssh<commit_msg>chore(ci): Add deploy to VPS #15<commit_after>#!/bin/bash

setup_ssh() {
    eval "$(ssh-agent -s)"
    chmod 600 .travis/deploy.key
    ssh-add .travis/deploy.key
    ssh-keyscan ${REMOTE_HOST} >> $HOME/.ssh/known_hosts
    ssh-keyscan ${REMOTE_HOST_IP} >> $HOME/.ssh/known_hosts
}
setup_git() {
  git config user.email "<EMAIL>"
  git config user.name "<NAME>"
  git remote add public ${REMOTE_HOST_GIT_URL}
  git remote -v
  yes | cp -rf .travis/public-gitignore .gitignore
  yes | cp -rf .travis/public-package.json package.json
}

commit_files() {
  git add .
  git commit --message "Version: $PACKAGE_VERSION Commit: $TRAVIS_COMMIT"
}

upload_files() {
  git push --quiet --set-upstream public master
}

if [[ $TRAVIS_BRANCH == 'master' ]]
then
  PACKAGE_VERSION=$(cat package.json \
    | grep version \
    | head -1 \
    | awk -F: '{ print $2 }' \
    | sed 's/[",]//g')
  export PACKAGE_VERSION=$PACKAGE_VERSION

  setup_ssh
{'fraction_non_alphanumeric': 0.1505016722408027, 'fraction_numerical': 0.006688963210702341, 'mean_word_length': 3.1264367816091956, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, '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': '2608664', 'n_tokens_mistral': 722, 'n_tokens_neox': 675, 'n_words': 160}