<commit_before>#!/usr/bin/env bash
if [ $# -lt 1 ]
  then
    echo "You should provide at least 1 args: branch"
     exit 1
fi

if [ "$1" == "master" ]
    then
        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 <KEY>" \<commit_msg>Extract body outside if logic<commit_after>#!/usr/bin/env bash
if [ $# -lt 1 ]
  then
    echo "You should provide at least 1 args: branch"
     exit 1
fi

body='{
"request": {
"branch":"master"
}}'

if [ "$1" == "master" ]
    then

        curl -s -X POST \
           -H "Content-Type: application/json" \
           -H "Accept: application/json" \
           -H "Travis-API-Version: 3" \
           -H "Authorization: token 6<PASSWORD>" \
{'fraction_non_alphanumeric': 0.15488215488215487, 'fraction_numerical': 0.012345679012345678, 'mean_word_length': 1.7530864197530864, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '199095', 'n_tokens_mistral': 314, 'n_tokens_neox': 298, 'n_words': 88}