<commit_before>#!/usr/bin/env bash

set -eu

if [[ "$TRAVIS_BRANCH" == "latest" ]]; then
  docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
  docker push experimentalplatform/ubuntu:$TRAVIS_BRANCH

  if [[ ${TRIGGER:-false} == "true" ]]; then
    for project in platform-app-manager platform-central-gateway platform-configure platform-dnsmasq platform-dokku platform-frontend platform-hardware platform-hostapd platform-hostname-avahi platform-hostname-smb platform-monitoring platform-ptw platform-pulseaudio platform-skvs platform-smb platform-systemd-proxy; do
      URL="https://api.travis-ci.org/repo/experimental-platform%2F${project}/requests"
      BODY="{ \"request\": {
        \"message\": \"Triggered by '$TRAVIS_REPO_SLUG'\",
        \"config\": {
          \"env\": {
            \"TRIGGER\": \"true\"
      }}}}"
      echo "URL: $URL"
      echo "BODY: $BODY"
      STATUSCODE=$(curl -s -i -X POST --output /dev/stderr --write-out "%{http_code}" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -H "Travis-API-Version: 3" \
        -H "Authorization: token $TRAVIS_TOKEN" \
        -d "$BODY" \
        $URL)

      if test $STATUSCODE -ne 202; then
        exit 1
      fi

      echo "Triggered experimental-platform/$project"
      sleep 5
    done
  fi
fi
<commit_msg>Don't deploy pull request builds.<commit_after>#!/usr/bin/env bash

set -eu

# only branch latest and no pull requuest builds are deployed
if [[ "${TRAVIS_BRANCH}" == "latest" ]] && [[ "${TRAVIS_PULL_REQUEST}" == "false" ]] ; then
  docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
  docker push experimentalplatform/ubuntu:$TRAVIS_BRANCH

  if [[ ${TRIGGER:-false} == "true" ]]; then
    for project in platform-app-manager platform-central-gateway platform-configure platform-dnsmasq platform-dokku platform-frontend platform-hardware platform-hostapd platform-hostname-avahi platform-hostname-smb platform-monitoring platform-ptw platform-pulseaudio platform-skvs platform-smb platform-systemd-proxy; do
      URL="https://api.travis-ci.org/repo/experimental-platform%2F${project}/requests"
      BODY="{ \"request\": {
        \"message\": \"Triggered by '$TRAVIS_REPO_SLUG'\",
        \"config\": {
          \"env\": {
            \"TRIGGER\": \"true\"
      }}}}"
      echo "URL: $URL"
      echo "BODY: $BODY"
      STATUSCODE=$(curl -s -i -X POST --output /dev/stderr --write-out "%{http_code}" \
        -H "Content-Type: application/json" \
        -H "Accept: application/json" \
        -H "Travis-API-Version: 3" \
        -H "Authorization: token $TRAVIS_TOKEN" \
        -d "$BODY" \
        $URL)

      if test $STATUSCODE -ne 202; then
        exit 1
      fi

      echo "Triggered experimental-platform/$project"
      sleep 5
    done
  fi
fi

{'fraction_non_alphanumeric': 0.1478076379066478, 'fraction_numerical': 0.0049504950495049506, 'mean_word_length': 2.6550387596899223, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, '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': '1948051', 'n_tokens_mistral': 969, 'n_tokens_neox': 925, 'n_words': 220}