<commit_before>#!/usr/bin/env bash
set -eo pipefail; [[ $TRACE ]] && set -x

source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../jsonlite.bash"
ITERATIONS=500

jsonlite_drop --force

for i in $(seq 1 $ITERATIONS); do
  ID=$(jsonlite_set '{"name":"<NAME>","active":true,"permissions":{"read":true,"write":false}}')
  jsonlite_get "$ID"
  jsonlite_delete "$ID"
done<commit_msg>Namespace the JSONLITE_PATH so that we do not clobber an existing database<commit_after>#!/usr/bin/env bash
set -eo pipefail; [[ $TRACE ]] && set -x

export JSONLITE_PATH="$(dirname "$0")/jsonlite.data"
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../jsonlite.bash"
ITERATIONS=500

jsonlite_drop --force

for i in $(seq 1 $ITERATIONS); do
  ID=$(jsonlite_set '{"name":"<NAME>","active":true,"permissions":{"read":true,"write":false}}')
  jsonlite_get "$ID"
  jsonlite_delete "$ID"
done

jsonlite_drop --force
{'fraction_non_alphanumeric': 0.21070234113712374, 'fraction_numerical': 0.012263099219620958, 'mean_word_length': 5.907692307692308, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, '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': '6486375', 'n_tokens_mistral': 355, 'n_tokens_neox': 319, 'n_words': 75}