<commit_before>CREATE TABLE animation_template(
	id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
	offset_x INTEGER,
	offset_y INTEGER,
	name TEXT
);

GRANT SELECT, INSERT, UPDATE, DELETE ON animation_template TO map;

CREATE OR REPLACE FUNCTION add_animation(offset_x_val INTEGER, offset_y_val INTEGER, name_val TEXT) RETURNS VOID AS $$
BEGIN
	INSERT INTO animation_template(offset_x,offset_y,name) VALUES(offset_x_val,offset_y_val,name_val);
	RETURN;
END;
$$ LANGUAGE plpgsql;

CREATE OR REPLACE FUNCTION get_all_available_animations() RETURNS SETOF animation_template as $$
BEGIN
     RETURN QUERY<commit_msg>- Added x_size and y_size to the animation table<commit_after>CREATE TABLE animation_template(
	id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
	offset_x INTEGER,
	offset_y INTEGER,
	x_size INTEGER,
	y_size INTEGER,
	name TEXT
);

GRANT SELECT, INSERT, UPDATE, DELETE ON animation_template TO map;

CREATE OR REPLACE FUNCTION add_animation(offset_x_val INTEGER, offset_y_val INTEGER, name_val TEXT) RETURNS VOID AS $$
BEGIN
	INSERT INTO animation_template(offset_x,offset_y,name) VALUES(offset_x_val,offset_y_val,name_val);
	RETURN;
END;
$$ LANGUAGE plpgsql;

CREATE OR REPLACE FUNCTION get_all_available_animations() RETURNS SETOF animation_template as $$
BEGIN
     RETURN QUERY
{'fraction_non_alphanumeric': 0.0627420604182804, 'fraction_numerical': 0.001549186676994578, 'mean_word_length': 6.783132530120482, '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': '5855230', 'n_tokens_mistral': 474, 'n_tokens_neox': 425, 'n_words': 127}