<commit_before>#include <Adafruit_NeoPixel.h>


#define PIN 9
#define NUMPIX 72


Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIX, PIN, NEO_GRB + NEO_KHZ800);
int** ciroc;

void setup() {
  Serial.begin(9600);
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  //allocate the ciroc array
  ciroc=(int**)malloc(72*sizeof(int*));
  for(int i=0;i<72;i++){
    ciroc[i]=(int*)malloc(3*sizeof(int));
  }
  //set colors
  for(int i=0;i<10;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=255;
    ciroc[i][2]=255;
  }
  for(int i=10;i<16;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=0;
    ciroc[i][2]=0;
  }
  for(int i=16;i<21;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=0;
    ciroc[i][2]=255;
  }
  for(int i=21;i<26;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=255;
    ciroc[i][2]=0;
  }
  for(int i=26;i<36;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=165;
    ciroc[i][2]=0;
  }
  for(int i=36;i<55;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=0;
    ciroc[i][2]=0;
  }
  for(int i=55;i<60;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=215;
    ciroc[i][2]=0;
  }
  for(int i=60;i<65;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=255;
    ciroc[i][2]=0;
  }
  for(int i=65;i<72;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=0;
    ciroc[i][2]=255;
  }
}

int numpix=0;
int integerValue=0;
char incomingByte;
void center_vis(int integerValue, Adafruit_NeoPixel strip, int** ciroc) {     
  int center_val = 36;  
  int move = integerValue/2; 
    for(int i=center_val; i >= center_val-move && i>0; i--){ //select lights from center towards pos 0
      strip.setPixelColor(i,ciroc[i][0],ciroc[i][1],ciroc[i][2]);
    }
    for(int i=0; i<center_val-move; i++){ //set remaining lights from left end to black
      strip.setPixelColor(i,0,0,0);
    }
    // for(int i=center_val; i<= (center_val+move) && i<strip.numPixels(); i++){ //select lights from center towards numPixels()
    //   strip.setPixelColor(i,ciroc[i][0],ciroc[i][1],ciroc[i][2]);
    // }
    // for(int i=center_val + move; i<strip.numPixels(); i++){ //set lights up to numPixels() to black
    //   strip.setPixelColor(i,0,0,0);
    // }
    strip.show();
}

int gabe = 0;
void loop() {
//<<<<<<< HEAD
  if(Serial.available()){
    integerValue = 0;         // throw away previous integerValue
    while(1) {            // force into a loop until 'n' is received
      incomingByte = Serial.read();
      if (incomingByte == '\n') break;   // exit the while(1), we're done receiving
      if (incomingByte == -1) continue;  // if no characters are in the buffer read() returns -1
      integerValue *= 10;  // shift left 1 decimal place
      // convert ASCII to integer, add, and shift left 1 decimal place
      integerValue = ((incomingByte - 48) + integerValue);
    }
    if(gabe == 1)
    {
      for(int i=0;i<=integerValue;i++){
        strip.setPixelColor(i,ciroc[i][0],ciroc[i][1],ciroc[i][2]);
      }
      for(int i=integerValue;i<strip.numPixels();i++){
        strip.setPixelColor(i,0,0,0);<commit_msg>removed code not being used<commit_after>#include <Adafruit_NeoPixel.h>


#define PIN 9
#define NUMPIX 72


Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUMPIX, PIN, NEO_GRB + NEO_KHZ800);
int** ciroc;

void setup() {
  Serial.begin(9600);
  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  //allocate the ciroc array
  ciroc=(int**)malloc(72*sizeof(int*));
  for(int i=0;i<72;i++){
    ciroc[i]=(int*)malloc(3*sizeof(int));
  }
  //set colors
  for(int i=0;i<10;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=255;
    ciroc[i][2]=255;
  }
  for(int i=10;i<16;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=0;
    ciroc[i][2]=0;
  }
  for(int i=16;i<21;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=0;
    ciroc[i][2]=255;
  }
  for(int i=21;i<26;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=255;
    ciroc[i][2]=0;
  }
  for(int i=26;i<36;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=165;
    ciroc[i][2]=0;
  }
  for(int i=36;i<55;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=0;
    ciroc[i][2]=0;
  }
  for(int i=55;i<60;i++){
    ciroc[i][0]=255;
    ciroc[i][1]=215;
    ciroc[i][2]=0;
  }
  for(int i=60;i<65;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=255;
    ciroc[i][2]=0;
  }
  for(int i=65;i<72;i++){
    ciroc[i][0]=0;
    ciroc[i][1]=0;
    ciroc[i][2]=255;
  }
}

int numpix=0;
int integerValue=0;
char incomingByte;

int gabe = 0;
void loop() {
//<<<<<<< HEAD
  if(Serial.available()){
    integerValue = 0;         // throw away previous integerValue
    while(1) {            // force into a loop until 'n' is received
      incomingByte = Serial.read();
      if (incomingByte == '\n') break;   // exit the while(1), we're done receiving
      if (incomingByte == -1) continue;  // if no characters are in the buffer read() returns -1
      integerValue *= 10;  // shift left 1 decimal place
      // convert ASCII to integer, add, and shift left 1 decimal place
      integerValue = ((incomingByte - 48) + integerValue);
    }
    if(gabe == 1)
    {
      for(int i=0;i<=integerValue;i++){
        strip.setPixelColor(i,ciroc[i][0],ciroc[i][1],ciroc[i][2]);
      }
      for(int i=integerValue;i<strip.numPixels();i++){
        strip.setPixelColor(i,0,0,0);
{'fraction_non_alphanumeric': 0.21119098503982903, 'fraction_numerical': 0.06294929084903828, 'mean_word_length': 3.1717990275526744, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 7, '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': '1163778', 'n_tokens_mistral': 2386, 'n_tokens_neox': 2168, 'n_words': 400}