<commit_before>#!/bin/bash
#
# Script to wrap up implementations for SUPERCOP
#

DEST=crypto_aead
VER=v2

if [ -d "$DEST" ]; then rm -rf $DEST; fi
mkdir -p $DEST

# copy stuff
for DIR in ../norx{3241,3261,6441,6444,6461}; do
  SRC=$DIR
  BASE=$(basename $DIR)
  rsync -a $SRC $DEST --exclude={makefile,kat.h}
  mv $DEST/$BASE $DEST/$BASE$VER
done;

# activate SUPERCOP support
if [ `uname` == "Darwin" ]; then
  find $DEST -type f -exec sed -i "" -e 's/defined(SUPERCOP)/1/g' '{}' \;
else
  find $DEST -type f -exec sed -i 's/defined(SUPERCOP)/1/g' '{}' \;
fi

# pack stuff
tar -czf $DEST.tar.gz $DEST
<commit_msg>supercop v3<commit_after>#!/bin/bash
#
# Script to wrap up implementations for SUPERCOP
#

DEST=crypto_aead
VER=v3

if [ -d "$DEST" ]; then rm -rf $DEST; fi
mkdir -p $DEST

# copy stuff
for DIR in ../norx{3241,3261,6441,6444,6461}; do
  SRC=$DIR
  BASE=$(basename $DIR)
  rsync -a $SRC $DEST --exclude={makefile,kat.h}
  mv $DEST/$BASE $DEST/$BASE$VER
done;

# activate SUPERCOP support
if [ `uname` == "Darwin" ]; then
  find $DEST -type f -exec sed -i "" -e 's/defined(SUPERCOP)/1/g' '{}' \;
else
  find $DEST -type f -exec sed -i 's/defined(SUPERCOP)/1/g' '{}' \;
fi

# pack stuff
tar -czf $DEST.tar.gz $DEST

{'fraction_non_alphanumeric': 0.18433931484502447, 'fraction_numerical': 0.03833605220228385, 'mean_word_length': 3.4456521739130435, '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': '5767547', 'n_tokens_mistral': 584, 'n_tokens_neox': 531, 'n_words': 145}