<commit_before>CREATE OR REPLACE LANGUAGE plpython3u;

CREATE OR REPLACE FUNCTION unpickle (data text)
  RETURNS text[]
AS $$
    import base64
    import pickle

    return pickle.loads(base64.b64decode(data))
$$ LANGUAGE plpython3u IMMUTABLE;

DROP INDEX IF EXISTS issues_unpickle_tags_index;
CREATE INDEX issues_unpickle_tags_index ON issues_issue USING btree (unpickle(tags));<commit_msg>Minor fixes on tags sql file.<commit_after>CREATE OR REPLACE LANGUAGE plpython2u;

CREATE OR REPLACE FUNCTION unpickle (data text)
  RETURNS text[]
AS $$
    import base64
    import pickle

    return pickle.loads(base64.b64decode(data))
$$ LANGUAGE plpython2u IMMUTABLE;
{'fraction_non_alphanumeric': 0.0677710843373494, 'fraction_numerical': 0.024096385542168676, 'mean_word_length': 5.214953271028038, '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': '4770800', 'n_tokens_mistral': 244, 'n_tokens_neox': 235, 'n_words': 65}