<commit_before>#!/bin/bash
# External tool for IntelliJ to upload the contents of a directory via
# the Composum source update servlet
# Arguments in "External Tool" entry: $FilePathRelativeToSourcepath$

set -e

if [ -z "$CPM_HOST" ]; then
   CPM_HOST=localhost
fi

if [ -z "$CPM_PORT" ]; then
   CPM_PORT=9090
fi

if [ -z "$CPM_ADMINUSER" ]; then
   CPM_ADMINUSER=admin
fi

if [ -z "$CPM_ADMINPASSWD" ]; then
   CPM_ADMINPASSWD=<PASSWORD>
fi
<commit_msg>source upload script with optional host:port parameter<commit_after>#!/bin/bash
# External tool for IntelliJ to upload the contents of a directory via
# the Composum source update servlet
# Arguments in "External Tool" entry: $FilePathRelativeToSourcepath$

set -e

if [ -n "$2" ]; then
  HOSTPORT=(${2//:/ })
  CPM_HOST=${HOSTPORT[0]}
  CPM_PORT=${HOSTPORT[1]}
fi

if [ -z "$CPM_HOST" ]; then
   CPM_HOST=localhost
fi

if [ -z "$CPM_PORT" ]; then
   CPM_PORT=9090
fi

if [ -z "$CPM_ADMINUSER" ]; then
   CPM_ADMINUSER=admin
fi

if [ -z "$CPM_ADMINPASSWD" ]; then
   CPM_ADMINPASSWD=<PASSWORD>
fi

{'fraction_non_alphanumeric': 0.12345679012345678, 'fraction_numerical': 0.011396011396011397, 'mean_word_length': 4.296482412060302, 'pattern_counts': {'":': 0, '<': 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': '645586', 'n_tokens_mistral': 415, 'n_tokens_neox': 402, 'n_words': 114}