<commit_before>#!/bin/bash
rm -rf archive-ide
mkdir archive-ide
cd archive-ide
git clone http://www.minizinc.org/repos/MiniZincIDE
cd MiniZincIDE
if [ "$1" == "rotd" ]; then git checkout develop; fi
TAG=`git describe --always`
DATE=`date "+%Y-%m-%d"`
if [ "$1" == "rotd" ]
then VERSION=${DATE}-${TAG}
else VERSION=${TAG}
fi
git archive --prefix=MiniZincIDE-${VERSION}/ --output=MiniZincIDE-${VERSION}.tgz HEAD:MiniZincIDE/
mv MiniZincIDE-${VERSION}.tgz ../../
cd ../..
rm -rf archive-ide<commit_msg>Add option to archive release branch<commit_after>#!/bin/bash
rm -rf archive-ide
mkdir archive-ide
cd archive-ide
git clone http://www.minizinc.org/repos/MiniZincIDE
cd MiniZincIDE
if [ "$1" == "rotd" ]; then git checkout develop; fi
if [ "$1" == "release" ]; then git checkout release/$2; fi
TAG=`git describe --always`
DATE=`date "+%Y-%m-%d"`
if [ "$1" == "rotd" ]
then VERSION=${DATE}-${TAG}
elif [ "$1" == "release" ]
then VERSION=$2
else VERSION=${TAG}
fi
git archive --prefix=MiniZincIDE-${VERSION}/ --output=MiniZincIDE-${VERSION}.tgz HEAD:MiniZincIDE/
mv MiniZincIDE-${VERSION}.tgz ../../
cd ../..
rm -rf archive-ide
{'fraction_non_alphanumeric': 0.20302760463045413, 'fraction_numerical': 0.007123775601068566, 'mean_word_length': 4.30188679245283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6234754', 'n_tokens_mistral': 435, 'n_tokens_neox': 414, 'n_words': 107}