<commit_before>#!/bin/bash
# TODO also these reforms: ${r}1 ${r}2 ${r}3 ${r}4 ${r}5 ${r}6 ${r}7 ${r}8 ${r}9 t1 t2

export JENKINS_DOMAIN="http://54.159.16.16:8080"
export r=reform
submit_jobs(){
    for reform in ${r}0 ;
       do
          export token_part="token=${REMOTE_BUILD_TOKEN}"
          export cause="cause=Cause+CI+Build"
          export branch="ogusabranch=${BRANCH_NAME}"
          export middle="/job/ci-mode-${reform}/build"
          export JENKINS_URL="${JENKINS_DOMAIN}${middle}?${token_part}&${branch}&${cause}"
          echo Attempt to curl $JENKINS_URL with OSPC_API_KEY secret
          if [ "$OSPC_API_KEY" = "" ];then
              echo OSPC_API_KEY is empty - wont work
    	  fi
	   curl --user ospctaxbrain:$OSPC_API_KEY "$JENKINS_URL" || return 1;
       done
}
submit_jobs || echo "Failed on $JENKINS_URL"
<commit_msg>url build to buildWithParameters<commit_after>#!/bin/bash
# TODO also these reforms: ${r}1 ${r}2 ${r}3 ${r}4 ${r}5 ${r}6 ${r}7 ${r}8 ${r}9 t1 t2

export JENKINS_DOMAIN="http://54.159.16.16:8080"
export r=reform
submit_jobs(){
    for reform in ${r}0 ;
       do
          export token_part="token=${REMOTE_BUILD_TOKEN}"
          export cause="cause=Cause+CI+Build"
          export branch="ogusabranch=${BRANCH_NAME}"
          export middle="/job/ci-mode-${reform}/buildWithParameters"
          export JENKINS_URL="${JENKINS_DOMAIN}${middle}?${token_part}&${branch}&${cause}"
          echo Attempt to curl $JENKINS_URL with OSPC_API_KEY secret
          if [ "$OSPC_API_KEY" = "" ];then
              echo OSPC_API_KEY is empty - wont work
    	  fi
	   curl --user ospctaxbrain:$OSPC_API_KEY "$JENKINS_URL" || return 1;
       done
}
submit_jobs || echo "Failed on $JENKINS_URL"

{'fraction_non_alphanumeric': 0.15331412103746397, 'fraction_numerical': 0.029971181556195964, 'mean_word_length': 3.2135922330097086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '914201', 'n_tokens_mistral': 686, 'n_tokens_neox': 633, 'n_words': 135}