rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 13 136k | meta stringlengths 132 347 |
|---|---|---|---|
function gLnk(optionFlags, description, linkData) { | function gLnk(optionFlags, description, linkData) { | function gLnk(optionFlags, description, linkData) { var fullLink = ""; var targetFlag = ""; var target = ""; var protocolFlag = ""; var protocol = ""; if (optionFlags>=0) //is numeric (old style) or empty (error) { return oldGLnk(optionFlags, description, linkData) } targetFlag = optionFlags.charAt(0) if ... | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
target = "_top" | target = "_self" | function gLnk(optionFlags, description, linkData) { var fullLink = ""; var targetFlag = ""; var target = ""; var protocolFlag = ""; var protocol = ""; if (optionFlags>=0) //is numeric (old style) or empty (error) { return oldGLnk(optionFlags, description, linkData) } targetFlag = optionFlags.charAt(0) if ... | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
return linkItem | return linkItem | function gLnk(optionFlags, description, linkData) { var fullLink = ""; var targetFlag = ""; var target = ""; var protocolFlag = ""; var protocol = ""; if (optionFlags>=0) //is numeric (old style) or empty (error) { return oldGLnk(optionFlags, description, linkData) } targetFlag = optionFlags.charAt(0) if ... | 5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js |
this.matches = function(actual) { return this.regexp.test(actual); }; | PatternMatcher.GlobMatchStrategy = function(globString) { this.regexp = new RegExp(this.regexpFromGlob(globString));}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/b6788d60629a05bef919c34df7534687aa4a3ece/selenium-api.js/buggy/code/javascript/selenium-api.js | |
this.matches = function(actual) { return this.regexp.test(actual); }; | PatternMatcher.GlobMatchStrategy = function(globString) { this.regexp = new RegExp(this.regexpFromGlob(globString));}; | 4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/17503ec918075550ff54f553c38989de0bec4f8d/selenium-api.js/buggy/code/javascript/selenium-api.js | |
webProgress.addProgressListener(this, nsIWebProgress.NOTIFY_PROGRESS); | Components.classes["@mozilla.org/docloaderservice;1"] .getService(Components.interfaces.nsIWebProgress) .addProgressListener(this, Components.interfaces.nsIWebProgress .NOTIFY_PROGRESS); | function GM_DocHandler(unsafeContentWin, chromeWindow, menuCommander, isFile) { GM_log("> GM_DocHandler") this.unsafeContentWin = unsafeContentWin; this.chromeWindow = chromeWindow; this.menuCommander = menuCommander; this.isFile = isFile; // this will be all scripts to be injected into this document. this.scrip... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/bb15ba07d80451d03ef5be42d32c71c9f78959f0/dochandler.js/clean/src/content/dochandler.js |
function GM_DocHandler(contentWindow, chromeWindow) { | function GM_DocHandler(contentWindow, chromeWindow, menuCommander) { | function GM_DocHandler(contentWindow, chromeWindow) { GM_log("> GM_DocHandler") this.contentWindow = contentWindow; this.chromeWindow = chromeWindow; this.initScripts(); this.injectScripts(); GM_log("< GM_DocHandler")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0f64c0c560e01eade68e9d3dc8caefb5c308d176/dochandler.js/clean/src/content/dochandler.js |
this.menuCommander = menuCommander; | function GM_DocHandler(contentWindow, chromeWindow) { GM_log("> GM_DocHandler") this.contentWindow = contentWindow; this.chromeWindow = chromeWindow; this.initScripts(); this.injectScripts(); GM_log("< GM_DocHandler")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0f64c0c560e01eade68e9d3dc8caefb5c308d176/dochandler.js/clean/src/content/dochandler.js | |
return (scheme == "http" || scheme == "https" || scheme == "file") && !/hiddenWindow\.html$/.test(url); | return (scheme == "http" || scheme == "https" || scheme == "file" || url.match(/^about:cache/)) && !/hiddenWindow\.html$/.test(url); | function GM_isGreasemonkeyable(url) { var scheme = Components.classes["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService) .extractScheme(url); return (scheme == "http" || scheme == "https" || scheme == "file") && !/hiddenWindow\.html$/.test(url);} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/95749ee4f608f61e2ec32b4d5add0c8e0c28f158/utils.js/clean/src/chrome/chromeFiles/content/utils.js |
var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); | var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); | function GM_log(aMessage, level) { // TODO: -make a GM category // -record script name var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); // level == 0 or not present means info // otherwise, create a ScriptErro... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0ffe0d13bc268a9071251a057c30ab9ba398fe0b/greasemonkey.js/buggy/src/content/greasemonkey.js |
consoleService.logMessage(aMessage); | if (level) { if (level == 1) { level = 1; } else /*if (level == 2)*/ { level = 0; } var consoleError = Components.classes["@mozilla.org/scripterror;1"] .createInstance(Components.interfaces.nsIScriptError); consoleError.init(aMessage, null, null, 0, 0, level, "XUL javascript"); consoleService.logMessage(consoleErro... | function GM_log(aMessage, level) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); consoleService.logMessage(aMessage);} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/a3e04b00563e4e59df94f7c56e849624ee90ab08/greasemonkey.js/clean/src/content/greasemonkey.js |
function GM_log(aMessage) { | function GM_log(aMessage, level) { | function GM_log(aMessage) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); consoleService.logStringMessage("Greasemonkey: " + aMessage);} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/904826b1a895d0db9b1b022eb38190c51df5f2d6/greasemonkey.js/clean/src/content/greasemonkey.js |
consoleService.logStringMessage("Greasemonkey: " + aMessage); | consoleService.logMessage(aMessage); | function GM_log(aMessage) { var consoleService = Components.classes["@mozilla.org/consoleservice;1"] .getService(Components.interfaces.nsIConsoleService); consoleService.logStringMessage("Greasemonkey: " + aMessage);} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/904826b1a895d0db9b1b022eb38190c51df5f2d6/greasemonkey.js/clean/src/content/greasemonkey.js |
this.commandData = []; this.activeKeys = []; | this.menuItems = []; this.keys = []; | function GM_MenuCommander() { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.commandData = []; this.activeKeys = []; this.attached = false; this.menuPopup = null; GM_log("< GM_MenuCommander")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/19f3148325aee62fc8ed969890b86473177554ae/menucommander.js/clean/src/content/menucommander.js |
this.menuPopup = null; | function GM_MenuCommander() { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.commandData = []; this.activeKeys = []; this.attached = false; this.menuPopup = null; GM_log("< GM_MenuCommander")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/19f3148325aee62fc8ed969890b86473177554ae/menucommander.js/clean/src/content/menucommander.js | |
this.menu2 = document.getElementById("userscript-commands-sb2"); this.menuPopup2 = this.menu2.firstChild; this.menuItems2 = []; | function GM_MenuCommander() { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands-sb"); this.keyset = document.getElementById("mainKeyset"); this.menuPopup = this.menu.firstChild; this.menuItems = []; this.keys = []; this.attached = false; GM_log("< GM_MenuCommander")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/74352847ec3cd466d2150e53fc22fc1c6e02526d/menucommander.js/clean/src/chrome/chromeFiles/content/menucommander.js | |
function GM_MenuCommander() { | function GM_MenuCommander(contentWindow) { | function GM_MenuCommander() { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.menuPopup = this.menu.firstChild; this.menuItems = []; this.keys = []; this.attached = false; GM_log("< GM_MenuCommander")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c87ee0d74204cccd978c0b78176f06b85f524f28/menucommander.js/buggy/src/content/menucommander.js |
this.contentWindow = contentWindow; | function GM_MenuCommander() { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.menuPopup = this.menu.firstChild; this.menuItems = []; this.keys = []; this.attached = false; GM_log("< GM_MenuCommander")} | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c87ee0d74204cccd978c0b78176f06b85f524f28/menucommander.js/buggy/src/content/menucommander.js | |
this.contentWindow = contentWindow; | function GM_MenuCommander(contentWindow) { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.menuPopup = this.menu.firstChild; this.contentWindow = contentWindow; this.menuItems = []; this.keys = []; this.attached... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0f64c0c560e01eade68e9d3dc8caefb5c308d176/menucommander.js/clean/src/content/menucommander.js | |
function GM_MenuCommander(contentWindow) { GM_log("> GM_MenuCommander") this.menu = document.getElementById("userscript-commands"); this.keyset = document.getElementById("mainKeyset"); this.menuPopup = this.menu.firstChild; this.contentWindow = contentWindow; this.menuItems = []; this.keys = []; this.attached... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0f64c0c560e01eade68e9d3dc8caefb5c308d176/menucommander.js/clean/src/content/menucommander.js | ||
if (oldScriptsDir.exists()) { | if (oldScriptsDir.exists() && oldConfigFile.exists()) { | function GM_pointFourMigrate() { GM_log("> GM_pointFourMigrate"); try { // the following code was copied directly from the old getContentDir() and // getScriptsDir() functions var profDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interface... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/42e8076b2290fd1a3dc9fe7a153cb42535e50332/versioning.js/clean/src/content/versioning.js |
GM_log("new config file exists: " + newConfigFile.exists()); | function GM_pointFourMigrate() { GM_log("> GM_pointFourMigrate"); try { // the following code was copied directly from the old getContentDir() and // getScriptsDir() functions var profDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interface... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/867e443038812b8f58f7d3b2904ea5161f3b5033/versioning.js/clean/src/content/versioning.js | |
if (!newScriptDir.exists()) { oldScriptsDir.moveTo(newScriptDir.parent); | if (!newScriptsDir.exists()) { oldScriptsDir.moveTo(newScriptsDir.parent, newScriptsDir.leafName); | function GM_pointFourMigrate() { GM_log("> GM_pointFourMigrate"); try { // the following code was copied directly from the old getContentDir() and // getScriptsDir() functions var profDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interface... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/867e443038812b8f58f7d3b2904ea5161f3b5033/versioning.js/clean/src/content/versioning.js |
alert("Could not complete Greasemonkey 0.4 migration. See JS Console " + "for error details."); | alert("Could not complete Greasemonkey 0.4 migration. Error:\n\n" + e); | function GM_pointFourMigrate() { GM_log("> GM_pointFourMigrate"); try { // the following code was copied directly from the old getContentDir() and // getScriptsDir() functions var profDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interface... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/867e443038812b8f58f7d3b2904ea5161f3b5033/versioning.js/clean/src/content/versioning.js |
oldScriptsDir.moveTo(newScriptsDir.parent, newScriptsDir.leafName); | oldScriptsDir.copyTo(newScriptsDir.parent, newScriptsDir.leafName); try { } catch (e) { } | function GM_pointFourMigrate() { GM_log("> GM_pointFourMigrate"); try { // the following code was copied directly from the old getContentDir() and // getScriptsDir() functions var profDir = Components.classes["@mozilla.org/file/directory_service;1"] .getService(Components.interface... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/948bd350e171af146698620efca82dad458258fe/versioning.js/buggy/src/content/versioning.js |
if (!getScriptFile("config.xml").exists()) { | var configExists = GM_getPointThreeScriptFile("config.xml").exists(); GM_log("config file exists: " + configExists); if (!configExists) { | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
GM_log("Starting 0.3 migration..."); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js | |
var scriptDir = getScriptDir(); | var scriptDir = GM_getPointThreeScriptDir(); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
doc.load(getScriptChrome("config.xml")); | doc.load(configURI.spec); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
var configStream = getWriteStream(getScriptFile("config.xml")); | var configStream = getWriteStream(configFile); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
var config = new Config(); | var config = new Config(GM_getPointThreeScriptFile("config.xml")); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
scriptFile = getScriptFile(script.filename); | scriptFile = GM_getPointThreeScriptFile(script.filename); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
} catch (e) { | } catch (e) { | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
} finally { GM_log("< GM_pointThreeMigrate"); | function GM_pointThreeMigrate() { // check to see whether there's any config to migrate if (!getScriptFile("config.xml").exists()) { return; } GM_log("Starting 0.3 migration..."); // back up the config directory // if an error happens, report it and exit try { var scriptDir = getScriptDir(); var tempD... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js | |
registerMenuCommand(docId, commandName, commandCallback, accel, access); | registerMenuCommand(docId, commandName, commandCallback, accel, access, e.explicitOriginalTarget.defaultView); | e.explicitOriginalTarget.defaultView.GM_registerMenuCommand = function(commandName, commandCallback, accel, access) { registerMenuCommand(docId, commandName, commandCallback, accel, access); }; | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0ffe0d13bc268a9071251a057c30ab9ba398fe0b/greasemonkey.js/buggy/src/content/greasemonkey.js |
document.GM_registerMenuCommand = | e.view.GM_registerMenuCommand = | document.GM_registerMenuCommand = function(commandName, commandCallback) { registerMenuCommand(docId, commandName, commandCallback); }; | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/d86a63b95a342e64216ae0c9e5a4175acf8ca9a9/greasemonkey.js/clean/src/content/greasemonkey.js |
function(commandName, commandCallback) { registerMenuCommand(docId, commandName, commandCallback); | function(commandName, commandCallback, accel, access) { registerMenuCommand(docId, commandName, commandCallback, accel, access); | e.explicitOriginalTarget.defaultView.GM_registerMenuCommand = function(commandName, commandCallback) { registerMenuCommand(docId, commandName, commandCallback); }; | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/904826b1a895d0db9b1b022eb38190c51df5f2d6/greasemonkey.js/clean/src/content/greasemonkey.js |
var namespace = script.namespace; if (namespace.substring(namespace.length - 1) != "/") { namespace += "/"; } | function GM_ScriptStorage(script) { var namespace = script.namespace; if (namespace.substring(namespace.length - 1) != "/") { namespace += "/"; } this.prefMan = new GM_PrefManager(["scriptvals.", namespace, "/", ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c87ee0d74204cccd978c0b78176f06b85f524f28/miscapis.js/clean/src/content/miscapis.js | |
namespace, | script.namespace, | function GM_ScriptStorage(script) { var namespace = script.namespace; if (namespace.substring(namespace.length - 1) != "/") { namespace += "/"; } this.prefMan = new GM_PrefManager(["scriptvals.", namespace, "/", ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c87ee0d74204cccd978c0b78176f06b85f524f28/miscapis.js/clean/src/content/miscapis.js |
var foundScript = false; | var foundInjectedScript = false; | function GM_showPopup(aEvent) { var config = new Config(getScriptFile("config.xml")); config.load(); var popup = aEvent.target; var url = getBrowser().contentWindow.document.location.href; // set the enabled/disabled state GM_BrowserUI.statusEnabledItem.setAttribute("checked", GM_getEnabled()); // remove all the... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/25ec01bfdcd6b3e0664e3db5531f9cc29e6cbb0a/browser.js/buggy/src/chrome/chromeFiles/content/browser.js |
.getService(Components.interfaces.nsIExtensionManager); | if( extensionManager ) { extensionManager = extensionManager.getService(Components.interfaces.nsIExtensionManager); | function GM_updateVersion(prefMan) { var extensionManager = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); // get the currently installed version according to extension manager if (extensionManager.getItemForID) { var installed = extensionManager.... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/e2ff2c9cbb759f91bf5a308f212528d3a046209f/versioning.js/buggy/src/content/versioning.js |
if (extensionManager.getItemForID) { var installed = extensionManager.getItemForID(GUID).version; } else { installed = extensionManager .getItemList(GUID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,{})[0].version; | if (extensionManager.getItemForID) { var installed = extensionManager.getItemForID(GUID).version; } else { installed = extensionManager .getItemList(GUID, Components.interfaces.nsIUpdateItem.TYPE_EXTENSION,{})[0].version; } | function GM_updateVersion(prefMan) { var extensionManager = Components.classes["@mozilla.org/extensions/manager;1"] .getService(Components.interfaces.nsIExtensionManager); // get the currently installed version according to extension manager if (extensionManager.getItemForID) { var installed = extensionManager.... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/e2ff2c9cbb759f91bf5a308f212528d3a046209f/versioning.js/buggy/src/content/versioning.js |
GM_prefRoot.setValue("version", "0.4.9.9"); | GM_prefRoot.setValue("version", "0.5"); | function GM_updateVersion() { GM_log("> GM_updateVersion"); // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version", "0.0"); if (GM_compareVersions(initialized, "0.3") < 0) { GM_pointThreeMigrate(); } if (GM_compareVersions(initialized, "0.4.2") < 0) { ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/ac71fbe55297fb9f974105fcaf4801c16e5806be/versioning.js/buggy/src/content/versioning.js |
if (GM_compareVersions(initialized, "0.3") < 0) { | if (!GM_versionIsGreaterOrEqual(initialized, "0.3")) { | function GM_updateVersion() { GM_log("> GM_updateVersion"); // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version", "0.0"); if (GM_compareVersions(initialized, "0.3") < 0) { GM_pointThreeMigrate(); } if (GM_compareVersions(initialized, "0.4.2") < 0) { ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/dd4da655a7f058b0250e14461e2665888d0d3470/versioning.js/buggy/src/content/versioning.js |
if (GM_compareVersions(initialized, "0.4.2") < 0) { | if (!GM_versionIsGreaterOrEqual(initialized, "0.4.2")) { | function GM_updateVersion() { GM_log("> GM_updateVersion"); // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version", "0.0"); if (GM_compareVersions(initialized, "0.3") < 0) { GM_pointThreeMigrate(); } if (GM_compareVersions(initialized, "0.4.2") < 0) { ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/dd4da655a7f058b0250e14461e2665888d0d3470/versioning.js/buggy/src/content/versioning.js |
var initialized = GM_prefRoot.getValue("version"); | var initialized = GM_prefRoot.getValue("version", "0.0"); | function GM_updateVersion() { // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version"); // for now, we don't have to do any schmancy version comparisons because // we never had versions before. if (!initialized) { GM_pointThreeMigrate(); } // update th... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
if (!initialized) { | if (GM_compareVersions(initialized, "0.3") < 0) { | function GM_updateVersion() { // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version"); // for now, we don't have to do any schmancy version comparisons because // we never had versions before. if (!initialized) { GM_pointThreeMigrate(); } // update th... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
GM_prefRoot.setValue("version", "0.4.1"); | GM_prefRoot.setValue("version", "0.4.2"); GM_log("< GM_updateVersion"); | function GM_updateVersion() { // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version"); // for now, we don't have to do any schmancy version comparisons because // we never had versions before. if (!initialized) { GM_pointThreeMigrate(); } // update th... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/fec534de049cc4effd22b41bf1cfa71367d36fa3/versioning.js/clean/src/content/versioning.js |
GM_prefRoot.setValue("version", "0.5.1"); | GM_prefRoot.setValue("version", "0.5.2"); | function GM_updateVersion() { GM_log("> GM_updateVersion"); // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version", "0.0"); if (!GM_versionIsGreaterOrEqual(initialized, "0.3")) { GM_pointThreeMigrate(); } if (!GM_versionIsGreaterOrEqual(initialized, "0... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/948bd350e171af146698620efca82dad458258fe/versioning.js/buggy/src/content/versioning.js |
GM_prefRoot.setValue("version", "0.4.2"); | GM_prefRoot.setValue("version", "0.4.9.9"); | function GM_updateVersion() { GM_log("> GM_updateVersion"); // this is the last version which has been run at least once var initialized = GM_prefRoot.getValue("version", "0.0"); if (GM_compareVersions(initialized, "0.3") < 0) { GM_pointThreeMigrate(); } if (GM_compareVersions(initialized, "0.4.2") < 0) { ... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/8550c3471d1ac66c3308b1fc49845f2833b8da8d/versioning.js/clean/src/content/versioning.js |
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); | var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); | function gmPrompt(msg, defVal, title) { var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"] .getService(Components.interfaces.nsIPromptService); var result = {value:defVal}; if (promptService.prompt(null, title, msg, result, null, {value:0})) { return result.va... | 2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/0ffe0d13bc268a9071251a057c30ab9ba398fe0b/greasemonkey.js/buggy/src/content/greasemonkey.js |
this.host='gnats.bbsdev.net'; | this.host='bugs.synchro.net'; | function GNATS(host,user,pass,email){ // Properties if(host == undefined) this.host='gnats.bbsdev.net'; else this.host=host; if(user == undefined) this.user=guest; else this.user=user; if(pass == undefined) this.pass='' else this.pass=pass; if(email==undefined) this.email='bugs@'+this.host; else this.email=emai... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/19ec344d226c5740045bc0f6a17ea8d80663ac32/gnatslib.js/clean/load/gnatslib.js |
email='bugs@'+this.host; | this.email='bugs@'+this.host; | function GNATS(host,user,pass,email){ // Properties if(host == undefined) this.host='gnats.bbsdev.net'; else this.host=host; if(user == undefined) this.user=guest; else this.user=user; if(pass == undefined) this.pass='' else this.pass=pass; if(email==undefined) email='bugs@'+this.host; else this.email=email; th... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/c5867d4358f426cf5ac696c57171a69ec228ebe7/gnatslib.js/clean/load/gnatslib.js |
if(!this.expect("APPN",210,213)) | if(!this.expect("APPN2",210,213)) | function GNATS_append(pr,field,newval,reason){ if(!this.cmd("APPN",pr,field)) return(false); if(!this.expect("APPN",212)) return(false); lines=newval.split(/\r?\n/); for(i=0; i<lines.length; i++) { if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) { this.error="Error sending data"; this.close(); retur... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76ee26648aeee9c7ad5974765dd3c2ef6cabb2c1/gnatslib.js/buggy/load/gnatslib.js |
if(!expect("APPN",210)) | if(!this.get_response()) return(false); if(!expect("APPN3",210)) | function GNATS_append(pr,field,newval,reason){ if(!this.cmd("APPN",pr,field)) return(false); if(!this.expect("APPN",212)) return(false); lines=newval.split(/\r?\n/); for(i=0; i<lines.length; i++) { if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) { this.error="Error sending data"; this.close(); retur... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76ee26648aeee9c7ad5974765dd3c2ef6cabb2c1/gnatslib.js/buggy/load/gnatslib.js |
note += field+'-Changed-Why:\r\n"; | note += field+'-Changed-Why:\r\n'; | function GNATS_change_field(pr,field,newval,why){ var old; var note=''; if(!this.set_qfmt('"%s" '+field)) return(false); if(!this.set_expr("Number=="+pr)) return(false); old=this.get_result(); if(old==undefined) return(false); if(old==newval) return(false); if(!this.replace(pr,field,newval)) return(false); note +=... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76d4f4a482c82813eba2b9e667af3e8e3af52737/gnatslib.js/clean/load/gnatslib.js |
var send=arguments.join(" ")+"\r\n"; | var send; var i; var args=new Array(); | function GNATS_cmd(){ var send=arguments.join(" ")+"\r\n"; if(!this.socket.is_connected) { this.error="Socket not connected"; return(false); } this.socket.send(send); return(this.get_response);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
this.socket.send(send); return(this.get_response); | if(!this.socket.send(send)) { this.error="Error sending on socket"; return(false); } return(this.get_response()); | function GNATS_cmd(){ var send=arguments.join(" ")+"\r\n"; if(!this.socket.is_connected) { this.error="Socket not connected"; return(false); } this.socket.send(send); return(this.get_response);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
lines.pop(); | function GNATS_connect(){ this.socket.connect(this.host,1529); if(!this.socket.is_connected) { this.error="Cannot connect to GNATS database"; return(false); } if(!this.get_response()) return(false); if(!this.expect("CONNECT",200)) return(false); if(!this.cmd("USER",this.user,this.pass)) return(false); if(!this.exp... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76ee26648aeee9c7ad5974765dd3c2ef6cabb2c1/gnatslib.js/buggy/load/gnatslib.js | |
if(!this.expect("USER",210); | if(!this.expect("USER",210)) | function GNATS_connect(){ this.socket.connect(this.host,1529); if(!this.socket.is_connected) { this.error="Cannot connect to GNATS database"; return(false); } if(!this.get_response()) return(false); if(!this.expect("CONNECT",200)) return(false); if(!this.cmd("USER",this.user,this.pass)) return(false); if(!this.exp... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
for(i=1; i<arguments.length; i++) { if(this.response.code == arguments[i]) | var args=new Array(); var desc; desc=arguments[0]; for(i=1; i<arguments.length; i++) args.push(arguments[i]); for(i=0; i<args.length; i++) { if(this.response.code == args[i]) | function GNATS_expect(){ var i; for(i=1; i<arguments.length; i++) { if(this.response.code == arguments[i]) return(true); } this.error=arguments.unshift()+" expected "+arguments.join(" or ")+"\r\n"+this.response.message; return(false);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
this.error=arguments.unshift()+" expected "+arguments.join(" or ")+"\r\n"+this.response.message; | this.error=desc+" expected "+args.join(" or ")+" got "+this.response.code+"\r\n"+this.response.message; | function GNATS_expect(){ var i; for(i=1; i<arguments.length; i++) { if(this.response.code == arguments[i]) return(true); } this.error=arguments.unshift()+" expected "+arguments.join(" or ")+"\r\n"+this.response.message; return(false);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
if(!this.set_expr("State==State")); | if(!this.set_expr("State==State")) | function GNATS_get_fullpr(num){ if(!this.reset_expr()) // Reset current expression. return(undefined); if(!this.set_expr("State==State")); // Select all PRs return(undefined); if(!this.set_qfmt("full")) // Request full PR return(undefined); if(!this.cmd("QUER",num)) // Get PR return(undefined); if(!this.expect("... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
resp.raw+=this.socket.recvline(); m=resp.raw.match(/^([0-9]{3})([- ])(.*)$/); | line=this.socket.recvline(); this.response.raw += line; m=line.match(/^([0-9]{3})([- ])(.*)$/); | function GNATS_get_response(){ var line; var m; this.error=''; this.response.message=''; this.response.text=''; this.response.raw=''; this.response.code=0; this.response.type=PR_ERROR; if(!this.socket.is_connected) { this.error="Socket not connected"; return(false); } while(!done) { if(this.socket.poll(30)) { resp... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
if(!this.expect("REPL",210,213)) | if(!this.expect("REPL2",210,213,403)) | function GNATS_replace(pr,field,newval,reason){ if(!this.cmd("REPL",pr,field)) return(false); if(!this.expect("REPL",212)) return(false); lines=newval.split(/\r?\n/); for(i=0; i<lines.length; i++) { if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) { this.error="Error sending data"; this.close(); retu... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76ee26648aeee9c7ad5974765dd3c2ef6cabb2c1/gnatslib.js/buggy/load/gnatslib.js |
if(!expect("REPL",210)) | if(!this.get_response()) return(false); if(!this.expect("REPL3",210)) | function GNATS_replace(pr,field,newval,reason){ if(!this.cmd("REPL",pr,field)) return(false); if(!this.expect("REPL",212)) return(false); lines=newval.split(/\r?\n/); for(i=0; i<lines.length; i++) { if(!this.socket.send(lines[i].replace(/^\./,'..')+"\r\n")) { this.error="Error sending data"; this.close(); retu... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/76ee26648aeee9c7ad5974765dd3c2ef6cabb2c1/gnatslib.js/buggy/load/gnatslib.js |
recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; hdrs.rcpt_list = new Array(); hdrs.rcpt_list.push(recip); var orig=this.get_field(pr,'Reply-To'); recip = new Object; | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; hdrs.rcpt_list = new Array(); hdrs.rcpt_list.push(recip); var orig=this.get_field(pr,'Reply-To'); recip = new Object... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b06229fa79de2ee2af3b180b19af094493de75b4/gnatslib.js/clean/load/gnatslib.js | |
if(!this.set_qfmt('"Re: %s/%d: %s" Category Number Synopsis')); | if(!this.set_qfmt('"Re: %s/%d: %s" Category Number Synopsis')) | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; hdrs.rcpt_list = new Array(); hdrs.rcpt_list.push(recip); var orig=this.get_field(pr,'Reply-To'); recip = new Object... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b06229fa79de2ee2af3b180b19af094493de75b4/gnatslib.js/clean/load/gnatslib.js |
this.error=msgbase.error; | this.error='Error saving message: '+msgbase.error; msgbase.close(); | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; hdrs.rcpt_list = new Array(); hdrs.rcpt_list.push(recip); var orig=this.get_field(pr,'Reply-To'); recip = new Object... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b06229fa79de2ee2af3b180b19af094493de75b4/gnatslib.js/clean/load/gnatslib.js |
msgbase.close(); | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; hdrs.rcpt_list = new Array(); hdrs.rcpt_list.push(recip); var orig=this.get_field(pr,'Reply-To'); recip = new Object... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b06229fa79de2ee2af3b180b19af094493de75b4/gnatslib.js/clean/load/gnatslib.js | |
var recips = new Array(); | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var rcpt_list = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; var orig=this.get_field(pr,'Reply-To'); var recip = new Object; recip.to=mail_get_name(... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0ae6e566d3f38a3dff4745d081ae222e3029e5b3/gnatslib.js/buggy/load/gnatslib.js | |
recip.to='bugs'; | recip.to=mail_get_name(this.email); | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var rcpt_list = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; var orig=this.get_field(pr,'Reply-To'); var recip = new Object; recip.to=mail_get_name(... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0ae6e566d3f38a3dff4745d081ae222e3029e5b3/gnatslib.js/buggy/load/gnatslib.js |
recip.to_net_addr=this.email; | recip.to_net_addr=mail_get_address(this.email); rcpt_list.push(recip); | function GNATS_send_followup(pr,name,from,message){ var hdrs = new Object; var recips = new Array(); var rcpt_list = new Array(); var recip = new Object; recip.to='bugs'; recip.to_net_type=NET_INTERNET; recip.to_net_addr=this.email; var orig=this.get_field(pr,'Reply-To'); var recip = new Object; recip.to=mail_get_name(... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0ae6e566d3f38a3dff4745d081ae222e3029e5b3/gnatslib.js/buggy/load/gnatslib.js |
if(!this.cmd("EXPR",arguments.join(" ")) | if(!this.cmd("EXPR",args.join(" "))) | function GNATS_set_expr(){ if(!this.reset_expr()) return(false); if(!this.cmd("EXPR",arguments.join(" ")) return(false); if(!this.expect("EXPR",210)) return(FALSE); return(true);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
if(!this.cmd("QFMT",format) | if(!this.cmd("QFMT",format)) | function GNATS_set_qfmt(format){ if(format==undefined) format="standard"; if(!this.cmd("QFMT",format) return(false); if(!this.expect("QFMT",210)) return(FALSE); return(true);} | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/aa08482268b8f6004e1b880c7095538b515dde62/gnatslib.js/buggy/load/gnatslib.js |
if (c > 500) { console.log("avg " + miss_c/c + "ms per frame (" + now_playing + ")"); | if (c > 750) { console.log("avg " + Math.round(miss_c/c) + "ms per frame, frame rate needs " + (1000/FRAME_RATE)); | function go() { var d = (new Date).getTime(); miss_c+=d-next_frame; next_frame = d+1000/FRAME_RATE; c++; if (now_playing[0][1] <= 0) { now_playing.splice(0,1); } if (c > 500) { console.log("avg " + miss_c/c + "ms per frame (" + now_playing + ")"); if (now_playing.length == 1) { var keys = Object.... | 7521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7521/b38d44f2e8e462eb149e6cd836bfa92e6bc885ff/core.js/clean/core.js |
if (p[0] == keys[k]) { | if (now_playing[p][0] === keys[k]) { | function go() { var d = (new Date).getTime(); miss_c+=d-next_frame; next_frame = d+1000/FRAME_RATE; c++; if (now_playing[0][1] <= 0) { now_playing.splice(0,1); } if (c > 500) { console.log("avg " + miss_c/c + "ms per frame (" + now_playing + ")"); if (now_playing.length == 1) { var keys = Object.... | 7521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7521/b38d44f2e8e462eb149e6cd836bfa92e6bc885ff/core.js/clean/core.js |
function go() { var d = (new Date).getTime(); miss_c+=d-next_frame; next_frame = d+1000/FRAME_RATE; c++; if (now_playing[0][1] <= 0) { now_playing.splice(0,1); } if (c > 500) { console.log("avg " + miss_c/c + "ms per frame (" + now_playing + ")"); if (now_playing.length == 1) { var keys = Object.... | 7521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7521/b38d44f2e8e462eb149e6cd836bfa92e6bc885ff/core.js/clean/core.js | ||
global.gc(); | function go() { var d = (new Date).getTime(); miss_c+=d-next_frame; next_frame = d+1000/FRAME_RATE; c++; if (now_playing[0][1] <= 0) { now_playing.splice(0,1); } if (c > 500) { console.log("avg " + miss_c/c + "ms per frame (" + now_playing + ")"); if (now_playing.length == 1) { var keys = Object.... | 7521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7521/b38d44f2e8e462eb149e6cd836bfa92e6bc885ff/core.js/clean/core.js | |
kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href | kinds = parent.navigationFrame.document.getElementById("kinds") oldLocation = parent.classesFrame.window.location.href | function goto() { kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href //alert("oldLocation="+oldLocation); pos = oldLocation.lastIndexOf("#") classesURL = (pos > 0) ? oldLocation.substring(0, pos) : oldLocation; newLocation = c... | 7166 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7166/3bfb38c766adbf656b6b18caec3a3ddac4344039/script.js/buggy/src/compiler/scala/tools/nsc/doc/script.js |
parent.frames["classesFrame"].window.location = newLocation; | parent.classesFrame.window.location = newLocation; | function goto() { kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href //alert("oldLocation="+oldLocation); pos = oldLocation.lastIndexOf("#") classesURL = (pos > 0) ? oldLocation.substring(0, pos) : oldLocation; newLocation = c... | 7166 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7166/3bfb38c766adbf656b6b18caec3a3ddac4344039/script.js/buggy/src/compiler/scala/tools/nsc/doc/script.js |
kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href | kinds = parent.navigationFrame.document.getElementById("kinds") oldLocation = parent.classesFrame.window.location.href | function goto() { kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href //alert("oldLocation="+oldLocation); pos = oldLocation.lastIndexOf("#") classesURL = (pos > 0) ? oldLocation.substring(0, pos) : oldLocation; newLocation = c... | 3826 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3826/a62b75f2cd52b3d06853e2a0b2ed97ca9021fcbd/script.js/buggy/src/compiler/scala/tools/nsc/doc/script.js |
parent.frames["classesFrame"].window.location = newLocation; | parent.classesFrame.window.location = newLocation; | function goto() { kinds = parent.frames["navigationFrame"].document.getElementById("kinds") oldLocation = parent.frames["classesFrame"].window.location.href //alert("oldLocation="+oldLocation); pos = oldLocation.lastIndexOf("#") classesURL = (pos > 0) ? oldLocation.substring(0, pos) : oldLocation; newLocation = c... | 3826 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3826/a62b75f2cd52b3d06853e2a0b2ed97ca9021fcbd/script.js/buggy/src/compiler/scala/tools/nsc/doc/script.js |
function Graphic(width,height,attribute,char) | function Graphic(w,h,attr,ch) | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
if(char==undefined) this.char=' '; | if(ch==undefined) this.ch=' '; | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.char=char; if(attribute==undefined) | this.ch=ch; if(attr==undefined) | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.attribute=attribute; if(height==undefined) | this.attribute=attr; if(h==undefined) | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.height=height; if(width==undefined) | this.height=h; if(w==undefined) | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.width=width; | this.width=w; | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.data=new Array(width,height); | this.data=new Array(w); | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.data[x][y].char=char; this.data[x][y].attr=attribute; | this.data[x][y].ch=ch; this.data[x][y].attr=attr; | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
this.load=Graphic_load; | function Graphic(width,height,attribute,char){ if(char==undefined) this.char=' '; else this.char=char; if(attribute==undefined) this.attribute=7; else this.attribute=attribute; if(height==undefined) this.height=24; else this.height=height; if(width==undefined) this.width=80; else this.width=width; this.data=new... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js | |
this.scroll=Graphic_scroll; this.putmsg=Graphic_putmsg; | function Graphic(w,h,attr,ch){ if(ch==undefined) this.ch=' '; else this.ch=ch; if(attr==undefined) this.attribute=7; else this.attribute=attr; if(h==undefined) this.height=24; else this.height=h; if(w==undefined) this.width=80; else this.width=w; this.data=new Array(w); var x; var y; for(y=0; y<this.height; y++... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/7b611dfc4439890436ad63be7e99da7b4e9386cb/graphic.js/clean/load/graphic.js | |
if(xpos+width > console.screen_columns || ypos+height > console.screen_rows) { | if(xpos+width-1 > console.screen_columns || ypos+height-1 > console.screen_rows) { | function Graphic_draw(xpos,ypos,width,height,xoff,yoff){ var x; var y; if(xpos==undefined) xpos=1; if(ypos==undefined) ypos=1; if(width==undefined) width=this.width; if(height==undefined) height=this.height; if(xoff==undefined) xoff=0; if(yoff==undefined) yoff=0; if(xoff+width > this.width || yoff+height > this.h... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
gotoxy(xpos,ypos+y); | console.gotoxy(xpos,ypos+y); | function Graphic_draw(xpos,ypos,width,height,xoff,yoff){ var x; var y; if(xpos==undefined) xpos=1; if(ypos==undefined) ypos=1; if(width==undefined) width=this.width; if(height==undefined) height=this.height; if(xoff==undefined) xoff=0; if(yoff==undefined) yoff=0; if(xoff+width > this.width || yoff+height > this.h... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
console.write(this.data[x+xoff][y+yoff].char; | console.write(this.data[x+xoff][y+yoff].ch); | function Graphic_draw(xpos,ypos,width,height,xoff,yoff){ var x; var y; if(xpos==undefined) xpos=1; if(ypos==undefined) ypos=1; if(width==undefined) width=this.width; if(height==undefined) height=this.height; if(xoff==undefined) xoff=0; if(yoff==undefined) yoff=0; if(xoff+width > this.width || yoff+height > this.h... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0938349542d2f6a9b88929f22468f8997d138a35/graphic.js/clean/load/graphic.js |
alert("Attempt to draw from outside of graphic"); | alert("Attempt to draw from outside of graphic: "+xoff+":"+yoff+" "+width+"x"+height+" "+this.width+"x"+this.height); | function Graphic_draw(xpos,ypos,width,height,xoff,yoff){ var x; var y; if(xpos==undefined) xpos=1; if(ypos==undefined) ypos=1; if(width==undefined) width=this.width; if(height==undefined) height=this.height; if(xoff==undefined) xoff=0; if(yoff==undefined) yoff=0; if(xoff+width > this.width || yoff+height > this.h... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/7b611dfc4439890436ad63be7e99da7b4e9386cb/graphic.js/clean/load/graphic.js |
if(!(f.open("rb",true)) | if(!(f.open("rb",true))) | function Graphic_load(filename){ var x; var y; var f=new File(filename); if(!(f.open("rb",true)) return(false); for(y=0; y<this.height; y++) { for(x=0; x<this.width; x++) { this.data[x][y]=new Object; if(f.eof) return(false); this.data[x][y].ch=f.read(1); if(f.eof) return(false); this.data[x][y].attr=... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9ba8c1b2dcd92a0acd95fc5063ad67eb07818c58/graphic.js/buggy/load/graphic.js |
ch=txt.substr(p++,1); | ch=txt.substr(p++,1).toUpperCase(); | function Graphic_putmsg(xpos, ypos, txt, attr, scroll){ var curattr=attr; var ch; var x=xpos-1; var y=ypos-1; if(curattr==undefined) curattr=this.attribute; /* Expand @-codes */ txt=txt.replace(/@(.*)@/g, function (str, code, offset, s) { return bbs.atcode(code); } ); /* ToDo: Expand \1D, \1T, \1<, \1Z */ /* ToDo:... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fb42e2cfc3e592e9341158d5259b961e3ecd7e78/graphic.js/clean/load/graphic.js |
if(scroll && y==this.height) { | if(scroll && y>=this.height) { | function Graphic_putmsg(xpos, ypos, txt, attr, scroll){ var curattr=attr; var ch; var x=xpos-1; var y=ypos-1; if(curattr==undefined) curattr=this.attribute; /* Expand @-codes */ txt=txt.replace(/@(.*)@/g, function (str, code, offset, s) { return bbs.atcode(code); } ); /* ToDo: Expand \1D, \1T, \1<, \1Z */ /* ToDo:... | 4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fb42e2cfc3e592e9341158d5259b961e3ecd7e78/graphic.js/clean/load/graphic.js |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.