<commit_before>/*
   IR-station Ver.1.0.0
   Infrared Remote Controller with ESP8266 WiFi Module
   Add ESP8266 Board URL:http://arduino.esp8266.com/stable/package_esp8266com_index.json
   Board Settings
     * Board:           Generic ESP8266 Module
     * Flash Mode:      QIO
     * Flash Frequency: 40MHz
     * Upload Using:    Serial
     * CPU Frequency:   80MHz/160MHz
     * Flash Size:      4M(3M SPIFFS)
     * Reset Method:    ck
     * Upload Speed:    115200
*/

#include <ESP8266WiFi.h>
#include <FS.h>
#include "config.h"
#include "IR_op.h"
#include "WiFi_op.h"
#include "String_op.h"
#include "server_op.h"

void setup() {
  ESP.wdtFeed();
  // Prepare Serial debug
  Serial.begin(115200);
  //Serial.setDebugOutput(true);
  println_dbg("");
  println_dbg("Hello, I'm ESP-WROOM-02");
  println_dbg("");

  // prepare GPIO
  pinMode(Indicate_LED, OUTPUT);
  pinMode(ERROR_LED, OUTPUT);
  pinMode(IR_IN, INPUT);
  pinMode(IR_OUT, OUTPUT);

  digitalWrite(Indicate_LED, LOW);
  digitalWrite(ERROR_LED, LOW);

  // Setup indicator ON
  digitalWrite(ERROR_LED, HIGH);

  // Prepare SPIFFS
  bool res = SPIFFS.begin();
  if (!res) println_dbg("SPIFFS.begin fail");

  // Restore reserved data
  wifiRestoreFromFile();
  for (uint8_t i = 0; i < IR_CH_SIZE; i++) {
    ir[i].dataRestoreFromFile(IR_DATA_PATH(i));
  }

  // WiFi setup
  if (configureWifi() != 0) {
    wifiSetup();
  }

  // Setup indicator OFF
  digitalWrite(Indicate_LED, LOW);
  println_dbg("Setup Completed");
}

void loop() {
  ESP.wdtFeed();
  getClient();
  if (WiFi.status() != WL_CONNECTED) {
    digitalWrite(Indicate_LED, HIGH);
    configureWifi();
    digitalWrite(Indicate_LED, LOW);
  }
  delay(100);
}
<commit_msg>LED<commit_after>/*
   IR-station Ver.1.0.0
   Infrared Remote Controller with ESP8266 WiFi Module
   Add ESP8266 Board URL:http://arduino.esp8266.com/stable/package_esp8266com_index.json
   Board Settings
     * Board:           Generic ESP8266 Module
     * Flash Mode:      QIO
     * Flash Frequency: 40MHz
     * Upload Using:    Serial
     * CPU Frequency:   80MHz/160MHz
     * Flash Size:      4M(3M SPIFFS)
     * Reset Method:    ck
     * Upload Speed:    115200
*/

#include <ESP8266WiFi.h>
#include <FS.h>
#include "config.h"
#include "IR_op.h"
#include "WiFi_op.h"
#include "String_op.h"
#include "server_op.h"

void setup() {
  ESP.wdtFeed();
  // Prepare Serial debug
  Serial.begin(115200);
  //Serial.setDebugOutput(true);
  println_dbg("");
  println_dbg("Hello, I'm ESP-WROOM-02");
  println_dbg("");

  // prepare GPIO
  pinMode(Indicate_LED, OUTPUT);
  pinMode(ERROR_LED, OUTPUT);
  pinMode(IR_IN, INPUT);
  pinMode(IR_OUT, OUTPUT);

  digitalWrite(Indicate_LED, LOW);
  digitalWrite(ERROR_LED, LOW);

  // Setup indicator ON
  digitalWrite(ERROR_LED, HIGH);

  // Prepare SPIFFS
  bool res = SPIFFS.begin();
  if (!res) println_dbg("SPIFFS.begin fail");

  // Restore reserved data
  wifiRestoreFromFile();
  for (uint8_t i = 0; i < IR_CH_SIZE; i++) {
    ir[i].dataRestoreFromFile(IR_DATA_PATH(i));
  }

  // WiFi setup
  if (configureWifi() != 0) {
    wifiSetup();
  }

  // Setup indicator OFF
  digitalWrite(ERROR_LED, LOW);
  println_dbg("Setup Completed");
}

void loop() {
  ESP.wdtFeed();
  getClient();
  if (WiFi.status() != WL_CONNECTED) {
    digitalWrite(ERROR_LED, HIGH);
    configureWifi();
    digitalWrite(ERROR_LED, LOW);
  }
  delay(100);
}

{'fraction_non_alphanumeric': 0.13860218224712476, 'fraction_numerical': 0.033028605131229724, 'mean_word_length': 3.299112801013942, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '6325214', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1267, 'n_words': 270}