<commit_before><?php
//this is an old fashion of defining strings, dont use it anymore (mysql)

/* <<<<<<< HEAD
$servername = "localhost";
$username = "root";
$password = "<PASSWORD>";
$database = "database2";
$conn = new mysqli($servername, $username, $password);
Create a Database
$sql = "CREATE DATABASE $database ";
if ($conn->query($sql) === TRUE) {
   echo "Database created successfully";
} else {
    echo "Error creating '$database': " . $conn->error;
}
======= */
$servername = "localhost";
$username = "root";
$password = "";
$database = "eassy_essay";
$conn = new mysqli($servername, $username, $password);
//Create a Database
$sql = "CREATE DATABASE $database ";



if ($conn->query($sql) === TRUE) {
   //echo "Database created successfully";
} else {
   // echo "Error creating '$database': " . $conn->error;
}
mysqli_close($conn);



$url = parse_url(getenv("CLEARDB_DATABASE_URL"));
$server = $url["host"];
$username = $url["user"];
$password = $url["<PASSWORD>"];
$db = substr($url["path"], 1);
$conn = new mysqli($server, $username, $password, $db);
if (mysqli_connect_errno())
{
	echo "Failed to connect to MySQL: " . mysqli_connect_error($conn);
}
// >>>>>>> origin/master
// closing connection, cause we need to connect to the new database<commit_msg>First push<commit_after><?php
//this is an old fashion of defining strings, dont use it anymore (mysql)

/* <<<<<<< HEAD
$servername = "localhost";
$username = "root";
$password = "<PASSWORD>";
$database = "database2";
$conn = new mysqli($servername, $username, $password);
Create a Database
$sql = "CREATE DATABASE $database ";
if ($conn->query($sql) === TRUE) {
   echo "Database created successfully";
} else {
    echo "Error creating '$database': " . $conn->error;
}
//======= */
//$servername = "localhost";
//$username = "root";
//$password = "";
//$database = "eassy_essay";
//$conn = new mysqli($servername, $username, $password);
////Create a Database
//$sql = "CREATE DATABASE $database ";
//
//
//
//if ($conn->query($sql) === TRUE) {
//   //echo "Database created successfully";
//} else {
//   // echo "Error creating '$database': " . $conn->error;
//}
//mysqli_close($conn);



$url = parse_url(getenv("CLEARDB_DATABASE_URL"));
$server = $url["host"];
$username = $url["user"];
$password = $url["pass"];
$db = substr($url["path"], 1);
$conn = new mysqli($server, $username, $password, $db);
if (mysqli_connect_errno())
{
	echo "Failed to connect to MySQL: " . mysqli_connect_error($conn);
}
// >>>>>>> origin/master
// closing connection, cause we need to connect to the new database
{'fraction_non_alphanumeric': 0.21081291326332166, 'fraction_numerical': 0.0015558148580318942, 'mean_word_length': 4.6902654867256635, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 28, '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': '2587102', 'n_tokens_mistral': 853, 'n_tokens_neox': 828, 'n_words': 238}