<commit_before>#include <stdio.h>
#include <stdint.h>

#include "ramdis.h"

int main(int argc, char* argv[]) {
  printf("Ramdis Client Test\n");
  printf("Connecting to %s\n", argv[1]);
  void* context = connect(argv[1]); 
  ping(context, "Hi Ramdis!");
  return 0;
}<commit_msg>Simple client to test GET and SET.<commit_after>#include <stdio.h>
#include <stdint.h>
#include <string.h>

#include "ramdis.h"

int main(int argc, char* argv[]) {
  printf("Ramdis Client Test\n");
  printf("Connecting to %s\n", argv[1]);
  void* context = connect(argv[1]); 

  Object key;
  key.data = "<NAME>";
  key.len = strlen(key.data)+1;
  Object value;
  value.data = "Age: 28, Occupation: lawyer, Trophies: 4";
  value.len = strlen(value.data)+1;
  set(context, &key, &value);

  Object* obj = get(context, &key);
  printf("key/value: (%s) : (%s)\n", (char*)key.data, (char*)obj->data);

  freeObject(obj);

  disconnect(context);
  return 0;
}
{'fraction_non_alphanumeric': 0.1982851018220793, 'fraction_numerical': 0.011789924973204717, 'mean_word_length': 4.461988304093567, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '4013423', 'n_tokens_mistral': 369, 'n_tokens_neox': 349, 'n_words': 88}