<commit_before>#this should be turned into a plugin, or we should try to use 
#already existing nar plugin

cd $1
source properties

DEPLOY_URL=scpexe://source.concord.org/web/source.concord.org/html/software/maven2/internal/
DEPLOY_ID=cc-dist-repo-internal
CLASSIFIER=${PLATFORM}
NAR_FILE=${ARTIFACT_ID}-${PLATFORM}.nar

# need to have all the native files at the top direcotry
mkdir -p ../target/native-lib
cp ${NATIVE_FILES} ../target/native-lib/
cd ../target/native-lib
pwd
jar cf ../${NAR_FILE} *
cd -

mvn deploy:deploy-file -Dfile=../target/${NAR_FILE} \
    -DartifactId=${ARTIFACT_ID} -DgroupId=${GROUP_ID} \
    -Dclassifier=${CLASSIFIER} \
    -Dversion=${VERSION} -Dpackaging=nar \
    -Durl=${DEPLOY_URL} -DrepositoryId=${DEPLOY_ID}

cd -
<commit_msg>cleaned out target folder before repopulating with native libraries.  this way only the native lib for each platform will show up in the jar.<commit_after>#this should be turned into a plugin, or we should try to use 
#already existing nar plugin

cd $1
source properties

DEPLOY_URL=scpexe://source.concord.org/web/source.concord.org/html/software/maven2/internal/
DEPLOY_ID=cc-dist-repo-internal
CLASSIFIER=${PLATFORM}
NAR_FILE=${ARTIFACT_ID}-${PLATFORM}.nar

# need to have all the native files at the top direcotry
mkdir -p ../target/native-lib
rm ../target/native-lib/*
cp ${NATIVE_FILES} ../target/native-lib/
cd ../target/native-lib
pwd
jar cf ../${NAR_FILE} *
cd -

mvn deploy:deploy-file -Dfile=../target/${NAR_FILE} \
    -DartifactId=${ARTIFACT_ID} -DgroupId=${GROUP_ID} \
    -Dclassifier=${CLASSIFIER} \
    -Dversion=${VERSION} -Dpackaging=nar \
    -Durl=${DEPLOY_URL} -DrepositoryId=${DEPLOY_ID}

cd -

{'fraction_non_alphanumeric': 0.14328180737217597, 'fraction_numerical': 0.0023781212841854932, 'mean_word_length': 4.1155015197568385, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '881474', 'n_tokens_mistral': 641, 'n_tokens_neox': 599, 'n_words': 145}