<commit_before>#include <stdio.h>
#include <windows.h>
#include <winuser.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")

void setData(char *val);

int main() {
	WSADATA wsa;
    SOCKET s, new_socket;
    int c, recv_size;
    struct sockaddr_in server, client;
    char reply[2000];

    puts("Starting Winsock..");
    if (WSAStartup(MAKEWORD(2,2), &wsa) != 0)
        puts("ERR, :(");
    puts("Started!");
    
    if((s = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
        puts("failed");
    puts("Socket init!");

    server.sin_addr.s_addr = INADDR_ANY;
    server.sin_family = AF_INET;
    server.sin_port = htons(8080);

    if (bind(s,(struct sockaddr *)&server, sizeof(server)) == SOCKET_ERROR)
    	puts("Bind failed");
    puts("SUCCESS");

    listen(s, 3);

    c = sizeof(struct sockaddr_in);
    new_socket = accept(s, (struct sockaddr *)&client, &c);
    if (new_socket == INVALID_SOCKET)
    	puts("FAILED");
    puts("Got connection!");
    
    if ((recv_size = recv(new_socket, reply, 2000, 0)) == SOCKET_ERROR)
        printf("failed to recv %d", WSAGetLastError());
    reply[recv_size] = '\0';
    puts(reply);
    setData(reply); 
    puts("Copied to Clipboard");
    closesocket(s);
    WSACleanup();
	return 0;
}

void setData(char *val) {
	if (OpenClipboard(NULL) == 0)
        puts("No such luck!");<commit_msg>add a bunch of new things<commit_after>#include <stdio.h>
#include <windows.h>
#include <winuser.h>
#include <winsock2.h>
#pragma comment(lib, "ws2_32.lib")

void setData(char *val);

int main() {
	system("title SERVER");
	WSADATA wsa;
    SOCKET s, new_socket;
    int c, recv_size;
    struct sockaddr_in server, client;
    char reply[2000];

    puts("Starting Winsock..");
    if (WSAStartup(MAKEWORD(2,2), &wsa) != 0)
        puts("ERR, :(");
    puts("Started!");
    
    if((s = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
        puts("failed");
    puts("Socket init!");

    server.sin_addr.s_addr = INADDR_ANY;
    server.sin_family = AF_INET;
    server.sin_port = htons(8080);

    if (bind(s,(struct sockaddr *)&server, sizeof(server)) == SOCKET_ERROR)
    	puts("Bind failed");
    puts("SUCCESS");
	while(1) {
	    listen(s, 3);

	    c = sizeof(struct sockaddr_in);
	    new_socket = accept(s, (struct sockaddr *)&client, &c);
	    if (new_socket == INVALID_SOCKET);
	    	puts("FAILED");
	    puts("Got connection!");
	    if ((recv_size = recv(new_socket, reply, 2000, 0)) == SOCKET_ERROR)
	        printf("failed to recv %d", WSAGetLastError());
	    reply[recv_size] = '\0';
	    puts(reply);
	    setData(reply);
	    MessageBox(NULL,
                "New data copied to Clipboard from peer!",
                "Attention!",
                MB_OK |
                MB_ICONWARNING);
	}
    closesocket(s);
    WSACleanup();
    getchar();
	return 0;
}

void setData(char *val) {
	if (OpenClipboard(NULL) == 0)
        puts("No such luck!");
{'fraction_non_alphanumeric': 0.16399590862598024, 'fraction_numerical': 0.017388339584043642, 'mean_word_length': 3.1265822784810124, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6364156', 'n_tokens_mistral': 1124, 'n_tokens_neox': 1086, 'n_words': 236}