<commit_before>#include <Homie.h>

const int doorPin = 16;

Bounce debouncer = Bounce(); // Bounce is built into Homie, so you can use it without including it first
unsigned long lastDoorValue = -1;

HomieNode doorNode("door", "door");

void loopHandler() {
  int doorValue = debouncer.read();

  if (doorValue != lastDoorValue) {
     Serial.print("Door is now: ");
     Serial.println(doorValue ? "open" : "close");

     if (Homie.setNodeProperty(doorNode, "open", String(doorValue ? "true" : "false"), true)) {
       lastDoorValue = doorValue;
     } else {
       Serial.println("Sending failed");
     }
  }
}

void setup() {
  pinMode(doorPin, INPUT);
  digitalWrite(doorPin, HIGH);
  debouncer.attach(doorPin);
  debouncer.interval(50);

  Homie.setFirmware("awesome-door", "1.0.0");
  Homie.registerNode(doorNode);
  Homie.setLoopFunction(loopHandler);
  Homie.setup();
}

void loop() {
  Homie.loop();<commit_msg>Fix caps in constant example<commit_after>#include <Homie.h>

const int PIN_DOOR = 16;

Bounce debouncer = Bounce(); // Bounce is built into Homie, so you can use it without including it first
unsigned long lastDoorValue = -1;

HomieNode doorNode("door", "door");

void loopHandler() {
  int doorValue = debouncer.read();

  if (doorValue != lastDoorValue) {
     Serial.print("Door is now: ");
     Serial.println(doorValue ? "open" : "close");

     if (Homie.setNodeProperty(doorNode, "open", String(doorValue ? "true" : "false"), true)) {
       lastDoorValue = doorValue;
     } else {
       Serial.println("Sending failed");
     }
  }
}

void setup() {
  pinMode(PIN_DOOR, INPUT);
  digitalWrite(PIN_DOOR, HIGH);
  debouncer.attach(PIN_DOOR);
  debouncer.interval(50);

  Homie.setFirmware("awesome-door", "1.0.0");
  Homie.registerNode(doorNode);
  Homie.setLoopFunction(loopHandler);
  Homie.setup();
}

void loop() {
  Homie.loop();
{'fraction_non_alphanumeric': 0.14997321906802358, 'fraction_numerical': 0.00856989823245849, 'mean_word_length': 3.981333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1537790', 'n_tokens_mistral': 664, 'n_tokens_neox': 650, 'n_words': 147}