<commit_before><?php
include_once ('../include/config.php');

$r_place = $_GET['id'];
$r_type = $_GET['type'];
$r_ref = $_GET['ref'];

//$r_ref = iconv('cp1251', 'utf-8', $r_ref);

$sql_place = pg_query("
SELECT
	id,
	name
FROM places
WHERE
	id=".$r_place
);

//Check version
$sql_route_version = pg_query("
	SELECT
		--relations.id,
		--relations.tags->'route' as type,
		--relations.tags->'ref' as ref,
		count(relation_members.member_role) as count
	FROM transport_routes, relation_members, transport_location
	WHERE<commit_msg>Removed unnecessary line<commit_after><?php
include_once ('../include/config.php');

$r_place = $_GET['id'];
$r_type = $_GET['type'];
$r_ref = $_GET['ref'];

$sql_place = pg_query("
SELECT
	id,
	name
FROM places
WHERE
	id=".$r_place
);

//Check version
$sql_route_version = pg_query("
	SELECT
		--relations.id,
		--relations.tags->'route' as type,
		--relations.tags->'ref' as ref,
		count(relation_members.member_role) as count
	FROM transport_routes, relation_members, transport_location
	WHERE
{'fraction_non_alphanumeric': 0.17234664070107109, 'fraction_numerical': 0.004868549172346641, 'mean_word_length': 4.976744186046512, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3797233', 'n_tokens_mistral': 397, 'n_tokens_neox': 380, 'n_words': 81}