<commit_before>#include <stdlib.h> // exit
#include <stdio.h> // printf
#include <string.h> // memcpy
#include <stdint.h> // uint8_t, uint32_t
#include <inttypes.h> // PRIu8, PRIu32
#include <unistd.h> // close
#include <sys/socket.h>
#include <arpa/inet.h> // sockaddr_in, htons, inet_aton
#include <netdb.h> // struct addrinfo

#include "msntpc.h"


int main(int argc, char *argv[]) {
	char * server_addr = "0.pool.ntp.org";
	if (argc == 2) {
		server_addr = argv[1];
	}

	uint8_t sntp_request[SNTP_DATA_LEN] = {0};
	uint8_t sntp_response[SNTP_DATA_LEN] = {0};

	sntp_request[0] = SNTP_LI_ALARM_CONDITION | SNTP_VERSION | SNTP_MODE_CLIENT;

	printf("Requesting current time from: %s\n", server_addr);
	ssize_t size = send_request(server_addr, sntp_request, sntp_response);
	if (size != SNTP_DATA_LEN) {<commit_msg>Clean up, order, and comment usage of includes<commit_after>#include <inttypes.h> // PRIu8, PRIu32
#include <netdb.h> // getaddrinfo, struct addrinfo
#include <netinet/in.h> // IPPROTO_UDP
#include <stdlib.h> // exit
#include <stdint.h> // uint8_t, uint32_t
#include <stdio.h> // printf, fprintf, perror
#include <string.h> // memcpy
#include <sys/socket.h> // socket, setsockopt, SOCK_DGRAM, sendto, recvfrom
#include <unistd.h> // close

#include "msntpc.h"


int main(int argc, char *argv[]) {
	char * server_addr = "0.pool.ntp.org";
	if (argc == 2) {
		server_addr = argv[1];
	}

	uint8_t sntp_request[SNTP_DATA_LEN] = {0};
	uint8_t sntp_response[SNTP_DATA_LEN] = {0};

	sntp_request[0] = SNTP_LI_ALARM_CONDITION | SNTP_VERSION | SNTP_MODE_CLIENT;

	printf("Requesting current time from: %s\n", server_addr);
	ssize_t size = send_request(server_addr, sntp_request, sntp_response);
	if (size != SNTP_DATA_LEN) {
{'fraction_non_alphanumeric': 0.1531791907514451, 'fraction_numerical': 0.016184971098265895, 'mean_word_length': 4.789297658862877, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '563422', 'n_tokens_mistral': 730, 'n_tokens_neox': 726, 'n_words': 153}