<commit_before>#!/bin/bash

set -ex -o xtrace

BUILDPATH=${PWD}
BRANCH="`git log --max-count=1 --date=short --abbrev=8 --pretty=format:"%cd_%h"`"

git clone https://${GH_TOKEN}@github.com/OpenSC/Nightly.git > /dev/null 2>&1
cd Nightly
git checkout -b "${BRANCH}"

for file in ${BUILDPATH}/win32/Output/OpenSC*.exe ${BUILDPATH}/opensc*.tar.gz ${BUILDPATH}/OpenSC*.dmg ${BUILDPATH}/OpenSC*.msi ${BUILDPATH}/OpenSC*.zip
do
    if [ -f ${file} ]
    then
        cp ${file} .
        git add `basename ${file}`
    fi
done

git commit --message "$1"
if ! git push --quiet --set-upstream origin "${BRANCH}"
then
    sleep $[ ( $RANDOM % 32 )  + 1 ]s
    git pull --rebase origin "${BRANCH}"
    git push --quiet --set-upstream origin "${BRANCH}"
fi<commit_msg>speed up checking out nightly branch<commit_after>#!/bin/bash

set -ex -o xtrace

BUILDPATH=${PWD}
BRANCH="`git log --max-count=1 --date=short --abbrev=8 --pretty=format:"%cd_%h"`"

git clone --single-branch https://${GH_TOKEN}@github.com/OpenSC/Nightly.git > /dev/null 2>&1
cd Nightly
git checkout -b "${BRANCH}"

for file in ${BUILDPATH}/win32/Output/OpenSC*.exe ${BUILDPATH}/opensc*.tar.gz ${BUILDPATH}/OpenSC*.dmg ${BUILDPATH}/OpenSC*.msi ${BUILDPATH}/OpenSC*.zip
do
    if [ -f ${file} ]
    then
        cp ${file} .
        git add `basename ${file}`
    fi
done

git commit --message "$1"
if ! git push --quiet --set-upstream origin "${BRANCH}"
then
    sleep $[ ( $RANDOM % 32 )  + 1 ]s
    git pull --rebase origin "${BRANCH}"
    git push --quiet --set-upstream origin "${BRANCH}"
fi
{'fraction_non_alphanumeric': 0.19173660426081343, 'fraction_numerical': 0.012911555842479019, 'mean_word_length': 3.2119565217391304, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '4592840', 'n_tokens_mistral': 597, 'n_tokens_neox': 598, 'n_words': 151}