rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
if (debugMode) { sendLogMessageToRClater(message, logLevel); }
function logToRc(message, logLevel) { //sendToRC(message, "logLevel=" + logLevel);}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/cd4ca8e4a183901b5fae2aff5175fe5707855627/selenium-seleneserunner.js/buggy/code/javascript/core/scripts/selenium-seleneserunner.js
sendToRC("logLevel=" + logLevel + ":" + message.replace(/[\n\r\015]/, " ") + "\n");
sendToRC("logLevel=" + logLevel + ":" + message.replace(/[\n\r\015]/g, " ") + "\n");
function logToRc(message, logLevel) { if (logLevel == null) { logLevel = "debug"; } if (debugMode) { sendToRC("logLevel=" + logLevel + ":" + message.replace(/[\n\r\015]/, " ") + "\n"); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/76a494a3a86a91358a61cf83f1a1dce87aa759a8/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
sendToRC("logLevel=" + logLevel + ":" + message + "\n");
sendLogMessageToRClater(message, logLevel);
function logToRc(message, logLevel) { if (debugMode) { sendToRC("logLevel=" + logLevel + ":" + message + "\n"); }}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a45590122265044fcacdd946fda9f4d780897b18/selenium-seleneserunner.js/clean/code/javascript/core/scripts/selenium-seleneserunner.js
function lookForToken(token) {
function lookForToken(token, persist) {
function lookForToken(token) { if (window.location.search.indexOf(token) != -1) { document.cookie = ("DataApplet="+token+"; path=/"); return true; } return (document.cookie.indexOf("DataApplet="+token) != -1);}
3753 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3753/82638a6970b44dcedfb93295b0a83ecf5c4382f9/data.js/clean/pspdash/Templates/data.js
document.cookie = ("DataApplet="+token+"; path=/");
var ckie = "DataApplet=" + token + "; path=/"; if (persist) { ckie = ckie + "; expires=Wednesday, 31-Dec-08 23:00:00 GMT"; } document.cookie = ckie;
function lookForToken(token) { if (window.location.search.indexOf(token) != -1) { document.cookie = ("DataApplet="+token+"; path=/"); return true; } return (document.cookie.indexOf("DataApplet="+token) != -1);}
3753 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3753/82638a6970b44dcedfb93295b0a83ecf5c4382f9/data.js/clean/pspdash/Templates/data.js
loop: function() { var timePos = new Date().getTime();
loop: function(timePos) {
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.startOn) { if(timePos >= this.finishOn) { this.cancel(); this.render(1.0); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } } if(!this.interval) this.interval = setInterval(this.loop.bind(this), 1000/this.options.fps); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cd20286092d311391869aa6031bdd86b5e047d0f/effects.js/clean/src/effects.js
if(!this.interval) this.interval = setInterval(this.loop.bind(this), 1000/this.options.fps);
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.startOn) { if(timePos >= this.finishOn) { this.cancel(); this.render(1.0); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } } if(!this.interval) this.interval = setInterval(this.loop.bind(this), 1000/this.options.fps); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/cd20286092d311391869aa6031bdd86b5e047d0f/effects.js/clean/src/effects.js
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.finishOn) { this.render(this.options.to); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return;
loop: function(timePos) { if(timePos >= this.startOn) { if(timePos >= this.finishOn) { this.render(1.0); this.cancel(); this.event('beforeFinish'); if(this.finish) this.finish(); this.event('afterFinish'); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; }
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.finishOn) { this.render(this.options.to); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } this.timeout = setTimeout(this.loop.bind(this), 10); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js
var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } this.timeout = setTimeout(this.loop.bind(this), 10);
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.finishOn) { this.render(this.options.to); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } this.timeout = setTimeout(this.loop.bind(this), 10); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js
this.render(this.options.to);
this.render(1.0);
loop: function() { var timePos = new Date().getTime(); if(timePos >= this.finishOn) { this.render(this.options.to); if(this.finish) this.finish(); if(this.options.afterFinish) this.options.afterFinish(this); return; } var pos = (timePos - this.startOn) / (this.finishOn - this.startOn); var frame = Math.round(pos * this.options.fps * this.options.duration); if(frame > this.currentFrame) { this.render(pos); this.currentFrame = frame; } this.timeout = setTimeout(this.loop.bind(this), 10); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/b62adddaf6f47d2b721ec8d476b77567baee1ba9/effects.js/clean/src/effects.js
var reName4 = /([^@]+)*@.*/
var reName4 = /([^@]+)@.*/
function mail_get_name(strIn) { var reName1 = /[^\"]*\"([^\"]*)\".*/ //quoted name var reName2 = /(\S[^<]+)\s+<.*/ //unquoted name var reName3 = /[^<]*<([^@>]+).*/ //first part of <email address> var reName4 = /([^@]+)*@.*/ //first part of email address if (reName1.test(strIn)) return strIn.replace(reName1,"$1"); if (reName2.test(strIn)) return strIn.replace(reName2,"$1"); if (reName3.test(strIn)) return strIn.replace(reName3,"$1"); if (reName4.test(strIn)) return strIn.replace(reName4,"$1"); return strIn; //original string}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/e655e5bc99dd3ae23b0e179b84e1882f1220e8b2/mailutil.js/buggy/load/mailutil.js
} while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined))
} while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined)
function main_left(){ do { if(mainbar.current==0) mainbar.current=mainbar.items.length; mainbar.current--; } while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined)) next_key=mainbar.items[mainbar.current].retval; if(next_key=='G' || next_key==';') next_key='';}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/423000dd1e3d520e62419d6cdeb7f99188c25460/lbshell.js/buggy/lbshell.js
} while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined))
} while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined)
function main_right(){ do { mainbar.current++; if(mainbar.current==mainbar.items.length) mainbar.current=0; } while(mainbar.items[mainbar.current].disabled || mainbar.items[mainbar.current].retval==undefined)) next_key=mainbar.items[mainbar.current].retval; if(next_key=='G' || next_key==';') next_key='';}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/423000dd1e3d520e62419d6cdeb7f99188c25460/lbshell.js/buggy/lbshell.js
this.hotkeys=KEY_DOWN+";";
this.hotkeys=KEY_DOWN+";"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Mainbar(){ /* ToDo: They all need this... feels like a bug to ME */ this.items=new Array(); this.direction=1; this.xpos=2; this.ypos=1; this.hotkeys=KEY_DOWN+";"; this.add("|File","F",undefined,undefined,undefined,user.compare_ars("REST T")); this.add("|Messages","M"); this.add("|Email","E",undefined,undefined,undefined,user.compare_ars("REST SE")); this.add("|Chat","C",undefined,undefined,undefined,user.compare_ars("REST C")); this.add("|Settings","S"); this.add("E|xternals","x",undefined,undefined,undefined,user.compare_ars("REST X")); this.add("|View","V"); this.add("|Goodbye","G"); this.add("Commands",";"); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/34f6c69cd3ce42ea1878ef314f794dabc773eb90/lbshell.js/clean/lbshell.js
win.user_parent = parent;
win.user_parent = (parent && parent != undefined) ? parent : false;
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = parent; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/85e974053073d7c6e820994093c18cf1fffe3fbd/hop-iwindow.js/buggy/share/hop-iwindow.js
win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) };
hop_add_event_listener( win.el_handle, "mousedown", function( event ) { hop_iwindow_drag( event, win ) } );
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = (parent && parent != undefined) ? parent : false; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js
win.el_resize_middle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, true ); };
hop_add_event_listener( win.el_resize_middle, "mousedown", function( event ) { hop_iwindow_resize( event, win, false, true ) } ); hop_add_event_listener( win.el_resize_right, "mousedown", function( event ) { hop_iwindow_resize( event, win, true, true ) } );
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = (parent && parent != undefined) ? parent : false; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js
win.el_resize_right.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, false ); };
hop_add_event_listener( win.el_resize_left, "mousedown", function( event ) { hop_iwindow_resize( event, win, false, false ) } );
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = (parent && parent != undefined) ? parent : false; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { if( event == undefined ) event = window.event; hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/25d9ce99298d54dd2c4ffab4a9109a8fbab2a981/hop-iwindow.js/clean/share/hop-iwindow.js
function make_hop_iwindow( id, class, parent ) {
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\ <TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\ </TABLE>"; win.innerHTML = "\ <TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\ </TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = parent; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, false ); }; return win; }
function make_hop_iwindow( id, class, parent ) {
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/737cbaf83d84c17cd17f1c4c7d6d6aaf1da87b7a/hop-iwindow.js/clean/share/hop-iwindow.js
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = parent; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d6084b08745dad0eb19b44957aabebface67a1ec/hop-iwindow.js/clean/share/hop-iwindow.js
if( event == undefined ) event = window.event;
function make_hop_iwindow( id, klass, parent ) { var win = document.createElement( "div" ); win.id = id; win.className = klass; win.name = "hop-iwindow"; var t = "\<TABLE id='" + id + "-main' class='hop-iwindow' \ cellpadding='0' cellspacing='0' border='0'>\ <TR>\ <TD class='hop-iwindow-top' valign='top'>\ <TABLE id='" + id + "-handle' class='hop-iwindow-handle' width='100%'\ cellpadding='0' cellspacing='0' border='0'>\ <TR class='hop-iwindow-handle'>\ <TD class='hop-iwindow-iconify' align='left' onclick='hop_iwindow_iconify( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-maximize' align='left' onclick='hop_iwindow_maximize( \"" + id + "\" )'>&nbsp;</TD>\ <TD class='hop-iwindow-up-title'>\ <TABLE class='hop-iwindow-title' width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD class='hop-iwindow-title-left'>&nbsp;</TD>\ <TD id='" + id + "-title' class='hop-iwindow-title-middle'>title</TD>\ <TD class='hop-iwindow-title-right'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD> \ <TD class='hop-iwindow-close' align='right' onclick='hop_iwindow_close( \"" + id + "\" )'>&nbsp;</TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-body'>\ <TD id='" + id + "-content' class='hop-iwindow-content' valign='top'>\ <TABLE class='hop-iwindow-body' width='100%' height='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-body' class='hop-iwindow-body' height='100%'></TD>\ </TR>\ </TABLE>\ </TD>\ </TR>\ <TR class='hop-iwindow-bottom'>\ <TD>\ <TABLE width='100%' border='0' cellspacing='0' cellpadding='0'>\ <TR>\ <TD id='" + id + "-resize-left' class='hop-iwindow-bottom-left'>&nbsp;</TD>\ <TD id='" + id + "-resize-middle' class='hop-iwindow-bottom-middle'>&nbsp;</TD>\ <TD id='" + id + "-resize-right' class='hop-iwindow-bottom-right'>&nbsp;</TD>\ </TR>\ </TABLE> \ </TD>\ </TR>\</TABLE>"; win.innerHTML = "\<TABLE class='hop-iwindow-shadow' cellspacing='0' cellpadding='0' border='0'>\ <TR>\ <TD class='hop-iwindow-shadow-nw' rowspan='2' colspan='2'>" + t + "</TD>\ <TD id='" + id + "-shadow-box' class='hop-iwindow-shadow-ne'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-e'>&nbsp;</TD>\ </TR>\ <TR>\ <TD class='hop-iwindow-shadow-sw'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-s'>&nbsp;</TD>\ <TD class='hop-iwindow-shadow-se'>&nbsp;</TD>\ </TR>\</TABLE>"; if( parent ) parent.appendChild( win ); else document.body.appendChild( win ); win.user_parent = parent; win.el_title = document.getElementById( id + "-title" ); win.el_handle = document.getElementById( id + "-title" ); win.el_resize_left = document.getElementById( id + "-resize-left" ); win.el_resize_middle = document.getElementById( id + "-resize-middle" ); win.el_resize_right = document.getElementById( id + "-resize-right" ); win.el_content = document.getElementById( id + "-content" ); win.el_body = document.getElementById( id + "-body" ); win.el_main = document.getElementById( id + "-main" ); win.el_shadow = win.childNodes[ 0 ]; win.el_shadow_box = document.getElementById( id + "-shadow-box" ); win.el_handle.onmousedown = function( event ) { hop_iwindow_drag( event, win ) }; win.el_resize_middle.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, true ); }; win.el_resize_right.onmousedown = function( event ) { hop_iwindow_resize( event, win, true, true ); }; win.el_resize_left.onmousedown = function( event ) { hop_iwindow_resize( event, win, false, false ); }; return win;}
4636 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4636/d9d6b2e3c521aa0e9b012cc36e10a59371fdfee5/hop-iwindow.js/buggy/share/hop-iwindow.js
while((nl[nl.length-1].text.length%8) {
while(nl[nl.length-1].text.length%8) {
function make_lines(str, attr, nl_is_hardcr){ nl=new Array(); var spos=0; var apos=0; thisattr=7; while(spos < str.length) { var done=false; nl[nl.length]=new Line; while(spos < str.length && !done) { if(apos < attr.length) { thisattr=ascii(attr.charAt(apos)); apos++; } switch(str.charAt(spos)) { case '\r': spos++; break; case '\x01': spos++; switch(str.charAt(spos).toUpperCase()) { case 'K': thisattr&=0xf8; break; case 'R': thisattr=(thisattr&0xf8)|RED; break; case 'G': thisattr=(thisattr&0xf8)|GREEN; break; case 'Y': thisattr=(thisattr&0xf8)|BROWN; break; case 'B': thisattr=(thisattr&0xf8)|BLUE; break; case 'M': thisattr=(thisattr&0xf8)|MAGENTA; break; case 'C': thisattr=(thisattr&0xf8)|CYAN; break; case 'W': thisattr=(thisattr&0xf8)|LIGHTGRAY; break; case '0': thisattr=(thisattr&0x8f); break; case '1': thisattr=(thisattr&0x8f)|(RED<<4); break; case '2': thisattr=(thisattr&0x8f)|(GREEN<<4); break; case '3': thisattr=(thisattr&0x8f)|(BROWN<<4); break; case '4': thisattr=(thisattr&0x8f)|(BLUE<<4); break; case '5': thisattr=(thisattr&0x8f)|(MAGENTA<<4); break; case '6': thisattr=(thisattr&0x8f)|(CYAN<<4); break; case '7': thisattr=(thisattr&0x8f)|(LIGHTGRAY<<4); break; case 'H': thisattr|=0x08; break; case 'I': thisattr|=0x80; break; case 'N': thisattr=7; break; case '\x01': /* ToDo: This needs to fall through to the wrapping stuff. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); break; } spos++; break; case '\n': spos++; done=true; if(nl_is_hardcr) nl[nl.length-1].hardcr=true; else { /* Deduce if this is a hard or soft CR as follows */ /* If the next char is a nl, or whitespace, it is hard. */ /* If there is room for the first word of the next line on this * line, it is hard */ /* Otherwise, it is soft. */ if(str.charAt(spos)==' ' || str.charAt(spos)=='\t') nl[nl.length-1].hardcr=true; else { var len; for(len=0; str.length>=len+spos && str.charAt(spos+len)!=' ' && str.charAt(spos+len,1)!='\t'; len++); if(nl[nl.length-1].text.length+len < 80) nl[nl.length-1].hardcr=true; } } break; case ' ': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; break; case '\t': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); while((nl[nl.length-1].text.length%8) { nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); } break; default: /* Printable char... may need to wrap */ if(nl[nl.length-1].text.length>79) { /* Need to have wrapped */ var offset; for(offset=nl[nl.length-1].text.length-1; offset>=0; offset--) { if(nl[nl.length-1].text.charAt(offset)!=' ' && nl[nl.length-1].text.charAt(offset)!='\t') { /* ToDo: Verify/test this... it's probobly wrong */ spos-=nl[nl.length-1].text.length-1-offset; spos--; break; } } if(offset==-1) { /* There were no spaces this line. */ nl[nl.length-1].kludged=true; spos--; } done=true; } else { nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; } }
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/265d8d3ebb39c7634ca01c8ea8368593ca47e03c/fseditor.js/clean/fseditor.js
} } return(nl); }
function make_lines(str, attr, nl_is_hardcr){ nl=new Array(); var spos=0; var apos=0; thisattr=7; while(spos < str.length) { var done=false; nl[nl.length]=new Line; while(spos < str.length && !done) { if(apos < attr.length) { thisattr=ascii(attr.charAt(apos)); apos++; } switch(str.charAt(spos)) { case '\r': spos++; break; case '\x01': spos++; switch(str.charAt(spos).toUpperCase()) { case 'K': thisattr&=0xf8; break; case 'R': thisattr=(thisattr&0xf8)|RED; break; case 'G': thisattr=(thisattr&0xf8)|GREEN; break; case 'Y': thisattr=(thisattr&0xf8)|BROWN; break; case 'B': thisattr=(thisattr&0xf8)|BLUE; break; case 'M': thisattr=(thisattr&0xf8)|MAGENTA; break; case 'C': thisattr=(thisattr&0xf8)|CYAN; break; case 'W': thisattr=(thisattr&0xf8)|LIGHTGRAY; break; case '0': thisattr=(thisattr&0x8f); break; case '1': thisattr=(thisattr&0x8f)|(RED<<4); break; case '2': thisattr=(thisattr&0x8f)|(GREEN<<4); break; case '3': thisattr=(thisattr&0x8f)|(BROWN<<4); break; case '4': thisattr=(thisattr&0x8f)|(BLUE<<4); break; case '5': thisattr=(thisattr&0x8f)|(MAGENTA<<4); break; case '6': thisattr=(thisattr&0x8f)|(CYAN<<4); break; case '7': thisattr=(thisattr&0x8f)|(LIGHTGRAY<<4); break; case 'H': thisattr|=0x08; break; case 'I': thisattr|=0x80; break; case 'N': thisattr=7; break; case '\x01': /* ToDo: This needs to fall through to the wrapping stuff. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); break; } spos++; break; case '\n': spos++; done=true; if(nl_is_hardcr) nl[nl.length-1].hardcr=true; else { /* Deduce if this is a hard or soft CR as follows */ /* If the next char is a nl, or whitespace, it is hard. */ /* If there is room for the first word of the next line on this * line, it is hard */ /* Otherwise, it is soft. */ if(str.charAt(spos)==' ' || str.charAt(spos)=='\t') nl[nl.length-1].hardcr=true; else { var len; for(len=0; str.length>=len+spos && str.charAt(spos+len)!=' ' && str.charAt(spos+len,1)!='\t'; len++); if(nl[nl.length-1].text.length+len < 80) nl[nl.length-1].hardcr=true; } } break; case ' ': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; break; case '\t': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); while((nl[nl.length-1].text.length%8) { nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); } break; default: /* Printable char... may need to wrap */ if(nl[nl.length-1].text.length>79) { /* Need to have wrapped */ var offset; for(offset=nl[nl.length-1].text.length-1; offset>=0; offset--) { if(nl[nl.length-1].text.charAt(offset)!=' ' && nl[nl.length-1].text.charAt(offset)!='\t') { /* ToDo: Verify/test this... it's probobly wrong */ spos-=nl[nl.length-1].text.length-1-offset; spos--; break; } } if(offset==-1) { /* There were no spaces this line. */ nl[nl.length-1].kludged=true; spos--; } done=true; } else { nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; } }
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/265d8d3ebb39c7634ca01c8ea8368593ca47e03c/fseditor.js/clean/fseditor.js
spos++;
function make_lines(str, attr, nl_is_hardcr){ nl=new Array(); var spos=0; var apos=0; thisattr=7; while(spos < str.length) { var done=false; nl[nl.length]=new Line; while(spos < str.length && !done) { if(apos < attr.length) { thisattr=ascii(attr.charAt(apos)); apos++; } switch(str.charAt(spos)) { case '\r': spos++; break; case '\x01': spos++; switch(str.charAt(spos).toUpperCase()) { case 'K': thisattr&=0xf8; break; case 'R': thisattr=(thisattr&0xf8)|RED; break; case 'G': thisattr=(thisattr&0xf8)|GREEN; break; case 'Y': thisattr=(thisattr&0xf8)|BROWN; break; case 'B': thisattr=(thisattr&0xf8)|BLUE; break; case 'M': thisattr=(thisattr&0xf8)|MAGENTA; break; case 'C': thisattr=(thisattr&0xf8)|CYAN; break; case 'W': thisattr=(thisattr&0xf8)|LIGHTGRAY; break; case '0': thisattr=(thisattr&0x8f); break; case '1': thisattr=(thisattr&0x8f)|(RED<<4); break; case '2': thisattr=(thisattr&0x8f)|(GREEN<<4); break; case '3': thisattr=(thisattr&0x8f)|(BROWN<<4); break; case '4': thisattr=(thisattr&0x8f)|(BLUE<<4); break; case '5': thisattr=(thisattr&0x8f)|(MAGENTA<<4); break; case '6': thisattr=(thisattr&0x8f)|(CYAN<<4); break; case '7': thisattr=(thisattr&0x8f)|(LIGHTGRAY<<4); break; case 'H': thisattr|=0x08; break; case 'I': thisattr|=0x80; break; case 'N': thisattr=7; break; case '\x01': /* ToDo: This needs to fall through to the wrapping stuff. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); break; } spos++; break; case '\n': spos++; done=true; if(nl_is_hardcr) nl[nl.length-1].hardcr=true; else { /* Deduce if this is a hard or soft CR as follows */ /* If the next char is a nl, or whitespace, it is hard. */ /* If there is room for the first word of the next line on this * line, it is hard */ /* Otherwise, it is soft. */ if(str.charAt(spos)==' ' || str.charAt(spos)=='\t') nl[nl.length-1].hardcr=true; else { var len; for(len=0; str.length>=len+spos && str.charAt(spos+len)!=' ' && str.charAt(spos+len,1)!='\t'; len++); if(nl[nl.length-1].text.length+len < 80) nl[nl.length-1].hardcr=true; } } break; case ' ': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; break; case '\t': /* Whitespace... never wrap here. */ nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); while(nl[nl.length-1].text.length%8) { nl[nl.length-1].text+=' '; nl[nl.length-1].attr+=ascii(thisattr); } break; default: /* Printable char... may need to wrap */ if(nl[nl.length-1].text.length>79) { /* Need to have wrapped */ var offset; for(offset=nl[nl.length-1].text.length-1; offset>=0; offset--) { if(nl[nl.length-1].text.charAt(offset)!=' ' && nl[nl.length-1].text.charAt(offset)!='\t') { /* ToDo: Verify/test this... it's probobly wrong */ spos-=nl[nl.length-1].text.length-1-offset; spos--; break; } } if(offset==-1) { /* There were no spaces this line. */ nl[nl.length-1].kludged=true; spos--; } done=true; } else { nl[nl.length-1].text+=str.charAt(spos); nl[nl.length-1].attr+=ascii(thisattr); spos++; } } } } return(nl);}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/6c0eaca1c558bd4ac391e23cfd6897b4442b8d83/fseditor.js/buggy/fseditor.js
if((!(thisattr&0x80) && lastattr&0x80) || (!(thisattr&0x08) && lastattr&0x08)) {
if(((!(thisattr&0x80)) && (lastattr&0x80)) || ((!(thisattr&0x08)) && (lastattr&0x08))) {
function make_strings(soft,embed_colour){ var i; var str=''; var attrs=''; /* ToDo: Do we want to explicitly init the attr if it's normal? */ var lastattr=7; var thisattr; for(i=0; i<line.length; i++) { if(embed_colour) { for(j=0;j<line[i].text.length;j++) { if((thisattr=ascii(line[i].attr.substr(j,1)))!=lastattr) { /* Disable HIGH and BLINK if required */ if((!(thisattr&0x80) && lastattr&0x80) || (!(thisattr&0x08) && lastattr&0x08)) { lastattr=7; str+='\x01N'; } if(thisattr&0x80 && (!lastattr&0x80)) /* Blink */ str+='\x01I'; if(thisattr&0x08 && (!lastattr&0x08)) /* High Intensity */ str+='\x01H'; if((thisattr&0x07) != (lastattr&0x07)) { switch(thisattr&0x07) { case BLACK: str+='\x01K'; break; case RED: str+='\x01R'; break; case GREEN: str+='\x01G'; break; case BROWN: str+='\x01Y'; break; case BLUE: str+='\x01B'; break; case MAGENTA: str+='\x01M'; break; case CYAN: str+='\x01C'; break; case WHITE: str+='\x01W'; break; } } if((thisattr&0x70) != (lastattr&0x70)) { switch((thisattr&0x70)>>4) { case BLACK: str+='\x010'; break; case RED: str+='\x011'; break; case GREEN: str+='\x012'; break; case BROWN: str+='\x013'; break; case BLUE: str+='\x014'; break; case MAGENTA: str+='\x015'; break; case CYAN: str+='\x016'; break; case WHITE: str+='\x017'; break; } } lastattr=thisattr; } str+=line[i].text.substr(j,1); } } else { str+=line[i].text; attrs+=line[i].attr; } if(soft || line[i].hardcr) { /* Trim whitespace from end */ str=str.replace(/(\s*)$/,function (str, spaces, offset, s) { if(!embed_colour) { /* Remove attributes for trimmed spaces */ attrs=attrs.substr(0,attrs.length-spaces.length); } return(''); }); str+='\r\n'; attrs+=attrs.substr(-1)+attrs.substr(-1); } } return(new Array(str,attrs));}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4feb357987699a30d21e959879afc99e2111a294/fseditor.js/buggy/fseditor.js
if(thisattr&0x80 && (!lastattr&0x80)) /* Blink */
if((thisattr&0x80) && (!(lastattr&0x80))) /* Blink */
function make_strings(soft,embed_colour){ var i; var str=''; var attrs=''; /* ToDo: Do we want to explicitly init the attr if it's normal? */ var lastattr=7; var thisattr; for(i=0; i<line.length; i++) { if(embed_colour) { for(j=0;j<line[i].text.length;j++) { if((thisattr=ascii(line[i].attr.substr(j,1)))!=lastattr) { /* Disable HIGH and BLINK if required */ if((!(thisattr&0x80) && lastattr&0x80) || (!(thisattr&0x08) && lastattr&0x08)) { lastattr=7; str+='\x01N'; } if(thisattr&0x80 && (!lastattr&0x80)) /* Blink */ str+='\x01I'; if(thisattr&0x08 && (!lastattr&0x08)) /* High Intensity */ str+='\x01H'; if((thisattr&0x07) != (lastattr&0x07)) { switch(thisattr&0x07) { case BLACK: str+='\x01K'; break; case RED: str+='\x01R'; break; case GREEN: str+='\x01G'; break; case BROWN: str+='\x01Y'; break; case BLUE: str+='\x01B'; break; case MAGENTA: str+='\x01M'; break; case CYAN: str+='\x01C'; break; case WHITE: str+='\x01W'; break; } } if((thisattr&0x70) != (lastattr&0x70)) { switch((thisattr&0x70)>>4) { case BLACK: str+='\x010'; break; case RED: str+='\x011'; break; case GREEN: str+='\x012'; break; case BROWN: str+='\x013'; break; case BLUE: str+='\x014'; break; case MAGENTA: str+='\x015'; break; case CYAN: str+='\x016'; break; case WHITE: str+='\x017'; break; } } lastattr=thisattr; } str+=line[i].text.substr(j,1); } } else { str+=line[i].text; attrs+=line[i].attr; } if(soft || line[i].hardcr) { /* Trim whitespace from end */ str=str.replace(/(\s*)$/,function (str, spaces, offset, s) { if(!embed_colour) { /* Remove attributes for trimmed spaces */ attrs=attrs.substr(0,attrs.length-spaces.length); } return(''); }); str+='\r\n'; attrs+=attrs.substr(-1)+attrs.substr(-1); } } return(new Array(str,attrs));}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4feb357987699a30d21e959879afc99e2111a294/fseditor.js/buggy/fseditor.js
if(thisattr&0x08 && (!lastattr&0x08)) /* High Intensity */
if((thisattr&0x08) && (!(lastattr&0x08))) /* High Intensity */
function make_strings(soft,embed_colour){ var i; var str=''; var attrs=''; /* ToDo: Do we want to explicitly init the attr if it's normal? */ var lastattr=7; var thisattr; for(i=0; i<line.length; i++) { if(embed_colour) { for(j=0;j<line[i].text.length;j++) { if((thisattr=ascii(line[i].attr.substr(j,1)))!=lastattr) { /* Disable HIGH and BLINK if required */ if((!(thisattr&0x80) && lastattr&0x80) || (!(thisattr&0x08) && lastattr&0x08)) { lastattr=7; str+='\x01N'; } if(thisattr&0x80 && (!lastattr&0x80)) /* Blink */ str+='\x01I'; if(thisattr&0x08 && (!lastattr&0x08)) /* High Intensity */ str+='\x01H'; if((thisattr&0x07) != (lastattr&0x07)) { switch(thisattr&0x07) { case BLACK: str+='\x01K'; break; case RED: str+='\x01R'; break; case GREEN: str+='\x01G'; break; case BROWN: str+='\x01Y'; break; case BLUE: str+='\x01B'; break; case MAGENTA: str+='\x01M'; break; case CYAN: str+='\x01C'; break; case WHITE: str+='\x01W'; break; } } if((thisattr&0x70) != (lastattr&0x70)) { switch((thisattr&0x70)>>4) { case BLACK: str+='\x010'; break; case RED: str+='\x011'; break; case GREEN: str+='\x012'; break; case BROWN: str+='\x013'; break; case BLUE: str+='\x014'; break; case MAGENTA: str+='\x015'; break; case CYAN: str+='\x016'; break; case WHITE: str+='\x017'; break; } } lastattr=thisattr; } str+=line[i].text.substr(j,1); } } else { str+=line[i].text; attrs+=line[i].attr; } if(soft || line[i].hardcr) { /* Trim whitespace from end */ str=str.replace(/(\s*)$/,function (str, spaces, offset, s) { if(!embed_colour) { /* Remove attributes for trimmed spaces */ attrs=attrs.substr(0,attrs.length-spaces.length); } return(''); }); str+='\r\n'; attrs+=attrs.substr(-1)+attrs.substr(-1); } } return(new Array(str,attrs));}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4feb357987699a30d21e959879afc99e2111a294/fseditor.js/buggy/fseditor.js
if (element._overflow) return;
if (element._overflow) return element;
makeClipping: function(element) { element = $(element); if (element._overflow) return; element._overflow = element.style.overflow || 'auto'; if ((Element.getStyle(element, 'overflow') || 'visible') != 'hidden') element.style.overflow = 'hidden'; return element; },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/e4fbd7ea1ad67665241c7a4b0836d999119110a3/prototype.js/clean/lib/prototype.js
return CONTEXT_PREFIX+'/'+PUBLICATION_ID+"/info-"+area+"/"+link+"?lenya.usecase=tab.overview";
return CONTEXT_PREFIX+'/'+PUBLICATION_ID+"/"+area+"/"+link+"?lenya.usecase=tab.overview";
var makeHref = function makeDefaultHref(area, link){ return CONTEXT_PREFIX+'/'+PUBLICATION_ID+"/info-"+area+"/"+link+"?lenya.usecase=tab.overview"; }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/557a10f847801104aeda788a600585527a89d6b2/tree.js/clean/src/webapp/lenya/resources/javascript/tree.js
if(Element.getStyle(element, 'position')=='static') {
var pos = Element.getStyle(element, 'position'); if(pos =='static' || !pos) {
Element.makePositioned = function(element) { element = $(element); if(Element.getStyle(element, 'position')=='static') { element._madePositioned = true; element.style.position = "relative"; // Opera returns the offset relative to the positioning context, when an element is position relative // but top and left have not been defined if (window.opera){ element.style.top = 0; element.style.left = 0; } }}
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/50a4f8657717d3be324fdb42e230d18e5a60c70f/util.js/buggy/src/util.js
if(Element.getStyle(element, 'position') == "")
if(Element.getStyle(element, 'position')=='static')
Element.makePositioned = function(element) { element = $(element); if(Element.getStyle(element, 'position') == "") element.style.position = "relative";}
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/61e30b5c5639eaadd361e3760b3245758eda7de2/effects.js/clean/src/effects.js
tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http:
tinyMCE.importPluginLanguagePack('table');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems AB',authorurl:'http:
tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_table.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstance:function(inst){if(tinyMCE.isGecko){var doc=inst.getDoc();tinyMCE.addEvent(doc,"mouseup",TinyMCE_TablePlugin._mouseDownHandler);}inst.tableRowClipboard=null;},getControlHTML:function(control_name){var controls=new Array(['table','table.gif','lang_table_desc','mceInsertTable',true],['delete_col','table_delete_col.gif','lang_table_delete_col_desc','mceTableDeleteCol'],['delete_row','table_delete_row.gif','lang_table_delete_row_desc','mceTableDeleteRow'],['col_after','table_insert_col_after.gif','lang_table_col_after_desc','mceTableInsertColAfter'],['col_before','table_insert_col_before.gif','lang_table_col_before_desc','mceTableInsertColBefore'],['row_after','table_insert_row_after.gif','lang_table_row_after_desc','mceTableInsertRowAfter'],['row_before','table_insert_row_before.gif','lang_table_row_before_desc','mceTableInsertRowBefore'],['row_props','table_row_props.gif','lang_table_row_desc','mceTableRowProps',true],['cell_props','table_cell_props.gif','lang_table_cell_desc','mceTableCellProps',true],['split_cells','table_split_cells.gif','lang_table_split_cells_desc','mceTableSplitCells',true],['merge_cells','table_merge_cells.gif','lang_table_merge_cells_desc','mceTableMergeCells',true]);for(var i=0;i<controls.length;i++){var but=controls[i];var cmd='tinyMCE.execInstanceCommand(\'{$editor_id}\',\''+but[3]+'\', '+(but.length>4?but[4]:false)+(but.length>5?', \''+but[5]+'\'':'')+');return false;';if(but[0]==control_name)return tinyMCE.getButtonHTML(control_name,but[2],'{$pluginurl}/images/'+but[1],but[3],(but.length>4?but[4]:false));}if(control_name=="tablecontrols"){var html="";html+=tinyMCE.getControlHTML("table");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_props");html+=tinyMCE.getControlHTML("cell_props");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("row_before");html+=tinyMCE.getControlHTML("row_after");html+=tinyMCE.getControlHTML("delete_row");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("col_before");html+=tinyMCE.getControlHTML("col_after");html+=tinyMCE.getControlHTML("delete_col");html+=tinyMCE.getControlHTML("separator");html+=tinyMCE.getControlHTML("split_cells");html+=tinyMCE.getControlHTML("merge_cells");return html;}return"";},execCommand:function(editor_id,element,command,user_interface,value){switch(command){case"mceInsertTable":case"mceTableRowProps":case"mceTableCellProps":case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":case"mceTableDelete":var inst=tinyMCE.getInstanceById(editor_id);inst.execCommand('mceBeginUndoLevel');TinyMCE_TablePlugin._doExecCommand(editor_id,element,command,user_interface,value);inst.execCommand('mceEndUndoLevel');return true;}return false;},handleNodeChange:function(editor_id,node,undo_index,undo_levels,visual_aid,any_selection){var colspan="1",rowspan="1";var inst=tinyMCE.getInstanceById(editor_id);tinyMCE.switchClass(editor_id+'_table','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_cell_props','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_row_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_before','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_col_after','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_split_cells','mceButtonDisabled');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonDisabled');if(tdElm=tinyMCE.getParentElement(node,"td,th")){tinyMCE.switchClass(editor_id+'_cell_props','mceButtonSelected');tinyMCE.switchClass(editor_id+'_row_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_row_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_row','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_before','mceButtonNormal');tinyMCE.switchClass(editor_id+'_col_after','mceButtonNormal');tinyMCE.switchClass(editor_id+'_delete_col','mceButtonNormal');colspan=tinyMCE.getAttrib(tdElm,"colspan");rowspan=tinyMCE.getAttrib(tdElm,"rowspan");colspan=colspan==""?"1":colspan;rowspan=rowspan==""?"1":rowspan;if(colspan!="1"||rowspan!="1")tinyMCE.switchClass(editor_id+'_split_cells','mceButtonNormal');}if(tinyMCE.getParentElement(node,"tr"))tinyMCE.switchClass(editor_id+'_row_props','mceButtonSelected');if(tinyMCE.getParentElement(node,"table")){tinyMCE.switchClass(editor_id+'_table','mceButtonSelected');tinyMCE.switchClass(editor_id+'_merge_cells','mceButtonNormal');}},_mouseDownHandler:function(e){var elm=tinyMCE.isMSIE?event.srcElement:e.target;var focusElm=tinyMCE.selectedInstance.getFocusElement();if(elm.nodeName=="BODY"&&(focusElm.nodeName=="TD"||focusElm.nodeName=="TH"||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TD")||(focusElm.parentNode&&focusElm.parentNode.nodeName=="TH"))){window.setTimeout(function(){var tableElm=tinyMCE.getParentElement(focusElm,"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);},10);}},_doExecCommand:function(editor_id,element,command,user_interface,value){var inst=tinyMCE.getInstanceById(editor_id);var focusElm=inst.getFocusElement();var trElm=tinyMCE.getParentElement(focusElm,"tr");var tdElm=tinyMCE.getParentElement(focusElm,"td,th");var tableElm=tinyMCE.getParentElement(focusElm,"table");var doc=inst.contentWindow.document;var tableBorder=tableElm?tableElm.getAttribute("border"):"";if(trElm&&tdElm==null)tdElm=trElm.cells[0];function inArray(ar,v){for(var i=0;i<ar.length;i++){if(ar[i].length>0&&inArray(ar[i],v))return true;if(ar[i]==v)return true;}return false;}function makeTD(){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";}function getColRowSpan(td){var colspan=tinyMCE.getAttrib(td,"colspan");var rowspan=tinyMCE.getAttrib(td,"rowspan");colspan=colspan==""?1:parseInt(colspan);rowspan=rowspan==""?1:parseInt(rowspan);return{colspan:colspan,rowspan:rowspan};}function getCellPos(grid,td){for(var y=0;y<grid.length;y++){for(var x=0;x<grid[y].length;x++){if(grid[y][x]==td)return{cellindex:x,rowindex:y};}}return null;}function getCell(grid,row,col){if(grid[row]&&grid[row][col])return grid[row][col];return null;}function getTableGrid(table){var grid=new Array();var rows=table.rows;for(var y=0;y<rows.length;y++){for(var x=0;x<rows[y].cells.length;x++){var td=rows[y].cells[x];var sd=getColRowSpan(td);for(xstart=x;grid[y]&&grid[y][xstart];xstart++);for(var y2=y;y2<y+sd['rowspan'];y2++){if(!grid[y2])grid[y2]=new Array();for(var x2=xstart;x2<xstart+sd['colspan'];x2++){grid[y2][x2]=td;}}}}return grid;}function trimRow(table,tr,td,new_tr){var grid=getTableGrid(table);var cpos=getCellPos(grid,td);if(new_tr.cells.length!=tr.childNodes.length){var cells=tr.childNodes;var lastElm=null;for(var x=0;td=getCell(grid,cpos.rowindex,x);x++){var remove=true;var sd=getColRowSpan(td);if(inArray(cells,td)){new_tr.childNodes[x]._delete=true;}else if((lastElm==null||td!=lastElm)&&sd.colspan>1){for(var i=x;i<x+td.colSpan;i++)new_tr.childNodes[i]._delete=true;}if((lastElm==null||td!=lastElm)&&sd.rowspan>1)td.rowSpan=sd.rowspan+1;lastElm=td;}deleteMarked(tableElm);}}function prevElm(node,name){while((node=node.previousSibling)!=null){if(node.nodeName==name)return node;}return null;}function nextElm(node,names){var namesAr=names.split(',');while((node=node.nextSibling)!=null){for(var i=0;i<namesAr.length;i++){if(node.nodeName.toLowerCase()==namesAr[i].toLowerCase())return node;}}return null;}function deleteMarked(tbl){if(tbl.rows==0)return;var tr=tbl.rows[0];do{var next=nextElm(tr,"TR");if(tr._delete){tr.parentNode.removeChild(tr);continue;}var td=tr.cells[0];if(td.cells>1){do{var nexttd=nextElm(td,"TD,TH");if(td._delete)td.parentNode.removeChild(td);}while((td=nexttd)!=null);}}while((tr=next)!=null);}function addRows(td_elm,tr_elm,rowspan){td_elm.rowSpan=1;var trNext=nextElm(tr_elm,"TR");for(var i=1;i<rowspan&&trNext;i++){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";if(tinyMCE.isMSIE)trNext.insertBefore(newTD,trNext.cells(td_elm.cellIndex));else trNext.insertBefore(newTD,trNext.cells[td_elm.cellIndex]);trNext=nextElm(trNext,"TR");}}function copyRow(doc,table,tr){var grid=getTableGrid(table);var newTR=tr.cloneNode(false);var cpos=getCellPos(grid,tr.cells[0]);var lastCell=null;var tableBorder=tinyMCE.getAttrib(table,"border");var tdElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){var newTD=null;if(lastCell!=tdElm){for(var i=0;i<tr.cells.length;i++){if(tdElm==tr.cells[i]){newTD=tdElm.cloneNode(true);break;}}}if(newTD==null){newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";}newTD.colSpan=1;newTD.rowSpan=1;newTR.appendChild(newTD);lastCell=tdElm;}return newTR;}switch(command){case"mceTableRowProps":if(trElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/row.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_rowprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_rowprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"});}return true;case"mceTableCellProps":if(tdElm==null)return true;if(user_interface){var template=new Array();template['file']='../../plugins/table/cell.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_cellprops_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_cellprops_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes"});}return true;case"mceInsertTable":if(user_interface){var template=new Array();template['file']='../../plugins/table/table.htm';template['width']=380;template['height']=295;template['width']+=tinyMCE.getLang('lang_table_table_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_table_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:value});}return true;case"mceTableDelete":var table=tinyMCE.getParentElement(inst.getFocusElement(),"table");if(table){table.parentNode.removeChild(table);inst.repaint();}return true;case"mceTableSplitCells":case"mceTableMergeCells":case"mceTableInsertRowBefore":case"mceTableInsertRowAfter":case"mceTableDeleteRow":case"mceTableInsertColBefore":case"mceTableInsertColAfter":case"mceTableDeleteCol":case"mceTableCutRow":case"mceTableCopyRow":case"mceTablePasteRowBefore":case"mceTablePasteRowAfter":if(!tableElm)return true;if(tableElm!=trElm.parentNode)tableElm=trElm.parentNode;if(tableElm&&trElm){switch(command){case"mceTableInsertRowBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD);}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm;}}trElm.parentNode.insertBefore(newTR,trElm);break;case"mceTableCutRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);inst.execCommand("mceTableDeleteRow");break;case"mceTableCopyRow":if(!trElm||!tdElm)return true;inst.tableRowClipboard=copyRow(doc,tableElm,trElm);break;case"mceTablePasteRowBefore":if(!trElm||!tdElm)return true;var newTR=inst.tableRowClipboard.cloneNode(true);var prevTR=prevElm(trElm,"TR");if(prevTR!=null)trimRow(tableElm,prevTR,prevTR.cells[0],newTR);trElm.parentNode.insertBefore(newTR,trElm);break;case"mceTablePasteRowAfter":if(!trElm||!tdElm)return true;var nextTR=nextElm(trElm,"TR");var newTR=inst.tableRowClipboard.cloneNode(true);trimRow(tableElm,trElm,tdElm,newTR);if(nextTR==null)trElm.parentNode.appendChild(newTR);else nextTR.parentNode.insertBefore(newTR,nextTR);break;case"mceTableInsertRowAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var newTR=doc.createElement("tr");var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['rowspan']==1){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";newTD.colSpan=tdElm.colSpan;newTR.appendChild(newTD);}else tdElm.rowSpan=sd['rowspan']+1;lastTDElm=tdElm;}}if(newTR.hasChildNodes()){var nextTR=nextElm(trElm,"TR");if(nextTR)nextTR.parentNode.insertBefore(newTR,nextTR);else tableElm.appendChild(newTR);}break;case"mceTableDeleteRow":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);if(grid.length==1){tableElm.parentNode.removeChild(tableElm);return true;}var cells=trElm.cells;var nextTR=nextElm(trElm,"TR");for(var x=0;x<cells.length;x++){if(cells[x].rowSpan>1){var newTD=cells[x].cloneNode(true);var sd=getColRowSpan(cells[x]);newTD.rowSpan=sd.rowspan-1;var nextTD=nextTR.cells[x];if(nextTD==null)nextTR.appendChild(newTD);else nextTR.insertBefore(newTD,nextTD);}}var lastTDElm=null;for(var x=0;tdElm=getCell(grid,cpos.rowindex,x);x++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd.rowspan>1){tdElm.rowSpan=sd.rowspan-1;}else{trElm=tdElm.parentNode;if(trElm.parentNode)trElm._delete=true;}lastTDElm=tdElm;}}deleteMarked(tableElm);cpos.rowindex--;if(cpos.rowindex<0)cpos.rowindex=0;inst.selection.selectNode(getCell(grid,cpos.rowindex,0),true,true);break;case"mceTableInsertColBefore":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML="&nbsp;";newTD.rowSpan=tdElm.rowSpan;tdElm.parentNode.insertBefore(newTD,tdElm);}else tdElm.colSpan++;lastTDElm=tdElm;}}break;case"mceTableInsertColAfter":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']==1){var newTD=doc.createElement(tdElm.nodeName);newTD.innerHTML="&nbsp;";newTD.rowSpan=tdElm.rowSpan;var nextTD=nextElm(tdElm,"TD,TH");if(nextTD==null)tdElm.parentNode.appendChild(newTD);else nextTD.parentNode.insertBefore(newTD,nextTD);}else tdElm.colSpan++;lastTDElm=tdElm;}}break;case"mceTableDeleteCol":if(!trElm||!tdElm)return true;var grid=getTableGrid(tableElm);var cpos=getCellPos(grid,tdElm);var lastTDElm=null;if(grid.length>1&&grid[0].length<=1){tableElm.parentNode.removeChild(tableElm);return true;}for(var y=0;tdElm=getCell(grid,y,cpos.cellindex);y++){if(tdElm!=lastTDElm){var sd=getColRowSpan(tdElm);if(sd['colspan']>1)tdElm.colSpan=sd['colspan']-1;else{if(tdElm.parentNode)tdElm.parentNode.removeChild(tdElm);}lastTDElm=tdElm;}}cpos.cellindex--;if(cpos.cellindex<0)cpos.cellindex=0;inst.selection.selectNode(getCell(grid,0,cpos.cellindex),true,true);break;case"mceTableSplitCells":if(!trElm||!tdElm)return true;var spandata=getColRowSpan(tdElm);var colspan=spandata["colspan"];var rowspan=spandata["rowspan"];if(colspan>1||rowspan>1){tdElm.colSpan=1;for(var i=1;i<colspan;i++){var newTD=doc.createElement("td");newTD.innerHTML="&nbsp;";trElm.insertBefore(newTD,nextElm(tdElm,"TD,TH"));if(rowspan>1)addRows(newTD,trElm,rowspan);}addRows(tdElm,trElm,rowspan);}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");break;case"mceTableMergeCells":var rows=new Array();var sel=inst.getSel();var grid=getTableGrid(tableElm);if(tinyMCE.isMSIE||sel.rangeCount==1){if(user_interface){var template=new Array();var sp=getColRowSpan(tdElm);template['file']='../../plugins/table/merge_cells.htm';template['width']=250;template['height']=105+(tinyMCE.isNS7?25:0);template['width']+=tinyMCE.getLang('lang_table_merge_cells_delta_width',0);template['height']+=tinyMCE.getLang('lang_table_merge_cells_delta_height',0);tinyMCE.openWindow(template,{editor_id:inst.editorId,inline:"yes",action:"update",numcols:sp.colspan,numrows:sp.rowspan});return true;}else{var numRows=parseInt(value['numrows']);var numCols=parseInt(value['numcols']);var cpos=getCellPos(grid,tdElm);if((""+numRows)=="NaN")numRows=1;if((""+numCols)=="NaN")numCols=1;var tRows=tableElm.rows;for(var y=cpos.rowindex;y<grid.length;y++){var rowCells=new Array();for(var x=cpos.cellindex;x<grid[y].length;x++){var td=getCell(grid,y,x);if(td&&!inArray(rows,td)&&!inArray(rowCells,td)){var cp=getCellPos(grid,td);if(cp.cellindex<cpos.cellindex+numCols&&cp.rowindex<cpos.rowindex+numRows)rowCells[rowCells.length]=td;}}if(rowCells.length>0)rows[rows.length]=rowCells;}}}else{var cells=new Array();var sel=inst.getSel();var lastTR=null;var curRow=null;var x1=-1,y1=-1,x2,y2;if(sel.rangeCount<2)return true;for(var i=0;i<sel.rangeCount;i++){var rng=sel.getRangeAt(i);var tdElm=rng.startContainer.childNodes[rng.startOffset];if(!tdElm)break;if(tdElm.nodeName=="TD")cells[cells.length]=tdElm;}var tRows=tableElm.rows;for(var y=0;y<tRows.length;y++){var rowCells=new Array();for(var x=0;x<tRows[y].cells.length;x++){var td=tRows[y].cells[x];for(var i=0;i<cells.length;i++){if(td==cells[i]){rowCells[rowCells.length]=td;}}}if(rowCells.length>0)rows[rows.length]=rowCells;}var curRow=new Array();var lastTR=null;for(var y=0;y<grid.length;y++){for(var x=0;x<grid[y].length;x++){grid[y][x]._selected=false;for(var i=0;i<cells.length;i++){if(grid[y][x]==cells[i]){if(x1==-1){x1=x;y1=y;}x2=x;y2=y;grid[y][x]._selected=true;}}}}for(var y=y1;y<=y2;y++){for(var x=x1;x<=x2;x++){if(!grid[y][x]._selected){alert("Invalid selection for merge.");return true;}}}}var rowSpan=1,colSpan=1;var lastRowSpan=-1;for(var y=0;y<rows.length;y++){var rowColSpan=0;for(var x=0;x<rows[y].length;x++){var sd=getColRowSpan(rows[y][x]);rowColSpan+=sd['colspan'];if(lastRowSpan!=-1&&sd['rowspan']!=lastRowSpan){alert("Invalid selection for merge.");return true;}lastRowSpan=sd['rowspan'];}if(rowColSpan>colSpan)colSpan=rowColSpan;lastRowSpan=-1;}var lastColSpan=-1;for(var x=0;x<rows[0].length;x++){var colRowSpan=0;for(var y=0;y<rows.length;y++){var sd=getColRowSpan(rows[y][x]);colRowSpan+=sd['rowspan'];if(lastColSpan!=-1&&sd['colspan']!=lastColSpan){alert("Invalid selection for merge.");return true;}lastColSpan=sd['colspan'];}if(colRowSpan>rowSpan)rowSpan=colRowSpan;lastColSpan=-1;}tdElm=rows[0][0];tdElm.rowSpan=rowSpan;tdElm.colSpan=colSpan;for(var y=0;y<rows.length;y++){for(var x=0;x<rows[y].length;x++){var html=rows[y][x].innerHTML;var chk=tinyMCE.regexpReplace(html,"[ \t\r\n]","");if(chk!="<br/>"&&chk!="<br>"&&chk!="&nbsp;"&&(x+y>0))tdElm.innerHTML+=html;if(rows[y][x]!=tdElm&&!rows[y][x]._deleted){var cpos=getCellPos(grid,rows[y][x]);var tr=rows[y][x].parentNode;tr.removeChild(rows[y][x]);rows[y][x]._deleted=true;if(!tr.hasChildNodes()){tr.parentNode.removeChild(tr);var lastCell=null;for(var x=0;cellElm=getCell(grid,cpos.rowindex,x);x++){if(cellElm!=lastCell&&cellElm.rowSpan>1)cellElm.rowSpan--;lastCell=cellElm;}if(tdElm.rowSpan>1)tdElm.rowSpan--;}}}}break;}tableElm=tinyMCE.getParentElement(inst.getFocusElement(),"table");tinyMCE.handleVisualAid(tableElm,true,tinyMCE.settings['visual'],tinyMCE.selectedInstance);tinyMCE.triggerNodeChange();inst.repaint();}return true;}return false;}};tinyMCE.addPlugin("table",TinyMCE_TablePlugin);
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/editor_plugin.js/buggy/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/editor_plugin.js
part.appendChild(document.createTextNode(init));
part.innerHTML = init;
function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range = []; if (typeof range_start != "number") part._range = range_start; else { for (var i = range_start; i <= range_end; ++i) { var txt; if (i < 10 && range_end >= 10) txt = '0' + i; else txt = '' + i; part._range[part._range.length] = txt; } } Calendar._add_evs(part); return part; };
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/buggy/branches/BRANCH_0_8_6/cacti/include/jscalendar/calendar.js
part.appendChild(document.createTextNode(init));
part.innerHTML = init;
function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range = []; if (typeof range_start != "number") part._range = range_start; else { for (var i = range_start; i <= range_end; ++i) { var txt; if (i < 10 && range_end >= 10) txt = '0' + i; else txt = '' + i; part._range[part._range.length] = txt; } } Calendar._add_evs(part); return part; };
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/8aafb027d457b746fd546c4a097b431e06b00849/calendar.js/clean/trunk/cacti/include/js/jscalendar/calendar.js
"resizable,centerscreen,modal"); }
"resizable,centerscreen,modal"); }
function manageMenuItemClicked() { window.openDialog("chrome://greasemonkey/content/manage.xul", "manager", "resizable,centerscreen,modal"); }
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/315119498beb3f038b2f331f4abecd4970a6a857/browser.js/clean/src/content/browser.js
cached.content = cached.content.replace(closes_re, rewrite_closes_fn);
var new_content = cached.content.replace(closes_re, rewrite_closes_fn); if (cached.content_type == 'text/plain') { cached.content = '<pre>' + new_content + '</pre>'; vs.plain = "0"; } else { cached.content = new_content; }
function mangle_deb_bugnumbers(cached, vs) { if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/) && !cached.uri.match(/changelog\.Debian/)) return true; var num_re = /([0-9]+)/g; var rewrite_closes_fn = function (str) { return str.replace(num_re, '<a href="http://bugs.debian.org/$1">$1</a>'); } /* Debian Policy Manual 4.4 footnote 16 */ var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi; cached.content = cached.content.replace(closes_re, rewrite_closes_fn); return true;}
2461 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2461/2e9d433402d44eafa1630e10760b2635a5d6072b/hooks.js/clean/contrib/smjs/hooks.js
cached.content = cached.content.replace(closes_re, rewrite_closes_fn);
var new_content = cached.content.replace(closes_re, rewrite_closes_fn); if (cached.content_type == 'text/plain') { cached.content = '<pre>' + new_content + '</pre>'; vs.plain = "0"; } else { cached.content = new_content; }
function mangle_deb_bugnumbers(cached, vs) { if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/) && !cached.uri.match(/changelog\.Debian/)) return true; var num_re = /([0-9]+)/g; var rewrite_closes_fn = function (str) { return str.replace(num_re, '<a href="http://bugs.debian.org/$1">$1</a>'); } /* Debian Policy Manual 4.4 footnote 16 */ var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi; cached.content = cached.content.replace(closes_re, rewrite_closes_fn); return true;}
2130 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2130/2e9d433402d44eafa1630e10760b2635a5d6072b/hooks.js/buggy/contrib/smjs/hooks.js
if (cached.content_type == 'text/plain') {
if (cached.type == 'text/plain') {
function mangle_deb_bugnumbers(cached, vs) { if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/) && !cached.uri.match(/changelog\.Debian/)) return true; var num_re = /([0-9]+)/g; var rewrite_closes_fn = function (str) { return str.replace(num_re, '<a href="http://bugs.debian.org/$1">$1</a>'); } /* Debian Policy Manual 4.4 footnote 16 */ var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi; var new_content = cached.content.replace(closes_re, rewrite_closes_fn); if (cached.content_type == 'text/plain') { cached.content = '<pre>' + new_content + '</pre>'; vs.plain = "0"; } else { cached.content = new_content; } return true;}
2130 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2130/8d91c501a6f02679723a00dc1e8ad6ddd883a64c/hooks.js/clean/contrib/smjs/hooks.js
if (cached.content_type == 'text/plain') {
if (cached.type == 'text/plain') {
function mangle_deb_bugnumbers(cached, vs) { if (!cached.uri.match(/^[a-z0-9]+:\/\/[a-z0-9A-Z.-]+debian\.org/) && !cached.uri.match(/changelog\.Debian/)) return true; var num_re = /([0-9]+)/g; var rewrite_closes_fn = function (str) { return str.replace(num_re, '<a href="http://bugs.debian.org/$1">$1</a>'); } /* Debian Policy Manual 4.4 footnote 16 */ var closes_re = /closes:\s*(?:bug)?\#?\s?\d+(?:,\s*(?:bug)?\#?\s?\d+)*/gi; var new_content = cached.content.replace(closes_re, rewrite_closes_fn); if (cached.content_type == 'text/plain') { cached.content = '<pre>' + new_content + '</pre>'; vs.plain = "0"; } else { cached.content = new_content; } return true;}
2461 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2461/8d91c501a6f02679723a00dc1e8ad6ddd883a64c/hooks.js/clean/contrib/smjs/hooks.js
Sortable._marker.style.zIndex = 'absolute';
mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; Sortable._marker.style.zIndex = 'absolute'; document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); } var offsets = Position.cumulativeOffset(dropon); Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; Sortable._marker.style.left = offsets[0] + 'px'; Element.show(Sortable._marker); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/da511d61a89ac202ae751b4db93e89d430866ab3/dragdrop.js/buggy/src/dragdrop.js
Sortable._marker = document.createElement('DIV');
Sortable._marker = $('dropmarker') || document.createElement('DIV');
mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); } var offsets = Position.cumulativeOffset(dropon); Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; Sortable._marker.style.left = offsets[0] + 'px'; Element.show(Sortable._marker); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/27843cc794ea572255b05d7eb65aaef3e9da252e/dragdrop.js/clean/src/dragdrop.js
Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px';
mark: function(dropon, position) { // mark on ghosting only var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return; if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.addClassName(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); } var offsets = Position.cumulativeOffset(dropon); Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; Sortable._marker.style.left = offsets[0] + 'px'; Element.show(Sortable._marker); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/82f05ba4cca87df8f3e362ed292d459529b1295d/dragdrop.js/clean/src/dragdrop.js
Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') if(sortable.overlap == 'horizontal') Sortable._marker.style.left = (offsets[0]+dropon.clientWidth) + 'px'; else Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px';
mark: function(dropon, position) { // mark on ghosting only var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return; if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.addClassName(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); } var offsets = Position.cumulativeOffset(dropon); Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; Sortable._marker.style.left = offsets[0] + 'px'; Element.show(Sortable._marker); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/82f05ba4cca87df8f3e362ed292d459529b1295d/dragdrop.js/clean/src/dragdrop.js
var sortable = Sortable.options(dropon.parentNode); if(sortable && !sortable.ghosting) return;
mark: function(dropon, position) { if(!Sortable._marker) { Sortable._marker = $('dropmarker') || document.createElement('DIV'); Element.hide(Sortable._marker); Element.Class.add(Sortable._marker, 'dropmarker'); Sortable._marker.style.position = 'absolute'; document.getElementsByTagName("body").item(0).appendChild(Sortable._marker); } var offsets = Position.cumulativeOffset(dropon); Sortable._marker.style.top = offsets[1] + 'px'; if(position=='after') Sortable._marker.style.top = (offsets[1]+dropon.clientHeight) + 'px'; Sortable._marker.style.left = offsets[0] + 'px'; Element.show(Sortable._marker); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/a4b6caf034e1f20e4517a9aee6de46727b624d9a/dragdrop.js/clean/src/dragdrop.js
this.getEntry(this.index).scrollIntoView(false);
markNext: function() { if(this.index < this.entryCount-1) this.index++ else this.index = 0; },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/70498f115e3022b441a0f2e34eaa65445f758f7f/controls.js/clean/src/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
this.getEntry(this.index).scrollIntoView(true);
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCount-1; },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/70498f115e3022b441a0f2e34eaa65445f758f7f/controls.js/clean/src/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/812b3a43c3a8a6efb4298c4118a3a6294a8a9830/controls.js/buggy/src/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/clean/railties/html/javascripts/controls.js
else this.index = this.entryCcount-1;
else this.index = this.entryCount-1;
markPrevious: function() { if(this.index > 0) this.index-- else this.index = this.entryCcount-1; },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/7d101d58400acaff232091485c8e140f0a37cbaf/controls.js/buggy/actionpack/lib/action_view/helpers/javascripts/controls.js
return mtchstr.match(final_mask);
return mtchstr.toUpperCase().match(final_mask.toUpperCase());
function match_irc_mask(mtchstr,mask) { final_mask="^"; mask=mask.replace(/[.]/g,"\\\."); mask=mask.replace(/[?]/g,"."); mask=mask.replace(/[*]/g,".*?"); final_mask=final_mask + mask + "$"; return mtchstr.match(final_mask);}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
return elements.select(selector.match.bind(selector));
return elements.select(selector.match.bind(selector)).collect(Element.extend);
matchElements: function(elements, expression) { var selector = new Selector(expression); return elements.select(selector.match.bind(selector)); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/5b4e6f2ec3060c014c75fcb350d82a0f1753e449/prototype.js/clean/lib/prototype.js
PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual); };
this.matches = function(actual) { return this.regexp.test(actual); };
PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/732ba676fd79b000d33b0b863900a6e4d545f2e0/selenium-api.js/buggy/code/javascript/selenium-api.js
PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual); };
this.matches = function(actual) { return this.regexp.test(actual); };
PatternMatcher.matches = function(pattern, actual) { return new PatternMatcher(pattern).matches(actual);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c23d8c75e575edee0609da00f3d91908b062e9b5/selenium-api.js/buggy/code/javascript/selenium-api.js
if (value >= (result || value))
if (result == undefined || value >= result)
max: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; }); return result; },
2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/prototype.js/clean/web/scripts/prototype.js
if (value >= (result || value))
if (result == undefined || value >= result)
max: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value >= (result || value)) result = value; }); return result; },
2019 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2019/cb20644c026e010b58d134c622b7dd70eddae16a/prototype.js/buggy/phpmyfaq/inc/js/prototype.js
return(this.isVertical() ? this.track.offsetHeight - this.alignY : this.track.offsetWidth - this.alignX);
return(this.isVertical() ? (this.track.offsetHeight != 0 ? this.track.offsetHeight : this.track.style.height.replace(/px$/,"")) - this.alignY : (this.track.offsetWidth != 0 ? this.track.offsetWidth : this.track.style.width.replace(/px$/,"")) - this.alignY);
maximumOffset: function(){ return(this.isVertical() ? this.track.offsetHeight - this.alignY : this.track.offsetWidth - this.alignX); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/50fa4017bc8204abb70f0a2e72e3df33340e3077/slider.js/clean/src/slider.js
if (menu == null|| object == null)
if (menu == null || object == null)
function menu_init(object_name){ var menu = document.getElementById(object_name + '_menu'); var object = document.getElementById(object_name); if (menu == null|| object == null) { return; } object.onclick = function() { /* Open or close the menu */ if (menu.style.display == 'none') { menu_show(object_name); } else { menu_hide(object_name); } return false; } /* need to read more to get these working :-( object.onmouseover = function() { //menu_show(object_name); } object.onmouseout = function(e) { menu_hide(object_name); } menu.onmouseout = function(e) { menu_hide(object_name); } menu.onmouseover = function(e) { this.onmouseout = function(e) { menu_hide(object_name); } e.preventDefault(); e.stopPropagation(); } menu.onmouseout = function() { menu_hide(object_name); }*/ menu.style.display = 'none'; menu.style.position = 'absolute'; menu.style.zIndex = 1000; object.style.cursor = 'pointer';}
9568 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9568/017a5d8a5e3ae73b31ec82a071eacc7f2bdc02e8/menu.js/buggy/cms/trunk/javascript/menu.js
menu.style.position = 'absolute'; menu.style.zIndex = 1000;
menu.style.position = is_gecko ? 'fixed' : 'absolute'; menu.style.zIndex = 1;
function menu_init(object_name){ var menu = document.getElementById(object_name + '_menu'); var object = document.getElementById(object_name); if (menu == null|| object == null) { return; } object.onclick = function() { /* Open or close the menu */ if (menu.style.display == 'none') { menu_show(object_name); } else { menu_hide(object_name); } return false; } /* need to read more to get these working :-( object.onmouseover = function() { //menu_show(object_name); } object.onmouseout = function(e) { menu_hide(object_name); } menu.onmouseout = function(e) { menu_hide(object_name); } menu.onmouseover = function(e) { this.onmouseout = function(e) { menu_hide(object_name); } e.preventDefault(); e.stopPropagation(); } menu.onmouseout = function() { menu_hide(object_name); }*/ menu.style.display = 'none'; menu.style.position = 'absolute'; menu.style.zIndex = 1000; object.style.cursor = 'pointer';}
9568 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9568/017a5d8a5e3ae73b31ec82a071eacc7f2bdc02e8/menu.js/buggy/cms/trunk/javascript/menu.js
if (!is_gecko) { var window_offset = (window.pageYOffset) ? window.pageYOffset : (document.body.scrollTop) ? document.body.scrollTop : document.documentElement.scrollTop; object_offsets['top'] = Number(window_offset) + object_offsets['top']; }
function menu_show(object_name){ var menu = document.getElementById(object_name + '_menu'); var object = document.getElementById(object_name); if (menu == null|| object == null) { return; } // If a menu is open, lets close it if (active_menu) { menu_hide(active_menu); } active_menu = object_name; // best to do this everytime, incase the windows is resized var object_offsets = get_offsets(object); menu.style.clip = 'rect(auto, auto, 0px, auto)'; menu.style.display = ''; if ((object_offsets['left'] + menu.offsetWidth) > document.body.clientWidth) { // It to wide to show on the right so we have to put it on the left menu.style.left = (object_offsets['left'] + object.offsetWidth - menu.offsetWidth) + 'px'; } else { menu.style.left = object_offsets['left'] + 'px'; } menu.style.top = (object_offsets['top'] + object.offsetHeight) + 'px'; start_slide(object_name+ '_menu', menu.offsetHeight);}
9568 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9568/017a5d8a5e3ae73b31ec82a071eacc7f2bdc02e8/menu.js/buggy/cms/trunk/javascript/menu.js
function menuOut() { document.onclick = eventHideMenu; if (document.all) event.cancelBubble=true }
function menuOut() { document.onclick = eventHideMenu; if (window.event != null) window.event.cancelBubble=true; }
function menuOut() { document.onclick = eventHideMenu; if (document.all) event.cancelBubble=true }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ebc78f352a92ad64ced940cdce53759233257fa2/menu.js/clean/src/webapp/lenya/resources/menu/menu.js
function menuOver() { document.onclick = null; if (document.all) event.cancelBubble=true }
function menuOver() { document.onclick = null; if (window.event != null) window.event.cancelBubble=true; }
function menuOver() { document.onclick = null; if (document.all) event.cancelBubble=true }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ebc78f352a92ad64ced940cdce53759233257fa2/menu.js/clean/src/webapp/lenya/resources/menu/menu.js
if (!AutoValidator.validate(formObj)) { alert(tinyMCE.getLang('lang_invalid_data')); return false; }
function mergeCells() { var args = new Array(); var formObj = document.forms[0]; args["numcols"] = formObj.numcols.value; args["numrows"] = formObj.numrows.value; tinyMCEPopup.execCommand("mceTableMergeCells", false, args); tinyMCEPopup.close();}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/merge_cells.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/jscripts/merge_cells.js
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Messagemenu(){ var width=31; if(width<8+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name.length) width=8+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name.length this.items=new Array(); this.xpos=7; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add("|Change Sub","C",width); this.add("|Read "+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name,"R",width); this.add( format_opt("Scan For |New Messages",width,true) ,"N",width ); this.add( format_opt("Scan For Messages To |You",width,true) ,"Y",width ); this.add( format_opt("Search For |Text in Messages",width,true) ,"T",width ); this.add("|Post In "+msg_area.grp_list[bbs.curgrp].sub_list[bbs.cursub].name,"P",width,undefined,undefined,user.compare_ars("REST P")); if(user.compare_ars("REST N") && (msg_area.grp_list[bbs.curgrp].sub_list[bbs.crusub] & (SUB_QNET|SUB_PNET|SUB_FIDO))) this.items[6].disabed=true; this.add("Read/Post |Auto-Message","A",width); this.add("|QWK Packet Transfer Menu","Q",width); this.add("|View Information on Sub","V",width); this.add(bottom_bar(width),undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/34f6c69cd3ce42ea1878ef314f794dabc773eb90/lbshell.js/clean/lbshell.js
if (value <= (result || value))
if (result == undefined || value < result)
min: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; }); return result; },
2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/prototype.js/clean/web/scripts/prototype.js
if (value <= (result || value))
if (result == undefined || value < result)
min: function(iterator) { var result; this.each(function(value, index) { value = (iterator || Prototype.K)(value, index); if (value <= (result || value)) result = value; }); return result; },
2019 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2019/cb20644c026e010b58d134c622b7dd70eddae16a/prototype.js/buggy/phpmyfaq/inc/js/prototype.js
return new Color(rgb);
return new Color(rgb, 'rgb');
mix: function(){ var colors = $A(arguments); var alpha = ($type(colors[colors.length-1]) == 'number') ? colors.pop() : 50; var rgb = this.copy(); colors.each(function(color){ color = new Color(color); for (var i = 0; i < 3; i++) rgb[i] = Math.round((rgb[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); }); return new Color(rgb); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/clean/Addons/Color.js
return new Color(rgb);
return new Color(rgb, 'rgb');
mix: function(){ var colors = $A(arguments); var alpha = ($type(colors[colors.length-1]) == 'number') ? colors.pop() : 50; var rgb = this.copy(); colors.each(function(color){ color = new Color(color); for (var i = 0; i < 3; i++) rgb[i] = Math.round((rgb[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); }); return new Color(rgb); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/buggy/Addons/Color.js
if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this;
if ($type(colors[colors.length-1]) == 'number') alpha = colors.pop(); var mixed = this.copy();
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
var rgb = [];
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb);
for (var i = 0; i < 3; i++) mixed[i] = Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha));
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this;
if ($type(colors[colors.length-1]) == 'number') alpha = colors.pop(); var mixed = this.copy();
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
var rgb = [];
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb);
for (var i = 0; i < 3; i++) mixed[i] = Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha));
mix: function(){ var colors = $A(arguments); var alpha = 50; if (colors.length == 2 && $type(colors[1]) == 'number'){ alpha = colors[1]; colors.pop(); } var mixed = this; colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); return mixed; },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/af3f8ba3d7a60e124186780a2800f7d435426db3/Color.js/clean/Addons/Color.js
cocoon.sendStatus(201);
sendStatus(201);
function mkcol() { var status = executeUsecase("webdav.mkcol"); if(status) cocoon.sendStatus(201); else sendStatus(403);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/9d1ab8859a513ebaf83a9822a20202259ce57d92/webdav.js/buggy/src/webapp/lenya/pubs/default/lenya/usecases/webdav/webdav.js
this.modechar = modechar; this.args = args; this.state = state; this.list = list; this.isnick = isnick;
this.modechar = modechar; /* The mode's character */ this.args = args; /* Does this mode take only a single arg? */ this.state = state; /* Stateful? (changes channel behaviour) */ this.list = list; /* Does this mode accept a list? */ this.isnick = isnick; /* Is nick (true) or a n!u@h mask (false) */
function Mode(modechar,args,state,list,isnick) { // The mode's character this.modechar = modechar; // Does this mode take a single argument only? this.args = args; // Is this mode a stateful mode? (i.e. changes channel behaviour) this.state = state; // Can this mode accept a list? this.list = list; // Is the list a nick (true), or a n!u@h IRC mask (false)? this.isnick = isnick;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4f81e4cda527089e4dcaa415a66740375f48551b/ircd_channel.js/clean/load/ircd_channel.js
function Mode (modechar,args,state,list,isnick) {
function Mode(modechar,args,state,list,isnick) {
function Mode (modechar,args,state,list,isnick) { // The mode's character this.modechar = modechar; // Does this mode take a single argument only? this.args = args; // Is this mode a stateful mode? (i.e. changes channel behaviour) this.state = state; // Can this mode accept a list? this.list = list; // Is the list a nick (true), or a n!u@h IRC mask (false)? this.isnick = isnick;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/1cebcfca3a6240f246861645e271d6418b89f0b2/ircd_channel.js/buggy/load/ircd_channel.js
var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval;
var doc_location = document.location.toString(); var end_of_base_ref = doc_location.indexOf('TestRunner.html') var base_ref = doc_location.substring(0,end_of_base_ref) var fullURL = base_ref + "TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval;
function modifyWindowToRecordPopUpDialogs(window, browserBot) { // we will call the previous version of this method from within our own interception oldShowModalDialog = window.showModalDialog; window.showModalDialog = function(url, args, features) { var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval; browserBot.modalDialogTest = null; var returnValue = oldShowModalDialog(fullURL, args, features); //window.open(fullURL); //alert(returnValue); return returnValue; }; window.alert = function(alert){browserBot.recordedAlerts.push(alert);}; window.confirm = function(message){ browserBot.recordedConfirmations.push(message); var result = browserBot.nextConfirmResult; browserBot.nextConfirmResult = true; return result; }; }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ba056b47f419a2a95c4c6651a92db65a8276f84c/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval;
var doc_location = document.location.toString(); var end_of_base_ref = doc_location.indexOf('TestRunner.html') var base_ref = doc_location.substring(0,end_of_base_ref) var fullURL = base_ref + "TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval;
function modifyWindowToRecordPopUpDialogs(window, browserBot) { // we will call the previous version of this method from within our own interception oldShowModalDialog = window.showModalDialog; window.showModalDialog = function(url, args, features) { var fullURL = "/TestRunner.html?singletest=" + escape(browserBot.modalDialogTest) + "&autoURL=" + escape(url) + "&runInterval=" + runInterval; browserBot.modalDialogTest = null; var returnValue = oldShowModalDialog(fullURL, args, features); //window.open(fullURL); //alert(returnValue); return returnValue; }; window.alert = function(alert){browserBot.recordedAlerts.push(alert);}; window.confirm = function(message){ browserBot.recordedConfirmations.push(message); var result = browserBot.nextConfirmResult; browserBot.nextConfirmResult = true; return result; }; }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/5154a03212c702af5ce91bddf4cd77f43559ece2/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js