<commit_before>int[][] balls = { {400,100,1,400,600,5},
                  {300,300,1,300,700,4},
                  {200,500,1,200,800,1},
                  {100,700,1,100,900,4},
                  {0,900,1,0,1000,1} };
void setup() {
  background(0);
  size(1000, 1000);  
  noFill();
  pixelDensity(2);
}

void draw() {
  background(0);
  drawElement();
}

void drawElement(){  
  
  for (int i = 0; i < balls.length; i++) {
    
    int x = balls[i][0];
    int y = balls[i][1];
    int d = balls[i][2];
    int s = balls[i][3];
    int l = balls[i][4];
    int speed = balls[i][5];
    
    if ( d == -1 && x == s ){
      d = 1;
    }
  
    if ( d == 1 && x == l ){
      d = -1;
    }
  
    x = x+1*d*speed;

    stroke(255);
    ellipse(x,y,100,100);
    point(x,y);
  }
}<commit_msg>got nested array circles moving<commit_after>int[][] balls = { {600,100,1,400,600,5},
                  {500,300,1,300,700,4},
                  {400,500,1,200,800,1},
                  {300,700,1,100,900,4},
                  {200,900,1,0,1000,1} };
void setup() {
  background(0);
  size(1000, 1000);  
  noFill();
  pixelDensity(2);
}

void draw() {
  background(0);
  drawElement();

}

void drawElement(){  
  
  for (int i = 0; i < balls.length; i++) {
    
    int x = balls[i][0];
    int y = balls[i][1];
    int d = balls[i][2];
    int s = balls[i][3];
    int l = balls[i][4];
    int speed = balls[i][5];
        
    if ( d == -1 && x == s ){
      balls[i][2] = 1;
    }
  
    if ( d == 1 && x == l ){
      balls[i][2] = -1;
    }
    
    balls[i][0] = x+1*d*speed;
    
    stroke(255);
    ellipse(x,y,100,100);
    point(x,y);

  }
}
{'fraction_non_alphanumeric': 0.21628189550425272, 'fraction_numerical': 0.12332928311057108, 'mean_word_length': 1.8445595854922279, 'pattern_counts': {'":': 0, '<': 5, '<?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': '927227', 'n_tokens_mistral': 805, 'n_tokens_neox': 685, 'n_words': 132}