<commit_before>#!/bin/sh

# Set the COUCHDBURL environment variable

#export COUCHDBURL=http://localhost:5984/cloudbox
[ "x" == "x${COUCHDBURL}" ] && exit 1

# Expect arg
[ "x" == "x$1" ] && exit 1

# Expect arg to be folder
FOLDER="$1"
[ ! -d "${FOLDER}" ] && exit 1

echo "${FOLDER}"

# Now call parse-and-upload-file for every file
find ${FOLDER} -maxdepth 3 -type f \
| while read line ; do
    sh parse-and-upload-file.sh "$line"
done<commit_msg>quote FOLDER<commit_after>#!/bin/sh

# Set the COUCHDBURL environment variable

#export COUCHDBURL=http://localhost:5984/cloudbox
[ "x" == "x${COUCHDBURL}" ] && exit 1

# Expect arg
[ "x" == "x$1" ] && exit 1

# Expect arg to be folder
FOLDER="$1"
[ ! -d "${FOLDER}" ] && exit 1

echo "${FOLDER}"

# Now call parse-and-upload-file for every file
find "${FOLDER}" -maxdepth 3 -type f \
| while read line ; do
    sh parse-and-upload-file.sh "$line"
done
{'fraction_non_alphanumeric': 0.17940199335548174, 'fraction_numerical': 0.0221483942414175, 'mean_word_length': 3.7578947368421054, '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': '5727482', 'n_tokens_mistral': 366, 'n_tokens_neox': 347, 'n_words': 100}