<commit_before>#include <GSMSim.h>

#define RX 7
#define TX 8
#define RESET 2
#define BAUD 9600


GSMSim gsm;

/*
 * Also you can this types:
 * GSMSim gsm(RX, TX);
 * GSMSim gsm(RX, TX, RESET);
 * GSMSim gsm(RX, TX, RESET, LED_PIN, LED_FLAG);
 */

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  Serial.println("GSMSim Library - Get and Set (from Internet) Time Example");
  Serial.println("");
  delay(1000);

  gsm.start(); // baud default 9600
  //gsm.start(BAUD);

  // Get module date time
  Serial.print("Module DateTime: ");
  Serial.println(gsm.timeGetRaw());
  
  Serial.print("Connect to Internet: ");
  // For setting time from ntp servers, we must connect to internet!
  Serial.println(gsm.gprsConnectBearer());

  Serial.print("Set timezone to +3: ");
  Serial.println(gsm.timeSetServer(3)); // time server is: 192.168.127.12 (Shanghai Jiaotong University - China)
  //Serial.println(gsm.timeSetServer("192.168.127.12", 3)); // you can set server too :)

  Serial.print("Sync from server. Server response: ");
  Serial.println(gsm.timeSyncFromServer());

  Serial.print("Module DateTime after sync: ");
  Serial.println(gsm.timeGetRaw());
  
  // Close internet connection
  Serial.print("Close Internet: ");
  Serial.println(gsm.gprsCloseConn());
  
}

void loop() {
  // put your main code here, to run repeatedly:

}<commit_msg>Update Time example<commit_after>#include <GSMSim.h>

#define RX 7
#define TX 8
#define RESET 2
#define BAUD 9600


GSMSim gsm;

/*
 * Also you can this types:
 * GSMSim gsm(RX, TX);
 * GSMSim gsm(RX, TX, RESET);
 * GSMSim gsm(RX, TX, RESET, LED_PIN, LED_FLAG);
 */

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

  Serial.println("GSMSim Library - Get and Set (from Internet) Time Example");
  Serial.println("");
  delay(1000);

  gsm.start(); // baud default 9600
  //gsm.start(BAUD);

  // Get module date time
  Serial.print("Module DateTime: ");
  Serial.println(gsm.timeGetRaw());

  Serial.print("Connect to Internet: ");
  // For setting time from ntp servers, we must connect to internet!
  Serial.println(gsm.gprsConnectBearer());

  Serial.print("Set timezone to +3: ");
  Serial.println(gsm.timeSetServer(3)); // time server is: 192.168.127.12 (Shanghai Jiaotong University - China)
  //Serial.println(gsm.timeSetServer(3, "192.168.127.12")); // you can set server too :)

  Serial.print("Sync from server. Server response: ");
  Serial.println(gsm.timeSyncFromServer());

  Serial.print("Module DateTime after sync: ");
  Serial.println(gsm.timeGetRaw());

  // Close internet connection
  Serial.print("Close Internet: ");
  Serial.println(gsm.gprsCloseConn());

}

void loop() {
  // put your main code here, to run repeatedly:

}
{'fraction_non_alphanumeric': 0.15133960897900073, 'fraction_numerical': 0.03186097031136857, 'mean_word_length': 3.8219895287958114, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '6522870', 'n_tokens_mistral': 1022, 'n_tokens_neox': 937, 'n_words': 262}