rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
testSuiteComplete(); | isTestSuiteComplete(); | function runNextTest() { if (!runAllTests) return; suiteTable = getIframeDocument(getSuiteFrame()).getElementsByTagName("table")[0]; updateSuiteWithResultOfPreviousTest(); currentRowInSuite++; // If we are done with all of the tests, set the title bar as pass or fail if (currentRowInSuite >= su... |
debugMode = runOptions.getDebugMode(); | debugMode = runOptions.isDebugMode(); | function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testA... |
} else { | } else if ($('myiframe') != null) { | function runSeleniumTest() { runOptions = new RunOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else { testAppWindow = $('myiframe').contentWindow; } if (testAppWindow == null) { proxyInjectionMode... |
runOptions = new SeleneseRunnerOptions(); | runOptions = new RemoteRunnerOptions(); | function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testA... |
currentTest = new SeleneseRunner(commandFactory); | currentTest = new RemoteRunner(commandFactory); | function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { var myiframe = $('myiframe'); if (myiframe) { testA... |
testAppWindow = $('myiframe').contentWindow; | var myiframe = $('myiframe'); if (myiframe) { testAppWindow = myiframe.contentWindow; } | function runSeleniumTest() { runOptions = new SeleneseRunnerOptions(); var testAppWindow; if (runOptions.isMultiWindowMode()) { testAppWindow = openSeparateApplicationWindow('Blank.html'); } else if ($('myiframe') != null) { testAppWindow = $('myiframe').contentWindow; } else { pr... |
debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } | function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LO... | |
proxyInjectionMode = true; | function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LO... | |
proxyInjectionMode = false; | function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LO... | |
if (debugMode=="false") { debugMode = false; } | function runTest() { debugMode = getQueryVariable("debugMode"); var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LOG.logHook = logToRc; } selenium = Selenium.crea... | |
restoreSeleniumState(); | function runTest() { debugMode = getQueryVariable("debugMode"); if (debugMode=="false") { debugMode = false; } var testAppFrame = document.getElementById('myiframe'); if (testAppFrame==null) { // proxy injection mode testAppFrame = window; LOG.log = logToRc; } else { LO... | |
SafariPageBot = function(pageWindow) { | var SafariPageBot = function(pageWindow) { | SafariPageBot = function(pageWindow) { PageBot.call(this, pageWindow);}; |
return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ); | return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' ); | function sanitize_input( str ){ return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' );} |
DEFINE('CFLAGS_' + SAPI + '_OBJ', '$(CFLAGS_' + SAPI + ')'); | function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } ADD_SOURCES("sa... | |
STDOUT.WriteLine("Enabling sapi/" + sapiname); | STDOUT.WriteLine("Enabling SAPI " + configure_module_dirname); | function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } AD... |
ADD_SOURCES("sapi/" + sapiname, file_list, sapiname); | ADD_SOURCES(configure_module_dirname, file_list, sapiname); | function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } AD... |
resname = generate_version_info_resource(makefiletarget, "sapi/" + sapiname); | resname = generate_version_info_resource(makefiletarget, configure_module_dirname); | function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } AD... |
MFO.WriteLine("\t@echo SAPI " + sapiname + " build complete"); | MFO.WriteLine("\t@echo SAPI " + configure_module_dirname + "/" + sapiname + " build complete"); | function SAPI(sapiname, file_list, makefiletarget, cflags){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; STDOUT.WriteLine("Enabling sapi/" + sapiname); MFO.WriteBlankLines(1); MFO.WriteLine("# objects for SAPI " + sapiname); MFO.WriteBlankLines(1); if (cflags) { ADD_FLAG('CFLAGS_' + SAPI, cflags); } AD... |
if(PHP_VCI = "yes" || PHP_VCO == "yes") { ldflags += " /PGD:$(BUILD_DIR)\\"+makefiletarget+".pgd"; } | function SAPI(sapiname, file_list, makefiletarget, cflags, obj_dir){ var SAPI = sapiname.toUpperCase(); var ldflags; var resname; var ld; if (typeof(obj_dir) == "undefined") { sapiname_for_printing = configure_module_dirname; } else { sapiname_for_printing = configure_module_dirname + " (via " + obj_dir + ")"; } STDO... | |
function satFinder() | function satFinder(transponder) | function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");} |
NewWindow("/satFinder", "satfind", "170", "150", "no"); | NewWindow("/satFinder?" + transponder, "satfind", "170", "150", "no"); | function satFinder(){ NewWindow("/satFinder", "satfind", "170", "150", "no");} |
this.branch.deleteBranch("formats"); | save: function(options, prop_name) { if (prop_name) { this.setCharPref(prop_name, options[prop_name]); } else { var name; for (name in options) { this.setCharPref(name, options[name]); } } } | |
var configStream = getWriteStream(getScriptFile("config.xml")); | var configStream = getWriteStream(this.configFile); | this.save = function() { var doc = document.implementation.createDocument("", "UserScriptConfig", null); for (var i = 0, scriptObj = null; (scriptObj = this.scripts[i]); i++) { var scriptNode = doc.createElement("Script"); for (var j = 0; j < scriptObj.includes.length; j++) { var includeNod... |
BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttribute("id",BX_DocumentID); | function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttri... | |
dataEle.setAttribute("id",BX_DocumentID); | function save(filename,options) { // wyona way this.p.onload = this._responseXML; this.p.options = options; var WyonaRequest = BX_xml.doc.createElement("request"); WyonaRequest.setAttribute("type","checkin"); BX_DocumentID = "magazin/gesundheit/articles/2002/0508/index.xml"; WyonaRequest.setAttri... | |
mimetype: "text/plain", | mimetype: "text/html", | function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here ... |
alert(data); | function saveAttachment(obj, formid, noanim){var bindArgs = { url: "/exec/editattachments/" + obj, content: {ajax: "1"}, method: "POST", mimetype: "text/plain", error: function(type, errObj){ }, load: function(type, data, evt){ // handle successful response here ... | |
var body = editor.query(' var actionIndex = editor.query(' | var body = editor.query('. var actionIndex = editor.query('. | function saveBreakpointOnLine(lineNum){ var file = files[currentFile]; var breakpoint = file.breakpoints[lineNum]; row = file.element.firstChild.childNodes.item(lineNum - 1); var editor = breakpoint.editor; var body = editor.query('//div[@class="condition"]').innerText; var actionIndex = editor.query(... |
debug("saveBuffersRecoveryPoint: start"); | debug.print("saveBuffersRecoveryPoint: start"); | function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRe... |
debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); | debug.print("saveBuffersRecoveryPoint: " + buffersNode); debug.print("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); | function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRe... |
debug("saveBuffersRecoveryPoint: null buffersNode"); | debug.print("saveBuffersRecoveryPoint: null buffersNode"); | function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRe... |
debug("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie)); | debug.print("saveBuffersRecoveryPoint: " + getCookie(g_cq_buffers_cookie)); | function saveBuffersRecoveryPoint() { debug("saveBuffersRecoveryPoint: start"); var buffersNode = document.getElementById(g_cq_buffers_area_id); debug("saveBuffersRecoveryPoint: " + buffersNode); debug("saveBuffersRecoveryPoint: " + buffersNode.innerHTML); if (! buffersNode) { debug("saveBuffersRe... |
this.view.syncModel(); | function saveNewTestCase() { if (this.testManager.saveAsNew(this.testCase)) { //document.getElementById("filename").value = this.testCase.filename; updateTitle(); }} | |
var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); } | SeleniumIDE.Loader.getEditors().forEach(function(editor) { editor.setOptions(options); }); | function saveOptions() { var options = this.options; var name; for (name in options) { var e = document.getElementById(name); if (e != null) { options[name] = e.checked != undefined ? e.checked.toString() : e.value; } } var w = SeleniumIDE.getRecorderWindow(); if (w != null) { w.setOptions(options); } optionsMan... |
submitform('saveorder'); | function saveorder( n ) { checkAll_button( n ); submitform('saveorder');} | |
debug("saveQueryHistory: " + i); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... | |
function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
if (listItems && listItems[0]) { debug("saveQueryHistory: checking " + listItems.length); | if (checkFlag && listItems && listItems[0]) { debug.print("saveQueryHistory: dup-checking " + listItems.length); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
debug("saveQueryHistory: " + i + " matched!"); | debug.print("saveQueryHistory: " + i + " matched!"); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
newItem.appendChild(document.createTextNode(query)); | var queryNode = document.createElement("span"); queryNode.appendChild(document.createTextNode(query)); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
newItem.onclick = function() { | queryNode.onclick = function() { | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
newItem.title = "Click here to copy this query into the current buffer."; | queryNode.title = "Click here to copy this query into the current buffer."; newItem.appendChild(queryNode); | function saveQueryHistory(query, appendFlag) { debug("saveQueryHistory: " + query); var listNode = getQueryHistoryListNode(true); // simple de-dupe check // abort when we see the first duplicate: // this is most likely to happen with the most recent query // also implements history limit... var lis... |
function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; | function saveQueryHistory(query, checkFlag) { if (query == null || query == "") { return; } var normalizedQuery = normalizeSpace(query); if (normalizedQuery == null || normalizedQuery == "") { return; } | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... |
debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ": " + query.substr(0, 16)); | debug.print("saveQueryHistory: " + ", check=" + checkFlag + ": " + normalizedQuery.substr(0, 16)); | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... |
var normalizedQuery = normalize(query); if (query == null || query == "") { return; } | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... | |
if (normalize(listItems[i].childNodes[0].nodeValue) | if (normalizeSpace(listItems[i].firstChild.firstChild.nodeValue) | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... |
if (listItems && listItems[0] && (!appendFlag)) { | if (listItems && listItems[0]) { | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... |
debug.print("saveQueryHistory: appending " + newItem + " to " + listNode); | function saveQueryHistory(query, appendFlag, checkFlag) { if (appendFlag == null) appendFlag = false; // NOTE: if we know that there are no dups, don't check if (checkFlag == null) checkFlag = true; debug.print("saveQueryHistory: append=" + appendFlag + ", check=" + checkFlag + ... | |
this.view.syncModel(); | function saveTestCase() { if (this.testManager.save(this.testCase)) { //document.getElementById("filename").value = this.testCase.filename; return true; } else { return false; }} | |
function sc_caaadr(p) { return p.car.car.car.cdr; } | function sc_caaadr(p) { return p.cdr.car.car.car; } | function sc_caaadr(p) { return p.car.car.car.cdr; } /// export |
function sc_caadar(p) { return p.car.car.cdr.car; } | function sc_caadar(p) { return p.car.cdr.car.car; } | function sc_caadar(p) { return p.car.car.cdr.car; } /// export |
function sc_caaddr(p) { return p.car.car.cdr.cdr; } | function sc_caaddr(p) { return p.cdr.cdr.car.car; } | function sc_caaddr(p) { return p.car.car.cdr.cdr; } /// export |
function sc_caadr(p) { return p.car.car.cdr; } | function sc_caadr(p) { return p.cdr.car.car; } | function sc_caadr(p) { return p.car.car.cdr; } /// export |
function sc_cadaar(p) { return p.car.cdr.car.car; } | function sc_cadaar(p) { return p.car.car.cdr.car; } | function sc_cadaar(p) { return p.car.cdr.car.car; } /// export |
function sc_cadadr(p) { return p.car.cdr.car.cdr; } | function sc_cadadr(p) { return p.cdr.car.cdr.car; } | function sc_cadadr(p) { return p.car.cdr.car.cdr; } /// export |
function sc_cadddr(p) { return p.car.cdr.cdr.cdr; } | function sc_cadddr(p) { return p.cdr.cdr.cdr.car; } | function sc_cadddr(p) { return p.car.cdr.cdr.cdr; } /// export |
function sc_caddr(p) { return p.car.cdr.cdr; } | function sc_caddr(p) { return p.cdr.cdr.car; } | function sc_caddr(p) { return p.car.cdr.cdr; } /// export |
function sc_cadr(p) { return p.car.cdr; } | function sc_cadr(p) { return p.cdr.car; } | function sc_cadr(p) { return p.car.cdr; } /// export |
return; | return undefined; | function sc_callCcRestart(exc) { while (true) { try { exc.root(); if (sc_CALLCC_STORAGE.firstCall) { return sc_CALLCC_STORAGE.firstCall(); } return; } catch (e) { if (e instanceof sc_CallCcException) exc = e; else throw e; } }} |
return undefined; | function sc_callCcRestart(exc) { while (true) { try { exc.root(); if (sc_CALLCC_STORAGE.firstCall) { return sc_CALLCC_STORAGE.firstCall(); } return; } catch (e) { if (e instanceof sc_CallCcException) exc = e; else throw e; } }} | |
consumer.apply(null, producer()); | var produced = producer(); if (produced instanceof sc_Values) return consumer.apply(null, produced.values); else return consumer(produced); | function sc_callWithValues(producer, consumer) { /// export consumer.apply(null, producer());} |
function sc_cdaaar(p) { return p.cdr.car.car.car; } | function sc_cdaaar(p) { return p.car.car.car.cdr; } | function sc_cdaaar(p) { return p.cdr.car.car.car; } /// export |
function sc_cdaar(p) { return p.cdr.car.car; } | function sc_cdaar(p) { return p.car.car.cdr; } | function sc_cdaar(p) { return p.cdr.car.car; } /// export |
function sc_cdadar(p) { return p.cdr.car.cdr.car; } | function sc_cdadar(p) { return p.car.cdr.car.cdr; } | function sc_cdadar(p) { return p.cdr.car.cdr.car; } /// export |
function sc_cdaddr(p) { return p.cdr.car.cdr.cdr; } | function sc_cdaddr(p) { return p.cdr.cdr.car.cdr; } | function sc_cdaddr(p) { return p.cdr.car.cdr.cdr; } /// export |
function sc_cdar(p) { return p.cdr.car; } | function sc_cdar(p) { return p.car.cdr; } | function sc_cdar(p) { return p.cdr.car; } /// export |
function sc_cddaar(p) { return p.cdr.cdr.car.car; } | function sc_cddaar(p) { return p.car.car.cdr.cdr; } | function sc_cddaar(p) { return p.cdr.cdr.car.car; } /// export |
function sc_cddadr(p) { return p.cdr.cdr.car.cdr; } | function sc_cddadr(p) { return p.cdr.car.cdr.cdr; } | function sc_cddadr(p) { return p.cdr.cdr.car.cdr; } /// export |
function sc_cddar(p) { return p.cdr.cdr.car; } | function sc_cddar(p) { return p.car.cdr.cdr; } | function sc_cddar(p) { return p.cdr.cdr.car; } /// export |
function sc_cdddar(p) { return p.cdr.cdr.cdr.car; } | function sc_cdddar(p) { return p.car.cdr.cdr.cdr; } | function sc_cdddar(p) { return p.cdr.cdr.cdr.car; } /// export |
return undefined; | function sc_Char(c) { var cached = sc_Char.lazy[c]; if (cached) return cached; this.val = c; sc_Char.lazy[c] = this;} | |
p.close(); | return p.close(); | function sc_closeInputPort(p) { /// export p.close();} |
p.close(); | return p.close(); | function sc_closeOutputPort(p) { /// export p.close();} |
function sc_div(x, y) { if (y === undefined) return 1 / x; else return x / y; | function sc_div(x) { if (arguments.length === 1) return 1/x; else { var res = x; for (var i = 1; i < arguments.length; i++) res /= arguments[i]; return res; } | function sc_div(x, y) { /// export / /fl if (y === undefined) return 1 / x; else return x / y;} |
return o.doDisplay(p); | o.doDisplay(p); | function sc_doDisplay(p, o) { if (o === null) p.appendJSString("()"); else if (o === true) p.appendJSString("#t"); else if (o === false) p.appendJSString("#f"); else if (o === undefined) p.appendJSString("#unspecified"); else return o.doDisplay(p);} |
return o.doWrite(p); | o.doWrite(p); | function sc_doWrite(p, o) { if (o === null) p.appendJSString("()"); else if (o === true) p.appendJSString("#t"); else if (o === false) p.appendJSString("#f"); else if (o === undefined) p.appendJSString("#unspecified"); else return o.doWrite(p);} |
function sc_dynamicWind(before thunk after) { | function sc_dynamicWind(before, thunk, after) { | function sc_dynamicWind(before thunk after) { /// export before(); var res = thunk(); after(); return res;} |
var res = thunk(); after(); return res; | try { var res = thunk(); return res; } finally { after(); } | function sc_dynamicWind(before, thunk, after) { /// export before(); var res = thunk(); after(); return res;} |
sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_immutable(arguments[i]); } throw "ERROR"; | var t = sc_withOutputToString_mutable( function () { sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } }); throw t; | function sc_error_immutable() { /// export sc_print_immutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_immutable(arguments[i]); } throw "ERROR";} |
sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } throw "ERROR"; | var t = sc_withOutputToString_mutable( function () { sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } }); throw t; | function sc_error_mutable() { /// export sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } throw "ERROR";} |
return res; | function sc_escapeWriteString(s) { var res = ""; var j = 0; for (i = 0; i < s.length; i++) { switch (s.charAt(i)) { case "\0": res += s.substring(j, i) + "\\0"; j = i + 1; break; case "\a": res += s.substring(j, i) + "\\a"; j = i + 1; break; case "\b": res += s.substring(j, i) + "\\b"; j = i + 1; break; case "... | |
return undefined; | function sc_forEach(proc, l1, l2, l3) { /// export-higher if (l2 === undefined) return sc_forEach1(proc, l1); else if (l3 === undefined) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < n... | |
function sc_forEach(proc, l1) { if (arguments.length == 2) | function sc_forEach(proc, l1, l2, l3) { if (l2 === undefined) | function sc_forEach(proc, l1) { /// export if (arguments.length == 2) return sc_forEach1(proc, l1); else if (arguments.length == 3) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < nbAppl... |
else if (arguments.length == 3) | else if (l3 === undefined) | function sc_forEach(proc, l1) { /// export if (arguments.length == 2) return sc_forEach1(proc, l1); else if (arguments.length == 3) return sc_forEach2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); while (l1 !== null) { for (var i = 0; i < nbAppl... |
return undefined; | function sc_hashtableForEach_callcc(ht, f) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { return sc_forEach_callcc(); } var l = null; for (var v in ht) { if (ht[v] instanceof sc_HashtableElement) l = new sc_Pair(ht[v], l); } sc_forEach_callcc(function(e) { f... | |
while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) { | while (true) { if (rabbit === null || (rabbit instanceof sc_Pair && rabbit.cdr === null)) return true; else if ((rabbit instanceof sc_Pair) && (rabbit.cdr instanceof sc_Pair)) { | function sc_isList(o) { /// export var rabbit; var turtle; var rabbit = o; var turtle = o; while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) { rabbit = rabbit.cdr.cdr; turtle = turtle.cdr; if (rabbit === turtle) return false; // cycle } else return false; // not... |
return true; | function sc_isList(o) { /// export var rabbit; var turtle; var rabbit = o; var turtle = o; while (rabbit != null) { if (sc_isPair(rabbit) && sc_isPair(rabbit.cdr)) { rabbit = rabbit.cdr.cdr; turtle = turtle.cdr; if (rabbit === turtle) return false; // cycle } else return false; // not... | |
function sc_isPairEqual(p1, p2) { return (sc_isEqual(p1.car, p2.car) && sc_isEqual(p1.cdr, p2.cdr)); | function sc_isPairEqual(p1, p2, comp) { return (comp(p1.car, p2.car) && comp(p1.cdr, p2.cdr)); | function sc_isPairEqual(p1, p2) { return (sc_isEqual(p1.car, p2.car) && sc_isEqual(p1.cdr, p2.cdr));} |
function sc_isVectorEqual(v1, v2) { | function sc_isVectorEqual(v1, v2, comp) { | function sc_isVectorEqual(v1, v2) { if (v1.length != v2.length) return false; for (var i = 0; i < v1.length; i++) if (!sc_isEqual(v1[i], v2[i])) return false; return true;} |
if (!sc_isEqual(v1[i], v2[i])) return false; | if (!comp(v1[i], v2[i])) return false; | function sc_isVectorEqual(v1, v2) { if (v1.length != v2.length) return false; for (var i = 0; i < v1.length; i++) if (!sc_isEqual(v1[i], v2[i])) return false; return true;} |
sc_storage.push(sc_frame); | function sc_jsCall_callcc(o, fun) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; fun = sc_frame.fun; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters anyways... | |
field = sc_frame.field; | fun = sc_frame.fun; | function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters an... |
sc_frame.field = field; | sc_frame.fun = fun = o[field]; args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; | function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters an... |
var args = new Array(); for (var i = 2; i < arguments.length; i++) args[i-2] = arguments[i]; return o[field].apply(o, args); | return fun.apply(o, args); | function sc_jsMethodCall_callcc(o, field) { /// export var sc_storage = sc_CALLCC_STORAGE; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; field = sc_frame.field; } else { // we don't need to store the arguments, as they called function needs // to store it's parameters an... |
sc_storage.push(sc_frame) | function sc_jsMethodCall_callcc(o, field) { /// export-higher var sc_storage = sc_CALLCC_STORAGE; var fun; var args; if (sc_storage.doRestore) { var sc_frame = sc_storage.getNextFrame(); o = sc_frame.o; fun = sc_frame.fun; } else { // we don't need to store the arguments, as they called function needs //... | |
return this.val = str; | var old = SeenKeywords[str]; if (old === undefined) { SeenKeywords[str] = this; return this.val = str; } else { return old; } | function sc_Keyword(str) { /// export return this.val = str;} |
return undefined; | function sc_Keyword(str) { var cached = sc_Keyword.lazy[str]; if (cached) return cached; sc_Keyword.lazy[str] = this; this.val = str;} | |
res = sc_cons(a[i], res); | res = new sc_Pair(a[i], res); | function sc_list() { /// export var res = null; var a = arguments; for (var i = a.length-1; i >= 0; i--) res = sc_cons(a[i], res); return res;} |
res = sc_cons(fill, res); | res = new sc_Pair(fill, res); | function sc_makeList(nbEls, fill) { /// export var res = null; for (var i = 0; i < nbEls; i++) res = sc_cons(fill, res); return res;} |
function sc_map(proc, l1, l2) { if (arguments.length == 2) | function sc_map(proc, l1, l2, l3) { if (l2 === undefined) | function sc_map(proc, l1, l2) { /// export if (arguments.length == 2) return sc_map1(proc, l1); else if (arguments.length == 3) return sc_map2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); var revres = null; while (l1 !== null) { for (var i =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.