<commit_before>#include "laser.cpp"

static const byte NUMBER_OF_LASERS = 26;
Laser* lasers[NUMBER_OF_LASERS];

void setup() {
  for (int i = 0; i = NUMBER_OF_LASERS; i++) {
    // set pins for lasers and sensors
    int sensorPin = i + 28; // this index may be wrong
    int laserPin = i + 2; // this one too
    pinMode(laserPin, OUTPUT);    
    pinMode(sensorPin, INPUT);
    digitalWrite(laserPin, HIGH);
    lasers[i] = new Laser(true, false, sensorPin, laserPin);
  }
  Serial.begin(9600);
}

void loop() {
  for(int i = 0 ; i = NUMBER_OF_LASERS; i++) {
    lasers[i]->isCrossed = digitalRead(lasers[i]->sensorPin) != HIGH;
    Serial.print(lasers[i]->isCrossed);
  }
}
<commit_msg>fix critical issue<commit_after>#include "laser.cpp"

static const byte NUMBER_OF_LASERS = 26;
Laser* lasers[NUMBER_OF_LASERS];

void setup() {
  Serial.begin(9600);
  for (int i = 0; i < NUMBER_OF_LASERS; i++) {
    // set pins for lasers and sensors
    int sensorPin = i + 29; // this index may be wrong
    int laserPin = i + 3; // this one too
    Serial.println(laserPin);
    pinMode(laserPin, OUTPUT);    
    pinMode(sensorPin, INPUT);
    digitalWrite(laserPin, HIGH);
    lasers[i] = new Laser(true, false, sensorPin, laserPin);
  }
}

void loop() {
  for(int i = 0; i < NUMBER_OF_LASERS; i++) {
    lasers[i]->isCrossed = digitalRead(lasers[i]->sensorPin) != HIGH;
    Serial.print(lasers[i]->isCrossed);
  }
  Serial.println();
}

{'fraction_non_alphanumeric': 0.1452513966480447, 'fraction_numerical': 0.015363128491620111, 'mean_word_length': 3.478125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3741746', 'n_tokens_mistral': 573, 'n_tokens_neox': 532, 'n_words': 134}