<commit_before>--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

SET search_path = public, pg_catalog;

--
-- Name: rcfile_notifyd(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE FUNCTION rcfile_notifyd() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'd' || cast(old.id as text));
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyd() OWNER TO rc2;

--
-- Name: rcfile_notifyi(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE FUNCTION rcfile_notifyi() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'i' || cast(new.id as text) || '/0/0');
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyi() OWNER TO rc2;

--
-- Name: rcfile_notifyu(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE FUNCTION rcfile_notifyu() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'u' || cast(old.id as text) || '/0/0');
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyu() OWNER TO rc2;<commit_msg>fixed file notifications to include workspace id<commit_after>--
-- PostgreSQL database dump
--

SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;

SET search_path = public, pg_catalog;

--
-- Name: rcfile_notifyd(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE FUNCTION rcfile_notifyd() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'd' || cast(old.id as text));
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyd() OWNER TO rc2;

--
-- Name: rcfile_notifyi(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE OR REPLACE FUNCTION rcfile_notifyi() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'i' || cast(new.id as text) || '/' || cast(new.wspaceid as text) || '/0');
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyi() OWNER TO rc2;

--
-- Name: rcfile_notifyu(); Type: FUNCTION; Schema: public; Owner: rc2
--

CREATE OR REPLACE FUNCTION rcfile_notifyu() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
BEGIN
perform pg_notify(cast('rcfile' as text), 'u' || cast(old.id as text) || '/' || cast(old.wspaceid as text) || '/0');
return new;
END;
$$;


ALTER FUNCTION public.rcfile_notifyu() OWNER TO rc2;
{'fraction_non_alphanumeric': 0.13228109733183013, 'fraction_numerical': 0.009019165727170236, 'mean_word_length': 4.4215885947046845, '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': '6209933', 'n_tokens_mistral': 982, 'n_tokens_neox': 937, 'n_words': 281}