<commit_before><?php
	$editset = intval($_GET['editset']);
	$title = htmlspecialchars($_GET["title"]);
	$rating = intval($_GET['selector']);
	$description = htmlspecialchars($_GET["comment"]);
	//if(!is_int($editset))
	//	die('invalid request');
	
	$servername = "ec2-23-21-169-238.compute-1.amazonaws.com";
	$username = "fmtextbjvwjlcy";
	$password = "<PASSWORD>";
	$dbname = "dmns5jadj6q0l";	

	try {
		$db = new PDO("pgsql:host=$servername;port=5432;dbname=$dbname", $username, $password);
		$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 		} 	
	catch (PDOException $ex) {
		echo "Error connecting to the db. Details: $ex";
		die();
	}
	/*
	$query = "INSERT INTO movieeditsetreview (account_id, movieeditset_id, creationdate, lasteditdate, title, stars, description)
VALUES (6,':editset' NOW(), NOW(),':title',':rating',':description');";
	$statement = $db->prepare($query);
	$statement->bindParam(':editset', $editset);
	$statement->bindParam(':title', $title);
	$statement->bindParam(':rating', $rating);
	$statement->bindParam(':description', $description);
	$statement->execute();
	//$results = $statement->fetchAll(PDO::FETCH_ASSOC);*/
	echo "success!";
?><commit_msg>saddurday<commit_after><?php
	$editset = intval($_GET['editset']);
	$title = htmlspecialchars($_GET["title"]);
	$rating = intval($_GET['selector']);
	$description = htmlspecialchars($_GET["comment"]);
	//if(!is_int($editset))
	//	die('invalid request');
	
	$servername = "ec2-23-21-169-238.compute-1.amazonaws.com";
	$username = "fmtextbjvwjlcy";
	$password = "<PASSWORD>";
	$dbname = "dmns5jadj6q0l";	

	try {
		$db = new PDO("pgsql:host=$servername;port=5432;dbname=$dbname", $username, $password);
		$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
 		} 	
	catch (PDOException $ex) {
		echo "Error connecting to the db. Details: $ex";
		die();
	}
	
	$query = "INSERT INTO movieeditsetreview (account_id, movieeditset_id, creationdate, lasteditdate, title, stars, description)
VALUES (6,':editset', NOW(), NOW(),':title',':rating',':description');";
	$statement = $db->prepare($query);
	$statement->bindParam(':editset', $editset);
	$statement->bindParam(':title', $title);
	$statement->bindParam(':rating', $rating);
	$statement->bindParam(':description', $description);
	$statement->execute();
	//$results = $statement->fetchAll(PDO::FETCH_ASSOC);
	echo "success!";
?>
{'fraction_non_alphanumeric': 0.2124526714345814, 'fraction_numerical': 0.016827934371055953, 'mean_word_length': 6.79672131147541, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, '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': '2708813', 'n_tokens_mistral': 896, 'n_tokens_neox': 867, 'n_words': 140}