<commit_before><?php
        if(isset($_GET['trigger']) && $_GET['trigger'] == 1) {
                error_reporting(E_ALL);
                exec('gpio write 0 0'); // Output GPIO 0 as 0  replace with what you use
                usleep(1000000);
                exec('gpio write 0 1'); // Output GPIO 0 as 1  replace with what you use
        }
exec ( "gpio read 2", $status ); // Read GPIO 2   replace with what you use

if ( $status[0] == 0 ) {
?>
<h1><mark>Door Closed</mark></h1>
<?php
} else {
?>
<h1><mark>Door Open</mark></h1><p>
<?php
}
?>

<!DOCTYPE html>
<html>
        <head>
                <title>Garage Opener</title>
                <link rel="apple-touch-icon" href="apple-touch-icon-iphone.png" />
                <link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-ipad.png" />
                <link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-iphone-retina-display.png" />
                <link rel="stylesheet" href="/css/style.css" type="text/css">
                <meta name="apple-mobile-web-app-capable" content="yes">        <commit_msg>Update index.php<commit_after><?php
        if(isset($_GET['trigger']) && $_GET['trigger'] == 1) {
                error_reporting(E_ALL);
                exec('gpio write 0 0'); // Output GPIO 0 as 0  replace with what you use
                usleep(1000000);
                exec('gpio write 0 1'); // Output GPIO 0 as 1  replace with what you use
        }
exec ( "gpio read 2", $status ); // Read GPIO 2 connected to mag reed switch  replace with what you use

if ( $status[0] == 0 ) {
?>
<h1><mark>Door Closed</mark></h1>
<?php
} else {
?>
<h1><mark>Door Open</mark></h1><p>
<?php
}
?>

<!DOCTYPE html>
<html>
        <head>
                <title>Garage Opener</title>
                <link rel="apple-touch-icon" href="apple-touch-icon-iphone.png" />
                <link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-ipad.png" />
                <link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-iphone-retina-display.png" />
                <link rel="stylesheet" href="/css/style.css" type="text/css">
                <meta name="apple-mobile-web-app-capable" content="yes">        
{'fraction_non_alphanumeric': 0.170797656602073, 'fraction_numerical': 0.03064443442992339, 'mean_word_length': 2.21273516642547, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '1257539', 'n_tokens_mistral': 776, 'n_tokens_neox': 701, 'n_words': 168}