<commit_before>goog.provide('utilities.Topping');

var toppingTypes = {
  pepperoni: {
    image: 'assets/toppings_pepperoni.png',
    chaining: function(levelData, i, j, k){
      
    }
    
  },
  
  mushroom: {
    image: 'assets/toppings_mushroom.png',
    chaining: function(levelData, i, j, k){
        this.toppingType = 'pepperoni';
        this.sprite.setFill(utilities.Topping('pepperoni').image);
      
        attackNeighbors(levelData, i, j, k);
    }
  },
  
  olive: {
    image: 'assets/toppings_olive.png',
    chaining: function(levelData, i, j, k){
      
    }
  },
  
  anchovy: {
    image: 'assets/toppings_anchovy.png',
    chaining: function(levelData, i, j, k){
      
    }
  }
  
  // bacon: 4,
  // buffaloChicken: 5,

};

utilities.Topping = function(type)
{
    return toppingTypes[type];
};

//dat local neighbor check
function attackNeighbors(levelData, i,j,k)
{
  var neighborList = levelData.neighbors(i,j,k);
                
  for(i=0; i<neighborList.length; i++){
    //console.log(neighborList);
    var target= levelData.get(neighborList[i].wedge, neighborList[i].row, neighborList[i].column);
    
    if(target.isOccupied)
      target.chaining(levelData,i,j,k);
  }
}


goog.exportSymbol('utilities.Topping',utilities.Topping);


/*
var attackNeighbors = function(i,j,k)
            {
                var neighborList = levelData.neighbors(i,j,k);
                
                for(i=0; i<neighborList.length; i++){
                  console.log(neighborList);
                  var target= levelData.get(neighborList[i].wedge, neighborList[i].row, neighborList[i].column);
                  
                  if(!target.isOccupied)
                    return;
                  
                  if(target.toppingType == 'mushroom'){
                    target.toppingType = 'pepperoni';
                    target.sprite.setFill(utilities.Topping('pepperoni').image);
                    attackNeighbors(neighborList[i].wedge, neighborList[i].row, neighborList[i].column);
                  }
                }
            }
            
attackNeighbors(i,j,k);

*/<commit_msg>Topping - (i,j,k) > (wedge, row, column)<commit_after>goog.provide('utilities.Topping');

var toppingTypes = {
  pepperoni: {
    image: 'assets/toppings_pepperoni.png',
    chaining: function(levelData, wedge, row, column){
      
    }
    
  },
  
  mushroom: {
    image: 'assets/toppings_mushroom.png',
    chaining: function(levelData, wedge, row, column){
        this.toppingType = 'pepperoni';
        this.sprite.setFill(utilities.Topping('pepperoni').image);
      
        attackNeighbors(levelData, wedge, row, column);
    }
  },
  
  olive: {
    image: 'assets/toppings_olive.png',
    chaining: function(levelData, wedge, row, column){
      
    }
  },
  
  anchovy: {
    image: 'assets/toppings_anchovy.png',
    chaining: function(levelData, wedge, row, column){
      
    }
  }
  
  // bacon: 4,
  // buffaloChicken: 5,

};

utilities.Topping = function(type)
{
    return toppingTypes[type];
};

//dat local neighbor check
function attackNeighbors(levelData, wedge,row,column)
{
  var neighborList = levelData.neighbors(wedge,row,column);
                
  for(i=0; i<neighborList.length; i++){
    //console.log(neighborList);
    var target= levelData.get(neighborList[i].wedge,, neighborList[i].row, neighborList[i].column);
    
    if(target.isOccupied)
      target.chaining(levelData,wedge,row,column);
  }
}


goog.exportSymbol('utilities.Topping',utilities.Topping);


/*
var attackNeighbors = function(wedge,row,column)
            {
                var neighborList = levelData.neighbors(wedge,row,column);
                
                for(i=0; i<neighborList.length; i++){
                  console.log(neighborList);
                  var target= levelData.get(neighborList[i].wedge,, neighborList[i].row, neighborList[i].column);
                  
                  if(!target.isOccupied)
                    return;
                  
                  if(target.toppingType == 'mushroom'){
                    target.toppingType = 'pepperoni';
                    target.sprite.setFill(utilities.Topping('pepperoni').image);
                    attackNeighbors(neighborList[i].wedge,, neighborList[i].row, neighborList[i].column);
                  }
                }
            }
            
attackNeighbors(wedge,row,column);

*/
{'fraction_non_alphanumeric': 0.13495123610796098, 'fraction_numerical': 0.0018144704014515763, 'mean_word_length': 2.163558106169297, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '1061982', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1422, 'n_words': 200}