<commit_before>
App.Builder = function(width, height, depth) {
  this.width   = width;
  this.height  = height;
  this.depth   = depth;
  this.tiles   = new Array(depth);
  this.regions = new Array(depth);
  // create tiles & regions:
  for (var z=0; z<depth; z++) {
    this.tiles[z]   = this.generateLevel();
    this.regions[z] = new Array(width);
    for (var x=0; x<width; x++) {
      this.regions[z][x] = new Array(height);
      for (var y=0; y<height; y++) {
        this.regionx[z][x][y] = 0;
      }
    }
  }
  // setup & connect regions:
  for (var z=0; z<depth; z++) {
    this.setupRegions(z);
  }
  this.connectAllRegions();<commit_msg>comments<commit_after>
App.Builder = function(width, height, depth) {
  this.width   = width;
  this.height  = height;
  this.depth   = depth;
  this.tiles   = new Array(depth);
  this.regions = new Array(depth);
  // generate one level per depth/z:
  for (var z=0; z<depth; z++) {
    this.tiles[z]   = this.generateLevel();
    this.regions[z] = new Array(width);
    for (var x=0; x<width; x++) {
      this.regions[z][x] = new Array(height);
      for (var y=0; y<height; y++) {
        this.regionx[z][x][y] = 0;
      }
    }
  }
  // assign regions to groups each depth level:
  for (var z=0; z<depth; z++) {
    this.setupRegions(z);
  }
  // connect regions on different levels with stairs:
  this.connectAllRegions();
{'fraction_non_alphanumeric': 0.17258883248730963, 'fraction_numerical': 0.007251631617113851, 'mean_word_length': 2.791208791208791, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6756856', 'n_tokens_mistral': 518, 'n_tokens_neox': 509, 'n_words': 122}