<commit_before>#include <stdio.h>
/* application.h is Esp8266's standard library. Defines the Arduino String
 * object, the Arduino delay() procedure, and the Esp8266 TCPClient. */
#include "Esp8266AWSImplementations.h"
#include "DeviceIndependentInterfaces.h"
#include <ESP8266WiFi.h>
#include <string.h>

int delayTime = 500;
char* updateCurTime(void);

Esp8266HttpClient::Esp8266HttpClient() {
}

char* Esp8266HttpClient::send(const char* request, const char* serverUrl, int port) {

    WiFiClientSecure sclient;
    Serial.println(serverUrl);
    Serial.println(port);
    Serial.println(request);
    Serial.println("");
    Serial.println("");

    //
    String response = "";
    if (sclient.connect(serverUrl, port)) {

        // Send the request
        sclient.print(request);

        // keep reading the response until it's finished
        while(sclient.connected()) {
          while(sclient.available()){
            char c = sclient.read();
            response.concat(c);
            Serial.print('.');
          }
        }

        // disconnect any open connections
        sclient.stop();

    } else {
        // connection was unsuccessful
        sclient.stop();
        return "can't setup SSL connection";
    }

    // convert the string into a char and return
    int len = response.length();
    char* response_char = new char[len + 1]();
    response.toCharArray(response_char, len + 1);
    return response_char;
}

bool Esp8266HttpClient::usesCurl() {
    /* Does not use curl command. */
    return false;
}

Esp8266DateTimeProvider::Esp8266DateTimeProvider() {
}<commit_msg>fixed indenting<commit_after>#include <stdio.h>
/* application.h is Esp8266's standard library. Defines the Arduino String
 * object, the Arduino delay() procedure, and the Esp8266 TCPClient. */
#include "Esp8266AWSImplementations.h"
#include "DeviceIndependentInterfaces.h"
#include <ESP8266WiFi.h>
#include <string.h>

int delayTime = 500;
char* updateCurTime(void);

Esp8266HttpClient::Esp8266HttpClient() {
}

char* Esp8266HttpClient::send(const char* request, const char* serverUrl, int port) {

    WiFiClientSecure sclient;
    Serial.println(serverUrl);
    Serial.println(port);
    Serial.println(request);
    Serial.println("");
    Serial.println("");

    //
    String response = "";
    if (sclient.connect(serverUrl, port)) {

        // Send the request
        sclient.print(request);

        // keep reading the response until it's finished
        while(sclient.connected()) {
          while(sclient.available()){
            char c = sclient.read();
            response.concat(c);
            Serial.print('.');
          }

          // disconnect any open connections
          sclient.stop();
        }

    } else {
        // connection was unsuccessful
        sclient.stop();
        return "can't setup SSL connection";
    }

    // convert the string into a char and return
    int len = response.length();
    char* response_char = new char[len + 1]();
    response.toCharArray(response_char, len + 1);
    return response_char;
}

bool Esp8266HttpClient::usesCurl() {
    /* Does not use curl command. */
    return false;
}

Esp8266DateTimeProvider::Esp8266DateTimeProvider() {
}
{'fraction_non_alphanumeric': 0.120817843866171, 'fraction_numerical': 0.027881040892193308, 'mean_word_length': 2.86244019138756, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '237170', 'n_tokens_mistral': 1015, 'n_tokens_neox': 949, 'n_words': 239}