rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")");
log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")");
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array; var fname=""; if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } log(LOG_INFO,"Reading Config: " + fname); var conf = new File(fname); if (conf.open("r")) { while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5]));
NLines.push(new NLine(arg[1],arg[2],arg[3], parse_nline_flags(arg[4]),arg[5]) );
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array; var fname=""; if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } log(LOG_INFO,"Reading Config: " + fname); var conf = new File(fname); if (conf.open("r")) { while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5])));
OLines.push(new OLine(arg[1],arg[2],arg[3], parse_oline_flags(arg[4]),parseInt(arg[5]) ));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array; var fname=""; if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } log(LOG_INFO,"Reading Config: " + fname); var conf = new File(fname); if (conf.open("r")) { while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5]));
YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]), parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5]));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array; var fname=""; if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } log(LOG_INFO,"Reading Config: " + fname); var conf = new File(fname); if (conf.open("r")) { while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
log ("WARNING! No config file found or unable to open. Proceeding with defaults.");
log ("WARNING! No config file found or unable to open." + " Proceeding with defaults.");
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array; HLines = new Array; ILines = new Array; KLines = new Array; NLines = new Array; OLines = new Array; PLines = new Array; QLines = new Array; ULines = new Array; diepass = ""; restartpass = ""; YLines = new Array; ZLines = new Array; var fname=""; if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } log(LOG_INFO,"Reading Config: " + fname); var conf = new File(fname); if (conf.open("r")) { while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log(LOG_WARNING,"!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5]));
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5])));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js
YLines[0] = new YLine(120,600,1,5050000);
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5])));
OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5])));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/676b0e584f59b15abf9a76f2142d9d94a1b1bfc5/ircd.js/clean/ircd.js
conf_line = conf.readln();
var conf_line = conf.readln();
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bdcf2d89c08a57e739262ded198c261af7f7b0f8/ircd.js/clean/ircd.js
arg = conf_line.split(":");
var arg = conf_line.split(":");
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bdcf2d89c08a57e739262ded198c261af7f7b0f8/ircd.js/clean/ircd.js
CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5]));
CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5])));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bdcf2d89c08a57e739262ded198c261af7f7b0f8/ircd.js/clean/ircd.js
kline_mask = create_ban_mask(arg[1],true);
var kline_mask = create_ban_mask(arg[1],true);
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bdcf2d89c08a57e739262ded198c261af7f7b0f8/ircd.js/clean/ircd.js
log("Reading " + fname);
log("Reading Config: " + fname);
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3])
if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3];
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5])
case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5]));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2])
case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K"));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")");
case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3];
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
} KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3])
case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5]));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5])
case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5]));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5])
case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2]));
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3])
case "U": if (!arg[1]) break; ULines.push(arg[1]);
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1])
case "#": case ";": default:
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
ULines.push(arg[1]); break; case "#": case ";": default: break;
}
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading " + fname); while (!conf.eof) { conf_line = conf.readln(); if (conf_line == null) break; arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "#": case ";": default: break; } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else {
if (config_filename && config_filename.length) { if(config_filename.indexOf('/')>=0 || config_filename.indexOf('\\')>=0) fname=config_filename; else fname=system.ctrl_dir + config_filename; } else {
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9effcbcac76d03f5baebaf13766d21ae15b5b7a1/ircd.js/buggy/ircd.js
log("Reading Config: " + fname);
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); HLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); PLines = new Array(); QLines = new Array(); ULines = new Array(); diepass = ""; restartpass = ""; YLines = new Array(); ZLines = new Array(); var fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } var conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { var conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { var arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "H": if (!arg[3]) break; HLines.push(new HLine(arg[1],arg[3])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; var kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; mline_port = parseInt(arg[4]); break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],parse_nline_flags(arg[4]),arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],parse_oline_flags(arg[4]),parseInt(arg[5]))); break; case "P": PLines.push(parseInt(arg[4])); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "X": diepass = arg[1]; restartpass = arg[2]; break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9effcbcac76d03f5baebaf13766d21ae15b5b7a1/ircd.js/buggy/ircd.js
case "X": diepass = arg[1]; restartpass = arg[2]; break;
function read_config_file() { Admin1 = ""; Admin2 = ""; Admin3 = ""; CLines = new Array(); ILines = new Array(); KLines = new Array(); NLines = new Array(); OLines = new Array(); QLines = new Array(); ULines = new Array(); YLines = new Array(); ZLines = new Array(); fname=""; if (config_filename && config_filename.length) fname=system.ctrl_dir + config_filename; else { fname=system.ctrl_dir + "ircd." + system.local_host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd." + system.host_name + ".conf"; if(!file_exists(fname)) fname=system.ctrl_dir + "ircd.conf"; } conf = new File(fname); if (conf.open("r")) { log("Reading Config: " + fname); while (!conf.eof) { conf_line = conf.readln(); if ((conf_line != null) && conf_line.match("[:]")) { arg = conf_line.split(":"); for(argument in arg) { arg[argument]=arg[argument].replace( /SYSTEM_HOST_NAME/g,system.host_name); arg[argument]=arg[argument].replace( /SYSTEM_NAME/g,system.name); arg[argument]=arg[argument].replace( /SYSTEM_QWKID/g,system.qwk_id.toLowerCase()); arg[argument]=arg[argument].replace( /VERSION_NOTICE/g,system.version_notice); } switch (conf_line[0].toUpperCase()) { case "A": if (!arg[3]) break; Admin1 = arg[1]; Admin2 = arg[2]; Admin3 = arg[3]; break; case "C": if (!arg[5]) break; CLines.push(new CLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "I": if (!arg[5]) break; ILines.push(new ILine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "K": if (!arg[2]) break; kline_mask = create_ban_mask(arg[1],true); if (!kline_mask) { log("!WARNING Invalid K:Line (" + arg[1] + ")"); break; } KLines.push(new KLine(kline_mask,arg[2],"K")); break; case "M": if (!arg[3]) break; servername = arg[1]; serverdesc = arg[3]; break; case "N": if (!arg[5]) break; NLines.push(new NLine(arg[1],arg[2],arg[3],arg[4],arg[5])); break; case "O": if (!arg[5]) break; OLines.push(new OLine(arg[1],arg[2],arg[3],arg[4],parseInt(arg[5]))); break; case "Q": if (!arg[3]) break; QLines.push(new QLine(arg[3],arg[2])); break; case "U": if (!arg[1]) break; ULines.push(arg[1]); break; case "Y": if (!arg[5]) break; YLines[parseInt(arg[1])] = new YLine(parseInt(arg[2]),parseInt(arg[3]),parseInt(arg[4]),parseInt(arg[5])); break; case "Z": if (!arg[2]) break; ZLines.push(new ZLine(arg[1],arg[2])); break; case "#": case ";": default: break; } } } conf.close(); } else { log ("WARNING! No config file found or unable to open. Proceeding with defaults."); } scan_for_klined_clients(); YLines[0] = new YLine(120,600,1,5050000); // default irc class}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9391ec6e3acaecf7a3a4e48b48d6dfa93b1b8c93/ircd.js/clean/ircd.js
printf("rsp: %s",rsp);
printf("rsp: %s\r\n",rsp);
function readln(str){ rsp = socket.readln(); if(debug) printf("rsp: %s",rsp); return(rsp);}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a31d60a81cfd64393495f7051fe36bcd4af88685/newslink.js/buggy/newslink.js
}
},
readURL: function(url) { var stream = this.openURLInputStream(url); var content = stream.read(stream.available()); stream.close(); return content; }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/67155761870bd75989206a0cfcfbe89f190b5bef/file-utils.js/clean/src/content/file-utils.js
valueL += element.scrollLeft || 0;
valueL += element.scrollLeft || 0;
realOffset: function(element) { var valueT = 0, valueL = 0; do { valueT += element.scrollTop || 0; valueL += element.scrollLeft || 0; element = element.parentNode; } while (element); return [valueL, valueT]; },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js
NewWindow('/addTimerEvent?ref=' + ref + 'start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000');
NewWindow('/addTimerEvent?ref=' + ref + '&start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000');
function record(ref, start, duration, description, channel){ NewWindow('/addTimerEvent?ref=' + ref + 'start=' + start + '&duration=' + duration + '&descr=' + description + '&channel=' + channel, 'record', '200', '200', 'no', '5000');}
6281 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/4fcb538d83f13263a1a26efc25f16ac542086df4/epg.js/clean/tuxbox/enigma/data/htdocs/epg.js
this.recordPageLoad = function() {
this.recordPageLoad = function(elementOrWindow) {
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4e0a02c1c4c22cfcb651a4876c917b70f01b9d82/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow(true).location);
if (elementOrWindow.location && elementOrWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.location.href); } else if (elementOrWindow.contentWindow && elementOrWindow.contentWindow.location && elementOrWindow.contentWindow.location.href) { LOG.debug("Page load location=" + elementOrWindow.contentWindow.location.href); } else { LOG.debug("Page load location unknown, current window location=" + this.getCurrentWindow(true).location); }
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e); self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/4e0a02c1c4c22cfcb651a4876c917b70f01b9d82/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow().location);
LOG.debug("Page load location=" + self.getCurrentWindow().location);
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
self.pageLoadError = e; return;
self.pageLoadError = e; return;
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; }
this.recordPageLoad = function() { LOG.debug("Page load detected, location=" + self.getCurrentWindow().location); self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5a068b4300c7479e884b8a0c259ed1a39ef6496a/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load location=" + self.getCurrentWindow().location);
LOG.debug("Page load location=" + self.getCurrentWindow().location);
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
self.pageLoadError = e; return;
self.pageLoadError = e; return;
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow().location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected");
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c9ad9e534ac11b80c0d2046f424d1a94b3274d3f/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
LOG.error("Caught an exception attempting to log location; this should get noticed soon!"); LOG.exception(e);
this.recordPageLoad = function() { LOG.debug("Page load detected"); try { LOG.debug("Page load location=" + self.getCurrentWindow(true).location); } catch (e) { self.pageLoadError = e; return; } self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/476ccd842ee26de6c101e6581d2a0f5bb251d2f6/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
LOG.debug("Page load detected");
LOG.debug("Page load detected, location=" + self.getCurrentWindow().location);
this.recordPageLoad = function() { LOG.debug("Page load detected"); self.currentPage = null; self.newPageLoaded = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/1373e1377af777ef6f4d581ca503ac7a5b698db7/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
addCommand("assertTitle", window.document.title, null, window);
addCommand("assertTitle", exactMatchPattern(window.document.title), null, window);
function recordTitle(window) { if (this.options.recordAssertTitle == 'true' && this.testCase.commands.length > 0) { //setTimeout("addCommand", 200, "assertTitle", window.document.title, null, window); addCommand("assertTitle", window.document.title, null, window); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/56fc4f5f3917b78710f5a5ebd9ac6059585b5b7f/selenium-ide.js/clean/src/content/selenium-ide.js
debug("recoverQueryBuffers: start");
debug.print("recoverQueryBuffers: start");
function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); if (! buffersNode) { debug("recoverQueryBuffers: null buffersNode"); return; } buffersNode.innerHTML = bufCookie; }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("recoverQueryBuffers: " + bufCookie);
debug.print("recoverQueryBuffers: " + bufCookie);
function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); if (! buffersNode) { debug("recoverQueryBuffers: null buffersNode"); return; } buffersNode.innerHTML = bufCookie; }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("recoverQueryBuffers: null buffersNode");
debug.print("recoverQueryBuffers: null buffersNode");
function recoverQueryBuffers() { // given a list of buffers, import them debug("recoverQueryBuffers: start"); var bufCookie = getCookie(g_cq_buffers_cookie); if (bufCookie != null) { var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("recoverQueryBuffers: " + bufCookie); if (! buffersNode) { debug("recoverQueryBuffers: null buffersNode"); return; } buffersNode.innerHTML = bufCookie; }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("recoverQueryHistory: start");
debug.print("recoverQueryHistory: start");
function recoverQueryHistory() { // given a list of queries, put them in the history debug("recoverQueryHistory: start"); var histCookie = getCookie(g_cq_history_cookie); if (histCookie != null) { var listNode = getQueryHistoryListNode(true); if (! listNode) { debug("recoverQueryHistory: null listNode"); return; } listNode.innerHTML = histCookie; }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("recoverQueryHistory: null listNode");
debug.print("recoverQueryHistory: null listNode");
function recoverQueryHistory() { // given a list of queries, put them in the history debug("recoverQueryHistory: start"); var histCookie = getCookie(g_cq_history_cookie); if (histCookie != null) { var listNode = getQueryHistoryListNode(true); if (! listNode) { debug("recoverQueryHistory: null listNode"); return; } listNode.innerHTML = histCookie; }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
var iframe = document.createElement('iframe');
var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" class="redirect"></iframe>'; var iframe = div.firstChild;
function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } return true; } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/5a37a75966b0a33cc12f4b1db4344e7065d468ff/drupal.js/clean/misc/drupal.js
button.onfocus = function() {
button.onmouseover = button.onfocus = function() {
function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } return true; } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/5a37a75966b0a33cc12f4b1db4344e7065d468ff/drupal.js/clean/misc/drupal.js
button.onblur = function() {
button.onmouseout = button.onblur = function() {
function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } return true; } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/5a37a75966b0a33cc12f4b1db4344e7065d468ff/drupal.js/clean/misc/drupal.js
var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div);
var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe);
function redirectFormButton(uri, button, handler) { // Insert the iframe var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare vars for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/7f73c2bfb2ad78e8867ba25c1fb1e6848418f6da/drupal.js/clean/misc/drupal.js
return true;
function redirectFormButton(uri, button, handler) { // Insert the iframe var div = document.createElement('div'); div.innerHTML = '<iframe name="redirect-target" id="redirect-target" src="" style="width:0px;height:0px;border:0;"></iframe>'; button.parentNode.appendChild(div); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare vars for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/7f73c2bfb2ad78e8867ba25c1fb1e6848418f6da/drupal.js/clean/misc/drupal.js
response = response.replace(/[\f\n\r\t\v]/g, ' ');
function redirectFormButton(uri, button, handler) { // Make sure we have an iframe to target createIframe(); // Trap the button button.onmouseover = button.onfocus = function() { button.onclick = function() { // Prepare variables for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function () { var iframe = $('redirect-target'); // Restore form submission button.form.action = action; button.form.target = target; // Get response from iframe body try { response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML; if (window.opera) { // Opera-hack: it returns innerHTML sanitized. response = response.replace(/&quot;/g, '"'); } } catch (e) { response = null; } // Recreate the iframe: re-using an old iframe can sometimes cause browser bugs. createIframe(); response = parseJson(response); // Check response code if (response.status == 0) { handler.onerror(response.data); return; } handler.oncomplete(response.data); } return true; } } button.onmouseout = button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/2d1aeff2d1c6d0538ca44a9ed3b47a5481362f67/drupal.js/buggy/misc/drupal.js
function redirectFormButton(uri, button, handler) { // Insert the iframe var iframe = document.createElement('iframe'); with (iframe) { name = 'redirect-target'; setAttribute('name', 'redirect-target'); id = 'redirect-target'; } with (iframe.style) { position = 'absolute'; height = '1px'; width = '1px'; visibility = 'hidden'; } document.body.appendChild(iframe); // Trap the button button.onfocus = function() { button.onclick = function() { // Prepare vars for use in anonymous function. var button = this; var action = button.form.action; var target = button.form.target; // Redirect form submission this.form.action = uri; this.form.target = 'redirect-target'; handler.onsubmit(); // Set iframe handler for later window.iframeHandler = function (data) { // Restore form submission button.form.action = action; button.form.target = target; handler.oncomplete(data); } return true; } } button.onblur = function() { button.onclick = null; }}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/f6764cfbd8dcdedd05263711a41fcedb72dda2ab/drupal.js/clean/misc/drupal.js
redo : function() { var inst = this.instance; tinyMCE.execCommand("mceEndTyping"); if (this.undoIndex < (this.undoLevels.length-1)) { this.undoIndex++; tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content); inst.repaint();// if (this.undoIndex > 0)// inst.selection.moveToBookmark(this.undoLevels[this.undoIndex-1].bookmark); if (inst.settings.custom_undo_redo_restore_selection) inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark); // tinyMCE.debug("Redo - undo levels:" + this.undoLevels.length + ", undo index: " + this.undoIndex); } tinyMCE.triggerNodeChange(); }
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
redo : function() { var inst = this.instance; tinyMCE.execCommand("mceEndTyping"); if (this.undoIndex < (this.undoLevels.length-1)) { this.undoIndex++; tinyMCE.setInnerHTML(inst.getBody(), this.undoLevels[this.undoIndex].content); inst.repaint();// if (this.undoIndex > 0)// inst.selection.moveToBookmark(this.undoLevels[this.undoIndex-1].bookmark); if (inst.settings.custom_undo_redo_restore_selection) inst.selection.moveToBookmark(this.undoLevels[this.undoIndex].bookmark); // tinyMCE.debug("Redo - undo levels:" + this.undoLevels.length + ", undo index: " + this.undoIndex); } tinyMCE.triggerNodeChange(); }
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); }
Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem));
redraw: function() { //clear out previous layers this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array(); var containsOverlays = false; for( var i = 0; i < this.map.layers.length; i++) { var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; if (!baseLayer) { containsOverlays = true; } // only check a baselayer if it is *the* baselayer, check data // layers if they are visible var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); // create input element var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.layer = layer; // create span var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); } // create line break var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br); } // if no overlays, dont display the overlay label this.dataLbl.style.display = (containsOverlays) ? "" : "none"; return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/b2ab65df12d963bbce1c2bd2d14b84ac30fa1b93/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto";
labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "baseline";
redraw: function() { //clear out previous layers this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array(); var containsOverlays = false; for( var i = 0; i < this.map.layers.length; i++) { var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; if (!baseLayer) { containsOverlays = true; } // only check a baselayer if it is *the* baselayer, check data // layers if they are visible var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); // create input element var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.defaultChecked = checked; inputElem.layer = layer; inputElem.control = this; Event.observe(inputElem, "mouseup", this.onInputClick.bindAsEventListener(inputElem)); // create span var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; Event.observe(labelSpan, "click", this.onInputClick.bindAsEventListener(inputElem)); // create line break var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br); } // if no overlays, dont display the overlay label this.dataLbl.style.display = (containsOverlays) ? "" : "none"; return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/7a1ae31fc457e60dd8760e6770d824b32f89659d/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto";
labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "baseline";
redraw: function() { //clear out previous layers this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array(); var containsOverlays = false; for( var i = 0; i < this.map.layers.length; i++) { var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; if (!baseLayer) { containsOverlays = true; } // only check a baselayer if it is *the* baselayer, check data // layers if they are visible var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); // create input element var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.defaultChecked = checked; inputElem.layer = layer; inputElem.control = this; Event.observe(inputElem, "mouseup", this.onInputClick.bindAsEventListener(inputElem)); // create span var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; Event.observe(labelSpan, "click", this.onInputClick.bindAsEventListener(inputElem)); // create line break var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br); } // if no overlays, dont display the overlay label this.dataLbl.style.display = (containsOverlays) ? "" : "none"; return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/7a1ae31fc457e60dd8760e6770d824b32f89659d/LayerSwitcher.js/clean/lib/OpenLayers/Control/LayerSwitcher.js
this.div.innerHTML = ""; var visible = false;
this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array();
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]);
var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.layer = layer; var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br);
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); }
Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem));
redraw: function() { //clear out previous layers this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array(); var containsOverlays = false; for( var i = 0; i < this.map.layers.length; i++) { var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; if (!baseLayer) { containsOverlays = true; } // only check a baselayer if it is *the* baselayer, check data // layers if they are visible var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); // create input element var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.layer = layer; // create span var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; if (!(baseLayer && checked)) { Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); } // create line break var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br); } // if no overlays, dont display the overlay label this.dataLbl.style.display = (containsOverlays) ? "" : "none"; return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/b2ab65df12d963bbce1c2bd2d14b84ac30fa1b93/LayerSwitcher.js/buggy/lib/OpenLayers/Control/LayerSwitcher.js
this.div.innerHTML = ""; var visible = false;
this.baseLayersDiv.innerHTML = ""; this.baseLayerInputs = new Array(); this.dataLayersDiv.innerHTML = ""; this.dataLayerInputs = new Array();
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/clean/lib/OpenLayers/Control/LayerSwitcher.js
if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]);
var layer = this.map.layers[i]; var baseLayer = layer.isBaseLayer; var checked = (baseLayer) ? (layer == this.map.baseLayer) : layer.getVisibility(); var inputElem = document.createElement("input"); inputElem.id = "input_" + layer.name; inputElem.name = (baseLayer) ? "baseLayers" : layer.name; inputElem.type = (baseLayer) ? "radio" : "checkbox"; inputElem.value = layer.name; inputElem.checked = checked; inputElem.layer = layer; var labelSpan = document.createElement("span"); labelSpan.innerHTML = layer.name; labelSpan.style.verticalAlign = (baseLayer) ? "bottom" : "auto"; Event.observe(labelSpan, "click", this.onLabelClick.bindAsEventListener(inputElem)); var br = document.createElement("br"); var groupArray = (baseLayer) ? this.baseLayerInputs : this.dataLayerInputs; groupArray.push(inputElem); var groupDiv = (baseLayer) ? this.baseLayersDiv : this.dataLayersDiv; groupDiv.appendChild(inputElem); groupDiv.appendChild(labelSpan); groupDiv.appendChild(br);
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/clean/lib/OpenLayers/Control/LayerSwitcher.js
redraw: function() { //clear out previous incarnation of LayerSwitcher tabs this.div.innerHTML = ""; var visible = false; for( var i = 0; i < this.map.layers.length; i++) { if (visible && this.mode == "radio") { this.map.layers[i].setVisibility(false); } else { visible = this.map.layers[i].getVisibility(); } this.addTab(this.map.layers[i]); } return this.div; },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/f3a072b151fd0fb48097965647921f2ea0396651/LayerSwitcher.js/clean/lib/OpenLayers/Control/LayerSwitcher.js
if (this.current == 0) { debug.print(label + "displaying buffers"); this.buffersTitle.className = "buffer-tab-active"; this.historyTitle.className = "buffer-tab"; Element.show(buffersNode); Element.hide(historyNode); return; } debug.print(label + "displaying history"); this.buffersTitle.className = "buffer-tab"; this.historyTitle.className = "buffer-tab-active";
this.refresh = function(n) { var label = "BufferTabsClass.refresh: "; debug.print(label + n + ", " + this.current); if (isNaN(n)) { return this.refresh(this.current); } this.current = null == n ? 0 : n; // focus on the textarea this.buffers.focus(); var buffersNode = this.buffers.labelList; var historyNode = this.history.node; // must ensure that buffers are visible for this to work. Element.show(buffersNode); Element.hide(historyNode); var bufferHeight = this.buffers.input.clientHeight; var bufferOffset = this.buffers.input.offsetTop; var bufferWidth = buffersNode.clientWidth; debug.print(label + "buffer width = " + buffersNode.clientWidth); // must ensure that history is visible for this to work. Element.hide(buffersNode); Element.show(historyNode); var historyOffset = historyNode.offsetTop; // match the textarea height var height = bufferHeight + bufferOffset - historyOffset; debug.print(label + "new height = " + height); historyNode.style.minHeight = height + "px"; // set the history and buffers to have the same width // this works with IE6 and gecko historyNode.style.width = bufferWidth + "px"; debug.print(label + "history width = " + historyNode.clientWidth); // simple for now: node 0 is buffer list, 1 is history // TODO move the instruction text too? if (this.current == 0) { debug.print(label + "displaying buffers"); // highlight the active tab this.buffersTitle.className = "buffer-tab-active"; this.historyTitle.className = "buffer-tab"; // hide and show the appropriate list Element.show(buffersNode); Element.hide(historyNode); return; } debug.print(label + "displaying history"); // highlight the active tab this.buffersTitle.className = "buffer-tab"; this.historyTitle.className = "buffer-tab-active"; // hide and show the appropriate list Element.hide(buffersNode); Element.show(historyNode); }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js
this.refresh = function(n) { var label = "BufferTabsClass.refresh: "; debug.print(label + n + ", " + this.current); if (isNaN(n)) { return this.refresh(this.current); } this.current = null == n ? 0 : n; // focus on the textarea this.buffers.focus(); var buffersNode = this.buffers.labelList; var historyNode = this.history.node; // simple for now: node 0 is buffer list, 1 is history // TODO move the instruction text too? if (this.current == 0) { debug.print(label + "displaying buffers"); // highlight the active tab this.buffersTitle.className = "buffer-tab-active accent-color"; this.historyTitle.className = "buffer-tab"; // hide and show the appropriate list Element.show(buffersNode); Element.hide(historyNode); return; } debug.print(label + "displaying history"); // highlight the active tab this.buffersTitle.className = "buffer-tab"; this.historyTitle.className = "buffer-tab-active accent-color"; // must ensure that buffers are visible for this to work. Element.show(buffersNode); Element.hide(historyNode); var bufferHeight = this.buffers.input.clientHeight; var bufferOffset = this.buffers.input.offsetTop; var bufferWidth = buffersNode.clientWidth; debug.print(label + "buffer width = " + buffersNode.clientWidth); // must ensure that history is visible for this to work. Element.hide(buffersNode); Element.show(historyNode); var historyOffset = historyNode.offsetTop; // match the textarea height var height = bufferHeight + bufferOffset - historyOffset; debug.print(label + "new height = " + height); historyNode.style.minHeight = height + "px"; // set the history and buffers to have the same width // this works with IE6 and gecko historyNode.style.width = bufferWidth + "px"; debug.print(label + "history width = " + historyNode.clientWidth); // hide and show the appropriate list Element.hide(buffersNode); Element.show(historyNode); }
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/95f89c0957a3426915b61066d1c0793d3f8f49db/query.js/buggy/query.js
refresh: function(length) {
refresh: function() {
refresh: function(length) { this.updateView(); },
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8559b7c3e1067cd32f5489bd7a35360a222901a0/sourceView.js/clean/src/content/sourceView.js
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } var theBuffer = getBuffer(); // remember the current caret position if (theBuffer.selectionStart) { g_cq_carets[g_cq_buffer_current] = theBuffer.selectionStart; debug.print("remembering buffer " + g_cq_buffer_current + " caret position " + g_cq_carets[i]); } // for gecko, handle disappearing-cursor weirdness? // https://bugzilla.mozilla.org/show_bug.cgi?id=215724 theBuffer.blur(); // hide current, to avoid flashing hide(theBuffer); g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; // show the current buffer only, and put the cursor there if (i == g_cq_buffer_current) { show(theBuffer); theBuffer.focus(); if (theBuffer.selectionStart) { if (g_cq_carets[i] == null) { g_cq_carets[i] = theBuffer.value.length; } debug.print("restoring caret position " + g_cq_carets[i]); theBuffer.selectionStart = g_cq_carets[i]; theBuffer.selectionEnd = g_cq_carets[i]; } setLineNumberStatus(); } else { hide(theBuffer); } } } // for buffers} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/4a2633599ca5757bb9f9b09e8a112efe67781fe2/cq.js/buggy/cq.js
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } var theBuffer = getBuffer(); // remember the current caret position if (theBuffer.selectionStart) { g_cq_carets[g_cq_buffer_current] = theBuffer.selectionStart; debug.print("remembering buffer " + g_cq_buffer_current + " caret position " + g_cq_carets[i]); } // for gecko, handle disappearing-cursor weirdness? // https://bugzilla.mozilla.org/show_bug.cgi?id=215724 theBuffer.blur(); // hide current, to avoid flashing hide(theBuffer); g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; // show the current buffer only, and put the cursor there if (i == g_cq_buffer_current) { show(theBuffer); theBuffer.focus(); if (theBuffer.selectionStart) { if (g_cq_carets[i] == null) { g_cq_carets[i] = theBuffer.value.length; } debug.print("restoring caret position " + g_cq_carets[i]); theBuffer.selectionStart = g_cq_carets[i]; theBuffer.selectionEnd = g_cq_carets[i]; } setLineNumberStatus(); } else { hide(theBuffer); } } } // for buffers} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/4a2633599ca5757bb9f9b09e8a112efe67781fe2/cq.js/buggy/cq.js
if (theBuffer.selectionStart) { if (g_cq_carets[i] == null) { g_cq_carets[i] = theBuffer.value.length; } debug.print("restoring caret position " + g_cq_carets[i]); theBuffer.selectionStart = g_cq_carets[i]; theBuffer.selectionEnd = g_cq_carets[i]; }
restoreCaretPosition(theBuffer, g_cq_carets[i]);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } var theBuffer = getBuffer(); // remember the current caret position if (theBuffer.selectionStart) { g_cq_carets[g_cq_buffer_current] = theBuffer.selectionStart; debug.print("remembering buffer " + g_cq_buffer_current + " caret position " + g_cq_carets[i]); } // for gecko, handle disappearing-cursor weirdness? // https://bugzilla.mozilla.org/show_bug.cgi?id=215724 theBuffer.blur(); // hide current, to avoid flashing hide(theBuffer); g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; // show the current buffer only, and put the cursor there if (i == g_cq_buffer_current) { show(theBuffer); theBuffer.focus(); if (theBuffer.selectionStart) { if (g_cq_carets[i] == null) { g_cq_carets[i] = theBuffer.value.length; } debug.print("restoring caret position " + g_cq_carets[i]); theBuffer.selectionStart = g_cq_carets[i]; theBuffer.selectionEnd = g_cq_carets[i]; } setLineNumberStatus(); } else { hide(theBuffer); } } } // for buffers} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/4a2633599ca5757bb9f9b09e8a112efe67781fe2/cq.js/buggy/cq.js
function refreshBufferList(n) {
function refreshBufferList(n, src) {
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; debug("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); } } // for buffers // show the current buffer only debug("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js
if (! n)
if (! n) {
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; debug("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); } } // for buffers // show the current buffer only debug("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js
debug("refreshBufferList: " + g_cq_buffer_current);
debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; debug("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); } } // for buffers // show the current buffer only debug("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js
debug("refreshBufferList: i = " + i + " of " + g_cq_buffers);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; debug("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); } } // for buffers // show the current buffer only debug("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js
debug("refreshBufferList: show " + g_cq_buffer_current);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; debug("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); } } // for buffers // show the current buffer only debug("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js
if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur;
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up onblur, onfocus, onclick handlers if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur; if (! theBuffer.onfocus) theBuffer.onfocus = textAreaFocus; if (! theBuffer.onclick) theBuffer.onclick = textAreaFocus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/081d9c507c7fe8dce4987711db1a59d3e5fff4ef/cq.js/buggy/cq.js
theBuffer.onfocus = textAreaFocus;
theBuffer.onfocus = setLineNumberStatus;
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up onblur, onfocus, onclick handlers if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur; if (! theBuffer.onfocus) theBuffer.onfocus = textAreaFocus; if (! theBuffer.onclick) theBuffer.onclick = textAreaFocus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/081d9c507c7fe8dce4987711db1a59d3e5fff4ef/cq.js/buggy/cq.js
theBuffer.onclick = textAreaFocus;
theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus;
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up onblur, onfocus, onclick handlers if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur; if (! theBuffer.onfocus) theBuffer.onfocus = textAreaFocus; if (! theBuffer.onclick) theBuffer.onclick = textAreaFocus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/081d9c507c7fe8dce4987711db1a59d3e5fff4ef/cq.js/buggy/cq.js
removeChildNodes(labelsNode);
labelsNode.removeChildNodes();
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);
debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
hide(theBuffer);
theBuffer.hide();
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
show(getBuffer());
getBuffer().show();
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js
debug("refreshBufferList: " + g_cq_buffer_current);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; //alert("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //alert("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { //alert("refreshBufferList: i = " + i + " fontFamily = " + theBuffer.style.fontFamily); writeBufferLabel(i); hide(theBuffer); } } // for buffers // show the current buffer only //alert("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
debug("refreshBufferList: i = " + i + " of " + g_cq_buffers);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; //alert("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //alert("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { //alert("refreshBufferList: i = " + i + " fontFamily = " + theBuffer.style.fontFamily); writeBufferLabel(i); hide(theBuffer); } } // for buffers // show the current buffer only //alert("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
writeBufferLabel(i);
writeBufferLabel(tableBody, i);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; //alert("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //alert("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { //alert("refreshBufferList: i = " + i + " fontFamily = " + theBuffer.style.fontFamily); writeBufferLabel(i); hide(theBuffer); } } // for buffers // show the current buffer only //alert("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
debug("refreshBufferList: show " + g_cq_buffer_current);
function refreshBufferList(n) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // 0 will return false, will set to 0: ok if (! n) n = 0; g_cq_buffer_current = n; //alert("refreshBufferList: " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //alert("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { //alert("refreshBufferList: i = " + i + " fontFamily = " + theBuffer.style.fontFamily); writeBufferLabel(i); hide(theBuffer); } } // for buffers // show the current buffer only //alert("refreshBufferList: show " + g_cq_buffer_current); show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up onblur, onfocus handlers if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur; if (! theBuffer.onfocus) theBuffer.onfocus = textAreaFocus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/11e761f817a6ee4df55686e1a237038fad231498/cq.js/buggy/cq.js
if (! theBuffer.onclick) theBuffer.onclick = textAreaFocus;
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer var theBuffer = null; var theParent = document.getElementById(g_cq_buffers_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); for (var i = 0; i < g_cq_buffers; i++) { //debug("refreshBufferList: i = " + i + " of " + g_cq_buffers); theBuffer = getBuffer(i); // not there? skip it if (theBuffer) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up onblur, onfocus handlers if (! theBuffer.onblur) theBuffer.onblur = textAreaBlur; if (! theBuffer.onfocus) theBuffer.onfocus = textAreaFocus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/11e761f817a6ee4df55686e1a237038fad231498/cq.js/buggy/cq.js
labelsNode.removeChildNodes();
removeChildNodes(labelsNode);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); labelsNode.removeChildNodes(); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); theBuffer.hide(); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there getBuffer().show(); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/6b355f08875fd342ed1dc304b04eaed9f1da1046/cq.js/buggy/cq.js
theBuffer.hide();
hide(theBuffer);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); labelsNode.removeChildNodes(); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); theBuffer.hide(); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there getBuffer().show(); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/6b355f08875fd342ed1dc304b04eaed9f1da1046/cq.js/buggy/cq.js
getBuffer().show();
show(getBuffer());
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); labelsNode.removeChildNodes(); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); theBuffer.hide(); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there getBuffer().show(); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/6b355f08875fd342ed1dc304b04eaed9f1da1046/cq.js/buggy/cq.js
debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);
debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/2a746c51cb453135daac5b466cc200a56d6f3d98/cq.js/clean/cq.js
var theBuffer = null;
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/2a746c51cb453135daac5b466cc200a56d6f3d98/cq.js/clean/cq.js
hide(theBuffer);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/2a746c51cb453135daac5b466cc200a56d6f3d98/cq.js/clean/cq.js
show(getBuffer()); focusQueryInput();
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug.print("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug.print("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/2a746c51cb453135daac5b466cc200a56d6f3d98/cq.js/clean/cq.js
var theParent = document.getElementById(g_cq_buffers_area_id);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d78133c63c6016418ecccff62bb2c65ed609c867/cq.js/clean/cq.js
var theParent = document.getElementById(g_cq_buffers_area_id);
function refreshBufferList(n, src) { // display only the current buffer (textarea) // show labels for each buffer // short-circuit if the buffer doesn't exist if (getBuffer(n) == null) return; // parent of all the textareas var theParent = document.getElementById(g_cq_buffers_area_id); // labels are stored in divs in a table cell var labelsNode = document.getElementById(g_cq_bufferlist_id); removeChildNodes(labelsNode); // create an explicit tbody for the DOM (Mozilla needs this) var tableBody = document.createElement('tbody'); labelsNode.appendChild(tableBody); // 0 will return false, will set to 0: ok if (n == null) { if (g_cq_buffer_current == null) { n = g_cq_buffer_current; } else { n = 0; } } g_cq_buffer_current = n; debug("refreshBufferList: from " + src + ", show " + g_cq_buffer_current); // childNodes.length will return some non-buffer elements, too! var theBuffer = null; for (var i = 0; i < theParent.childNodes.length; i++) { //debug("refreshBufferList: i = " + i + " of " + theParent.childNodes.length); theBuffer = getBuffer(i); // not there? skip it if (theBuffer != null) { writeBufferLabel(tableBody, i); hide(theBuffer); // set up handlers to update line-number display if (! theBuffer.onfocus) theBuffer.onfocus = setLineNumberStatus; if (! theBuffer.onclick) theBuffer.onclick = setLineNumberStatus; if (! theBuffer.onkeyup) theBuffer.onkeyup = setLineNumberStatus; } } // for buffers // show the current buffer only, and put the cursor there show(getBuffer()); focusQueryInput();} // refreshBufferList
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d78133c63c6016418ecccff62bb2c65ed609c867/cq.js/clean/cq.js
debug("refreshBufferTabs: " + n + ", " + g_cq_buffer_tabs_current);
debug.print("refreshBufferTabs: " + n + ", " + g_cq_buffer_tabs_current);
function refreshBufferTabs(n) { if (n == null || n == g_cq_buffer_tabs_current) return; debug("refreshBufferTabs: " + n + ", " + g_cq_buffer_tabs_current); g_cq_buffer_tabs_current = n; var tabsNode = document.getElementById(g_cq_buffer_tabs_node); if (tabsNode == null) { debug("refreshBufferTabs: null tabsNode"); return; } // check g_cq_buffer_tabs_current against each child span var buffersTitleNode = document.getElementById(g_cq_buffer_tabs_node + "-0"); var historyTitleNode = document.getElementById(g_cq_buffer_tabs_node + "-1"); if (!buffersTitleNode || ! historyTitleNode) { debug("refreshBufferTabs: null title node(s)"); return; } var buffersNode = document.getElementById(g_cq_bufferlist_id); if (! buffersNode) { debug("refreshBufferTabs: null buffersNode"); return; } var historyNode = document.getElementById(g_cq_history_node); if (! historyNode) { debug("refreshBufferTabs: null historyNode"); return; } // simple for now: node 0 is buffer list, 1 is history // TODO move the instruction text too? if (g_cq_buffer_tabs_current == 0) { debug("refreshBufferTabs: displaying buffer list"); // highlight the active tab buffersTitleNode.className = "buffer-tab-active"; historyTitleNode.className = "buffer-tab"; // hide and show the appropriate list show(buffersNode); hide(historyNode); } else { debug("refreshBufferTabs: displaying history"); // highlight the active tab buffersTitleNode.className = "buffer-tab"; historyTitleNode.className = "buffer-tab-active"; // match the buffer height, to reduce frame-redraw debug("resizeBufferTabs: " + buffersNode.offsetTop + ", " + buffersNode.offsetHeight); historyNode.height = buffersNode.offsetHeight; // hide and show the appropriate list hide(buffersNode); show(historyNode); }}
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js