<commit_before>#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <WiFiUdp.h>
#include <functional>

// Declare function prototypes
bool connectUDP();
void prepareIds();
void respondToSearch();
void startHttpServer();

// Change these to whatever you'd prefer:
String device_name = "desk lamp";  // Name of device
bool debug = false;                       // If you want debug messages
bool squawk = true;                       // For on/off messages

// Some UDP / WeMo specific variables:
WiFiUDP UDP;
IPAddress ipMulti(239, 255, 255, 250);
unsigned int portMulti = 1900; // local port to listen on
ESP8266WebServer HTTP(80);
String serial; // Where we save the string of the UUID
String persistent_uuid; // Where we save some socket info with the UUID

// Buffer to save incoming packets:
char packetBuffer[UDP_TX_PACKET_MAX_SIZE];

void setup() {
  // Begin Serial:
  Serial.begin(115200);

  // Setup the pin for output:
  pinMode(D1, OUTPUT);
  pinMode(D2, OUTPUT);
  pinMode(D3, OUTPUT);
  pinMode(D4, OUTPUT);
  digitalWrite(D1, HIGH); // Start with light on
  digitalWrite(D2, HIGH); // Start with light on
  digitalWrite(D3, HIGH); // Start with light on
  digitalWrite(D4, HIGH); // Start with light on
//  digitalWrite(D1, LOW); // Start with light off

  // Set the UUIDs and socket information:
  prepareIds();

  // Get settings from WiFi Manager:
  WiFiManager wifiManager;
  // wifiManager.resetSettings(); // Uncomment this to test WiFi Manager function
  wifiManager.setAPCallback(configModeCallback);
  wifiManager.autoConnect();

  // Wait til WiFi is connected properly:<commit_msg>Switched initial relay power states to OFF<commit_after>#include <ESP8266WiFi.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <WiFiUdp.h>
#include <functional>

// Declare function prototypes
bool connectUDP();
void prepareIds();
void respondToSearch();
void startHttpServer();

// Change these to whatever you'd prefer:
String device_name = "desk lamp";  // Name of device
bool debug = false;                       // If you want debug messages
bool squawk = true;                       // For on/off messages

// Some UDP / WeMo specific variables:
WiFiUDP UDP;
IPAddress ipMulti(239, 255, 255, 250);
unsigned int portMulti = 1900; // local port to listen on
ESP8266WebServer HTTP(80);
String serial; // Where we save the string of the UUID
String persistent_uuid; // Where we save some socket info with the UUID

// Buffer to save incoming packets:
char packetBuffer[UDP_TX_PACKET_MAX_SIZE];

void setup() {
  // Begin Serial:
  Serial.begin(115200);

  // Setup the pin for output:
  pinMode(D1, OUTPUT);
  pinMode(D2, OUTPUT);
  pinMode(D3, OUTPUT);
  pinMode(D4, OUTPUT);
  digitalWrite(D1, LOW); // Start with light off
  digitalWrite(D2, LOW); // Start with light off
  digitalWrite(D3, LOW); // Start with light off
  digitalWrite(D4, LOW); // Start with light off

  // Set the UUIDs and socket information:
  prepareIds();

  // Get settings from WiFi Manager:
  WiFiManager wifiManager;
  // wifiManager.resetSettings(); // Uncomment this to test WiFi Manager function
  wifiManager.setAPCallback(configModeCallback);
  wifiManager.autoConnect();

  // Wait til WiFi is connected properly:
{'fraction_non_alphanumeric': 0.10580411124546554, 'fraction_numerical': 0.02690447400241838, 'mean_word_length': 3.6737288135593222, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2402014', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1012, 'n_words': 357}