<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>

#include <sys/ipc.h>
#include <sys/types.h>
#include <sys/msg.h>

#include "noteboard.h"

int main() {
  msgbuf buf;
  int msgqid;
  key_t key;
  
  key = MSGQUE_KEY;
  
  if((msgqid = msgget(key, 0644)) == -1) {
    perror("msgget");
    exit(1);
  }
  
  printf("**Ready to receive notes.\n");
  buf.note.mtype = 1;
  while(1){
    if(msgrcv(msgqid, &buf, sizeof(buf.note.text), 0, 0) == -1) {
      perror("msgrcv");
      exit(1);
    }
    printf("** \"%s\"\n** --from %d\n", buf.note.text, buf.note.sender);
  }
  
  return 0;
}<commit_msg>Update reader.c<commit_after>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>

#include <sys/ipc.h>
#include <sys/types.h>
#include <sys/msg.h>

#include "noteboard.h"

int main() {
  msgbuf buf;
  int msgqid;
  key_t key;
  
  key = MSGQUE_KEY;
  
  if((msgqid = msgget(key, 0644)) == -1) {
    perror("msgget");
    exit(1);
  }
  
  printf("**Ready to receive notes.\n");
  buf.mtype = 1;
  while(1){
    if(msgrcv(msgqid, &buf, sizeof(buf.note.text), 0, 0) == -1) {
      perror("msgrcv");
      exit(1);
    }
    printf("** \"%s\"\n** --from %d\n", buf.note.text, buf.note.sender);
  }
  
  return 0;
}
{'fraction_non_alphanumeric': 0.21456538762725136, 'fraction_numerical': 0.020360219263899765, 'mean_word_length': 2.8727272727272726, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '3182018', 'n_tokens_mistral': 588, 'n_tokens_neox': 568, 'n_words': 111}