<commit_before>#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>

#include "WiFiManager.h"
#include "webserver.h"
#include "gear.h"
#include "range.h"
#include "Adafruit_NeoPixel.h"

const char* ssid = _SSID_;
const char* password = _<PASSWORD>_;

MDNSResponder mdns;

WebServer &server = WebServer::instance();
Gear gear(5, 0, 4, 2);
Range range(14, 12);
// Adafruit_NeoPixel pixels = Adafruit_NeoPixel(8, 10, NEO_GRB + NEO_KHZ800);
Adafruit_NeoPixel pixels(8, 10, NEO_GRB + NEO_KHZ800);

#define WIFI_MODE_PIN  99		// TODO: define valid pin

void setup(void) {

    Serial.begin(115200);

    pinMode(WIFI_MODE_PIN, INPUT);

    if(digitalRead(WIFI_MODE_PIN) == HIGH) {
        // use WiFi-Manager for network connection to STA
        Serial.println("Using WiFi-Manager");

        WiFiManager wifiManager;
        wifiManager.autoConnect(_SSID_, _WIFI_PASSWORD_);
    }
    else {
        // create own AP
        Serial.println("Using own AP");

        WiFi.mode(WIFI_AP);
        WiFi.softAP(_SSID_, _WIFI_PASSWORD_);	
    }

    if (mdns.begin(_MDNS_NAME_, WiFi.localIP())) {
        Serial.println("MDNS responder started");
    }
<commit_msg>Update main.cpp<commit_after>#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <DNSServer.h>

#include "WiFiManager.h"
#include "webserver.h"
#include "gear.h"
#include "range.h"
#include "Adafruit_NeoPixel.h"

const char* ssid = _SSID_;
const char* password = _<PASSWORD>_;

MDNSResponder mdns;

WebServer &server = WebServer::instance();
Gear gear(5, 0, 4, 2);
Range range(14, 12);
Adafruit_NeoPixel pixels(8, 10, NEO_GRB + NEO_KHZ800);

#define WIFI_MODE_PIN  99		// TODO: define valid pin

void setup(void) {

    Serial.begin(115200);

    pinMode(WIFI_MODE_PIN, INPUT);

    if(digitalRead(WIFI_MODE_PIN) == HIGH) {
        // use WiFi-Manager for network connection to STA
        Serial.println("Using WiFi-Manager");

        WiFiManager wifiManager;
        wifiManager.autoConnect(_SSID_, _WIFI_PASSWORD_);
    }
    else {
        // create own AP
        Serial.println("Using own AP");

        WiFi.mode(WIFI_AP);
        WiFi.softAP(_SSID_, _WIFI_PASSWORD_);	
    }

    if (mdns.begin(_MDNS_NAME_, WiFi.localIP())) {
        Serial.println("MDNS responder started");
    }

{'fraction_non_alphanumeric': 0.12928759894459102, 'fraction_numerical': 0.029023746701846966, 'mean_word_length': 3.5318725099601593, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '5905970', 'n_tokens_mistral': 927, 'n_tokens_neox': 857, 'n_words': 177}