<commit_before>#!/bin/bash

set +e

version=$(git describe --abbrev=0 --tags)

which github-release || echo 'please install the tool github-releases'

github-release info \
    --user remijouannet \
    --repo terraform-provider-osc \
    --tag $version || echo "the release doesn't exist"

if [ $? != 0 ]
then
    github-release release \
        --user remijouannet \
        --repo terraform-provider-osc \
        --tag $version \
        --draft \
        --pre-release \
        --name "$version-hyper-alpha-yolo-experimental" \
        --description "risks of explosion" \
        --target $version || echo "failed to create release for $version"
fi

cd pkg/

rm -f *.zip
 
ls | while read binary
do
    echo "zipping $binary"
    zip -r $binary.zip $binary
    echo "upload $binary"
    github-release upload \
        --user remijouannet \
        --name "$binary.zip" \
        --repo terraform-provider-osc \
        --file "$binary.zip" \
        --replace \
        --tag $version || echo "failed to upload $binary"
done
<commit_msg>fix github-release.sh<commit_after>#!/bin/bash

set +e

version=$(git describe --abbrev=0 --tags)

which github-release || echo 'please install the tool github-releases'

github-release info \
    --user remijouannet \
    --repo terraform-provider-osc \
    --tag $version

if [ $? != 0 ]
then
    echo "the release doesn't exist"
    github-release release \
        --user remijouannet \
        --repo terraform-provider-osc \
        --tag $version \
        --pre-release \
        --name "$version-hyper-alpha-yolo-experimental" \
        --description "risks of explosion" || echo "failed to create release for $version"
fi

cd pkg/

rm -f *.zip
 
ls | while read binary
do
    echo "zipping $binary"
    zip -r $binary.zip $binary
    echo "upload $binary"
    github-release upload \
        --user remijouannet \
        --name "$binary.zip" \
        --repo terraform-provider-osc \
        --file "$binary.zip" \
        --replace \
        --tag $version || echo "failed to upload $binary"
done

{'fraction_non_alphanumeric': 0.13381995133819952, 'fraction_numerical': 0.0019464720194647203, 'mean_word_length': 1.9797101449275363, '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': '4409818', 'n_tokens_mistral': 662, 'n_tokens_neox': 634, 'n_words': 190}