<commit_before>#!/bin/bash -eu

function main() {
   echo "get cf cli"
   wget -O cf-cli.deb "https://cli.run.pivotal.io/stable?release=debian64&source=github"
   dpkg -i cf-cli.deb
   cf --version

   echo "Upgrading buildpacks"
   cf api $PCF_API_URI --skip-ssl-validation
   cf login -u $PCF_USERNAME -p $PCF_PASSWORD -o $PCF_ORG -s $PCF_SPACE
   COUNT=`cf buildpacks | grep --regexp=".zip" --count`
   cf create-buildpack $BUILDPACK_PREFIX-buildpack ./$BUILDPACK_PREFIX-buildpack-latest/*.zip $COUNT+1 --enable
}

echo "Running import OpsMgr task..."
main "${PWD}"
<commit_msg>[#137911827] - Fixed the position for uploading the buildpack - fixed the script<commit_after>#!/bin/bash -eu

function main() {
   echo "get cf cli"
   wget -O cf-cli.deb "https://cli.run.pivotal.io/stable?release=debian64&source=github"
   dpkg -i cf-cli.deb
   cf --version

   echo "Upgrading buildpacks"
   cf api $PCF_API_URI --skip-ssl-validation
   cf login -u $PCF_USERNAME -p $PCF_PASSWORD -o $PCF_ORG -s $PCF_SPACE
   COUNT=`cf buildpacks | grep --regexp=".zip" --count`
   NEW_POSITION=`expr $COUNT + 1`
   cf create-buildpack $BUILDPACK_PREFIX-buildpack ./$BUILDPACK_PREFIX-buildpack-latest/*.zip $NEW_POSITION --enable
}

echo "Running import OpsMgr task..."
main "${PWD}"

{'fraction_non_alphanumeric': 0.1443217665615142, 'fraction_numerical': 0.011829652996845425, 'mean_word_length': 3.564748201438849, 'pattern_counts': {'":': 0, '<': 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': '3797156', 'n_tokens_mistral': 509, 'n_tokens_neox': 480, 'n_words': 117}