rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction;
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; // Register all locate* functions this....
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/28e92872d79dde130d1e6dfb1c795eb73f87a0ce/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
PageBot = function(pageWindow, browserBot) { this.currentWindow = pageWindow; this.browserBot = browserBot; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title}; modifyWindowToRecordAlerts(pageWindow, brow...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/ea6c40ffb9e8c41f6fb2610fd3e7a3abb6baa453/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js
this.locatorFunctions = new Array(); for (var f in this) { if (typeof(this[f]) == 'function' && f.match(/^locate/)) { this.locatorFunctions.push(this[f]);
this.locatorFunctions = new Array(); this.locators = {}; for (var functionName in this) { var result = /^locateElementBy([A-Z].+)$/.exec(functionName); if (result != null) { var locatorFunction = this[functionName]; if (typeof(locatorFunction) != 'function') { continue;
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; // Register all locate* functions this....
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/282b7aeb99ad005ea5dbd64f74b3b3890e58c578/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase(); this.locatorFunctions.push(locatorFunction); this.locators[locatorPrefix] = locatorFunction;
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; // Register all locate* functions this....
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/282b7aeb99ad005ea5dbd64f74b3b3890e58c578/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
throw new Error("Unrecognised locator type: '" + locatorType + "'");
throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
this.location = pageWindow.location.pathname;
this.location = pageWindow.location;
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/1dbb8067586cf11d4a63e6b9c1f91c24fa609b12/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
this.location = pageWindow.location.pathname
this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title};
PageBot = function(pageWindow, browserBot) { this.currentWindow = pageWindow; this.browserBot = browserBot; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/d29c3300057cc06e6959278a7a9672474b9dc998/selenium-browserbot.js/buggy/javascript/selenium-browserbot.js
this.currentDocument = pageWindow.document;
var PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() { var t = this.currentDocument.title; if (typeof(t) == "string") { t = ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/f68bbe7b139ef983240d5f2c30b4cfaf2febeeb0/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
var t = this.currentDocument.title; if (typeof(t) == "string") { t = t.trim(); } return t;
var t = this.document().title; if (typeof(t) == "string") { t = t.trim(); } return t;
var PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() { var t = this.currentDocument.title; if (typeof(t) == "string") { t = ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/f68bbe7b139ef983240d5f2c30b4cfaf2febeeb0/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
} this.document = function() { return this.currentWindow.document;
var PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() { var t = this.currentDocument.title; if (typeof(t) == "string") { t = ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/f68bbe7b139ef983240d5f2c30b4cfaf2febeeb0/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
this.locatorFunctions = new Array();
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/50ae736c31d3d064179fea9c3d6a6a584a9c9df1/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
this.locatorFunctions.push(locatorFunction);
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/50ae736c31d3d064179fea9c3d6a6a584a9c9df1/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
/** * Find a locator based on a prefix. */ this.getLocator = function(prefix) { return this.locators[prefix]; }; /** * The implicit locator, that is used when no prefix is supplied. */ this.implicitLocator = function(locator, inDocument) { return this.getLocator("identifier")(locator, inDocument) || this.getLocator(...
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location.pathname; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/50ae736c31d3d064179fea9c3d6a6a584a9c9df1/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
throw new Error("Unrecognised locator type: '" + locatorType + "'");
throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
}
}
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2e116bdabb8431234b230eaf1a46e3ca7c75fb67/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
PageBot = function(pageWindow) { if (pageWindow) { this.currentWindow = pageWindow; this.currentDocument = pageWindow.document; this.location = pageWindow.location; this.title = function() {return this.currentDocument.title;}; } // Register all locateElementBy* functions // TODO ...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/2e116bdabb8431234b230eaf1a46e3ca7c75fb67/selenium-browserbot.js/clean/code/javascript/core/scripts/selenium-browserbot.js
var val = gmPrompt("Enter a new URL below. You can specify multiple pages using the wildcard (*) character.", "http:
var val = gmPrompt(manageBundle.getString("promptForNewPage.msg"), manageBundle.getString("promptForNewPage.defVal"), manageBundle.getString("promptForNewPage.title"));;
function PagesBox(grpBox) { var buttons = grpBox.getElementsByTagName("button"); var self = this; var selectedPage = null; this.pages = null; this.groupbox = grpBox; this.listbox = grpBox.getElementsByTagName("listbox")[0]; this.btnAdd = buttons[0]; this.btnEd...
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c2503cae955e9455c938fbea453c84e7f15dedcb/pagescontrol.js/clean/src/chrome/chromeFiles/content/pagescontrol.js
var val = gmPrompt("Modify the URL of the page below. You can specify multiple pages using the wildcard (*) character.", self.listbox.selectedItem.label, "Edit Page");
var val = gmPrompt(manageBundle.getString("promptForEdit.msg"), self.listbox.selectedItem.label, manageBundle.getString("promptForEdit.title"));
function PagesBox(grpBox) { var buttons = grpBox.getElementsByTagName("button"); var self = this; var selectedPage = null; this.pages = null; this.groupbox = grpBox; this.listbox = grpBox.getElementsByTagName("listbox")[0]; this.btnAdd = buttons[0]; this.btnEd...
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c2503cae955e9455c938fbea453c84e7f15dedcb/pagescontrol.js/clean/src/chrome/chromeFiles/content/pagescontrol.js
var val = gmPrompt("Enter a new URL below. You can specify multiple pages using the wildcard (*) character.", "http:
var val = gmPrompt(manageBundle.getString("promptForNewPage.msg"), manageBundle.getString("promptForNewPage.defVal"), manageBundle.getString("promptForNewPage.title"));;
function PagesControl(ctlPages) { var document = ctlPages.ownerDocument; var includesBox = new PagesBox(document.getElementById("grpIncluded")); var excludesBox = new PagesBox(document.getElementById("grpExcluded")); this.populate = function(script) { includesBox.populate(script.includes); exc...
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c2503cae955e9455c938fbea453c84e7f15dedcb/pagescontrol.js/clean/src/chrome/chromeFiles/content/pagescontrol.js
var val = gmPrompt("Modify the URL of the page below. You can specify multiple pages using the wildcard (*) character.", self.listbox.selectedItem.label, "Edit Page");
var val = gmPrompt(manageBundle.getString("promptForEdit.msg"), self.listbox.selectedItem.label, manageBundle.getString("promptForEdit.title"));
function PagesControl(ctlPages) { var document = ctlPages.ownerDocument; var includesBox = new PagesBox(document.getElementById("grpIncluded")); var excludesBox = new PagesBox(document.getElementById("grpExcluded")); this.populate = function(script) { includesBox.populate(script.includes); exc...
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/c2503cae955e9455c938fbea453c84e7f15dedcb/pagescontrol.js/clean/src/chrome/chromeFiles/content/pagescontrol.js
var pageUnloadDetector = function() {pageUnloading = true;};
var pageUnloadDetector = function() { pageUnloading = true; };
var pageUnloadDetector = function() {pageUnloading = true;};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/0e14a53996e4d4f6077da9fa5f25415f4fff0108/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
var pageUnloadDetector = function() { pageUnloading = true; };
var pageUnloadDetector = function() {pageUnloading = true;};
var pageUnloadDetector = function() { pageUnloading = true; };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js
var lastIndex = commandOrCommentRegexp.lastIndex;
lastIndex = commandOrCommentRegexp.lastIndex;
function parse(testCase, source) { var commandRegexp = new RegExp(options.commandLoadPattern, 'i'); var commentRegexp = new RegExp(options.commentLoadPattern, 'i'); var commandOrCommentRegexp = new RegExp("((" + options.commandLoadPattern + ")|(" + options.commentLoadPattern + "))", 'ig'); var doc = source; var command...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/57e82436dfcb749a0e13ead9ebe1dd5a149954b6/html.js/buggy/src/content/formats/html.js
testCase.footer = doc.substring(commandOrCommentRegexp.lastIndex);
testCase.footer = doc.substring(lastIndex); log.debug("header=" + testCase.header); log.debug("footer=" + testCase.footer);
function parse(testCase, source) { var commandRegexp = new RegExp(options.commandLoadPattern, 'i'); var commentRegexp = new RegExp(options.commentLoadPattern, 'i'); var commandOrCommentRegexp = new RegExp("((" + options.commandLoadPattern + ")|(" + options.commentLoadPattern + "))", 'ig'); var doc = source; var command...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/57e82436dfcb749a0e13ead9ebe1dd5a149954b6/html.js/buggy/src/content/formats/html.js
eval(options.commandLoadScript);
eval(options.commandLoadScript, {command: command, result: result});
function parse(testCase, source) { var commandRegexp = new RegExp(options.commandLoadPattern, 'i'); var commentRegexp = new RegExp(options.commentLoadPattern, 'i'); var commandOrCommentRegexp = new RegExp("((" + options.commandLoadPattern + ")|(" + options.commentLoadPattern + "))", 'ig'); var doc = source; var command...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/19cfca439e737e1ded4ec3b9399a43854af889d2/html.js/buggy/src/content/formats/html.js
eval(options.commentLoadScript);
eval(options.commentLoadScript, {comment: comment, result: result});
function parse(testCase, source) { var commandRegexp = new RegExp(options.commandLoadPattern, 'i'); var commentRegexp = new RegExp(options.commentLoadPattern, 'i'); var commandOrCommentRegexp = new RegExp("((" + options.commandLoadPattern + ")|(" + options.commentLoadPattern + "))", 'ig'); var doc = source; var command...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/19cfca439e737e1ded4ec3b9399a43854af889d2/html.js/buggy/src/content/formats/html.js
log.debug("doc=" + doc + ", commandRegexp=" + commandRegexp);
function parse(testCase, source) { var commandLoadPattern = options.commandLoadPattern; var commandRegexp = new RegExp(commandLoadPattern, 'i'); var commentRegexp = new RegExp("^" + options.commentLoadPattern, 'i'); var doc = source; var result; var commands = []; var command; var first = true; var i; //var vars = this...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/697e11e20a178e7a4685ec85bc8ac8406754eafd/html.js/buggy/src/content/formats/html.js
browser = document.getElementById( 'browser' );
browser_iesuxx = document.getElementById( 'browser' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { answer = req.responseXML.documentElement; browser = document.getElementById( 'browser' ); pos = document.createElement( "div" ); elt = answer.firstChild; while( ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/c3537d9355bf307bfd63b4c1d319a0777cf80679/functions.js/buggy/share/http/functions.js
while( browser.hasChildNodes() ) browser.removeChild( browser.firstChild ); browser.appendChild( pos );
while( browser_iesuxx.hasChildNodes() ) browser_iesuxx.removeChild( browser.firstChild ); browser_iesuxx.appendChild( pos );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { answer = req.responseXML.documentElement; browser = document.getElementById( 'browser' ); pos = document.createElement( "div" ); elt = answer.firstChild; while( ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/c3537d9355bf307bfd63b4c1d319a0777cf80679/functions.js/buggy/share/http/functions.js
item.setAttribute( 'class', 'browser' );
setclass( item, 'browser' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; if( !answer ) return; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/functions.js/buggy/share/http/js/functions.js
item.setAttribute( 'class', 'browser' );
setclass( item, 'browser' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; if( !answer ) return; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/610ac485f763ba73af5065423814cbd1fa9131b2/functions.js/buggy/share/http/js/functions.js
pos.appendChild( document.createElement( "a" ) ); pos.lastChild.setAttribute( 'class', 'browser' );
var item = document.createElement( "a" ); item.setAttribute( 'class', 'browser' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
pos.lastChild.setAttribute( 'href', 'javascript:browse_dir(\''+addslashes(elt.getAttribute( 'path' ))+'\');');
item.setAttribute( 'href', 'javascript:browse_dir(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');');
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(elt.getAttribute( 'path' ))+'\');' );
item.setAttribute( 'href', 'javascript:browse_path(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
pos.lastChild.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) );
item.appendChild( document.createTextNode( elt.getAttribute( 'name' ) ) ); pos.appendChild( item );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
pos.appendChild( document.createElement( "a" ) ); pos.lastChild.setAttribute( 'class', 'browser' ); pos.lastChild.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(elt.getAttribute( 'path' ))+'\');'); pos.lastChild.appendChild( document.createTextNode( '(select)' ) );
var item = document.createElement( "a" ); item.setAttribute( 'class', 'browser' ); item.setAttribute( 'href', 'javascript:browse_path(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');'); item.appendChild( document.createTextNode( '(select)' ) ); pos.appendChild( item );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
while( browser.hasChildNodes() ) browser.removeChild( browser.firstChild );
clear_children( browser );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); var elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/978d39b3442d34db2be88322500274a0f50cccd5/functions.js/buggy/share/http/js/functions.js
browser_iesuxx.removeChild( browser.firstChild );
browser_iesuxx.removeChild( browser_iesuxx.firstChild );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { answer = req.responseXML.documentElement; browser_iesuxx = document.getElementById( 'browser' ); pos = document.createElement( "div" ); elt = answer.firstChild; ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/234ce23992e3a26a3b039c321ded83f46885de6d/functions.js/buggy/share/http/functions.js
item.setAttribute( 'href', 'javascript:browse_dir(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');');
item.setAttribute( 'href', 'javascript:browse_dir(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');');
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; if( !answer ) return; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/892f3cf9ce0972ff9868e9dfe498bc3d24c55a4e/functions.js/buggy/share/http/js/functions.js
item.setAttribute( 'href', 'javascript:browse_path(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');' );
item.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');' );
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; if( !answer ) return; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/892f3cf9ce0972ff9868e9dfe498bc3d24c55a4e/functions.js/buggy/share/http/js/functions.js
item.setAttribute( 'href', 'javascript:browse_path(\''+escapebackslashes(addslashes(elt.getAttribute( 'path' )))+'\');');
item.setAttribute( 'href', 'javascript:browse_path(\''+addslashes(escapebackslashes(elt.getAttribute( 'path' )))+'\');');
function parse_browse_dir( ){ if( req.readyState == 4 ) { if( req.status == 200 ) { var answer = req.responseXML.documentElement; if( !answer ) return; var browser = document.getElementById( 'browser' ); var pos = document.createElement( "div" ); ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/892f3cf9ce0972ff9868e9dfe498bc3d24c55a4e/functions.js/buggy/share/http/js/functions.js
if(msgtxt[i].length==0) /* Header delimiter */
if(msgtxt[i].length==0)
function parse_msg_header(msgtxt){ var hdr={}; for(i in msgtxt) { if(msgtxt[i].length==0) /* Header delimiter */ break; var match = msgtxt[i].match(/\s*(\S+)\s*:\s*(.*)/); hdr[match[0]]=match[1]; } return(hdr);}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3b7094fc88f7485cd54c8f6df11a05741a5d6d84/mailproc_util.js/buggy/load/mailproc_util.js
var match = msgtxt[i].match(/\s*(\S+)\s*:\s*(.*)/); hdr[match[0]]=match[1];
var match = msgtxt[i].match(/(\S+)\s*:\s*(.*)/); if(match) hdr[last_field=match[1]]=match[2]; else if(last_field) hdr[last_field]+=msgtxt[i];
function parse_msg_header(msgtxt){ var hdr={}; for(i in msgtxt) { if(msgtxt[i].length==0) /* Header delimiter */ break; var match = msgtxt[i].match(/\s*(\S+)\s*:\s*(.*)/); hdr[match[0]]=match[1]; } return(hdr);}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3b7094fc88f7485cd54c8f6df11a05741a5d6d84/mailproc_util.js/buggy/load/mailproc_util.js
if(line.charAt(0)==' ' || line.charAt(0)=='\t' && hdr.field_list) {
if((line.charAt(0)==' ' || line.charAt(0)=='\t') && hdr.field_list) {
function parse_news_header(hdr, line){ /* Parse header lines */ if(line.charAt(0)==' ' || line.charAt(0)=='\t' && hdr.field_list) { /* "folded" header field */ hdr.field_list.push( { type: RFC822HEADER, data: line } ); return; } if((sp=line.indexOf(':'))==-1) return; data=line.slice(sp+1); while(data.charA...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f6382a99f7186e7d226930ba6e2626c162ac62c2/newsutil.js/clean/load/newsutil.js
log(LOG_WARNING,"!WARNING Unknown N:Line flag '" + flags[thisflag] + "' in config.");
log(LOG_WARNING,"!WARNING Unknown N:Line flag '" + flags[thisflag] + "' in config.");
function parse_nline_flags(flags) { var nline_flags = 0; for(thisflag in flags) { switch(flags[thisflag]) { case "q": nline_flags |= NLINE_CHECK_QWKPASSWD; break; case "w": nline_flags |= NLINE_IS_QWKMASTER; break; case "k": nline_flags |= NLINE_CHECK_WITH_QWKMASTER; break; case "d": nline...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
nline_flags |= NLINE_IS_DREAMHAVEN;
nline_flags |= NLINE_IS_DREAMFORGE;
function parse_nline_flags(flags) { var nline_flags = 0; for(thisflag in flags) { switch(flags[thisflag]) { case "q": nline_flags |= NLINE_CHECK_QWKPASSWD; break; case "w": nline_flags |= NLINE_IS_QWKMASTER; break; case "k": nline_flags |= NLINE_CHECK_WITH_QWKMASTER; break; case "d": nline...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/c4161b4238ac188c25d8933c176e550453eec07c/ircd.js/clean/ircd.js
break; case "c": nline_flags |= NLINE_CAN_CLINE;
function parse_nline_flags(flags) { var nline_flags = 0; for(thisflag in flags) { switch(flags[thisflag]) { case "q": nline_flags |= NLINE_CHECK_QWKPASSWD; break; case "c": nline_flags |= NLINE_CAN_CLINE; break; default: log("!WARNING Unknown N:Line flag '" + flags[thisflag] + "' in config."); ...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a697289b2285a18656115e68c62bcc033aa5b402/ircd.js/clean/ircd.js
log(LOG_WARNING,"!WARNING Unknown O:Line flag '" + flags[thisflag] + "' in config.");
log(LOG_WARNING,"!WARNING Unknown O:Line flag '" + flags[thisflag] + "' in config.");
function parse_oline_flags(flags) { var oline_flags = 0; for(thisflag in flags) { switch(flags[thisflag]) { case "r": oline_flags |= OLINE_CAN_REHASH; break; case "R": oline_flags |= OLINE_CAN_RESTART; break; case "D": oline_flags |= OLINE_CAN_DIE; break; case "g": oline_flags |= OLINE_CAN...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/03cf2ad9cc981ddecb083920f6876e8a26b9be78/ircd.js/buggy/ircd.js
oline_flags |= OLINE_IS_GOPER;
function parse_oline_flags(flags) { var oline_flags = 0; for(thisflag in flags) { switch(flags[thisflag]) { case "r": oline_flags |= OLINE_CAN_REHASH; break; case "R": oline_flags |= OLINE_CAN_RESTART; break; case "D": oline_flags |= OLINE_CAN_DIE; break; case "g": oline_flags |= OLINE_CAN...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4288a1a511dbe07b6c8a7901a012ddfdeb204568/ircd.js/buggy/ircd.js
status = req.responseXML.documentElement; document.getElementById( 'time' ).textContent = format_time( status.getElementsByTagName( 'time' )[0].firstChild.data ); document.getElementById( 'length' ).textContent = format_time( status.getElementsByTagName( 'length' )[0].firstChild.data ); if( status.getElementsByTagName(...
status_iesuxx = req.responseXML.documentElement; set_text( 'time', format_time( status_iesuxx.getElementsByTagName( 'time' )[0].firstChild.data ) ); set_text( 'length', format_time( status_iesuxx.getElementsByTagName( 'length' )[0].firstChild.data ) ); if( status_iesuxx.getElementsByTagName( 'volume' ).length != 0 ) se...
function parse_status(){ if( req.readyState == 4 ) { if( req.status == 200 ) { status = req.responseXML.documentElement; document.getElementById( 'time' ).textContent = format_time( status.getElementsByTagName( 'time' )[0].firstChild.data ); document.getElementById( ...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/c3537d9355bf307bfd63b4c1d319a0777cf80679/functions.js/buggy/share/http/functions.js
set_text( 'volume', Math.floor(status_iesuxx.getElementsByTagName( 'volume' )[0].firstChild.data/512)+'%' );
set_text( 'volume', Math.floor(status_iesuxx.getElementsByTagName( 'volume' )[0].firstChild.data/5.12)+'%' );
function parse_status(){ if( req.readyState == 4 ) { if( req.status == 200 ) { status_iesuxx = req.responseXML.documentElement; new_time = status_iesuxx.getElementsByTagName( 'time' )[0].firstChild.data; if( old_time > new_time ) setTimeout('update_pla...
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/5903fe3dd392a1b16b1db88c40cc61b89bd9343c/functions.js/clean/share/http/functions.js
var title = OpenLayers.Util.getNodes(itemlist[i], "title")[0].firstChild.nodeValue; var description = OpenLayers.Util.getNodes(itemlist[i], "description")[0].firstChild.nodeValue;
/* Provide defaults for title and description */ var title = "No title"; try { title = OpenLayers.Util.getNodes(itemlist[i], "title")[0].firstChild.nodeValue; } catch (e) { alert(e); } var description = "No description"; try { description = OpenLayers.Util.getNodes(itemlist[i], "description")[0].firstChild.nodeValue;...
parseData: function(ajaxRequest) { var doc = ajaxRequest.responseXML; if (!doc || ajaxRequest.fileType!="XML") { doc = OpenLayers.parseXMLString(ajaxRequest.responseText); } this.name = doc.getElementsByTagName("title")[0].firstChild.nodeValue; var itemlist = doc.ge...
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/d1ac37984e625924c574a1ac9645ac0baffc97e2/GeoRSS.js/clean/lib/OpenLayers/Layer/GeoRSS.js
var title = OpenLayers.Util.getNodes(itemlist[i], "title")[0].firstChild.nodeValue; var description = OpenLayers.Util.getNodes(itemlist[i], "description")[0].firstChild.nodeValue;
/* Provide defaults for title and description */ var title = "No title"; try { title = OpenLayers.Util.getNodes(itemlist[i], "title")[0].firstChild.nodeValue; } catch (e) { alert(e); } var description = "No description"; try { description = OpenLayers.Util.getNodes(itemlist[i], "description")[0].firstChild.nodeValue;...
parseData: function(ajaxRequest) { var doc = ajaxRequest.responseXML; if (!doc || ajaxRequest.fileType!="XML") { doc = OpenLayers.parseXMLString(ajaxRequest.responseText); } this.name = doc.getElementsByTagName("title")[0].firstChild.nodeValue; var itemlist = doc.ge...
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/d1ac37984e625924c574a1ac9645ac0baffc97e2/GeoRSS.js/clean/lib/OpenLayers/Layer/GeoRSS.js
var url_parts = url.match(/(http[s]?:\/\/(www)?\.?(\w|\.|-)+\w(:\d{1,5})?)\/?(.*)/);
var url_parts = ((url.substring(0,4)).toLowerCase() == "file") ? url.match(/(file:[\/]{2,3}(\w|\.|-|_|\/)+)\/(.*)/) : url.match(/(http[s]?:\/\/(www)?\.?(\w|\.|-)+\w(:\d{1,5})?)\/?(.*)/);
function ParsedURL(url){ // Since we're getting the URL from the browser, we're safe to assume the URL is already well formatted // and so there is no need for more sophisticated regular expression here var url_parts = url.match(/(http[s]?:\/\/(www)?\.?(\w|\.|-)+\w(:\d{1,5})?)\/?(.*)/); // the domain he...
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d58e2ff09f5f9dfa667b1ee643dd8bf8f74295e0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
this.relativePath = "/" + url_parts[5];
this.relativePath = (url_parts[5] === undefined) ? "/" + url_parts[3] : "/" + url_parts[5];
function ParsedURL(url){ // Since we're getting the URL from the browser, we're safe to assume the URL is already well formatted // and so there is no need for more sophisticated regular expression here var url_parts = url.match(/(http[s]?:\/\/(www)?\.?(\w|\.|-)+\w(:\d{1,5})?)\/?(.*)/); // the domain he...
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/d58e2ff09f5f9dfa667b1ee643dd8bf8f74295e0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
if (data.substring(0,1) != '{') {
if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
function parseJson(data) { if (data.substring(0,1) != '{') { return { status: 0, data: data.length ? data : 'Unspecified error' }; } return eval('(' + data + ');');}
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/7bacdb435369334dd78a6dae5498338fa90f96ac/drupal.js/buggy/misc/drupal.js
debug("parseQuery: " + key + ' from ' + theQuery);
function parseQuery(key) { var theIdx = location.href.indexOf('?'); if (theIdx > -1) { var theQuery = location.href.substring(theIdx+1); //alert("parseQuery: " + key + ' from ' + theQuery); theIdx = theQuery.indexOf(key); if (theIdx > -1) { // parse past the key and the '=' ...
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
debug("parseQuery: " + key + ' = ' + theValue);
function parseQuery(key) { var theIdx = location.href.indexOf('?'); if (theIdx > -1) { var theQuery = location.href.substring(theIdx+1); //alert("parseQuery: " + key + ' from ' + theQuery); theIdx = theQuery.indexOf(key); if (theIdx > -1) { // parse past the key and the '=' ...
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/469474651c3f770b832f583fd47778d445b5bf5a/cq.js/buggy/cq.js
r.validAttribValues[t.toLowerCase()] = this._arrayToRe(this.split('?', av[0].substring(1)), '');
r.validAttribValues[t.toLowerCase()] = this._arrayToRe(this.split('?', av[0].substring(1)), 'i');
parseRuleStr : function(s) { var ta, p, r, a, i, x, px, t, tn, y, av, or = tinyMCE.clearArray(new Array()), dv; if (s == null || s.length == 0) return or; ta = s.split(','); for (x=0; x<ta.length; x++) { s = ta[x]; if (s.length == 0) continue; // Split tag/attrs p = this.split(/\[|\]/, s); if (p == ...
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if (r.reqAttribsRe) r.reqAttribsRe = new RegExp(r.reqAttribsRe + ')=\"', 'g');
parseRuleStr : function(s) { var ta, p, r, a, i, x, px, t, tn, y, av, or = tinyMCE.clearArray(new Array()), dv; if (s == null || s.length == 0) return or; ta = s.split(','); for (x=0; x<ta.length; x++) { s = ta[x]; if (s.length == 0) continue; // Split tag/attrs p = this.split(/\[|\]/, s); if (p == ...
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js
if(style[property]) styleRules[property] = style[property];
if(style[property]) styleRules[property] = style[property];
String.prototype.parseStyle = function(){ var element = Element.extend(document.createElement('div')); element.innerHTML = '<div style="' + this + '"></div>'; var style = element.down().style, styleRules = $H(); Element.CSS_PROPERTIES.each(function(property){ if(style[property]) styleRules[property] = style[pro...
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/2ee7ad789e4782f0bfb6757c6989a3000962b116/effects.js/clean/src/effects.js
var result = $H(); styleRules.each(function(pair){ var property = pair[0], value = pair[1], unit = null; if(value.parseColor('#zzzzzz') != '#zzzzzz') { value = value.parseColor(); unit = 'color'; } else if(Element.CSS_LENGTH.test(value)) var components = value.match(/^([\+\-]?[0-9\.]+)(.*)$/), value = parseFloat(co...
if(/MSIE/.test(navigator.userAgent) && !window.opera && this.indexOf('opacity') > -1) { styleRules.opacity = this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]; } return styleRules;
String.prototype.parseStyle = function(){ var element = Element.extend(document.createElement('div')); element.innerHTML = '<div style="' + this + '"></div>'; var style = element.down().style, styleRules = $H(); Element.CSS_PROPERTIES.each(function(property){ if(style[property]) styleRules[property] = style[pro...
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/2ee7ad789e4782f0bfb6757c6989a3000962b116/effects.js/clean/src/effects.js
var CSS_COLOR = /^#([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6}|rgb(\d,\d,\d))$/;
String.prototype.parseStyle = function(){ var element = Element.extend(document.createElement('div')); element.innerHTML = '<div style="' + this + '"></div>'; var style = element.down().style, styleRules = $H(); String.CSS_PROPERTIES.each(function(property){ if(style[property]) styleRules[property] = style[prop...
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/639c8645cd6cf62509bf6c5c009d4c1e46315068/effects.js/clean/src/effects.js
value = flowHelper.getRequest(cocoon).getParameter(name);
function passRequestParameters(flowHelper, usecase) { var names = cocoon.request.getParameterNames(); while (names.hasMoreElements()) { var name = names.nextElement(); if (!name.equals("lenya.usecase") && !name.equals("lenya.continuation") && !name.equals("submit")) { ...
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/77bf91c3296ee0a67101c8f46e62cc4132a693c5/usecases.js/buggy/src/webapp/lenya/usecases/usecases.js
this.pattern = pattern; var strategyName = 'glob'; if (/^([a-zA-Z]+):(.*)/.test(pattern)) { strategyName = RegExp.$1; pattern = RegExp.$2; } strategyClassName = strategyName.ucfirst() + 'MatchStrategy'; if (! PatternMatcher[strategyClassName]) { throw new SeleniumError("cannot find PatternMatcher." + strategyClassName)...
this.selectStrategy(pattern);
PatternMatcher = function(pattern) { this.pattern = pattern; var strategyName = 'glob'; // by default if (/^([a-zA-Z]+):(.*)/.test(pattern)) { strategyName = RegExp.$1; pattern = RegExp.$2; } strategyClassName = strategyName.ucfirst() + 'MatchStrategy'; if (! PatternMatcher[strategyClass...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/732ba676fd79b000d33b0b863900a6e4d545f2e0/selenium-api.js/buggy/code/javascript/selenium-api.js
this.pattern = pattern; var strategyName = 'glob'; if (/^([a-zA-Z]+):(.*)/.test(pattern)) { strategyName = RegExp.$1; pattern = RegExp.$2; } strategyClassName = strategyName.ucfirst() + 'MatchStrategy'; if (! PatternMatcher[strategyClassName]) { throw new SeleniumError("cannot find PatternMatcher." + strategyClassName)...
this.selectStrategy(pattern);
PatternMatcher = function(pattern) { this.pattern = pattern; var strategyName = 'glob'; // by default if (/^([a-zA-Z]+):(.*)/.test(pattern)) { strategyName = RegExp.$1; pattern = RegExp.$2; } strategyClassName = strategyName.ucfirst() + 'MatchStrategy'; if (! PatternMatcher[strategyClass...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c23d8c75e575edee0609da00f3d91908b062e9b5/selenium-api.js/buggy/code/javascript/selenium-api.js
PatternMatcher = function(pattern) {
var PatternMatcher = function(pattern) {
PatternMatcher = function(pattern) { this.selectStrategy(pattern);};
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/10e591b5be05718f2e4d76628c0765675e463e1b/htmlutils.js/clean/code/javascript/core/scripts/htmlutils.js
function pause() {
function pause() {
function pause() { DebuggerDocument.pause();}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
treePopup.style.display = null; searchCount.style.display = null; searchField.style.width = null;
treePopup.style.removeProperty("display"); searchCount.style.removeProperty("display"); searchField.style.removeProperty("width");
function performSearch(query){ var treePopup = document.getElementById("treePopup"); var searchField = document.getElementById("search"); var searchCount = document.getElementById("searchCount"); if (query.length && !searchActive) { treePopup.style.display = "none"; searchCount.style.display =...
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/698fe24365317fd75bda13d558b5e551b352b9c6/inspector.js/clean/third_party/WebKit/WebKit/WebInspector/webInspector/inspector.js
function pg_prefs_load(){ PGTranslate_prefs = new PGTranslate_prefs(); initListBox(); var defaultLanguage = PGTranslate_prefs.getIntPref(PGTranslate_prefs.PREF_LANGUAGE); document.getElementById("translate.prefs.language.selection").selectedIndex = defaultLanguage; document.getElementById("translate.prefs.contextMenu")...
9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/314a4fb3fb217fe2ad81ee39cd825ad7af15e4b7/translate-options.js/clean/firefox/extensions/translate/trunk/chrome/content/translate-options.js
function pg_prefs_load(){ PGTranslate_prefs = new PGTranslate_prefs(); initListBox(); var defaultLanguage = PGTranslate_prefs.getIntPref(PGTranslate_prefs.PREF_LANGUAGE); document.getElementById("translate.prefs.language.selection").selectedIndex = defaultLanguage; document.getElementById("translate.prefs.contextMenu")...
9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/314a4fb3fb217fe2ad81ee39cd825ad7af15e4b7/translate-options.js/clean/firefox/extensions/translate/trunk/chrome/content/translate-options.js
gPGTranslate.enableTranslate(aLocation.asciiSpec);
function PGTranslate() // lets initialise some of the variables that we are going to use{ /* this.pref_theLanguage; this.pref_displayContextMenu ; this.pref_displayToolMenu ; */ this.translateBundle; //holds variable found in translate.properties this.PGTranslate_prefs = new PGTranslate_prefs(); this.myListener = ...
9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/5ef45de1b7ad016102d93f8b0600eedee2a03b67/translate.js/buggy/tags/r_0_6_0/chrome/content/translate.js
gPGTranslate.enableTranslate(aLocation.asciiSpec);
function PGTranslate() // lets initialise some of the variables that we are going to use{ /* this.pref_theLanguage; this.pref_displayContextMenu ; this.pref_displayToolMenu ; */ this.translateBundle; //holds variable found in translate.properties this.PGTranslate_prefs = new PGTranslate_prefs(); this.myListener = ...
9817 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9817/2b497b1a388cd41d5ddd950467c5bc7c02b72764/translate.js/buggy/trunk/chrome/content/translate.js
loadXMLDoc( 'requests/status.xml?command=pl_pause', parse_status );
loadXMLDoc( 'requests/status.xml?command=pl_pause&id='+pl_cur_id, parse_status );
function pl_pause(){ loadXMLDoc( 'requests/status.xml?command=pl_pause', parse_status );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/c0fe636d8e26a88ae46bd98fb15e1282d7593236/functions.js/buggy/share/http/js/functions.js
pl_cur_id = id;
function pl_play( id ){ loadXMLDoc( 'requests/status.xml?command=pl_play&id='+id, parse_status ); setTimeout( 'update_playlist()', 1000 );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/c0fe636d8e26a88ae46bd98fb15e1282d7593236/functions.js/buggy/share/http/js/functions.js
function pl_sort()
function pl_sort( sort, order )
function pl_sort(){ /* FIXME */ loadXMLDoc( 'requests/status.xml?command=pl_sort', parse_status ); setTimeout( 'update_playlist()', 1000 );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/a7c18d8acc7b15a1937863953d2dfd06c0b6a7a1/functions.js/buggy/share/http/js/functions.js
/* FIXME */ loadXMLDoc( 'requests/status.xml?command=pl_sort', parse_status );
loadXMLDoc( 'requests/status.xml?command=pl_sort&id='+order+'&val='+sort, parse_status );
function pl_sort(){ /* FIXME */ loadXMLDoc( 'requests/status.xml?command=pl_sort', parse_status ); setTimeout( 'update_playlist()', 1000 );}
1058 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1058/a7c18d8acc7b15a1937863953d2dfd06c0b6a7a1/functions.js/buggy/share/http/js/functions.js
d=parseInt(dur); if(isNaN(f=parseInt(freq.charAt(0))))
d=parseFloat(dur); if(isNaN(f=parseInt(freq)))
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if(isNaN(f=parseInt(freq.charAt(0)))) switch(freq.charAt...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4cffc9d18166ea9c7dbcd3ece2a4432e0b263129/playtone.js/buggy/playtone.js
case 'Q': /* quit */ exit(0);
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if(isNaN(f=parseInt(freq.charAt(0)))) switch(freq.charAt...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4cffc9d18166ea9c7dbcd3ece2a4432e0b263129/playtone.js/buggy/playtone.js
exit(1);
stop=true; break;;
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if(isNaN(f=parseInt(freq.charAt(0)))) switch(freq.charAt...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4cffc9d18166ea9c7dbcd3ece2a4432e0b263129/playtone.js/buggy/playtone.js
if((f=parseInt(freq))!=0)
if(isNaN(f=parseInt(freq.charAt(0))))
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
if(parseInt(dur))
if(Number(dur.charAt(0)))
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
if(parseInt(dur)) pitch=atof(dur)/32.0;
if(Number(dur.charAt(0))) pitch=parseFloat(dur)/32.0;
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
pitch+=atof(dur);
pitch+=parseFloat(dur);
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
if(parseInt(dur))
if(Number(dur.charAt(0)))
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
write(dur);
write(truncstr(dur,'\\'));
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
if(f && mode&SHOW_FREQ) { for(i=0;freq[i]>' ';i++) ; freq[i]=0; printf("%-4.4s",freq); } if(mode&SHOW_DOT) printf(".");
function play(freq, dur){ var notes=['c',' ','d',' ','e','f',' ','g',' ','a',' ','b']; var sharp=['B','C',' ','D',' ','E','F',' ','G',' ','A',' ']; var i,n,o,d; var len; var f;// writeln("play " + freq + ", " + dur); if(dur==undefined) dur="0"; d=parseInt(dur); if((f=parseInt(freq))!=0) switch(freq.charAt(0).toUpperC...
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f995e6bc5bd279d7f627d7e89228bab8ad39110b/playtone.js/clean/playtone.js
var appcontent = window.document.getElementById("appcontent");
function playback() { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"].getService(Components.interfaces.nsIWindowMediator); var window = wm.getMostRecentWindow('navigator:browser'); var contentWindow = window.getBrowser().contentWindow; var appcontent = window.document.getElementById("appcontent")...
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/c950ca6f6d08aee4c1c8dccebdc1a9012fdcdcc5/recorder.js/buggy/src/content/recorder.js
return event.pageX || (event.clientX +
return event.pageX || (event.clientX +
pointerX: function(event) { return event.pageX || (event.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js
return event.pageY || (event.clientY +
return event.pageY || (event.clientY +
pointerY: function(event) { return event.pageY || (event.clientY + (document.documentElement.scrollTop || document.body.scrollTop)); },
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js
var nodes = document.getElementsByClassName(accentClass); for (var i = 0; i < nodes.length; i++) { debug.print(label + " node for accent-color = " + nodes[i].nodeName); nodes[i].style.backgroundColor = this.accentColor;
var frames = new Array(document, parent.frames[1].document ); var nodes; debug.print(label + "frames " + frames.length); for (var i = 0; i < frames.length; i++) { debug.print(label + "frame " + i + " = " + frames[i]); nodes = frames[i].getElementsByClassName(accentClass); for (var j = 0; j < nodes.length; j++) { debug....
function PolicyClass(titleId, title, accentClass, accentColor) { debug.print("PolicyClass: " + "titleId = " + titleId) this.titleNode = $(titleId); this.title = title; this.accentClass = accentClass; this.accentColor = accentColor; this.getTitle = function() { return this.title; } this.ge...
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/d247a1b6dacb7417d1b16dd5d23f8786e47c143b/query.js/buggy/query.js
parent.frames[1].document );
parent.frames[1].document);
function PolicyClass(titleId, title, accentClass, accentColor) { debug.print("PolicyClass: " + "titleId = " + titleId) this.titleNode = $(titleId); this.title = title; this.accentClass = accentClass; this.accentColor = accentColor; this.getTitle = function() { return this.title; } this.ge...
952 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/952/9c5f02369bb30e42ba4bb68262eabcbd532d7b22/query.js/clean/query.js
var last = this[this.length - 1 ]; this.length = this.length - 1;
var last = null; if ( this.length > 0 ) { last = this[this.length - 1 ]; this.length = this.length - 1; }
Array.prototype.pop=function() { var last = this[this.length - 1 ]; this.length = this.length - 1; return last; }
2011 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2011/85c17727acdb58ae9ae601d8f07dc47ffc099420/ezjslibie50support.js/clean/design/standard/javascript/lib/ezjslibie50support.js
var last = this[this.length - 1 ]; this.length = this.length - 1;
var last = null; if ( this.length > 0 ) { last = this[this.length - 1 ]; this.length = this.length - 1; }
Array.prototype.pop=function() { var last = this[this.length - 1 ]; this.length = this.length - 1; return last; }
8051 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8051/85c17727acdb58ae9ae601d8f07dc47ffc099420/ezjslibie50support.js/buggy/design/standard/javascript/lib/ezjslibie50support.js
out += '<li><a href="#needsJS" onclick=\'window.search("' + q + '"); return false;\'>' + d + '</a>'
out += '<li><a href="#needsJS" onclick=\'POPsearch("' + q + '"); return false;\'>' + d + '</a>'
function POPsearch(s) { var d = document.getElementById('Submit1') d.value = 'Searching...'; d.disabled = true document.getElementById('q').disabled = true var r = GXmlHttp.create(); r.open("GET", "/lookup.php?output=xml&q=" + encodeURIComponent(s), true); r.onreadystatechange = function(){ if ...
4679 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4679/a3e9f600215fc68dd77a3000e24dca82a27ea07f/pop.js/buggy/docs/js/pop.js
var pos = Drupal.absolutePosition(this.input);
Drupal.jsAC.prototype.populatePopup = function () { // Show popup if (this.popup) { $(this.popup).remove(); } var pos = Drupal.absolutePosition(this.input); this.selected = false; this.popup = document.createElement('div'); this.popup.id = 'autocomplete'; this.popup.owner = this; $(this.popup).css({ top:...
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/905fd30abbc9195bad3c37d966f220f60dcb671c/autocomplete.js/clean/misc/autocomplete.js
top: (pos.y + this.input.offsetHeight) +'px', left: pos.x +'px',
marginTop: this.input.offsetHeight +'px',
Drupal.jsAC.prototype.populatePopup = function () { // Show popup if (this.popup) { $(this.popup).remove(); } var pos = Drupal.absolutePosition(this.input); this.selected = false; this.popup = document.createElement('div'); this.popup.id = 'autocomplete'; this.popup.owner = this; $(this.popup).css({ top:...
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/905fd30abbc9195bad3c37d966f220f60dcb671c/autocomplete.js/clean/misc/autocomplete.js
$('body').append(this.popup);
$(this.input).before(this.popup);
Drupal.jsAC.prototype.populatePopup = function () { // Show popup if (this.popup) { $(this.popup).remove(); } var pos = Drupal.absolutePosition(this.input); this.selected = false; this.popup = document.createElement('div'); this.popup.id = 'autocomplete'; this.popup.owner = this; $(this.popup).css({ top:...
3650 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3650/905fd30abbc9195bad3c37d966f220f60dcb671c/autocomplete.js/clean/misc/autocomplete.js
var value = prop.style.getPropertyValue(name);
function populateStyleListItem(li, prop, name){ var value = prop.style.getPropertyValue(name); var span = document.createElement("span"); span.className = "property"; span.textContent = name; li.appendChild(span); span = document.createElement("span"); span.className = "value"; var textValue = v...
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c84182981d4249f4cb93a76049e37453ce4048fd/inspector.js/buggy/third_party/WebKit/WebKit/WebInspector/webInspector/inspector.js
var value = prop.style.getPropertyValue(name); if (!value) return;
function populateStyleListItem(li, prop, name){ var value = prop.style.getPropertyValue(name); var span = document.createElement("span"); span.className = "property"; span.textContent = name; li.appendChild(span); span = document.createElement("span"); span.className = "value"; var textValue = v...
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/c84182981d4249f4cb93a76049e37453ce4048fd/inspector.js/buggy/third_party/WebKit/WebKit/WebInspector/webInspector/inspector.js