<commit_before>// This #include statement was automatically added by the Spark IDE.

#include "http_parser.h"
#include "HttpResponse.h"
#include "HttpRequest.h"
#include "slre.h"
#include <map>
#include <list>
#include "sparkcore-local-http-server-rest-json.h"

UDP UDPClient;
SparkTime rtc;

unsigned long currentTime;
unsigned long lastTime = 0UL;
String timeStr;
char* TS;
        
class Welcome : public HttpResponse {
protected:
//Formatage page accueil  ---------------------------------------------------------------------------------------
    Stream& printBody(Stream& aStream) const {
        aStream.print("<html> \
    <head> \
    <title> \
    Sparkcore \
    </title> \
    </head> \
    <body> \
        <p><a href='/json/dig'>Json Digital</a></p> \
        <p><a href='/json/ana'>Json Analog</a></p> \
    </body>\n \<commit_msg>Update spark-Web-Tinker.cpp<commit_after>// This #include statement was automatically added by the Spark IDE.

#include "sparkcore-local-http-server-rest-json/http_parser.h"
#include "sparkcore-local-http-server-rest-json/HttpResponse.h"
#include "sparkcore-local-http-server-rest-json/HttpRequest.h"
#include "sparkcore-local-http-server-rest-json/slre.h"
#include <map>
#include <list>
#include "sparkcore-local-http-server-rest-json/sparkcore-local-http-server-rest-json.h"

UDP UDPClient;
SparkTime rtc;

unsigned long currentTime;
unsigned long lastTime = 0UL;
String timeStr;
char* TS;
        
class Welcome : public HttpResponse {
protected:
//Formatage page accueil  ---------------------------------------------------------------------------------------
    Stream& printBody(Stream& aStream) const {
        aStream.print("<html> \
    <head> \
    <title> \
    Sparkcore \
    </title> \
    </head> \
    <body> \
        <p><a href='/json/dig'>Json Digital</a></p> \
        <p><a href='/json/ana'>Json Analog</a></p> \
    </body>\n \
{'fraction_non_alphanumeric': 0.23259493670886075, 'fraction_numerical': 0.0010548523206751054, 'mean_word_length': 2.253859348198971, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '4213609', 'n_tokens_mistral': 618, 'n_tokens_neox': 596, 'n_words': 133}