<commit_before>// A small sketch to help test the gcode-sender without a real CNC machine.

void setup() {
  Serial.begin(9600);
  Serial.println("ok fake_gcode_intrepreter");
}

void loop() {
  if (Serial.available()) {
    if (Serial.read() == '\n') {
      delay(500);
      Serial.write("ok\n");
    }
    
    // TODO: validate gcode commands?
  }
}
<commit_msg>multi-line output for test arduino code<commit_after>// A small sketch to help test the gcode-sender without a real CNC machine.

void setup() {
  Serial.begin(9600);
  Serial.println("ok fake_gcode_intrepreter");
}

void loop() {
  if (Serial.available()) {
    char c = Serial.read();
    if (c == '\n') {
      delay(500);
      Serial.write("ok\n");
    } else if (c == '$') {
       Serial.write("helpful output\n");
       Serial.write("--------------\n");
       Serial.write("$  - this output\n");
       Serial.write("\\n - prints 'ok'\n");
    }
    
    // TODO: validate gcode commands?
  }
}

{'fraction_non_alphanumeric': 0.18209876543209877, 'fraction_numerical': 0.01440329218106996, 'mean_word_length': 2.475, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1213891', 'n_tokens_mistral': 335, 'n_tokens_neox': 327, 'n_words': 84}