<commit_before><commit_msg>Create record.php<commit_after><?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "database_name";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
    die("Connection failed: " . $conn->connect_error);
} 

//vreme.suhokranjske-novice.com/record.php?temperatura=2.0&vlaga=1.0&tlak=1005.0

$cas = date('Y-m-d H:i:s');
$temperatura = $_GET["temperatura"];
$vlaga = $_GET["vlaga"];
$tlak = $_GET["tlak"];

echo "$cas: T=$temperatura, Vl=$vlaga, Tl=$tlak<br>";

$sql = "INSERT INTO vreme (cas, temperatura, vlaga, tlak)
VALUES ('$cas', '$temperatura', '$vlaga', '$tlak')";

if ($conn->query($sql) === TRUE) {
    echo "New record created successfully<br>";
} else {
    echo "Error: " . $sql . "<br>" . $conn->error;
}

$conn->close();
?>
{'fraction_non_alphanumeric': 0.2234762979683973, 'fraction_numerical': 0.010158013544018058, 'mean_word_length': 5.335714285714285, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 12, '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': '1735276', 'n_tokens_mistral': 342, 'n_tokens_neox': 337, 'n_words': 68}