<commit_before>--
-- Database drop
--

-- Force disconnection of any clients using the database.

SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE
    pg_stat_activity.datname = 'pscheduler'
    AND pid <> pg_backend_pid();


DROP DATABASE IF EXISTS pscheduler;
DROP ROLE IF EXISTS pscheduler;<commit_msg>Disconnect clients with less fanfare<commit_after>--
-- Database drop
--

-- Force disconnection of any clients using the database.

DO $$
BEGIN
    PERFORM pg_terminate_backend(pg_stat_activity.pid)
    FROM pg_stat_activity
    WHERE
        pg_stat_activity.datname = 'pscheduler'
        AND pid <> pg_backend_pid();
END;
$$ LANGUAGE plpgsql;


DROP DATABASE IF EXISTS pscheduler;
DROP ROLE IF EXISTS pscheduler;
{'fraction_non_alphanumeric': 0.07733333333333334, 'fraction_numerical': 0.0, 'mean_word_length': 4.074324324324325, 'pattern_counts': {'":': 0, '<': 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': '1888875', 'n_tokens_mistral': 252, 'n_tokens_neox': 244, 'n_words': 70}