<commit_before>-- create stored functions for converting to/from binary uuids and
-- file-system-safe identifiers
create function TO_FSID (user_uuid binary(32)) returns char(44) deterministic
    return REPLACE(TO_BASE64(user_uuid), '/', '-');

create function TO_UUID (fsid char(44)) returns binary(32) deterministic
    return FROM_BASE64(REPLACE(fsid, '-', '/'));<commit_msg>migrations: actually, use hex for TO_FSID<commit_after>-- create stored functions for converting to/from binary uuids and
-- file-system-safe identifiers (at this time, it's just hex encoding)
create function TO_FSID (user_uuid binary(32)) returns char(64) deterministic
    return LOWER(HEX(user_uuid));

create function TO_UUID (fsid char(64)) returns binary(32) deterministic
    return UNHEX(fsid);
{'fraction_non_alphanumeric': 0.1076923076923077, 'fraction_numerical': 0.02564102564102564, 'mean_word_length': 5.6752136752136755, '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': '7228384', 'n_tokens_mistral': 246, 'n_tokens_neox': 229, 'n_words': 76}