<commit_before>#!/bin/bash

repo=$1

if [ -z $repo ]; then
  echo "Please specify a javaslang repo name."
  echo "Example: trigger-build.sh javaslang-gwt"
else
  body='{
  "request": {
    "branch":"master"
  }}'

  curl -s -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Travis-API-Version: 3" \
    -H "Authorization: token $TRAVIS_ACCESS_TOKEN" \
    -d "$body" \
    https://api.travis-ci.org/repo/javaslang%2F$repo/requests
fi<commit_msg>improved the build trigger script<commit_after>#!/bin/bash

org="javaslang"
repo=$1
branch=$2

if [ -z $repo ]; then

  echo "Usage: trigger-build.sh <github-repo> [<branch>]"

else

  if [ -z $branch ]; then
    branch="master"
  fi

  echo "Triggering travis-ci build of $org/$repo [$branch]..."

  body=`cat <<EOF
{ "request": {
    "branch": "$branch"
}}
EOF
`

  curl -s -X POST \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -H "Travis-API-Version: 3" \
    -H "Authorization: token $TRAVIS_ACCESS_TOKEN" \
    -d "$body" \
    https://api.travis-ci.org/repo/$org%2F$repo/requests

fi
{'fraction_non_alphanumeric': 0.1771019677996422, 'fraction_numerical': 0.006261180679785331, 'mean_word_length': 2.8586206896551722, 'pattern_counts': {'":': 4, '<': 7, '<?xml version=': 0, '>': 5, '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': '3480357', 'n_tokens_mistral': 443, 'n_tokens_neox': 428, 'n_words': 99}