<commit_before>int serverInit(){
  if (!manager.init())
    return 0;
  else
    return 1;
  // Defaults after init are 2.402 GHz (channel 2), 2Mbps, 0dBm
  }

 void checkMessages(){
    if (manager.available())
  {
    // Wait for a message addressed to us from the client
    uint8_t len = sizeof(buf);
    uint8_t from;
    if (manager.recvfromAck(buf, &len, &from))
    {
      Serial.print("got request from : 0x");
      Serial.print(from,HEX);
      Serial.print(": ");
      Serial.println((char*)buf);
      for (int i=0; i<sizeof(buf); i++){Serial.print(buf[i],DEC);Serial.print(",");}
      Serial.print("\r\n");
      String message="Hello back client " + String(from);
      uint8_t data[message.length()];
      message.toCharArray(data,message.length()+1);
      
      // Send a reply back to the originator client
      if (!manager.sendtoWait(data, message.length()+1, from))
        Serial.println("sendtoWait failed");
    }
  }
  
  }<commit_msg>updated readout on server side<commit_after>int serverInit(){
  if (!manager.init())
    return 0;
  else
    return 1;
  // Defaults after init are 2.402 GHz (channel 2), 2Mbps, 0dBm
  }

 void checkMessages(){
    if (manager.available())
  {
    // Wait for a message addressed to us from the client
    uint8_t len = sizeof(buf);
    uint8_t from;
    if (manager.recvfromAck(buf, &len, &from))
    {
  //    Serial.print("got request from : 0x");
      Serial.print(from,DEC);
      Serial.print(": ");
 //     Serial.println((char*)buf);
      for (int i=0; i<sizeof(buf); i++){Serial.print(buf[i],DEC);Serial.print(",");}
      Serial.print("\r\n");
      String message="Hello back client " + String(from);
      uint8_t data[message.length()];
      message.toCharArray(data,message.length()+1);
      
      // Send a reply back to the originator client
      if (!manager.sendtoWait(data, message.length()+1, from))
        Serial.println("sendtoWait failed");
    }
  }
  
  }
{'fraction_non_alphanumeric': 0.1585677749360614, 'fraction_numerical': 0.016368286445012786, 'mean_word_length': 2.827788649706458, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, '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': '811747', 'n_tokens_mistral': 666, 'n_tokens_neox': 639, 'n_words': 158}