rem: app.invokeAsync(null, function() { /* createTags(id, "Story"); createHubs(id, "Story"); createTags(id, "Image"); createHubs(id, "Image"); return; */  var max = root.size(); for (var i=1; i<=max; i+=1) { var site = root.get(i-1); app.logger.info("Tagging stories of site " + site._id + " ``" + site.alias + "'' (" + i + " of " + max + ")"); createTags(site._id, "Story"); createHubs(site._id, "Story"); createTags(site._id, "Image"); createHubs(site._id, "Image"); continue;  var smax = site.stories.size(); counter = 0; for (var n=0; n<smax; n+=1) { var story = site.stories.get(n); if (story.topic) {  story.tags.add(new TagJoin(story.topic, story, site, story.modifier || story.creator)); story.content.set("tags", story.topic); res.commit(); } } } }, [], -1); 
add: traverse(function() { var fpath = app.dir + "/../static/" + this.site_name + "/layouts/" + this.name + "/" + this["prototype"]; var file = new java.io.File(fpath); file.mkdirs(); file = new java.io.File(file, this.skin_name.replace(/\ println(file); file["delete"](); var fos = new java.io.FileOutputStream(file); var bos = new java.io.BufferedOutputStream(fos); var writer = new java.io.OutputStreamWriter(bos, "UTF-8"); writer.write(this.SKIN_SOURCE || ""); writer.close(); bos.close(); fos.close(); }); 
context:    app.invokeAsync(null, function() {      /* createTags(id, "Story");      createHubs(id, "Story");      createTags(id, "Image");      createHubs(id, "Image");      return; */      var max = root.size();      for (var i=1; i<=max; i+=1) {         var site = root.get(i-1); // Site.getById(11);         app.logger.info("Tagging stories of site " + site._id + " ``" +                site.alias + "'' (" + i + " of " + max + ")");         createTags(site._id, "Story");         createHubs(site._id, "Story");         createTags(site._id, "Image");         createHubs(site._id, "Image");         continue;         var smax = site.stories.size();         counter = 0;         for (var n=0; n<smax; n+=1) {            var story = site.stories.get(n);            if (story.topic) {               //app.logger.info("***** Tagging story " + (n+1) + " of " + smax);               story.tags.add(new TagJoin(story.topic, story, site,                      story.modifier || story.creator));               story.content.set("tags", story.topic);               res.commit();            }         }      }   }, [], -1);
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/2578fcd36f6afe81c2eb6139fe51d41c496bd131/Global.js/buggy/updater/Global/Global.js