rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
this.continueCommandExecutionWithDelay = function() { // Get the interval to use for this command execution, using the pauseInterval is // specified. Reset the pause interval, since it's a one-off thing. var interval = this.pauseInterval || this.getCommandInterval(); this.pauseInterval =... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2fcc52b4c36971bc80c8c53c7e2a4289ca8af0c0/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js | ||
if (interval >= 0) { | if (interval < 0) { this.waitingForNext(); } else { | this.continueCommandExecutionWithDelay = function() { // Get the interval to use for this command execution, using the pauseInterval is // specified. Reset the pause interval, since it's a one-off thing. var interval = this.pauseInterval || this.getCommandInterval(); this.pauseInterval =... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2fcc52b4c36971bc80c8c53c7e2a4289ca8af0c0/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js |
this.continueCommandExecutionWithDelay = function() { // Get the interval to use for this command execution, using the pauseInterval is // specified. Reset the pause interval, since it's a one-off thing. var interval = this.pauseInterval || this.getCommandInterval(); this.pauseInterval =... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ed2c8a04823b08b4112b9e08d6cbf9962ca6c66f/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js | ||
if (interval >= 0) { | if (interval < 0) { this.waitingForNext(); } else { | this.continueCommandExecutionWithDelay = function() { // Get the interval to use for this command execution, using the pauseInterval is // specified. Reset the pause interval, since it's a one-off thing. var interval = this.pauseInterval || this.getCommandInterval(); this.pauseInterval =... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ed2c8a04823b08b4112b9e08d6cbf9962ca6c66f/selenium-executionloop.js/clean/code/javascript/selenium-executionloop.js |
}; | }; | this.continueCurrentTest = function() { var testStatus = this.kickoffNextCommandExecution(); if (testStatus == TEST_FINISHED) { this.testComplete(); } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ffcc6e38fdd60734dac28f8585206590a016367d/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
this.runInterval = this.speedController.value; | this.reset(); | continueCurrentTest: function () { this.runInterval = this.speedController.value; currentTest.resume(); this._switchContinueButtonToPause(); }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eff8afcb162f8155443954e039d24982e1947ff1/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js |
this._switchContinueButtonToPause(); | continueCurrentTest: function () { this.runInterval = this.speedController.value; currentTest.resume(); this._switchContinueButtonToPause(); }, | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/eff8afcb162f8155443954e039d24982e1947ff1/selenium-testrunner.js/clean/code/javascript/core/scripts/selenium-testrunner.js | |
}; | }; | this.continueCurrentTest = function() { var testStatus = this.kickoffNextCommandExecution(); if (testStatus == TEST_FINISHED) { this.testComplete(); } }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/02a0b4820ee03a2ea48dcd7849e696cbcb2e910b/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js |
document.getElementById('continueTest').disabled = true; | function continueCurrentTest() { testLoop.finishCommandExecution();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2fcc52b4c36971bc80c8c53c7e2a4289ca8af0c0/selenium-fitrunner.js/clean/code/javascript/selenium-fitrunner.js | |
document.getElementById('continueTest').disabled = true; | function continueCurrentTest() { testLoop.finishCommandExecution();} | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ed2c8a04823b08b4112b9e08d6cbf9962ca6c66f/selenium-fitrunner.js/buggy/code/javascript/selenium-fitrunner.js | |
LOG.debug("testLoop.continueTest() - acquire the next command"); | this.continueTest = function() { if (! this.aborted) { this.currentCommand = this.nextCommand(); } if (! this.requiresCallBack) { this.beginNextTest(); } // otherwise, just finish and let the callback invoke beginNextTest() }; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js | |
if (this.waitForCondition == null || this.waitForCondition()) { | if (this.waitForCondition == null) { LOG.debug("null condition; let's continueTest()"); LOG.debug("Command complete"); this.commandComplete(this.result); this.continueTest(); } else if (this.waitForCondition()) { | continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ //LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); se... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js |
var lastResult = {}; lastResult.failed = true; lastResult.failureMessage = extractExceptionMessage(e); this.commandComplete(lastResult); this.testComplete(); | this.result = {}; this.result.failed = true; this.result.failureMessage = extractExceptionMessage(e); this.commandComplete(this.result); this.continueTest(); | continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ //LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); se... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/afa54887f887b5863f6af88f1b5293c9af5683a3/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js |
window.setTimeout(this.continueTestWhenConditionIsTrue.bind(this), 100); | window.setTimeout(fnBind(this.continueTestWhenConditionIsTrue, this), 100); | continueTestWhenConditionIsTrue: function () { /** * Busy wait for waitForCondition() to become true, and then carry * on with test. Fail the current test if there's a timeout or an * exception. */ LOG.debug("currentTest.continueTestWhenConditionIsTrue()"); sele... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/697a29d268d2448c4391184afe752f6497773118/selenium-executionloop.js/clean/code/javascript/core/scripts/selenium-executionloop.js |
this.waitForConditionTimeout = null; | this.continueTestWhenConditionIsTrue = function () { try { if (this.waitForCondition == null || this.waitForCondition()) { this.waitForCondition = null; this.waitForConditionStart = null; this.waitForConditionTimeout = null; this.continueTest(); ... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js | |
LOG.debug("waitForCondition was false; keep waiting!"); | this.continueTestWhenConditionIsTrue = function () { try { if (this.waitForCondition == null || this.waitForCondition()) { this.waitForCondition = null; this.waitForConditionStart = null; this.waitForConditionTimeout = null; this.continueTest(); ... | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ee8f57a55845d6b1bd383c79ecd25cc8e6bc6cc0/selenium-executionloop.js/buggy/code/javascript/selenium-executionloop.js | |
var tldRegExp = new RegExp("^(\\^(?:[^/]*)(?: var tldRes = res.match(tldRegExp); if (tldRes) { var gTLD = [ "arpa", "com", "edu", "int", "mil", "net", "org", "aero", "biz", "coop", "info", "museum", "name", "pro" ]; var ccTLD = [ "ac", "ad", "ae", "af", "ag", "ai", "al", "am", "an", "ao", "aq", "ar", "ar", "as",... | function convert2RegExp( pattern ) { s = new String(pattern); res = new String("^"); for (var i = 0 ; i < s.length ; i++) { switch(s[i]) { case '*' : res += ".*"; break; case '.' : case '?' : case '^' : case '$' : case '+' : case '{' : case '[' :... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0ffe0d13bc268a9071251a057c30ab9ba398fe0b/greasemonkey.js/buggy/src/content/greasemonkey.js | |
function Convert (s, ty) | function Convert (s, ty, validator) | function Convert (s, ty){ var cvt = this ["To" + ty]; if (typeof (cvt) == 'function') return cvt (s); else return null;} | 7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/f9cd6d0dbb79bde7153e4901d04bc2ceb87dcb68/WebUIValidation_2.0.js/buggy/mcs/class/System.Web/resources/WebUIValidation_2.0.js |
return cvt (s); | return cvt (s, validator); | function Convert (s, ty){ var cvt = this ["To" + ty]; if (typeof (cvt) == 'function') return cvt (s); else return null;} | 7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/f9cd6d0dbb79bde7153e4901d04bc2ceb87dcb68/WebUIValidation_2.0.js/buggy/mcs/class/System.Web/resources/WebUIValidation_2.0.js |
result[1] = result[1].replace(/%20/gi, " "); result[3] = result[3].replace(/%20/gi, " "); | WikiEditor.prototype.convertAttachmentInternal = function(regexp, result, content) { var str; if (result[1] == result[3]) str = "{attach:" + result[1] + "}"; else if ((result[1] == "undefined") || (this.trimString(result[1]) == "")) str = "{attach:" + result[3] + "}"; else str = "{attach:" + result[3] + "|... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/attachments.js/clean/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/attachments.js | |
return content.substring(0, bounds["start"]) + "\r\n" + str + content.substring(bounds["end"], content.length); | return content.substring(0, bounds["start"]) + "\r\n" + str + content.substring(bounds["end"], content.length); | WikiEditor.prototype.convertListInternal = function(regexp, result, content) { var bounds = this.replaceMatchingTag(content, result[1], null); var str = ""; if(bounds && bounds["start"] > -1) { str = this._convertListInternal(content.substring(bounds["start"], bounds["end"])); return content.substring(0, bounds["s... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
return content; | return content; | WikiEditor.prototype.convertListInternal = function(regexp, result, content) { var bounds = this.replaceMatchingTag(content, result[1], null); var str = ""; if(bounds && bounds["start"] > -1) { str = this._convertListInternal(content.substring(bounds["start"], bounds["end"])); return content.substring(0, bounds["s... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/baa0ff49e632f866bc8a0a1f4a567e8416b94608/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
var tag = "font"; | var tag = "font", style = "", class = "", id = "", name = ""; | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/d8e01170d65b6a2465209dec28f3f2c10514d226/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length); if (att == "size") att = "font-size"; if (att == "face") att = "font-family"; if (i==0) { if (att == "type") { tag = value; str = "<" + tag + " "; } else { str = "<" + tag + " style=\"" + att +... | var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); var value = this.trimString(atts[i].substring(atts[i].indexOf("=") + 1, atts[i].length)); if (att == "class") class = value; else if (att == "id") id = value; else if (att == "name") name = value; else if (att == "type") tag = value; else style += a... | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/d8e01170d65b6a2465209dec28f3f2c10514d226/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
str += "<" + tag; if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/d8e01170d65b6a2465209dec28f3f2c10514d226/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js | |
var tag = "font", style = "", class = "", id = "", name = ""; | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/b0cf9cdc57a651cb0de2982beeeef65bb2eefa7b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js | |
if (att == "class") class = value; else if (att == "id") id = value; else if (att == "name") name = value; else if (att == "type") tag = value; else style += att + ":" + value + ";"; | if (att == "class") { myclass = value; } else if (att == "id") { id = value; } else if (att == "name") { name = value; } else if (att == "type") { tag = value; } else { style += att + ":" + value + ";"; } | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/b0cf9cdc57a651cb0de2982beeeef65bb2eefa7b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; | if (id != "") { str += " id=\"" + id + "\""; } if (myclass != "") { str += " class=\"" + myclass + "\""; } if (name != "") { str += " name=\"" + name + "\""; } if (style != "") { str += " style=\"" + style + "\""; } | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/b0cf9cdc57a651cb0de2982beeeef65bb2eefa7b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
if (attributes && attributes["id"]) { str += "|id=" + attributes["id"] ; } if (attributes && attributes["class"]) { str += "|class=" + attributes["class"] ; } if (attributes && attributes["name"]) { str += "|name=" + attributes["name"] ; } | WikiEditor.prototype.convertStyleInternal = function(regexp, result, content) { var type = result[1]; var str = ""; if (type == "span" || type =="div") { var attributes = this.readAttributes(result[2]); str += "{style:type=" + type; if (attributes && attributes["style"]) { var a... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/d8e01170d65b6a2465209dec28f3f2c10514d226/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js | |
content = content.replace(/<div class="paragraph">([\s\S]+?)<\/div>/g,'$1'); content = content.replace(/<span class="(wikilink|wikiexternallink)">\s*([\s\S]+?)<\/span>/g,'$2'); content = content.replace(/<span class="(bold|italic|strike)">([\s\S]+?)<\/span>/g,'$2'); | WikiEditor.prototype.convertStyleInternal = function(regexp, result, content) { var type = result[1]; var str = ""; if (type == "span" || type =="div") { var attributes = this.readAttributes(result[2]); str += "{style:type=" + type; if (attributes && attributes["id"]) { str += "... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f29deeb74124823188a469c79e8bffa00b36f465/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js | |
var lines = this._getLines(text); | var _lines = this._getLines(text); | WikiEditor.prototype.convertTableExternal = function(regexp, result, content) { var text = this.trimString(result[1]); var lines = this._getLines(text); var str = "<table class=\"wiki-table\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" for (var i=0; i < lines.length; i++) lines[i] = this.t... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/1e540478186618f6b999863aedec34c80810164b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.js |
for (var i=0; i < lines.length; i++) lines[i] = this.trimString(lines[i].replace(/\r|\n/g, "")); | var lines = new Array(); var numColumns = 0; for (var i=0; i < _lines.length; i++) { _lines[i] = this.trimString(_lines[i].replace(/\r|\n/g, "")); _lines[i] = _lines[i].replace(/<\/?p[^>]*>/gi, ""); if (_lines[i] != "") { lines[numColumns] = _lines[i]; numColumns++; } } | WikiEditor.prototype.convertTableExternal = function(regexp, result, content) { var text = this.trimString(result[1]); var lines = this._getLines(text); var str = "<table class=\"wiki-table\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" for (var i=0; i < lines.length; i++) lines[i] = this.t... | 6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/1e540478186618f6b999863aedec34c80810164b/core.js/buggy/xwiki-platform-web/standard/src/main/webapp/wiki_editor_2/plugins/core.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',i... | 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 |
function correctPNG() | function correctPNG() | function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.{ for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "... | 1595 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1595/cca2e85bcae3b1bdccae09bb27e8ed7c567dcbb3/correct_png.js/clean/source/adm_program/system/correct_png.js |
for(var i=0; i<document.images.length; i++) | var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) | function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.{ for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "... | 1595 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1595/cca2e85bcae3b1bdccae09bb27e8ed7c567dcbb3/correct_png.js/clean/source/adm_program/system/correct_png.js |
var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "titl... | for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img... | function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.{ for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "... | 1595 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1595/cca2e85bcae3b1bdccae09bb27e8ed7c567dcbb3/correct_png.js/clean/source/adm_program/system/correct_png.js |
tmp_counter=0; | var tmp_counter = 0; | function count_channels() { tmp_counter=0; for (tmp_count in Channels) { if (Channels[tmp_count]) tmp_counter++; } return tmp_counter;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/2a89ac90e96057c1f27b4ede559cce5d9d5a7f83/ircd.js/buggy/ircd.js |
tmp_counter=0; | var tmp_counter = 0; | function count_local_nicks() { tmp_counter=0; for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && !Clients[tmp_count].parent) tmp_counter++; } return tmp_counter;} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/2a89ac90e96057c1f27b4ede559cce5d9d5a7f83/ircd.js/buggy/ircd.js |
tmp_counter=0; | function count_nicks(count_bit) { if(!count_bit) count_bit=USERMODE_NONE; tmp_counter=0; for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && ((Clients[tmp_count].conntype == TYPE_USER) || (Clients[tmp_count].conntype == TYPE_USER_REMOTE)) && (Clients[tmp_count].mode&count_bit) && ... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/2a89ac90e96057c1f27b4ede559cce5d9d5a7f83/ircd.js/buggy/ircd.js | |
var tmp_counter; | function count_servers(count_all) { if (count_all) tmp_counter=1; // we start by counting ourself. else tmp_counter=0; // we're just counting servers connected to us for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && Clients[tmp_count].server) { if (Clients[tmp_count].local || count_all) ... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/2a89ac90e96057c1f27b4ede559cce5d9d5a7f83/ircd.js/buggy/ircd.js | |
debug("cqAutoSave: " + theFlag.checked); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
cqExport(document.getElementById(g_cq_query_form)); | cqExport(document.getElementById(g_cq_query_form_id)); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
var theForm = document.getElementById(g_cq_query_form); | debug("cqAutoSave: incremental"); var theForm = document.getElementById(g_cq_query_form_id); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
debug("cqAutoSave: " + theQuery); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
theDatabase = document.getElementById(g_cq_database_list_id); | theDatabase = document.getElementById(g_cq_eval_list_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js | ||
function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/acaf2f3cc32a6781b1b116b2d37f39fc2d4472e2/cq.js/clean/cq.js | ||
if (theUri) { var theQuery = 'xdmp:document-insert("' + theUri + '",' + '<' + g_cq_buffers_area_id + ' id="' + g_cq_buffers_area_id + '">'; var buf = null; var theParent = document.getElementById(g_cq_buffers_area_id); for (var i = 0; i < theParent.childNodes.length; i++) { buf = getBuffer(i); if (buf != null) { the... | if (! theUri) { return null; } var theQuery = 'xdmp:document-insert("' + theUri + '",' + '<' + g_cq_buffers_area_id + ' id="' + g_cq_buffers_area_id + '">'; var buf = null; var theParent = document.getElementById(g_cq_buffers_area_id); for (var i = 0; i < theParent.childNodes.length; i++) { buf = getBuffer(i); if (... | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
var listNode = getQueryHistoryListNode(false); if (!listNode) { debug.print("cqExport: null listNode"); } else { var historyQueries = listNode.childNodes; var historyLength = historyQueries.length; for (var i = 0; i < historyLength; i++) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQuer... | } var listNode = getQueryHistoryListNode(false); if (!listNode) { debug.print("cqExport: null listNode"); } else { var historyQueries = listNode.childNodes; var historyLength = historyQueries.length; for (var i = 0; i < historyLength; i++) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQu... | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
theQuery += '</' + g_cq_buffers_area_id + '>)' + ', "exported ' + theUri + '"'; var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; theDatabase.value = null; submitForm(theForm, theQuery, "text/html"); | } theQuery += '</' + g_cq_buffers_area_id + '>)' + ', "exported ' + theUri + '"'; submitForm(theForm, theQuery, "text/html"); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
debug.print("cqExport: preserving selected database " + oldDatabase); theDatabase.value = oldDatabase; } | debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
debug("cqExport: null listNode"); | debug.print("cqExport: null listNode"); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("cqExport: preserving selected database " + oldDatabase); | debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
theDatabase = document.getElementById(g_cq_database_list); | theDatabase = document.getElementById(g_cq_database_list_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
debug("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQueries[i].firstChild.nodeValue) + '</' + g_cq_history_basename + '>' + "\n"; | queryText = historyQueries[i].firstChild.nodeValue; if (queryText != null) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(queryText) + '</' + g_cq_history_basename + '>' + "\n"; } | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/c2e7a157fb2c674a41925a5417c356a9c4ff1404/cq.js/buggy/cq.js |
debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/c2e7a157fb2c674a41925a5417c356a9c4ff1404/cq.js/buggy/cq.js | |
alert("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/7713533e1a5035671ad88b70eaf1a71be6c5fab3/cq.js/clean/cq.js | |
var theUri = document.getElementById(g_cq_uri).value; | var theUri = trim(document.getElementById(g_cq_uri).value); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
theDatabase = document.getElementById(g_cq_eval_list_id); oldDatabase = theDatabase.value; | var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
var theParent = document.getElementById(g_cq_buffers_area_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO if the worksheet has n... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d78133c63c6016418ecccff62bb2c65ed609c867/cq.js/clean/cq.js | |
theDatabase = document.getElementById(g_cq_database_list_id); | theDatabase = document.getElementById(g_cq_eval_list_id); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
debug("setting import timeout to " + g_cq_timeout); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/060bfd9298d0dda1cada0ef8d4fc481b37878a48/cq.js/clean/cq.js | |
var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_id + "/>)[1]"; | var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_id + "/>)[1]"; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; theDatabase.value = null; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js | |
theDatabase.value = oldDatabase; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js | |
} | } | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d682e810d9bf848245210389669c48ed070f8d26/cq.js/clean/cq.js |
debug("cqImport: " + theQuery); | debug.print("cqImport: " + theQuery); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
theDatabase = document.getElementById(g_cq_eval_list_id); oldDatabase = theDatabase.value; | var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("setting import timeout to " + g_cq_timeout); | debug.print("setting import timeout to " + g_cq_timeout); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("cqImport: " + theQuery); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); //alert("cqImport: " + theQuery); // set the current dat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
theDatabase = document.getElementById(g_cq_database_list); | theDatabase = document.getElementById(g_cq_database_list_id); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); //alert("cqImport: " + theQuery); // set the current dat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
var theQuery = | var theQuery = | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/c2e7a157fb2c674a41925a5417c356a9c4ff1404/cq.js/buggy/cq.js |
var theUri = document.getElementById(g_cq_uri).value; | var theUri = trim(document.getElementById(g_cq_uri).value); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug.print("cqImport: " + theQuery); // set the current... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
var theQuery = "doc('" + theUri + "')"; | var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_id + "/>)[1]"; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug.print("cqImport: " + theQuery); // set the current... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js |
function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug.print("cqImport: " + theQuery); // set the current... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/80df44989b199bf06ecaf6b380ef0d6ae363df5b/cq.js/clean/cq.js | ||
var theForm = document.getElementById(g_cq_query_form); | var theForm = document.getElementById(g_cq_query_form_id); | function cqListBuffers() { var theForm = document.getElementById(g_cq_query_form); var theQuery = "for $i in input() return (document-uri($i), <br/>)"; submitForm(theForm, theQuery, "text/html");} // cqListBuffers | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
var theForm = $(kQueryFormId); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/fa73b32cceb4f0083ba3aeb2e77c3b68663bf56d/query.js/buggy/query.js | |
+ "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," + " text{})[$est gt 1000]," + " for $i in doc()[1 to 1000] return text { base-uri($i) }" | + "( element p { 'Too many documents to display!'," + " 'First 10000 documents of', $est, 'total:' }" + ")[$est gt 10000]," + " for $i in doc()[1 to 10000]" + " let $uri := base-uri($i)" + " order by $uri" + " return ( $uri, <br/> )" | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/fa73b32cceb4f0083ba3aeb2e77c3b68663bf56d/query.js/buggy/query.js |
submitForm(theForm, theQuery, "text/plain", false); | submitForm($(kQueryFormId), theQuery, "text/html", false); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/fa73b32cceb4f0083ba3aeb2e77c3b68663bf56d/query.js/buggy/query.js |
var theForm = $(gQueryFormId); | var theForm = $(kQueryFormId); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(gQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/95f89c0957a3426915b61066d1c0793d3f8f49db/query.js/buggy/query.js |
function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js | ||
function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js | ||
var currDatabase = getCookie(g_cq_database_list_id); | var currDatabase = getCookie(g_cq_eval_list_id); | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
document.getElementById(g_cq_database_list_id).value = currDatabase; | document.getElementById(g_cq_eval_list_id).value = currDatabase; | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
refreshBufferList(0); | refreshBufferList(0, "cqOnLoad"); | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/5917330c0d2e34cb6706d33cdb3cff9f12ceccb6/cq.js/buggy/cq.js |
document.onkeyup = handleKeyUp; | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var queryDebug = parseQuery("debug"); if (queryDebug && queryDebug != "false" && queryDebug != "0") DEBUG = true; //debug(navigator.userAgent.toLowerCase()); // register for key-presses document.onkeypress = handleKeyPress; ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/081d9c507c7fe8dce4987711db1a59d3e5fff4ef/cq.js/buggy/cq.js | |
function cqOnLoad() { debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // display the buffer list, exposing buffer 0 // recover current db from session c... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/060bfd9298d0dda1cada0ef8d4fc481b37878a48/cq.js/clean/cq.js | ||
function cqOnLoad() { debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // display the buffer list, exposing buffer 0 // recover current db from session c... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/060bfd9298d0dda1cada0ef8d4fc481b37878a48/cq.js/clean/cq.js | ||
var policy = new PolicyClass("/cq:title", $F("/cq:policy/title"), "head1", $F("/cq:policy/accent-color")); | var policy = new PolicyClass("/cq:title", $F("/cq:policy/title"), "head1", $F("/cq:policy/accent-color")); | function cqOnLoad() { debug.print("cqOnLoad: begin"); // register for key-presses Event.observe(this, "keypress", handleKeyPress); // set up the UI objects gBuffers = new QueryBufferListClass("/cq:input", "/cq:eval-in", "/cq:bu... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js |
debug("cqOnLoad: begin"); | debug.print("cqOnLoad: begin"); | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
&& debugStatus != "false" && debugStatus != "f" && debugStatus != "0") DEBUG = true; | && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") { debug.setEnabled(true); } | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js | ||
debug("cqOnLoad: currDatabase = " + currDatabase); | debug.print("cqOnLoad: currDatabase = " + currDatabase); | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/499e513a3cc333dbcb784318ca05ad90a90b7c8e/cq.js/clean/cq.js |
debug("cqOnLoad: begin"); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | ||
var currDatabase = getCookie(g_cq_database_list); | var currDatabase = getCookie(g_cq_database_list_id); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
document.getElementById(g_cq_database_list).value = currDatabase; | debug("cqOnLoad: currDatabase = " + currDatabase); document.getElementById(g_cq_database_list_id).value = currDatabase; | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js |
resizeFrameset(); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js | |
function cqOnLoad() { debug.print("cqOnLoad: begin"); // register for key-presses Event.observe(this, "keypress", handleKeyPress); // set up the UI objects gBuffers = new QueryBufferListClass("/cq:input", "/cq:eval-in", "/cq:bu... | 952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/query.js/clean/query.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.