<commit_before>Cut.Loader.load(function(root, container) {

  Cut.Mouse.subscribe(root, container);

  root.viewbox(500, 300);

  var row = Cut.row(0.5).appendTo(root).pin("align", 0.5).spacing(1);
  
  var colors = [ "green", "blue", "purple", "red", "orange", "yellow" ];
  for (var i = 0; i < colors.length; i++) {
    var color = colors[i];
    
    Cut.image("color:" + color).appendTo(row)
      .on(Cut.Mouse.CLICK, function(ev, point) {
        this.tween().clear().pin({
          scaleX : Cut.Math.random(0.8, 1.6),
          scaleY : Cut.Math.random(0.8, 1.6)
        });
        return true;
      });
  }

});

Cut.addTexture({
  name : "color",
  imagePath : "colors.png",
  cutouts : [
    { name : "red",    x : 0,   y : 0, width : 30, height : 30 },
    { name : "purple", x : 30,  y : 0, width : 30, height : 30 },
    { name : "blue",   x : 60,  y : 0, width : 30, height : 30 },
    { name : "orange", x : 90,  y : 0, width : 30, height : 30 },
    { name : "yellow", x : 120, y : 0, width : 30, height : 30 },
    { name : "green",  x : 150, y : 0, width : 30, height : 30 }
  ]
});<commit_msg>update sample code<commit_after>// Create new app
Cut.Loader.load(function(root, container) {

  // Subscribe to Cut.Mouse
  Cut.Mouse.subscribe(root, container);

  // Set view box
  root.viewbox(500, 300);

  // Create an image node
  Cut.image("base:box").appendTo(row)
    // on mouse click on this node
    .on(Cut.Mouse.CLICK, function(ev, point) {
      // Tween scaleX/Y value of this node
      this.tween().clear().pin({
        scaleX : Math.random() + 0.5,
        scaleY : Math.random() + 0.5
      });
      return true;
    });

});

// Register an image texture
Cut.addTexture({
  name : "base",
  imagePath : "base.png",
  cutouts : [
    { name : "box", x : 0, y : 0, width : 30, height : 30 }
  ]
});
{'fraction_non_alphanumeric': 0.19083969465648856, 'fraction_numerical': 0.0430752453653217, 'mean_word_length': 2.36697247706422, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6231104', 'n_tokens_mistral': 742, 'n_tokens_neox': 665, 'n_words': 175}