<commit_before>DROP FUNCTION IF EXISTS geo_distance;

DELIMITER $$
CREATE FUNCTION geo_distance (lat1 double, long1 double, lat2 double, long2 double)
RETURNS double DETERMINISTIC
BEGIN
	DECLARE pt1 POINT;
	DECLARE pt2 POINT;
	DECLARE dist DOUBLE;
	SET pt1 = POINT(long1, lat1);
	SET pt2 = POINT(long2, lat2);
	SET dist = ST_Distance_Sphere(pt1, pt2)/1000;
RETURN dist;
END
$$
DELIMITER ;

GRANT EXECUTE ON FUNCTION geo_distance TO movemusr@localhost;
<commit_msg>Fixed indentation<commit_after>DROP FUNCTION IF EXISTS geo_distance;

DELIMITER $$
CREATE FUNCTION geo_distance (lat1 double, long1 double, lat2 double, long2 double)
RETURNS double DETERMINISTIC
BEGIN
	DECLARE pt1 POINT;
	DECLARE pt2 POINT;
	DECLARE dist DOUBLE;
	SET pt1 = POINT(long1, lat1);
	SET pt2 = POINT(long2, lat2);
	SET dist = ST_Distance_Sphere(pt1, pt2)/1000;
	RETURN dist;
END
$$
DELIMITER ;

GRANT EXECUTE ON FUNCTION geo_distance TO <EMAIL>emusr@localhost;

{'fraction_non_alphanumeric': 0.07605344295991778, 'fraction_numerical': 0.03699897225077081, 'mean_word_length': 4.565714285714286, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5284620', 'n_tokens_mistral': 385, 'n_tokens_neox': 356, 'n_words': 107}