rem:  var prefs = new HopObject(); prefs.tagline = null; prefs.discussions = 1; prefs.usercontrib = 0; prefs.archive = 1; prefs.days = 3;  var loc = root.getLocale(); prefs.language = loc.getLanguage(); prefs.country = loc.getCountry(); prefs.timezone = root.getTimeZone().getID(); prefs.longdateformat = "EEEE, dd. MMMM yyyy, h:mm a"; prefs.shortdateformat = "yyyy.MM.dd, HH:mm"; this.preferences_xml = Xml.writeToString(prefs); 
add: this.value({ name: data.name, title: data.title, created: now, creator: user, modified: now, modifier: user, email: user.value("email"), status: user.value("status") === User.TRUSTED ? "trusted" : "default", mode: Site.PRIVATE, tagline: "", webHookEnabled: false, commentMode: Comment.ONLINE, archiveMode: Site.ARCHIVE_ONLINE, pageMode: "days", pageSize: 3, language: locale.getLanguage(), country: locale.getCountry(), timeZone: root.getTimeZone().getID(), longDateFormat: "EEEE, dd. MMMM yyyy, h:mm a", shortDateFormat: "yyyy-MM-dd, HH:mm" });  
context: Site.prototype.constructor = function(title, alias, creator) {   this.title = title;   this.alias = alias;   this.creator = creator;   this.createtime = this.lastoffline = new Date();   this.email = creator.email;   this.online = 0;   this.blocked = 0;   this.trusted = creator.trusted;   this.enableping = 0;   // create initial preferences   var prefs = new HopObject();   prefs.tagline = null;   prefs.discussions = 1;   prefs.usercontrib = 0;   prefs.archive = 1;   prefs.days = 3;   // retrieve locale-object from root   var loc = root.getLocale();   prefs.language = loc.getLanguage();   prefs.country = loc.getCountry();   prefs.timezone = root.getTimeZone().getID();   prefs.longdateformat = "EEEE, dd. MMMM yyyy, h:mm a";   prefs.shortdateformat = "yyyy.MM.dd, HH:mm";   this.preferences_xml = Xml.writeToString(prefs);   return this;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/d46237ae5555045222f493137c5c51dbcd7b4033/Site.js/clean/code/Site/Site.js