<commit_before>#!/bin/bash
echo "this is the dockerstache pre render script"
echo "it runs in the following environment before rendering tempates"
printenv | grep DOCKERSTACHE

DIST_FILE=`ls -1t ../dist/{{package}}-*.tar.gz | head -1`
echo "DIST_FILE=${{open_brace}}DIST_FILE{{close_brace}}"
if [ ! -f "${{open_brace}}DIST_FILE{{close_brace}}" ]; then
    echo "No dist file ${{{open_brace}}DIST_FILE{{close_brace}} found"
    if [ ! -f "${{{open_brace}}DOCKERSTACHE_OUTPUT_PATH{{close_brace}}" ]; then
        mkdir -p "${{DOCKERSTACHE_OUTPUT_PATH{{close_brace}}"
    fi
    echo "no dist" >> "${{open_brace}}DOCKERSTACHE_OUTPUT_PATH{{close_brace}}/{{package}}-latest.tar.gz"
else
    echo "copied to ${{open_brace}}DOCKERSTACHE_OUTPUT_PATH{{close_brace}}"
    cp ${{open_brace}}DIST_FILE{{close_brace}} ${{open_brace}}DOCKERSTACHE_OUTPUT_PATH{{close_brace}}/{{package}}-latest.tar.gz
fi<commit_msg>fixup from tests<commit_after>#!/bin/bash
echo "this is the dockerstache pre render script"
echo "it runs in the following environment before rendering tempates"
printenv | grep DOCKERSTACHE

DIST_FILE=`ls -1t ../dist/{{package}}-*.tar.gz | head -1`
echo "DIST_FILE=${DIST_FILE}"
if [ ! -f "${DIST_FILE}" ]; then
    echo "No dist file ${DIST_FILE} found"
    if [ ! -f "${DOCKERSTACHE_OUTPUT_PATH}" ]; then
        mkdir -p "${DOCKERSTACHE_OUTPUT_PATH}"
    fi
    echo "no dist" >> "${DOCKERSTACHE_OUTPUT_PATH}/{{package}}-latest.tar.gz"
else
    echo "copied to ${DOCKERSTACHE_OUTPUT_PATH}"
    cp ${DIST_FILE} ${DOCKERSTACHE_OUTPUT_PATH}/{{package}}-latest.tar.gz
fi
{'fraction_non_alphanumeric': 0.16560509554140126, 'fraction_numerical': 0.0025477707006369425, 'mean_word_length': 5.309236947791165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5281143', 'n_tokens_mistral': 578, 'n_tokens_neox': 553, 'n_words': 121}