<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include <sys/shm.h>
#include <sys/ipc.h>
#include "model.h"
#include "map.h"
#include "logic.h"

int moveKey = 273;
int turnKey = 274;
int procNextKey = 275;
int memdMove;
int memdTurn;
int memdProcNext;
net_move *move;
int *turn;
int *unsentMoves;
int totalPlayers;

void subserver( int socket_client, int pNum ) {
  int bytesRead;
  int b = write(socket_client, terrs, sizeof(territory)*43);
  printf("terrs is %lu B, wrote %d bytes\n", sizeof(territory)*43, b);
  while (1) {
    if (pNum == *turn && !unsentMoves) {
      bytesRead = read( socket_client, move, sizeof(net_move));
      *unsentMoves = totalPlayers;<commit_msg>problematic print<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <signal.h>
#include <sys/shm.h>
#include <sys/ipc.h>
#include "model.h"
#include "map.h"
#include "logic.h"

int moveKey = 273;
int turnKey = 274;
int procNextKey = 275;
int memdMove;
int memdTurn;
int memdProcNext;
net_move *move;
int *turn;
int *unsentMoves;
int totalPlayers;

void subserver( int socket_client, int pNum ) {
  int bytesRead;
  int b = write(socket_client, terrs, sizeof(territory)*43);
  //printf("terrs is %lu B, wrote %d bytes\n", sizeof(territory)*43, b);
  while (1) {
    if (pNum == *turn && !unsentMoves) {
      bytesRead = read( socket_client, move, sizeof(net_move));
      *unsentMoves = totalPlayers;
{'fraction_non_alphanumeric': 0.1562881562881563, 'fraction_numerical': 0.017094017094017096, 'mean_word_length': 4.77112676056338, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5921380', 'n_tokens_mistral': 675, 'n_tokens_neox': 632, 'n_words': 168}