<commit_before>CREATE OR REPLACE FUNCTION Get_Message(OUT Ciphertext text, _MessageID text) RETURNS TEXT AS $BODY$
SELECT armor(Cipherdata) FROM Messages WHERE MessageID = $1
$BODY$ LANGUAGE sql VOLATILE;<commit_msg>Allow input param MessageID to Get_Message() to be partial and throw error if multiple rows or no rows could be found<commit_after>CREATE OR REPLACE FUNCTION Get_Message(OUT Ciphertext text, _MessageID text) RETURNS TEXT AS $BODY$
DECLARE
BEGIN
EXECUTE 'SELECT armor(Cipherdata) FROM Messages WHERE MessageID LIKE $1' INTO STRICT Ciphertext USING (_MessageID || '%');
RETURN;
END;
$BODY$ LANGUAGE plpgsql VOLATILE;

{'fraction_non_alphanumeric': 0.06814580031695722, 'fraction_numerical': 0.003169572107765452, 'mean_word_length': 6.7073170731707314, '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': '3593208', 'n_tokens_mistral': 207, 'n_tokens_neox': 196, 'n_words': 78}