<commit_before> 
int IRledPin =  13;    // LED connected to digital pin 13

// The setup() method runs once, when the sketch starts

void setup()   {                
  // initialize the IR digital pin as an output:
  pinMode(IRledPin, OUTPUT);      

  Serial.begin(9600);
}

void loop()                     
{
  byte inputCommand;
  
  if (Serial.available()) {
    Serial.println("Sending IR signal");
    inputCommand = Serial.read();
    Serial.println(inputCommand);
    switch (inputCommand) {
      case 117:
      Serial.write('0');
      SendOnCode();
      break;
      case 118:
      Serial.write('0');
      SendOnCode();
      break;
      case 119:
      Serial.write('1');
      SendChannelUpCode();
      break;
      case 120:
      Serial.write('2');
      SendChannelDownCode();
      break;
      case 121:
      Serial.write('3');
      SendVolUpCode();
      delay(5);
      SendVolUpCode();
      delay(3);
      SendVolUpCode();
      delay(3);
      SendVolUpCode();
      delay(3);
      SendVolUpCode();
      delay(3);
      SendVolUpCode();
      break;
      case 122:
      Serial.write('4');
      SendVolDownCode();
      delay(5);
      SendVolDownCode();
      delay(3);
      SendVolDownCode();
      delay(3);
      SendVolDownCode();
      delay(3);
      SendVolDownCode();
      delay(3);
      SendVolDownCode();
      break;
      case 123:
      Serial.write('5');
      SendChannel59Code();
      break;
    }

 // delay(5000);  // wait twenty seconds (10 seconds * 1000 milliseconds)
}
}

// This procedure sends a 38KHz pulse to the IRledPin 
// for a certain # of microseconds. We'll use this whenever we need to send codes
void pulseIR(long microsecs) {
  // we'll count down from the number of microseconds we are told to wait

  cli();  // this turns off any background interrupts

  while (microsecs > 0) {
    // 38 kHz is about 13 microseconds high and 13 microseconds low
   digitalWrite(IRledPin, HIGH);  // this takes about 3 microseconds to happen
   delayMicroseconds(10);         // hang out for 10 microseconds
   digitalWrite(IRledPin, LOW);   // this also takes about 3 microseconds
   delayMicroseconds(10);         // hang out for 10 microseconds
<commit_msg>I am stupid delay is in milliseconds not seconds facepalm<commit_after> 
int IRledPin =  13;    // LED connected to digital pin 13

// The setup() method runs once, when the sketch starts

void setup()   {                
  // initialize the IR digital pin as an output:
  pinMode(IRledPin, OUTPUT);      

  Serial.begin(9600);
}

void loop()                     
{
  byte inputCommand;
  
  if (Serial.available()) {
    Serial.println("Sending IR signal");
    inputCommand = Serial.read();
    Serial.println(inputCommand);
    switch (inputCommand) {
      case 117:
      Serial.write('0');
      SendOnCode();
      break;
      case 118:
      Serial.write('0');
      SendOnCode();
      break;
      case 119:
      Serial.write('1');
      SendChannelUpCode();
      break;
      case 120:
      Serial.write('2');
      SendChannelDownCode();
      break;
      case 121:
      Serial.write('3');
      SendVolUpCode();
      delay(2000);
      SendVolUpCode();
      delay(500);
      SendVolUpCode();
      delay(500);
      SendVolUpCode();
      delay(500);
      SendVolUpCode();
      delay(500);
      SendVolUpCode();
      break;
      case 122:
      Serial.write('4');
      SendVolDownCode();
      delay(2000);
      SendVolDownCode();
      delay(500);
      SendVolDownCode();
      delay(500);
      SendVolDownCode();
      delay(500);
      SendVolDownCode();
      delay(500);
      SendVolDownCode();
      break;
      case 123:
      Serial.write('5');
      SendChannel59Code();
      break;
    }

 // delay(5000);  // wait twenty seconds (10 seconds * 1000 milliseconds)
}
}

// This procedure sends a 38KHz pulse to the IRledPin 
// for a certain # of microseconds. We'll use this whenever we need to send codes
void pulseIR(long microsecs) {
  // we'll count down from the number of microseconds we are told to wait

  cli();  // this turns off any background interrupts

  while (microsecs > 0) {
    // 38 kHz is about 13 microseconds high and 13 microseconds low
   digitalWrite(IRledPin, HIGH);  // this takes about 3 microseconds to happen
   delayMicroseconds(10);         // hang out for 10 microseconds
   digitalWrite(IRledPin, LOW);   // this also takes about 3 microseconds
   delayMicroseconds(10);         // hang out for 10 microseconds

{'fraction_non_alphanumeric': 0.11120957022596367, 'fraction_numerical': 0.03898980948161276, 'mean_word_length': 2.238880918220947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6794099', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1309, 'n_words': 405}