rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
if (elt.className == 'en') | if (strEltClass == 'en') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... | 7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/ebec6203a6a08a8c2cf36cf423b7f95ee90f585e/cormissing.js/clean/doc/web/deploy/cm/cormissing.js |
if (elt.className == 'n') | var strEltClass = elt.className; if (strEltClass.charAt (strEltClass.length - 1) == '_') strEltClass = strEltClass.slice (0, strEltClass.length - 1); if (strEltClass == 'n') | function clickHandler (evt){ var elt; if (document.layers) elt = evt.taget; else if (window.event && window.event.srcElement) { elt = window.event.srcElement; evt = window.event; } else if (evt && evt.stopPropagation) elt = evt.target; if (!elt.className && elt.parentNode) elt = elt.parentNode; if (elt.className ... | 7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/ebec6203a6a08a8c2cf36cf423b7f95ee90f585e/cormissing.js/clean/doc/web/deploy/cm/cormissing.js |
oeTimePicker.clickHour = function( hourItem, hourNumber ){ // select the item oeTimePicker.selectHourItem( hourItem ); // Change the hour in the selected time, add 12 if PM. var hour24 = null; if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { hour24 = hourNumber; } else { ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/timepicker.js/buggy/calendar/resources/content/timepicker/timepicker.js | ||
if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { hour24 = hourNumber; } else { hour24 = hourNumber + 12; } | hour24 = hourNumber; | oeTimePicker.clickHour = function( hourItem, hourNumber ){ // select the item oeTimePicker.selectHourItem( hourItem ); // Change the hour in the selected time, add 12 if PM. var hour24 = null; if( oeTimePicker.isTimeAm( oeTimePicker.gSelectedTime ) ) { hour24 = hourNumber; } else { ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/eccfe24949238ab11afd71e280a2c50fe7ee3ea0/timepicker.js/buggy/calendar/resources/content/timepicker/timepicker.js |
current_panels.treeBoxObject.selection.clearSelection(); | current_panels.view.selection.clearSelection(); | function ClickOnOtherPanels(event){ var tree = document.getElementById("other-panels"); var rowIndex = -1; if (event.type == "click" && event.button == 0) { var row = {}, col = {}, obj = {}; var b = tree.treeBoxObject; b.getCellAt(event.clientX, event.clientY, row, col, obj); if (obj.value == "twisty" ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ec7f2bfa878c9f3d3c37847453d69dab25f800e9/customize.js/clean/suite/common/sidebar/customize.js |
span.appendChild (newInlineText("Available networks are [")); | span.appendChild (newInlineText(getMsg("cli_listNetworks.a"))); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/handlers.js/clean/extensions/irc/xul/content/handlers.js |
span.appendChild (newInlineText (", ")); | span.appendChild (newInlineText (MSG_CSP)); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/handlers.js/clean/extensions/irc/xul/content/handlers.js |
span.appendChild (newInlineText("].")); | span.appendChild (newInlineText(getMsg("cli_listNetworks.b"))); | function clie_ilistnets (e){ var span = document.createElementNS("http://www.w3.org/1999/xhtml", "html:span"); span.appendChild (newInlineText("Available networks are [")); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/handlers.js/clean/extensions/irc/xul/content/handlers.js |
target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; } | var delta = [0, 0]; var parent = null; if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); } if (parent == document.body) { delta[0] -= document.body.offsetLeft; delta[1] -= document.body.offsetTop; } if(options.setLeft) target.style.le... | clone: function(source, target) { source = $(source); target = $(target); target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.s... | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/9867ca01ad65827d23c0bf6cc14d8a64137e927d/prototype.js/buggy/tracks/public/javascripts/prototype.js |
}), arguments ); | })); | clone: function(deep) { return this.pushStack( jQuery.map( this, function(a){ return a.cloneNode( deep != undefined ? deep : true ); }), arguments ); }, | 6056 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6056/94e59e287a9fde9425cd96713e8130aef06bc431/jquery.js/clean/src/jquery/jquery.js |
target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; } | var delta = [0, 0]; var parent = null; if (Element.getStyle(target,'position') == 'absolute') { parent = Position.offsetParent(target); delta = Position.page(parent); } if (parent == document.body) { delta[0] -= document.body.offsetLeft; delta[1] -= document.body.offsetTop; } if(options.setLeft) target.style.le... | clone: function(source, target) { source = $(source); target = $(target); target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; target.style.width = source.offsetWidth + 'px'; target.s... | 708 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/708/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/clean/public/javascripts/prototype.js |
target.style.top = source.style.top; target.style.left = source.style.left; | target.style.position = 'absolute'; var offsets = this.cumulativeOffset(source); target.style.top = offsets[1] + 'px'; target.style.left = offsets[0] + 'px'; | clone: function(source, target) { source = $(source); target = $(target); target.style.top = source.style.top; target.style.left = source.style.left; target.style.width = source.offsetWidth + 'px'; target.style.height = source.offsetHeight + 'px'; } | 3684 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3684/cadcd9e7144394ecc9df01961191d20e5e219a37/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js |
obj.isExternalAttachment = aAttachment.isExternalAttachment; | function cloneAttachment(aAttachment){ var obj = new Object(); obj.contentType = aAttachment.contentType; obj.url = aAttachment.url; obj.displayName = aAttachment.displayName; obj.messageUri = aAttachment.uri; return obj;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/38ca496c7d84096946be40252c789bca175e28ba/msgHdrViewOverlay.js/buggy/mail/base/content/msgHdrViewOverlay.js | |
gActiveEditor.removeAttribute(destElement, attr); | gActiveEditor.removeAttributeOrEquivalent(destElement, attr, false); | function CloneAttribute(destElement, srcElement, attr){ var value = srcElement.getAttribute(attr); // Use editor methods since we are always // modifying a table in the document and // we need transaction system for undo try { if (!value || value.length == 0) gActiveEditor.removeAttribute(destElement, at... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d704d38a38798f9a3a16c3a67519d245fcd992b2/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js |
gActiveEditor.setAttribute(destElement, attr, value); | gActiveEditor.setAttributeOrEquivalent(destElement, attr, value, false); | function CloneAttribute(destElement, srcElement, attr){ var value = srcElement.getAttribute(attr); // Use editor methods since we are always // modifying a table in the document and // we need transaction system for undo try { if (!value || value.length == 0) gActiveEditor.removeAttribute(destElement, at... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d704d38a38798f9a3a16c3a67519d245fcd992b2/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js |
DWRUtil.cloneNode = function(ele) { | DWRUtil.cloneNode = function(ele, options) { if (options == null) options = {}; | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/c25c64c8d32b405347c9678cf1551aa0cce25cca/util.js/buggy/java/org/directwebremoting/util.js |
DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); | DWRUtil.debug("cloneNode2() can't find an element with id: " + orig + "."); | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/c25c64c8d32b405347c9678cf1551aa0cce25cca/util.js/buggy/java/org/directwebremoting/util.js |
DWRUtil._removeIds(clone); | if (options.idPrefix || options.idSuffix) { DWRUtil._updateIds(clone, options); } else { DWRUtil._removeIds(clone); } | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return null; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/c25c64c8d32b405347c9678cf1551aa0cce25cca/util.js/buggy/java/org/directwebremoting/util.js |
return; | return null; | DWRUtil.cloneNode = function(ele) { var orig = ele; ele = $(ele); if (ele == null) { DWRUtil.debug("cloneNode() can't find an element with id: " + orig + "."); return; } var clone = ele.cloneNode(true); DWRUtil._removeIds(clone); ele.parentNode.insertBefore(clone, ele); return clone;} | 266 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/266/fbe7e86c9bd6b849e8142920ba97e000e9c7ec62/util.js/clean/java/org/directwebremoting/util.js |
closeAll: function(aAskToSave) { var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var enumerator = windowMediator.getEnumerator(null); while (enumerator.hasMoreElements())... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsCloseAllWindows.js/buggy/xpfe/components/startup/src/nsCloseAllWindows.js | ||
closeAll: function(aAskToSave) { var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var enumerator = windowMediator.getEnumerator(null); while (enumerator.hasMoreElements())... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsCloseAllWindows.js/buggy/xpfe/components/startup/src/nsCloseAllWindows.js | ||
closeAll: function(aAskToSave) { var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var enumerator = windowMediator.getEnumerator(null); while (enumerator.hasMoreElements())... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsCloseAllWindows.js/buggy/xpfe/appshell/src/nsCloseAllWindows.js | ||
closeAll: function(aAskToSave) { var windowMediator = Components.classes['@mozilla.org/appshell/window-mediator;1']. getService(Components.interfaces.nsIWindowMediator); var enumerator = windowMediator.getEnumerator(null); while (enumerator.hasMoreElements())... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/55a5e5ddbf4a7e9103b995d808c4466085d2123f/nsCloseAllWindows.js/buggy/xpfe/appshell/src/nsCloseAllWindows.js | ||
var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } function chooserModeChanged() { var radioPanel = document.getElementById("viewchoiceRadioPa... | var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } } | function closeAll() { var panels = document.getElementsByClassName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } function choose... | 9897 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9897/aa3cfe0355bb63a18f28f853c13d4daf996b9768/collapsiblePanel.js/buggy/website/js/collapsiblePanel.js |
var panels = document.getElementsByName("category_panel"); | var panels = document.getElementsByClassName("category_panel"); | function closeAll() { var panels = document.getElementsByName("category_panel"); for(var i=0; i<panels.length; i++) { var fullId = panels[i].id; var index = fullId.lastIndexOf('_'); var catId = fullId.substring(0, index); hideCategory(catId); } } | 9897 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9897/d62c0b8eb4ea5373b059243fc9fc780cb260d6da/collapsiblePanel.js/clean/website/js/collapsiblePanel.js |
dump("*** running closeBranches\n"); | closeBranches: function ( aComponentName ) { dump("*** running closeBranches\n"); var panelChildren = document.getElementById( "panelChildren" ); var panelTree = document.getElementById( "prefsTree" ); for( var i = 0; i < panelChildren.childNodes.length; i++ ) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0e08c6102f9f45b9987fddc04dcda74f2f85b0e7/nsPrefWindow.js/buggy/suite/common/pref/nsPrefWindow.js | |
dump("*** running closeBranches\n"); | closeBranches: function ( aComponentName ) { dump("*** running closeBranches\n"); var panelChildren = document.getElementById( "panelChildren" ); var panelTree = document.getElementById( "prefsTree" ); for( var i = 0; i < panelChildren.childNodes.length; i++ ) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f763cb2f23867a1271d8e6ce8dd81aad7bbaad71/nsPrefWindow.js/clean/xpfe/components/prefwindow/resources/content/nsPrefWindow.js | |
function closeDialog(){ removeToolboxListeners(); unwrapToolbarItems(); persistCurrentSets(); notifyParentComplete(); window.close();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/8909d722ff3fcdd28e414891cbd434a0fdb9bbdd/customizeToolbar.js/buggy/toolkit/content/customizeToolbar.js | ||
window.close(); | function closeDialog(){ removeToolboxListeners(); unwrapToolbarItems(); persistCurrentSets(); notifyParentComplete(); window.close();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/8909d722ff3fcdd28e414891cbd434a0fdb9bbdd/customizeToolbar.js/buggy/toolkit/content/customizeToolbar.js | |
var findField = document.getElementById("find-field"); var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow && document.commandDispatcher.focusedElement && document.commandDispatcher.focusedElement.parentNode.parentNode... | setTimeout(delayedCloseFindBar, 0); | function closeFindBar(){ var findField = document.getElementById("find-field"); var ww = Components.classes["@mozilla.org/embedcomp/window-watcher;1"] .getService(Components.interfaces.nsIWindowWatcher); if (window == ww.activeWindow && document.commandDispatcher.focusedElement && document.c... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9f83dd23177b8a27c0dd46926b72c012a3181b15/findBar.js/clean/toolkit/components/typeaheadfind/content/findBar.js |
if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) { gFilterListMsgWindow.StopUrls(); } | closeWindow: function() { // if we are running, and the user closes the window, stop. // XXX todo, prompt first, though. if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) { gFilterListMsgWindow.StopUrls(); } } | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/247e3047d9d6ca121cfa105429a5642648975ffc/FilterListDialog.js/clean/mailnews/base/search/resources/content/FilterListDialog.js | |
var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; | var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); if (ary[1] == commandName) return [i, ary[2]]; | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
arrayRemoveAt(aliasDefs, ary[1]); | arrayRemoveAt(aliasDefs, ary[0]); | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
ary = aliasDefs[i].split(/\s*=\s*/); display(getMsg(MSG_FMT_ALIAS, [ary[0], ary[1]])); | ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); display(getMsg(MSG_FMT_ALIAS, [ary[1], ary[2]])); | function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].split(/\s*=\s*/); if (ary[0] == commandName) return [i, ary[1]]; } return null; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
mask = e.user.getBanMask(); | mask = fromUnicode(e.user.getBanMask(), e.server); | function cmdBanOrExcept(e){ /* If we're unbanning, or banning in odd cases, we may actually be talking * about a user who is not in the channel, so we need to check the server * for information as well. */ if (!e.user && e.nickname) e.user = e.channel.getUser(e.nickname); if (!e.user && e.ni... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7d28009051723e56f10d9c7ffd88d6ffcd969c26/commands.js/clean/extensions/irc/xul/content/commands.js |
var bpr = bplist[i]; display (getMsg(MSN_BP_LINE, [i, bpr.fileName, bpr.line, bpr.scriptMatches])); | bpr = bplist[i]; feedback (e, getMsg(MSN_BP_LINE, [i, bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7544d3415d65bb702cb3060dd8ac2a22f009997b/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
display (getMsg(MSN_ERR_BP_NOSCRIPT, e.fileName), MT_ERROR); | feedback (e, getMsg(MSN_ERR_BP_NOSCRIPT, e.fileName), MT_ERROR); | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7544d3415d65bb702cb3060dd8ac2a22f009997b/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
setBreakpoint (matchingFiles[i], e.lineNumber); | { bpr = setBreakpoint (matchingFiles[i], e.lineNumber); if (bpr) feedback (getMsg(MSN_BP_CREATED, [bpr.fileName, bpr.lineNumber, bpr.scriptMatches])); } | function cmdBreak (e){ var i; if (!e.fileName) { /* if no input data, just list the breakpoints */ var bplist = console.breakpoints.childData; if (bplist.length == 0) { display (MSG_NO_BREAKPOINTS_SET); return true; } display (getMsg(MSN... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7544d3415d65bb702cb3060dd8ac2a22f009997b/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) | if ((network.state == NET_ONLINE) && network.isRunningList()) { display(MSG_CANCELLING_LIST); network.abortList(); } else if ((network.state == NET_CONNECTING) || (network.state == NET_WAITING)) { display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel(); } else | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/75f83719deab3e8dffd36bc351db0cbdeb90d196/commands.js/clean/extensions/irc/xul/content/commands.js |
return; | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/75f83719deab3e8dffd36bc351db0cbdeb90d196/commands.js/clean/extensions/irc/xul/content/commands.js | |
display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel(); | function cmdCancel(e){ var network = e.network; if ((network.state != NET_CONNECTING) && (network.state != NET_WAITING)) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } display(getMsg(MSG_CANCELLING, network.unicodeName)); network.cancel();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/75f83719deab3e8dffd36bc351db0cbdeb90d196/commands.js/clean/extensions/irc/xul/content/commands.js | |
} else dd ("record already seems to be in the tree"); | function cmdChromeFilter (e){ var currentState = console.prefs["enableChromeFilter"]; if (e.toggle != null) { if (e.toggle == "toggle") e.toggle = !currentState; if (e.toggle != currentState) { if (e.toggle) console.jsds.insertFilter (console.chrome... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a71b5f5e4a42de49df6e5b5548b9ae1c38b5206d/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js | |
return clearBreakpointByNumber (e.breakpointIndex); | var bpr = clearBreakpointByNumber (e.breakpointIndex); if (bpr) feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdClear (e){ return clearBreakpointByNumber (e.breakpointIndex);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7544d3415d65bb702cb3060dd8ac2a22f009997b/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | feedback (e, getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches])); | function cmdClear (e){ var bpr = clearBreakpointByNumber (e.breakpointIndex); if (bpr) feedback (getMsg(MSN_BP_CLEARED, [bpr.fileName, bpr.line, bpr.scriptMatches]));} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a71b5f5e4a42de49df6e5b5548b9ae1c38b5206d/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
helper.copyStringToClipboard(val, kGlobalClipboard); | helper.copyString(val); | cmdCopyValue: function() { var sel = getSelectedItem(); if (sel) { var val = sel.__JSValue__; if (val) { var helper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); helper.copyStringToClipboard(val, kGlobalClipboard); } } }, | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/bc022e0e362ac69fba884ff81432a38c7e76ee17/jsObject.js/buggy/extensions/inspector/resources/content/viewers/jsObject/jsObject.js |
if (pickerRv.reason == PICK_CANCEL) | if (!pickerRv.ok) | function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") { if (!c.accept()) return false; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/19315e5accf0e42f99face2fdac637f39f8ddc84/commands.js/clean/extensions/irc/xul/content/commands.js |
if (pickerRv.reason == PICK_CANCEL) | if (!pickerRv.ok) | function cmdDCCSend(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); const DIRSVC_CID = "@mozilla.org/file/directory_service;1"; const nsIProperties = Components.interfaces.nsIProperties; if (!e.n... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/19315e5accf0e42f99face2fdac637f39f8ddc84/commands.js/clean/extensions/irc/xul/content/commands.js |
var msg = filterOutput(e.action, "ACTION", "ME!"); | var msg = filterOutput(e.action, "ACTION", target); | function cmdDescribe(e){ var target = e.server.addTarget(e.target); var msg = filterOutput(e.action, "ACTION", "ME!"); e.sourceObject.display(msg, "ACTION", "ME!", target); target.act(msg);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propValue, null, dummy)) { | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styl... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f019834d8f631af34bcfe3f3eaf342bcbdfb3352/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
propval = prompt("Enter the property value:", propval); if (!propval) return; | var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyValue.message"); var title = bundle.getString("styleRuleEditProperty.title"); var propValue = { value: propval }; var dummy = { value: false }; if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { return... | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); propval = prompt("Enter the property value:", propval); if (!propval) return; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2e5037068b1cdfad71a584a4f840def35e6af75e/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
style.setProperty(propname, propval, priority); | style.setProperty(propname, propValue.value, priority); | cmdEditSelectedProperty: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); propval = prompt("Enter the property value:", propval); if (!propval) return; ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2e5037068b1cdfad71a584a4f840def35e6af75e/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) | var containerRec = console.scripts[e.breakpointRec.fileName]; if (!containerRec) | function cmdFindBp (e){ var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) { dd ("breakpoint in unknown source"); return false; } var sourceView = console.sourceView; cmdFindURL ({url: scriptRec.script.fileName, rangeStart: e.breakpointRec.line, ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a71b5f5e4a42de49df6e5b5548b9ae1c38b5206d/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
cmdFindURL ({url: scriptRec.script.fileName, | cmdFindURL ({url: containerRec.fileName, | function cmdFindBp (e){ var scriptRec = console.scripts[e.breakpointRec.fileName]; if (!scriptRec) { dd ("breakpoint in unknown source"); return false; } var sourceView = console.sourceView; cmdFindURL ({url: scriptRec.script.fileName, rangeStart: e.breakpointRec.line, ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a71b5f5e4a42de49df6e5b5548b9ae1c38b5206d/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
if (typeof nsFindData != "undefined") | if (typeof nsFindInstData != "undefined") | function cmdFindString (e){ var source2View = console.views.source2; if (!source2View.tabs) return; var index = source2View.tabs.selectedIndex; if (!(index in source2View.sourceTabList)) return; var browser = source2View.sourceTabList[index].iframe; if (typeof nsFindData != "undefined") ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/venkman-views.js/clean/extensions/venkman/resources/content/venkman-views.js |
return; | function cmdGotoURL(e){ if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.match(/^x-cz-command:(.*)$/i); e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" + ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/fbde96639254f31f6e8920de8d8a6cb89afbc0f0/commands.js/clean/extensions/irc/xul/content/commands.js | |
window.openNewTabWith(e.url); | window.openNewTabWith(e.url, null, null, null, null, false); | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3aab5a5207661e72631bbb5b69ec039f28e80840/commands.js/buggy/extensions/irc/xul/content/commands.js |
e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; | e.sourceObject.frame.contentWindow.location.href = "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; | function cmdGotoURL(e){ const IO_SVC = "@mozilla.org/network/io-service;1"; const EXT_PROTO_SVC = "@mozilla.org/uriloader/external-protocol-service;1"; if (e.url.search(/^ircs?:/i) == 0) { gotoIRCURL(e.url); return; } if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/cddca7b1217f1f1a10c371a975c199b3efbaa9cc/commands.js/buggy/extensions/irc/xul/content/commands.js |
{ | { | function cmdHelp (e){ var ary; ary = client.commandManager.list (e.pattern, CMD_CONSOLE); if (ary.length == 0) { display (getMsg(MSG_ERR_NO_COMMAND, e.pattern), MT_ERROR); return false; } for (var i in ary) { display (getMsg(MSG_FMT_USAGE, [ary[i].name, ary[i].usage... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/bee471a1e673834d4a5e3c225d23c6ed0ad2855b/commands.js/clean/extensions/irc/xul/content/commands.js |
var cuser = e.channel.getUser(e.nickname); if (!cuser) | if (!e.user) e.user = e.channel.getUser(e.nickname); if (!e.user) | function cmdKick(e) { var cuser = e.channel.getUser(e.nickname); if (!cuser) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR); return; } if (e.command.name == "kick-ban") { var hostmask = e.user.host.replace(/^[^.]+/, "*"); e.server.sendData("MODE " + e.channel... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
cuser.kick(e.reason); | e.user.kick(e.reason); | function cmdKick(e) { var cuser = e.channel.getUser(e.nickname); if (!cuser) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR); return; } if (e.command.name == "kick-ban") { var hostmask = e.user.host.replace(/^[^.]+/, "*"); e.server.sendData("MODE " + e.channel... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
if (!e.channelName) | if (!e.channelName || !e.inputData) | function cmdList(e){ e.network.list = new Array(); e.network.list.regexp = null; if (!e.channelName) e.channelName = ""; e.server.sendData("LIST " + e.channelName + "\n");} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7541bae4539f9a0ae2e561e155af17e2f02a1732/commands.js/clean/extensions/irc/xul/content/commands.js |
var msg = filterOutput(e.action, "ACTION", "ME!"); | var msg = filterOutput(e.action, "ACTION", e.sourceObject); | function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } var msg = filterOutput(e.action, "ACTION", "ME!"); e.sourceObject.display(msg, "ACTION", "ME!", e.sourceObject); e.sourceObject.act(msg);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
e.sourceObject.act (fromUnicode(e.action, e.sourceObject)); | e.sourceObject.act (e.action); | function cmdMe(e){ if (!("act" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "me"), MT_ERROR); return; } e.action = filterOutput (e.action, "ACTION", "ME!"); display (e.action, "ACTION", "ME!", e.sourceObject); e.sourceObject.act (fromUnicode(e.action, e.sourceObject));} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/009763dfa8bae7c01f491a191f71b85ba2b38597/commands.js/buggy/extensions/irc/xul/content/commands.js |
var msg = filterOutput(e.message, "PRIVMSG", "ME!"); | var msg = filterOutput(e.message, "PRIVMSG", target); | function cmdMsg(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); e.sourceObject.display(msg, "PRIVMSG", "ME!", target); target.say(msg);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
usr.say(fromUnicode(e.message, e.sourceObject)); | usr.say(e.message, e.sourceObject); | function cmdMsg(e){ var usr = e.server.addUser(e.nickname); var msg = filterOutput(e.message, "PRIVMSG", "ME!"); usr.display(e.message, "PRIVMSG", "ME!", usr); usr.say(fromUnicode(e.message, e.sourceObject));} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/009763dfa8bae7c01f491a191f71b85ba2b38597/commands.js/buggy/extensions/irc/xul/content/commands.js |
if (!gPromptService.prompt(window, title, msg, propName, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propName, null, dummy)) { | cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f019834d8f631af34bcfe3f3eaf342bcbdfb3352/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) { | if (!gPromptService.prompt(window, title, msg, propValue, null, dummy)) { | cmdNewProperty: function() { var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gP... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/f019834d8f631af34bcfe3f3eaf342bcbdfb3352/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; | var bundle = this.mPanel.panelset.stringBundle; var msg = bundle.getString("styleRulePropertyName.message"); var title = bundle.getString("styleRuleNewProperty.title"); var propName = { value: "" }; var propValue = { value: "" }; var dummy = { value: false }; if (!gPromptService.prompt(window, title, msg, propName, f... | cmdNewProperty: function() { var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; var style = this.getSelectedRule().style; style.setProperty(propname, propval, ""); this.mPropsBoxObject.inv... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2e5037068b1cdfad71a584a4f840def35e6af75e/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
style.setProperty(propname, propval, ""); | style.setProperty(propName.value, propValue.value, ""); | cmdNewProperty: function() { var propname = prompt("Enter the property name:", ""); if (!propname) return; var propval = prompt("Enter the property value:", ""); if (!propval) return; var style = this.getSelectedRule().style; style.setProperty(propname, propval, ""); this.mPropsBoxObject.inv... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/2e5037068b1cdfad71a584a4f840def35e6af75e/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
var msg = filterOutput(e.message, "NOTICE", "ME!"); | var msg = filterOutput(e.message, "NOTICE", target); | function cmdNotice(e){ var target = e.server.addTarget(e.nickname); var msg = filterOutput(e.message, "NOTICE", "ME!"); e.sourceObject.display(msg, "NOTICE", "ME!", target); target.notice(msg);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
e.network.dispatch("ctcp", { target: e.target, code: "PING" }); | e.network.dispatch("ctcp", { target: e.nickname, code: "PING" }); | function cmdPing (e){ e.network.dispatch("ctcp", { target: e.target, code: "PING" });} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a8ba54fddb8d400f1a48b0491569126bfefee7cf/commands.js/buggy/extensions/irc/xul/content/commands.js |
e.message = filterOutput(e.message, "PRIVMSG", "ME!"); | e.message = filterOutput(e.message, "PRIVMSG", user); | function cmdQuery(e){ // We'd rather *not* trigger the user.start event this time. blockEventSounds("user", "start"); var user = openQueryTab(e.server, e.nickname); dispatch("set-current-view", { view: user }); if (e.message) { e.message = filterOutput(e.message, "PRIVMSG", "ME!"); user.... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
user.say(fromUnicode(e.message, e.sourceObject)); | user.say(e.message, e.sourceObject); | function cmdQuery(e){ var user = openQueryTab(e.server, e.nickname); setCurrentObject(user); if (e.message) { e.message = filterOutput(e.message, "PRIVMSG", "ME!"); user.display(e.message, "PRIVMSG", "ME!", user); user.say(fromUnicode(e.message, e.sourceObject)); } return user;} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/009763dfa8bae7c01f491a191f71b85ba2b38597/commands.js/buggy/extensions/irc/xul/content/commands.js |
return | return; | function cmdReloadTab (e){ const WINDOW = Components.interfaces.nsIWebProgress.NOTIFY_STATE_WINDOW; if (console.views.source2.sourceTabList.length == 0) return var source2View = console.views.source2; function cb(status) { sourceTab.iframe.addProgressListener (source2View.progressLi... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6d3605984754042ac2ea071be474d6b8ed01f0eb/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js |
var templateName; | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1dfad411915032dbfbba1259cc94b8fa032eac7a/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js | |
templateName = templatePfx + ext; var templateFile; if (templateName in console.prefs) templateFile = console.prefs[templateName]; else templateFile = console.prefs[templatePfx + "txt"]; var reportTemplate = console.profiler.loadTemplate(templateFile); | var rv = writeProfile(e, file, ext, onComplete); | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1dfad411915032dbfbba1259cc94b8fa032eac7a/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
var scriptInstanceList = new Array(); var j; if (!("urlList" in e) || e.urlList.length == 0) { if ("url" in e && e.url) e.urlList = [e.url]; else e.urlList = keys(console.scriptManagers); } e.urlList = e.urlList.sort(); for (i = 0; i < e.urlList.length; ++i) { var url = e.urlList[i]; if (!ASSERT (url in console.scr... | return rv.localFile; | function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/1dfad411915032dbfbba1259cc94b8fa032eac7a/venkman-commands.js/buggy/extensions/venkman/resources/content/venkman-commands.js |
return; | return null; | function cmdSaveTab (e){ var source2View = console.views.source2; if (source2View.tabs && e.index == null) { e.index = source2View.tabs.selectedIndex; if (!(e.index in source2View.sourceTabList)) return; } else if (!source2View.tabs || e.index < 0 || e.index > source2... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6d3605984754042ac2ea071be474d6b8ed01f0eb/venkman-views.js/buggy/extensions/venkman/resources/content/venkman-views.js |
var msg = filterOutput(e.message, "PRIVMSG", "ME!"); | var msg = filterOutput(e.message, "PRIVMSG", e.sourceObject); | function cmdSay(e){ if (!("say" in e.sourceObject)) { display(getMsg(MSG_ERR_IMPROPER_VIEW, "say"), MT_ERROR); return; } var msg = filterOutput(e.message, "PRIVMSG", "ME!"); e.sourceObject.display(msg, "PRIVMSG", "ME!", e.sourceObject); e.sourceObject.say(msg);} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d0aa27f615216d1223f522af5d0b3c2c0dbcd38c/commands.js/buggy/extensions/irc/xul/content/commands.js |
priority = priority == "!important" ? "!blah" : "!important"; | priority = priority == "important" ? "" : "important"; | cmdToggleSelectedImportant: function() { var style = this.getSelectedRule().style; var propname = this.getSelectedProp(); var propval = style.getPropertyValue(propname); var priority = style.getPropertyPriority(propname); priority = priority == "!important" ? "!blah" : "!important"; style.removePro... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/7437096b6996d0beac566108c1f80fead09a0f80/styleRules.js/clean/extensions/inspector/resources/content/viewers/styleRules/styleRules.js |
e.channel.setTopic(fromUnicode(e.newTopic, e.channel)); | e.channel.setTopic(e.newTopic); | function cmdTopic(e){ if (!e.newTopic) e.server.sendData ("TOPIC " + e.channel.name + "\n"); else e.channel.setTopic(fromUnicode(e.newTopic, e.channel));} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/009763dfa8bae7c01f491a191f71b85ba2b38597/commands.js/buggy/extensions/irc/xul/content/commands.js |
labelDefault = getMsgFrom (bundle, "cmd." + aliasFor + ".label", null, name); | if (aliasFor) labelDefault = getMsgFrom (bundle, "cmd." + aliasFor + ".label", null, name); | function cmgr_defcmds (cmdary){ var len = cmdary.length; var commands = new Object(); var bundle = ("stringBundle" in cmdary ? cmdary.stringBundle : this.defaultBundle); for (var i = 0; i < len; ++i) { var name = cmdary[i][0]; var func = cmdary[i]... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js |
var label = getMsgFrom(bundle, "cmd." + name + ".label", null, labelDefault); var help = getMsgFrom(bundle, "cmd." + name + ".help", null, helpDefault); | var label = getMsgFrom(bundle, "cmd." + name + ".label", null, labelDefault); var help = getMsgFrom(bundle, "cmd." + name + ".help", null, helpDefault); | function cmgr_defcmds (cmdary){ var len = cmdary.length; var commands = new Object(); var bundle = ("stringBundle" in cmdary ? cmdary.stringBundle : this.defaultBundle); for (var i = 0; i < len; ++i) { var name = cmdary[i][0]; var func = cmdary[i]... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js |
function cmgr_isok (e, command){ if (typeof command == "undefined") command = e.command; if (!command.enabled) return false; for (var i = 0; i < command.argNames.length; ++i) { if (command.argNames[i] == ":") return true; if (!(command.argNames[i] in e)) ... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js | ||
if (partialName.length == this.commands[i].name.length) /* exact match */ return [this.commands[i]]; else | function cmgr_list (partialName){ /* returns array of command objects which look like |partialName|, or * all commands if |partialName| is not specified */ if ((typeof partialName == "undefined") || (String(partialName) == "")) return this.commands; var ary = new Array(); for (var i in thi... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/command-manager.js/buggy/extensions/irc/js/lib/command-manager.js | |
return cmdNames.sort(); | return (cmdNames.length > 0) ? cmdNames.sort() : []; | function cmgr_listnames (partialName){ var cmds = this.list(partialName); var cmdNames = new Array(); for (var c in cmds) cmdNames.push (cmds[c].name); return cmdNames.sort();} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/command-manager.js/buggy/extensions/irc/js/lib/command-manager.js |
this.description = getMsg("rule_" + name); | if (name[0] != ".") this.description = getMsg("rule_" + name); | function CMungerEntry (name, regex, className, enable, tagName){ this.name = name; this.description = getMsg("rule_" + name); this.enabled = (typeof enable == "undefined" ? true : enable); this.tagName = (tagName) ? tagName : "html:span"; if (regex instanceof RegExp) this.regex = regex; els... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/b8511d02e8bcb51d475c1c9a02b7a6f680ba5830/munger.js/buggy/extensions/irc/xul/lib/munger.js |
if (inboxFolder.hasNewMessages) inboxFolder.clearNewMessages(); | inboxFolder.clearNewMessages(); | function CoalesceGetMsgsForPop3ServersByDestFolder(currentServer, pop3DownloadServersArray, localFoldersToDownloadTo){ var outNumFolders = new Object(); var inboxFolder = currentServer.rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); pop3Server = currentServer.QueryInterface(Components.interfaces.nsIPop3... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/05d270774e52e58d99a71e489fd1fea5e3d64a85/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js |
img = FetchElement('img_admin_menu'+i) | img = FetchElement('img_admin_menu'+i); | function Collapse_all() { for (var i=0; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { KillCookie('admin_menu'+i) Switch(img) } } } | 9569 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9569/ad2d4c49d576e33eb5f75e6d027ba1fe85a04c59/menu.js/clean/viscacha/admin/html/menu.js |
KillCookie('admin_menu'+i) Switch(img) | KillCookie('admin_menu'+i); Switch(img); | function Collapse_all() { for (var i=0; i<=20; i++) { img = FetchElement('img_admin_menu'+i) if (img) { KillCookie('admin_menu'+i) Switch(img) } } } | 9569 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9569/ad2d4c49d576e33eb5f75e6d027ba1fe85a04c59/menu.js/clean/viscacha/admin/html/menu.js |
Element.collectTextNodesIgnoreClass = function(element, ignoreclass) { var children = $(element).childNodes; var text = ""; var classtest = new RegExp("^([^ ]+ )*" + ignoreclass+ "( [^ ]+)*$","i"); for (var i = 0; i < children.length; i++) { if(children[i].nodeType==3) { text+=children[i].nodeValue; } else { if((!... | Element.collectTextNodesIgnoreClass = function(element, ignoreclass) { var children = $(element).childNodes; var text = ""; var classtest = new RegExp("^([^ ]+ )*" + ignoreclass+ "( [^ ]+)*$","i"); for (var i = 0; i < children.length; i++) { if(children[i].nodeType==3) { text+=children[i].nodeValue; } else { if((!... | Element.collectTextNodesIgnoreClass = function(element, ignoreclass) { var children = $(element).childNodes; var text = ""; var classtest = new RegExp("^([^ ]+ )*" + ignoreclass+ "( [^ ]+)*$","i"); for (var i = 0; i < children.length; i++) { if(children[i].nodeType==3) { text+=children[i].nodeValue; ... | 2930 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2930/8a342036a177e27b9f776c900bbae999b6ce8e3c/effects.js/buggy/tracks/public/javascripts/effects.js |
var endDate = getElementValue("end-datetime"); if (getElementValue("all-day-event-checkbox", "checked") ) endDate.setDate(endDate.getDate() + 1); else endDate.setDate(endDate.getDate() - 1); updateStartEndItemEnabled(); updateOKButton(); | updateDuration(); updateStartEndItemEnabled(); updateOKButton(); | function commandAllDay(){ var endDate = getElementValue("end-datetime"); //user enddate == ical enddate - 1 (for allday events) if (getElementValue("all-day-event-checkbox", "checked") ) endDate.setDate(endDate.getDate() + 1); else endDate.setDate(endDate.getDate() - 1); updateStartEndItemE... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/19fb5465cb2406e0fe390e385c2327a0e085041e/eventDialog.js/buggy/calendar/resources/content/eventDialog.js |
function CommandRecord (name, func, usage, help, label, flags, keystr){ this.name = name; this.func = func; this._usage = usage; this.scanUsage(); this.help = help; this.label = label ? label : name; this.labelstr = label.replace ("&", ""); this.flags = flags; this._enabled = true; this.ke... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/5729506acb85fa9ecb10b8c82c3c5a0163f7df6b/command-manager.js/clean/extensions/venkman/resources/content/command-manager.js | ||
AbUpdateCommandDelete(); | function CommandUpdate_AddressBook(){ dump("CommandUpdate_AddressBook\n"); // get selection info from dir pane var tree = document.getElementById('dirTree'); var oneAddressBookSelected = false; if ( tree && tree.selectedItems && (tree.selectedItems.length == 1) ) oneAddressBookSelected = true; dump("oneAddressBookSel... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/26fbbb140ddd210eae5945dfc04dfa2ace7bfbbf/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js | |
goUpdateCommand('cmd_getNewMessages'); goUpdateCommand('cmd_find'); goUpdateCommand('cmd_findAgain'); goUpdateCommand('cmd_markAsRead'); goUpdateCommand('cmd_markThreadAsRead'); goUpdateCommand('cmd_markAllRead'); goUpdateCommand('cmd_markAsFlagged'); goUpdateCommand('cmd_file'); | function CommandUpdate_Mail(){ goUpdateCommand('cmd_delete'); goUpdateCommand('button_delete'); goUpdateCommand('cmd_shiftDelete'); goUpdateCommand('cmd_print'); goUpdateCommand('cmd_saveAsFile'); goUpdateCommand('cmd_saveAsTemplate'); goUpdateCommand('cmd_viewPageSource'); goUpdateCommand('cmd_reload');} | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d63000ffb06f1c74b5d3215477135715d57355d7/messageWindow.js/clean/mailnews/base/resources/content/messageWindow.js | |
goUpdateCommand('cmd_delete'); | function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/3f3a4477b23e35b9554552429d66f9f1023e77e9/widgetglue.js/buggy/mailnews/base/resources/content/widgetglue.js | |
goUpdateCommand('cmd_getMsgsForAuthAccounts'); | function CommandUpdate_Mail(){ goUpdateCommand('button_delete'); goUpdateCommand('cmd_delete'); goUpdateCommand('cmd_editDraft'); goUpdateCommand('cmd_nextMsg'); goUpdateCommand('cmd_nextUnreadMsg'); goUpdateCommand('cmd_nextUnreadThread'); goUpdateCommand('cmd_nextFlaggedMsg'); goUpdateCommand('cmd_previousMsg'); goUp... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/ba724c809dc62d6ced393c9580f841dcf13e64d0/mail3PaneWindowCommands.js/clean/mailnews/base/resources/content/mail3PaneWindowCommands.js | |
goUpdateCommand('button_delete'); goUpdateCommand('button_reply'); goUpdateCommand('button_replyall'); goUpdateCommand('button_forward'); goUpdateCommand('cmd_shiftDelete'); | function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d63000ffb06f1c74b5d3215477135715d57355d7/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js | |
goUpdateCommand('cmd_sortBySubject'); goUpdateCommand('cmd_sortByDate'); goUpdateCommand('cmd_sortByFlag'); goUpdateCommand('cmd_sortByPriority'); goUpdateCommand('cmd_sortBySender'); goUpdateCommand('cmd_sortBySize'); goUpdateCommand('cmd_sortByStatus'); goUpdateCommand('cmd_sortByRead'); goUpdateCommand('cmd_sortByOr... | function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d63000ffb06f1c74b5d3215477135715d57355d7/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js | |
goUpdateCommand('cmd_openMessage'); goUpdateCommand('cmd_print'); goUpdateCommand('cmd_saveAsFile'); goUpdateCommand('cmd_saveAsTemplate'); goUpdateCommand('cmd_viewPageSource'); goUpdateCommand('cmd_reload'); | goUpdateCommand('cmd_getNewMessages'); goUpdateCommand('cmd_find'); goUpdateCommand('cmd_findAgain'); goUpdateCommand('cmd_markAllRead'); goUpdateCommand('cmd_emptyTrash'); goUpdateCommand('cmd_compactFolder'); | function CommandUpdate_Mail(){ /*var messagePane = top.document.getElementById('messagePane'); var drawFocusBorder = messagePane.getAttribute('draw-focus-border'); if ( MessagePaneHasFocus() ) { if ( !drawFocusBorder ) messagePane.setAttribute('draw-focus-border', 'true'); } else { if ( drawFocusBorder ) message... | 5872 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d63000ffb06f1c74b5d3215477135715d57355d7/mail3PaneWindowCommands.js/buggy/mailnews/base/resources/content/mail3PaneWindowCommands.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.