rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
default: return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/buggy/railties/html/javascripts/prototype.js
case 'password':
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b/prototype.js/buggy/railties/html/javascripts/prototype.js
case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
default: return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
case 'password':
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b/prototype.js/buggy/railties/html/javascripts/prototype.js
case 'password':
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/9ca9f95aee3f44acd3a5ee1cb3e2b20df39ee92b/prototype.js/clean/railties/html/javascripts/prototype.js
case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/buggy/railties/html/javascripts/prototype.js
default: return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/buggy/railties/html/javascripts/prototype.js
case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
default: return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
default: return Form.Element.Serializers.textarea(element);
input: function(element) { switch (element.type.toLowerCase()) { case 'hidden': case 'password': case 'text': return Form.Element.Serializers.textarea(element); case 'checkbox': case 'radio': return Form.Element.Serializers.inputSelector(element); } return false; },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/e4ccbf28c815fefeeb90c45524feea7b57e5a6ae/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
if(historyIndex == -1)
if (historyIndex == -1)
function inputKeyDown(event){ if (event.keyCode == 13 && !event.altKey) { if (mainWindow.isPaused() && mainWindow.currentStack) { sendScript(inputElement.innerText); inputElement.innerText = ""; inputElement.focus(); } else alert("The debugger needs to be paused.\tIn order to evaluate your script input you need to pause the debugger in the context of another script."); event.preventDefault(); } else if (event.keyCode == 38 && !event.altKey) { var history = document.getElementById("history"); if(historyIndex == -1) storedInput = inputElement.innerText; var historyArray = history.childNodes; var historySize = historyArray.length - 1; if(historyIndex < historySize) { historyIndex++; inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText; } event.preventDefault(); } else if (event.keyCode == 40 && !event.altKey) { if(historyIndex >= 0) { var history = document.getElementById("history"); historyIndex--; if (historyIndex == -1) inputElement.innerText = storedInput; else { var historyArray = history.childNodes; inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText; } } event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/console.js/clean/third_party/WebKit/WebKitTools/Drosera/console.js
if(historyIndex < historySize) {
if (historyIndex < historySize) {
function inputKeyDown(event){ if (event.keyCode == 13 && !event.altKey) { if (mainWindow.isPaused() && mainWindow.currentStack) { sendScript(inputElement.innerText); inputElement.innerText = ""; inputElement.focus(); } else alert("The debugger needs to be paused.\tIn order to evaluate your script input you need to pause the debugger in the context of another script."); event.preventDefault(); } else if (event.keyCode == 38 && !event.altKey) { var history = document.getElementById("history"); if(historyIndex == -1) storedInput = inputElement.innerText; var historyArray = history.childNodes; var historySize = historyArray.length - 1; if(historyIndex < historySize) { historyIndex++; inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText; } event.preventDefault(); } else if (event.keyCode == 40 && !event.altKey) { if(historyIndex >= 0) { var history = document.getElementById("history"); historyIndex--; if (historyIndex == -1) inputElement.innerText = storedInput; else { var historyArray = history.childNodes; inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText; } } event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/console.js/clean/third_party/WebKit/WebKitTools/Drosera/console.js
inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText;
var item = historyArray[historySize - historyIndex].childNodes[0]; while(item.className.indexOf("expression") == -1) { historyIndex++; item = historyArray[historySize - historyIndex].childNodes[0]; } inputElement.innerText = item.innerText;
function inputKeyDown(event){ if (event.keyCode == 13 && !event.altKey) { if (mainWindow.isPaused() && mainWindow.currentStack) { sendScript(inputElement.innerText); inputElement.innerText = ""; inputElement.focus(); } else alert("The debugger needs to be paused.\tIn order to evaluate your script input you need to pause the debugger in the context of another script."); event.preventDefault(); } else if (event.keyCode == 38 && !event.altKey) { var history = document.getElementById("history"); if(historyIndex == -1) storedInput = inputElement.innerText; var historyArray = history.childNodes; var historySize = historyArray.length - 1; if(historyIndex < historySize) { historyIndex++; inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText; } event.preventDefault(); } else if (event.keyCode == 40 && !event.altKey) { if(historyIndex >= 0) { var history = document.getElementById("history"); historyIndex--; if (historyIndex == -1) inputElement.innerText = storedInput; else { var historyArray = history.childNodes; inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText; } } event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/console.js/clean/third_party/WebKit/WebKitTools/Drosera/console.js
if(historyIndex >= 0) {
if (historyIndex >= 0) {
function inputKeyDown(event){ if (event.keyCode == 13 && !event.altKey) { if (mainWindow.isPaused() && mainWindow.currentStack) { sendScript(inputElement.innerText); inputElement.innerText = ""; inputElement.focus(); } else alert("The debugger needs to be paused.\tIn order to evaluate your script input you need to pause the debugger in the context of another script."); event.preventDefault(); } else if (event.keyCode == 38 && !event.altKey) { var history = document.getElementById("history"); if(historyIndex == -1) storedInput = inputElement.innerText; var historyArray = history.childNodes; var historySize = historyArray.length - 1; if(historyIndex < historySize) { historyIndex++; inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText; } event.preventDefault(); } else if (event.keyCode == 40 && !event.altKey) { if(historyIndex >= 0) { var history = document.getElementById("history"); historyIndex--; if (historyIndex == -1) inputElement.innerText = storedInput; else { var historyArray = history.childNodes; inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText; } } event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/console.js/clean/third_party/WebKit/WebKitTools/Drosera/console.js
inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText;
var historySize = historyArray.length - 1; var item = historyArray[historySize - historyIndex].childNodes[0]; while(item.className.indexOf("expression") == -1) { historyIndex--; item = historyArray[historySize - historyIndex].childNodes[0]; } inputElement.innerText = item.innerText;
function inputKeyDown(event){ if (event.keyCode == 13 && !event.altKey) { if (mainWindow.isPaused() && mainWindow.currentStack) { sendScript(inputElement.innerText); inputElement.innerText = ""; inputElement.focus(); } else alert("The debugger needs to be paused.\tIn order to evaluate your script input you need to pause the debugger in the context of another script."); event.preventDefault(); } else if (event.keyCode == 38 && !event.altKey) { var history = document.getElementById("history"); if(historyIndex == -1) storedInput = inputElement.innerText; var historyArray = history.childNodes; var historySize = historyArray.length - 1; if(historyIndex < historySize) { historyIndex++; inputElement.innerText = historyArray[historySize - historyIndex].childNodes[0].innerText; } event.preventDefault(); } else if (event.keyCode == 40 && !event.altKey) { if(historyIndex >= 0) { var history = document.getElementById("history"); historyIndex--; if (historyIndex == -1) inputElement.innerText = storedInput; else { var historyArray = history.childNodes; inputElement.innerText = historyArray[(historyArray.length - 1) - historyIndex].childNodes[0].innerText; } } event.preventDefault(); }}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/265b0e098271034b585404142515fee7102730f2/console.js/clean/third_party/WebKit/WebKitTools/Drosera/console.js
function insDoc(parentFolder, document) { return parentFolder.addChild(document)
function insDoc(parentFolder, document) { return parentFolder.addChild(document)
function insDoc(parentFolder, document) { return parentFolder.addChild(document) }
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
if (!AutoValidator.validate(formObj)) { alert(tinyMCE.getLang('lang_invalid_data')); return false; }
function insertAction() { var inst = tinyMCE.getInstanceById(tinyMCE.getWindowArg('editor_id')); var elm = inst.getFocusElement(); var formObj = document.forms[0]; var src = formObj.src.value; var onmouseoversrc = formObj.onmouseoversrc.value; var onmouseoutsrc = formObj.onmouseoutsrc.value; if (tinyMCE.getParam("accessibility_warnings")) { if (formObj.alt.value == "") { var answer = confirm(tinyMCE.getLang('lang_advimage_missing_alt', '', true)); if (answer == true) { formObj.alt.value = " "; } } else { var answer = true; } if (!answer) return; } if (onmouseoversrc && onmouseoversrc != "") onmouseoversrc = "this.src='" + convertURL(onmouseoversrc, tinyMCE.imgElement) + "';"; if (onmouseoutsrc && onmouseoutsrc != "") onmouseoutsrc = "this.src='" + convertURL(onmouseoutsrc, tinyMCE.imgElement) + "';"; if (elm != null && elm.nodeName == "IMG") { setAttrib(elm, 'src', convertURL(src, tinyMCE.imgElement)); setAttrib(elm, 'mce_src', src); setAttrib(elm, 'alt'); setAttrib(elm, 'title'); setAttrib(elm, 'border'); setAttrib(elm, 'vspace'); setAttrib(elm, 'hspace'); setAttrib(elm, 'width'); setAttrib(elm, 'height'); setAttrib(elm, 'onmouseover', onmouseoversrc); setAttrib(elm, 'onmouseout', onmouseoutsrc); setAttrib(elm, 'id'); setAttrib(elm, 'dir'); setAttrib(elm, 'lang'); setAttrib(elm, 'longdesc'); setAttrib(elm, 'usemap'); setAttrib(elm, 'style'); setAttrib(elm, 'class', getSelectValue(formObj, 'classlist')); setAttrib(elm, 'align', getSelectValue(formObj, 'align')); //tinyMCEPopup.execCommand("mceRepaint"); // Repaint if dimensions changed if (formObj.width.value != orgImageWidth || formObj.height.value != orgImageHeight) inst.repaint(); // Refresh in old MSIE if (tinyMCE.isMSIE5) elm.outerHTML = elm.outerHTML; } else { var html = "<img"; html += makeAttrib('src', convertURL(src, tinyMCE.imgElement)); html += makeAttrib('mce_src', src); html += makeAttrib('alt'); html += makeAttrib('title'); html += makeAttrib('border'); html += makeAttrib('vspace'); html += makeAttrib('hspace'); html += makeAttrib('width'); html += makeAttrib('height'); html += makeAttrib('onmouseover', onmouseoversrc); html += makeAttrib('onmouseout', onmouseoutsrc); html += makeAttrib('id'); html += makeAttrib('dir'); html += makeAttrib('lang'); html += makeAttrib('longdesc'); html += makeAttrib('usemap'); html += makeAttrib('style'); html += makeAttrib('class', getSelectValue(formObj, 'classlist')); html += makeAttrib('align', getSelectValue(formObj, 'align')); html += " />"; tinyMCEPopup.execCommand("mceInsertContent", false, html); } tinyMCE._setEventsEnabled(inst.getBody(), false); tinyMCEPopup.close();}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/functions.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/advimage/jscripts/functions.js
if (this.nextSibling)
if (this.nextSibling)
HTMLElement.prototype.insertAdjacentElement = function (where,parsedNode) { switch (where){ case 'beforeBegin': this.parentNode.insertBefore(parsedNode,this) break; case 'afterBegin': this.insertBefore(parsedNode,this.firstChild); break; case 'beforeEnd': this.appendChild(parsedNode); break; case 'afterEnd': if (this.nextSibling) this.parentNode.insertBefore(parsedNode,this.nextSibling); else this.parentNode.appendChild(parsedNode); break; } }
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
insertContent: function() { this.element.parentNode.insertBefore(this.fragment, this.element.nextSibling);
insertContent: function(fragments) { fragments.each((function(fragment) { this.element.parentNode.insertBefore(fragment, this.element.nextSibling); }).bind(this));
insertContent: function() { this.element.parentNode.insertBefore(this.fragment, this.element.nextSibling); }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/prototype.js/buggy/public/javascripts/prototype.js
function insertImage(nodeid) {
function insertImage() {
function insertImage(nodeid) { var src = document.forms['image'].assetName.value; var title = document.forms['image'].caption.value; var type = document.forms['image'].type.value; var height = document.forms['image'].height.value; var width = document.forms['image'].width.value; window.opener.SetUrl( nodeid + '/' + src, width, height, title ); window.close(); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b13b8b9c6a50c230bcc0ee9a44bca08abe798f2d/insertAsset.js/buggy/src/modules/fckeditor/resources/javascript/insertAsset.js
window.opener.SetUrl( nodeid + '/' + src, width, height, title );
window.opener.SetUrl( src, width, height, title );
function insertImage(nodeid) { var src = document.forms['image'].assetName.value; var title = document.forms['image'].caption.value; var type = document.forms['image'].type.value; var height = document.forms['image'].height.value; var width = document.forms['image'].width.value; window.opener.SetUrl( nodeid + '/' + src, width, height, title ); window.close(); }
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b13b8b9c6a50c230bcc0ee9a44bca08abe798f2d/insertAsset.js/buggy/src/modules/fckeditor/resources/javascript/insertAsset.js
} else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file: else if (href.substring(0, 2) == "\\\\") filepath = "file: tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, "");
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/7ca439438dc0f36f25d560b21bd1017c41053651/link.js/buggy/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
filepath = "file:
filepath = "file:\/\/" + href.replace(/\\/gi, "\/");
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file://" + href.replace(/\\/gi, "/"); else if (href.substring(0, 2) == "\\\\") filepath = "file://///" + href.replace(/\\/gi, "/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f7074e4a3c7f8d598e9ff94e444bc246a94b0df1/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
filepath = "file:
filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/");
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file://" + href.replace(/\\/gi, "/"); else if (href.substring(0, 2) == "\\\\") filepath = "file://///" + href.replace(/\\/gi, "/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/f7074e4a3c7f8d598e9ff94e444bc246a94b0df1/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
var href = document.forms[0].attach.value;
var href = document.forms[0].attach_file.value;
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file:\/\/" + href.replace(/\\/gi, "\/"); else if (href.substring(0, 2) == "\\\\") filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
var href = document.forms[0].filepath.value; var filepath="";
var href = document.forms[0].filepaths.value; var filepaths="";
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file:\/\/" + href.replace(/\\/gi, "\/"); else if (href.substring(0, 2) == "\\\\") filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
filepath = "file:\/\/" + href.replace(/\\/gi, "\/");
filepaths = "file:\/\/" + href.replace(/\\/gi, "\/");
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file:\/\/" + href.replace(/\\/gi, "\/"); else if (href.substring(0, 2) == "\\\\") filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, "");
filepaths = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepaths, "", text, "", "", dummy, "");
function insertLink() { var wikiTabElm = document.getElementById("wiki_tab"); var webTabElm = document.getElementById("web_tab"); var fileTabElm = document.getElementById("file_tab"); var attachTabElm = document.getElementById("attachments_tab"); var emailTabElm = document.getElementById("email_tab"); var dummy; tinyMCEPopup.restoreSelection(); if (wikiTabElm.className == "current") { var href = document.forms[0].wiki_page.value; var space = document.forms[0].wiki_space.value; var wikitext = document.forms[0].wiki_text.value; tinyMCE.themes['wikieditor'].insertLink(href, "", wikitext, space, "", dummy, ""); } else if (webTabElm.className == "current") { var webtext = document.forms[0].web_text.value; var href = document.forms[0].web_page.value; tinyMCE.themes['wikieditor'].insertLink(href, "", webtext, "", "", dummy, ""); } else if (attachTabElm.className == "current") { var href = document.forms[0].attach.value; var text = document.forms[0].attach_text.value; tinyMCE.themes['wikieditor'].insertLink("wikiattachment:-:" + href, "", text, "", "", dummy, ""); } else if (fileTabElm.className == "current") { var text = document.forms[0].file_text.value; var href = document.forms[0].filepath.value; var filepath=""; if (":" == href.charAt(href.indexOf("\\") - 1)) filepath = "file:\/\/" + href.replace(/\\/gi, "\/"); else if (href.substring(0, 2) == "\\\\") filepath = "file:\/\/\/" + href.replace(/\\/gi, "\/"); tinyMCE.themes['wikieditor'].insertLink(filepath, "", text, "", "", dummy, ""); } else if (emailTabElm.className == "current") { var text = document.forms[0].email_text.value; var email = document.forms[0].email.value; href = "mailto:" + email; tinyMCE.themes['wikieditor'].insertLink(href, "", text, "", "", dummy, ""); } tinyMCEPopup.close();}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/dd352e85541f4f0c03f7f567916b9a31621e2ad2/link.js/clean/xwiki-platform-web/standard/src/main/webapp/tiny_mce_2/themes/wikieditor/jscripts/link.js
{var str = "<div class='exportDocName'>";
{var str = "<div class='importDoc'>";
function insertNewDoc(id, value, language){var str = "<div class='exportDocName'>"; str += "<input type='checkBox' name='pages' value='" + value + "' class='selCheckedDoc' id='sel_" + value + "' checked />"; // Add language var sLanguage = ""; if (language!=null) sLanguage = "" + language; var htmlLanguage = "<input type=\"hidden\" name=\"language_" + value + "\" value=\"" + sLanguage + "\" />"; str += htmlLanguage; // Add name str += value; if ((language!=null)&&(language!="")) { str += " (" + language + ")"; } str += "</div>"; new Insertion.Bottom(id, str);}
6184 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6184/b89d34aca5e20c4c1993216c92664be71772676e/import.js/clean/xwiki-platform-web/standard/src/main/webapp/skins/xwiki10b1/import.js
function InsertNodeAtStartOfRange( newNode ){
function InsertNodeAtStartOfRange( newNode ) {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
try{
try {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
}catch(e){throw new Error("INVALID_STATE_ERR")}
} catch(e) { throw new Error("INVALID_STATE_ERR") }
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
switch( node.nodeType ){
switch( node.nodeType ) {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
this.startContainer.nodeType == Node.TEXT_NODE){
this.startContainer.nodeType == Node.TEXT_NODE) {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
} else if( this.startOffset == this.startContainer.childNodes.length){
} else if( this.startOffset == this.startContainer.childNodes.length) {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{
if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try {
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
}catch(err){}
} catch(err) {}
function InsertNodeAtStartOfRange( newNode ){ //Range.prototype.insertNode = InsertNodeAtStartOfRange; //Mozilla has not implemented this method yet. This code will simulate the //required functionality try{ var test_INVALID_STATE_ERR = this.endContainer; var test_INVALID_STATE_ERR = this.startContainer; }catch(e){throw new Error("INVALID_STATE_ERR")} var node=newNode; //check for invalid node type switch( node.nodeType ){ case Node.DOCUMENT_NODE: case Node.ATTRIBUTE_NODE: case Node.ENTITY_NODE: case Node.NOTATION_NODE: throw new Error("INVALID_NODE_TYPE_ERR") break; case Node.DOCUMENT_FRAGMENT_NODE: var firstChild = node.firstChild; } if( this.startContainer.nodeType == Node.CDATA_SECTION_NODE || this.startContainer.nodeType == Node.TEXT_NODE){ //The start of the range is within a Text or CDATASection node. The node //must be split so that the new node can be inserted. this.startContainer.parentNode.insertBefore( node, this.startContainer.splitText( this.startOffset)); } else if( this.startOffset == this.startContainer.childNodes.length){ //find the insertion point in the DOM and insert the node. //the insertion point is at the end of the startContainer node so just //append the node to the startContainer node. this.startContainer.appendChild( node ); } else { //the insertion point is NOT at the end of the startContainer node. Insert //the node before the node referenced by the startOffset property this.startContainer.insertBefore( node, this.startContainer.childNodes.item(this.startOffset) ); } if( node.nodeType == Node.DOCUMENT_FRAGMENT_NODE) node = firstChild; try{ this.setStart( node, 0 ); }catch(err){}}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/23e4752e13536f63516c1ece4dd47e95e4cd7f52/bitfluxeditor_core.js/clean/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js
if (!AutoValidator.validate(formObj)) { alert(tinyMCE.getLang('lang_invalid_data')); return false; }
function insertTable() { var formObj = document.forms[0]; var inst = tinyMCE.selectedInstance; var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, className; var html = ''; var elm = tinyMCE.tableElm; var cellLimit, rowLimit, colLimit; tinyMCEPopup.restoreSelection(); // Get form data cols = formObj.elements['cols'].value; rows = formObj.elements['rows'].value; border = formObj.elements['border'].value != "" ? formObj.elements['border'].value : 0; cellpadding = formObj.elements['cellpadding'].value != "" ? formObj.elements['cellpadding'].value : ""; cellspacing = formObj.elements['cellspacing'].value != "" ? formObj.elements['cellspacing'].value : ""; align = formObj.elements['align'].options[formObj.elements['align'].selectedIndex].value; width = formObj.elements['width'].value; height = formObj.elements['height'].value; bordercolor = formObj.elements['bordercolor'].value; bgcolor = formObj.elements['bgcolor'].value; className = formObj.elements['class'].options[formObj.elements['class'].selectedIndex].value; id = formObj.elements['id'].value; summary = formObj.elements['summary'].value; style = formObj.elements['style'].value; dir = formObj.elements['dir'].value; lang = formObj.elements['lang'].value; background = formObj.elements['backgroundimage'].value; cellLimit = tinyMCE.getParam('table_cell_limit', false); rowLimit = tinyMCE.getParam('table_row_limit', false); colLimit = tinyMCE.getParam('table_col_limit', false); // Validate table size if (colLimit && cols > colLimit) { alert(tinyMCE.getLang('lang_table_col_limit', '', true, {cols : colLimit})); return false; } else if (rowLimit && rows > rowLimit) { alert(tinyMCE.getLang('lang_table_row_limit', '', true, {rows : rowLimit})); return false; } else if (cellLimit && cols * rows > cellLimit) { alert(tinyMCE.getLang('lang_table_cell_limit', '', true, {cells : cellLimit})); return false; } // Update table if (action == "update") { inst.execCommand('mceBeginUndoLevel'); tinyMCE.setAttrib(elm, 'cellPadding', cellpadding, true); tinyMCE.setAttrib(elm, 'cellSpacing', cellspacing, true); tinyMCE.setAttrib(elm, 'border', border, true); tinyMCE.setAttrib(elm, 'align', align); tinyMCE.setAttrib(elm, 'class', className); tinyMCE.setAttrib(elm, 'style', style); tinyMCE.setAttrib(elm, 'id', id); tinyMCE.setAttrib(elm, 'summary', summary); tinyMCE.setAttrib(elm, 'dir', dir); tinyMCE.setAttrib(elm, 'lang', lang); // Not inline styles if (!tinyMCE.getParam("inline_styles")) tinyMCE.setAttrib(elm, 'width', width, true); // Remove these since they are not valid XHTML tinyMCE.setAttrib(elm, 'borderColor', ''); tinyMCE.setAttrib(elm, 'bgColor', ''); tinyMCE.setAttrib(elm, 'background', ''); tinyMCE.setAttrib(elm, 'height', ''); if (background != '') elm.style.backgroundImage = "url('" + background + "')"; else elm.style.backgroundImage = ''; if (tinyMCE.getParam("inline_styles")) elm.style.borderWidth = border + "px"; if (tinyMCE.getParam("inline_styles")) { if (width != '') elm.style.width = getCSSSize(width); } if (bordercolor != "") { elm.style.borderColor = bordercolor; elm.style.borderStyle = elm.style.borderStyle == "" ? "solid" : elm.style.borderStyle; elm.style.borderWidth = border == "" ? "1px" : border; } else elm.style.borderColor = ''; elm.style.backgroundColor = bgcolor; elm.style.height = getCSSSize(height); tinyMCE.handleVisualAid(tinyMCE.tableElm, false, inst.visualAid, inst); // Fix for stange MSIE align bug tinyMCE.tableElm.outerHTML = tinyMCE.tableElm.outerHTML; tinyMCE.handleVisualAid(inst.getBody(), true, inst.visualAid, inst); tinyMCE.triggerNodeChange(); inst.execCommand('mceEndUndoLevel'); // Repaint if dimensions changed if (formObj.width.value != orgTableWidth || formObj.height.value != orgTableHeight) inst.repaint(); tinyMCEPopup.close(); return true; } // Create new table html += '<table'; html += makeAttrib('id', id); html += makeAttrib('border', border); html += makeAttrib('cellpadding', cellpadding); html += makeAttrib('cellspacing', cellspacing); html += makeAttrib('width', width); //html += makeAttrib('height', height); //html += makeAttrib('bordercolor', bordercolor); //html += makeAttrib('bgcolor', bgcolor); html += makeAttrib('align', align); html += makeAttrib('class', tinyMCE.getVisualAidClass(className, border == 0)); html += makeAttrib('style', style); html += makeAttrib('summary', summary); html += makeAttrib('dir', dir); html += makeAttrib('lang', lang); html += '>'; for (var y=0; y<rows; y++) { html += "<tr>"; for (var x=0; x<cols; x++) html += '<td>&nbsp;</td>'; html += "</tr>"; } html += "</table>"; inst.execCommand('mceBeginUndoLevel'); inst.execCommand('mceInsertContent', false, html); tinyMCE.handleVisualAid(inst.getBody(), true, tinyMCE.settings['visual']); inst.execCommand('mceEndUndoLevel'); tinyMCEPopup.close();}
10343 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/table.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/plugins/table/jscripts/table.js
function insFld(parentFolder, childFolder) { return parentFolder.addChild(childFolder)
function insFld(parentFolder, childFolder) { return parentFolder.addChild(childFolder)
function insFld(parentFolder, childFolder) { return parentFolder.addChild(childFolder) }
5527 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5527/10ba7e2a5c2d92957e2e2af83e2170a8ccca3aea/ftiens4.js/clean/trunk/cacti/include/treeview/ftiens4.js
new ScriptDownloader(document.popupNode.href).start(); }
new ScriptDownloader(document.popupNode.href).start(); }
function installContextItemClicked() { new ScriptDownloader(document.popupNode.href).start(); }
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/315119498beb3f038b2f331f4abecd4970a6a857/browser.js/clean/src/content/browser.js
new ScriptDownloader(window._content.location.href).start(); }
new ScriptDownloader(window._content.location.href).start(); }
function installMenuItemClicked() { new ScriptDownloader(window._content.location.href).start(); }
2115 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2115/315119498beb3f038b2f331f4abecd4970a6a857/browser.js/clean/src/content/browser.js
true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top);
true : (((bounds.bottom > this.bottom) && (bounds.bottom < this.top)) || ((this.bottom > bounds.bottom) && (this.bottom < bounds.top)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
true : (bounds.top > this.bottom) && (bounds.top < this.top);
true : (((bounds.top > this.bottom) && (bounds.top < this.top)) || ((this.top > bounds.bottom) && (this.top < bounds.top)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
true : (bounds.right > this.left) && (bounds.right < this.right);
true : (((bounds.right > this.left) && (bounds.right < this.right)) || ((this.right > bounds.left) && (this.right < bounds.right)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
true : (bounds.left > this.left) && (bounds.left < this.right);
true : (((bounds.left > this.left) && (bounds.left < this.right)) || ((this.left > bounds.left) && (this.left < bounds.right)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
(inTop || inBottom ) && (inLeft || inRight ));
((inTop || inBottom ) && (inLeft || inRight )));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top);
true : (((bounds.bottom > this.bottom) && (bounds.bottom < this.top)) || ((this.bottom > bounds.bottom) && (this.bottom < bounds.top)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
true : (bounds.top > this.bottom) && (bounds.top < this.top);
true : (((bounds.top > this.bottom) && (bounds.top < this.top)) || ((this.top > bounds.bottom) && (this.top < bounds.top)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
true : (bounds.right > this.left) && (bounds.right < this.right);
true : (((bounds.right > this.left) && (bounds.right < this.right)) || ((this.right > bounds.left) && (this.right < bounds.right)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
true : (bounds.left > this.left) && (bounds.left < this.right);
true : (((bounds.left > this.left) && (bounds.left < this.right)) || ((this.left > bounds.left) && (this.left < bounds.right)));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
(inTop || inBottom ) && (inLeft || inRight ));
((inTop || inBottom ) && (inLeft || inRight )));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } var inBottom = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.bottom > this.bottom) && (bounds.bottom < this.top); var inTop = (bounds.bottom == this.bottom && bounds.top == this.top) ? true : (bounds.top > this.bottom) && (bounds.top < this.top); var inRight = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.right > this.left) && (bounds.right < this.right); var inLeft = (bounds.right == this.right && bounds.left == this.left) ? true : (bounds.left > this.left) && (bounds.left < this.right); return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight )); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/642c438c2cbcfec05b8ece488a44998ed0ed6ce6/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
bounds.containsBounds(this, true, inclusive));
bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight ));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive)); },
2032 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2032/66a5d90965bd2ae4d8aceb11607404e34416e902/BaseTypes.js/clean/lib/OpenLayers/BaseTypes.js
bounds.containsBounds(this, true, inclusive));
bounds.containsBounds(this, true, inclusive) || (inTop || inBottom ) && (inLeft || inRight ));
intersectsBounds:function(bounds, inclusive) { if (inclusive == null) { inclusive = true; } return (this.containsBounds(bounds, true, inclusive) || bounds.containsBounds(this, true, inclusive)); },
2031 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2031/66a5d90965bd2ae4d8aceb11607404e34416e902/BaseTypes.js/buggy/lib/OpenLayers/BaseTypes.js
tmp_mode = "-";
var tmp_mode = "-";
function inverse_chanmode(bitlist) { tmp_mode = "-"; if (bitlist&CHANMODE_INVITE) tmp_mode += "i"; if (bitlist&CHANMODE_KEY) tmp_mode += "k"; if (bitlist&CHANMODE_LIMIT) tmp_mode += "l"; if (bitlist&CHANMODE_MODERATED) tmp_mode += "m"; if (bitlist&CHANMODE_NOOUTSIDE) tmp_mode += "n"; if (bitlist&CHANMODE_PRIVATE) tmp_mode += "p"; if (bitlist&CHANMODE_SECRET) tmp_mode += "s"; if (bitlist&CHANMODE_TOPIC) tmp_mode += "t"; return tmp_mode;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js
}));
}), 'rgb');
invert: function(){ return new Color(this.map(function(value){ return 255 - value; })); },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/clean/Addons/Color.js
}));
}), 'rgb');
invert: function(){ return new Color(this.map(function(value){ return 255 - value; })); },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/a22dce4bef6b4ef18ff83107a76bdac505312ab0/Color.js/buggy/Addons/Color.js
currentDocument = null;
this.invoke=function () { try { fn(); } finally { removeLoadListener(getIframe(), self.invoke); } }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/40101f37ab8b5f25202111634151140a0768541b/selenium-browserbot.js/clean/javascript/selenium-browserbot.js
currentDocument = null;
this.invoke=function () { try { fn(); } finally { removeLoadListener(getIframe(), self.invoke); } }
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a571d0ab29c9c650dde37a79dcc38968ddf4302c/selenium-browserbot.js/clean/javascript/selenium-browserbot.js
var range = getIPRangeManager().getIPRange(iprangeId);
var range = getAccreditableManager().getIPRangeManager().getIPRange(iprangeId);
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
var iterator = getGroupManager().getGroups();
var iterator = getAccreditableManager().getGroupManager().getGroups();
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", {
cocoon.sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", {
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
var group = getGroupManager().getGroup(groupId);
var group = getAccreditableManager().getGroupManager().getGroup(groupId);
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
var group = getGroupManager().getGroup(rangeGroupId);
var group = getAccreditableManager().getGroupManager().getGroup(rangeGroupId);
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
sendPageAndWait("ipranges/groups.xml", {
sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", {
function iprange_change_groups(iprangeId) { var range = getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var iterator = getGroupManager().getGroups(); var groups = new java.util.ArrayList(); while (iterator.hasNext()) { var group = iterator.next(); if (!rangeGroups.contains(group)) { groups.add(group); } } while (true) { sendPageAndWait("ipranges/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : "index.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/0333865e923b06227a42e52f0caa604e7cc410e2/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
var ipRangeManager = getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true;
resolve(); try { var ipRangeManager = getAccreditableManager().getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true; while (showPage) { cocoon.sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP range", "id" : ipRangeId, "name" : name }); if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } }
function iprange_delete_iprange() { var ipRangeManager = getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true; while (showPage) { sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP range", "id" : ipRangeId, "name" : name }); if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } } sendPage("redirect.html", { "url" : "../ipranges.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
while (showPage) { sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP range", "id" : ipRangeId, "name" : name }); if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } } sendPage("redirect.html", { "url" : "../ipranges.html" });
cocoon.sendPage("redirect.html", { "url" : "../ipranges.html" }); } finally { release(); }
function iprange_delete_iprange() { var ipRangeManager = getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true; while (showPage) { sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP range", "id" : ipRangeId, "name" : name }); if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } } sendPage("redirect.html", { "url" : "../ipranges.html" });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/b05dc7bed680626a70f8a3bbaa117c3fe4aa02de/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
sendPage("redirect.html", { "url" : redirectUri });
cocoon.redirectTo(redirectUri);
function iprangeChangeGroups() { var redirectUri = getRequestUri(); var iprangeId = getAccreditableId(); var range = getAccreditableManager().getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var groupArray = getAccreditableManager().getGroupManager().getGroups(); var groups = new java.util.ArrayList(); for (var i = 0; i < groupArray.length; i++) { if (!rangeGroups.contains(groupArray[i])) { groups.add(groupArray[i]); } } while (true) { cocoon.sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getAccreditableManager().getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getAccreditableManager().getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } sendPage("redirect.html", { "url" : redirectUri });}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5b9c6ae2fb641effa76e35efe68abb2bee660da7/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
cocoon.sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", {
cocoon.sendPageAndWait("ipranges/groups.xml", {
function iprangeChangeGroups() { var redirectUri = getRequestUri(); var iprangeId = getAccreditableId(); var range = getAccreditableManager().getIPRangeManager().getIPRange(iprangeId); var rangeGroupArray = range.getGroups(); var rangeGroups = new java.util.ArrayList(java.util.Arrays.asList(rangeGroupArray)); var groupArray = getAccreditableManager().getGroupManager().getGroups(); var groups = new java.util.ArrayList(); for (var i = 0; i < groupArray.length; i++) { if (!rangeGroups.contains(groupArray[i])) { groups.add(groupArray[i]); } } while (true) { cocoon.sendPageAndWait("ipranges/" + iprangeId + "/groups.xml", { "iprange-id" : iprangeId, "groups" : groups, "iprange-groups" : rangeGroups }); var groupId = cocoon.request.get("group"); if (cocoon.request.get("add_group") && groupId != "") { var group = getAccreditableManager().getGroupManager().getGroup(groupId); if (!rangeGroups.contains(group)) { rangeGroups.add(group); groups.remove(group); } } var rangeGroupId = cocoon.request.get("iprange_group"); if (cocoon.request.get("remove_group") && rangeGroupId != "") { var group = getAccreditableManager().getGroupManager().getGroup(rangeGroupId); if (rangeGroups.contains(group)) { rangeGroups.remove(group); groups.add(group); } } if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { range.removeFromAllGroups(); var iterator = rangeGroups.iterator(); while (iterator.hasNext()) { var group = iterator.next(); group.add(range); } range.save(); break; } } cocoon.redirectTo(redirectUri);}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ae1e25031828ff55ffeff34a13c47245150cf1a7/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
cocoon.sendPage("redirect.html", { "url" : redirectUri });
cocoon.redirectTo(redirectUri);
function iprangeDeleteIPRange() { resolve(); try { var redirectUri = getRequestUri(); var ipRangeManager = getAccreditableManager().getIPRangeManager(); var ipRangeId = cocoon.request.get("iprange-id"); var range = ipRangeManager.getIPRange(ipRangeId); var name = range.getName(); var showPage = true; while (showPage) { cocoon.sendPageAndWait("ipranges/confirm-delete-common.xml", { "type" : "IP Range", "id" : ipRangeId, "name" : name }); if (cocoon.request.get("cancel")) { break; } if (cocoon.request.get("submit")) { ipRangeManager.remove(range); range['delete'](); showPage = false; } } cocoon.sendPage("redirect.html", { "url" : redirectUri }); } finally { release(); }}
791 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/5b9c6ae2fb641effa76e35efe68abb2bee660da7/iprange-admin.js/buggy/src/webapp/lenya/content/admin/ipranges/iprange-admin.js
this.queue = new Array();
this.queue = new Array;
function IRC_Queue() { this.queue = new Array(); this.bytes = 0; this.add = Queue_Add;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4f81e4cda527089e4dcaa415a66740375f48551b/ircd.js/clean/ircd.js
this.check_nickname=IRCClient_check_nickname;
function IRC_Server() { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.hub = false; // are we a hub? this.local = true; // are we a local socket? this.pinged = false; // have we sent a PING? this.server = true; // yep, we're a server. this.uline = false; // are we services? // Variables containing user/server information as we receive it. this.flags = 0; this.hops = 0; this.hostname = ""; this.id = 0; this.ip = ""; this.ircclass = 0; this.linkparent=""; this.nick = ""; this.parent = 0; this.info = ""; this.idletime = time(); // Variables (consts, really) that point to various state information this.socket = ""; ////////// FUNCTIONS // Functions we use to control clients (specific) this.quit = Server_Quit; this.work = Server_Work; this.netsplit = IRCClient_netsplit; // Socket functions this.ircout=ircout; this.originatorout=originatorout; this.rawout=rawout; // IRC protocol sending functions this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; // Output helpers this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; // Global Functions this.check_timeout=IRCClient_check_timeout; this.set_chanmode=IRCClient_set_chanmode; // Output helper functions (shared)}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/ae700cd37239a2225577c084d421de929d2b9044/ircd_server.js/buggy/load/ircd_server.js
this.type = BAHAMUT; /* Assume bahamut by default */
function IRC_Server() { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.hub = false; // are we a hub? this.local = true; // are we a local socket? this.pinged = false; // have we sent a PING? this.server = true; // yep, we're a server. this.uline = false; // are we services? // Variables containing user/server information as we receive it. this.flags = 0; this.hops = 0; this.hostname = ""; this.id = 0; this.ip = ""; this.ircclass = 0; this.linkparent=""; this.nick = ""; this.parent = 0; this.info = ""; this.idletime = time(); // Variables (consts, really) that point to various state information this.socket = ""; ////////// FUNCTIONS // Functions we use to control clients (specific) this.quit = Server_Quit; this.work = Server_Work; this.netsplit = IRCClient_netsplit; // Socket functions this.ircout=ircout; this.originatorout=originatorout; this.rawout=rawout; this.sendq = new IRC_Queue(); this.recvq = new IRC_Queue(); // IRC protocol sending functions this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.globops=IRCClient_globops; // Output helpers this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; // Global Functions this.check_timeout=IRCClient_check_timeout; this.check_sendq=IRCClient_check_sendq; this.set_chanmode=IRCClient_set_chanmode; this.check_nickname=IRCClient_check_nickname; // Output helper functions (shared)}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/e9678d635763576b128f42a33cb8967e0b77be2e/ircd_server.js/buggy/load/ircd_server.js
this.do_msg=IRCClient_do_msg;
function IRC_Server() { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.hub = false; // are we a hub? this.local = true; // are we a local socket? this.pinged = false; // have we sent a PING? this.server = true; // yep, we're a server. this.uline = false; // are we services? // Variables containing user/server information as we receive it. this.flags = 0; this.hops = 0; this.hostname = ""; this.id = 0; this.ip = ""; this.ircclass = 0; this.linkparent=""; this.nick = ""; this.parent = 0; this.info = ""; this.idletime = time(); // Variables (consts, really) that point to various state information this.socket = ""; ////////// FUNCTIONS // Functions we use to control clients (specific) this.quit = Server_Quit; this.work = Server_Work; this.netsplit = IRCClient_netsplit; // Socket functions this.ircout=ircout; this.originatorout=originatorout; this.rawout=rawout; // IRC protocol sending functions this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; // Output helpers this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; this.do_msg=IRCClient_do_msg; // Global Functions this.check_timeout=IRCClient_check_timeout; this.set_chanmode=IRCClient_set_chanmode; this.check_nickname=IRCClient_check_nickname; // Output helper functions (shared)}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/b261c9ecf265d40e141366a90fb1cf49a2b3ddc6/ircd_server.js/buggy/load/ircd_server.js
for(sw_counter=0;sw_counter<startword;sw_counter++) {
for(sw_counter=0;sw_counter<arg;sw_counter++) {
function IRC_string(str,arg) { var cindex; if (arg) { for(sw_counter=0;sw_counter<startword;sw_counter++) { str=str.slice(str.indexOf(" ")+1); } } cindex = str.indexOf(":")+1; if (!cindex) cindex = str.lastIndexOf(" ")+1; if (!cindex) return str; return(str.slice(cindex));}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/6b7a20c3bd69fd9622d4bb1693e6b65967227519/irclib.js/buggy/load/irclib.js
this.channels = new Array;
this.channels = new Object;
function IRC_User(id) { ////////// VARIABLES // Bools/Flags that change depending on connection state. this.flagged_for_quit = false; // QUIT later? this.local = true; // are we a local socket? this.pinged = false; // sent PING? this.server = false; // No, we're not a server. this.uline = false; // Are we services? // Variables containing user/server information as we receive it. this.away = ""; this.channels = new Array; this.connecttime = time(); this.created = 0; this.flags = 0; this.hops = 0; this.hostname = ""; this.idletime = time(); this.invited = ""; this.ircclass = 0; this.mode = 0; this.nick = ""; this.parent = 0; this.realname = ""; this.servername = servername; this.talkidle = time(); this.uprefix = ""; this.id = id; // Variables (consts, really) that point to various state information this.socket = ""; ////////// FUNCTIONS // Functions we use to control clients (specific) this.quit = User_Quit; this.work = User_Work; // Socket functions this.ircout=ircout; this.originatorout=originatorout; this.rawout=rawout; this.sendq = new IRC_Queue(); this.recvq = new IRC_Queue(); // Output helper functions (shared) this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.do_admin=IRCClient_do_admin; this.do_connect=IRCClient_do_connect; this.do_info=IRCClient_do_info; this.do_join=IRCClient_do_join; this.do_links=IRCClient_do_links; this.do_msg=IRCClient_do_msg; this.do_part=IRCClient_do_part; this.do_stats=IRCClient_do_stats; this.do_summon=IRCClient_do_summon; this.do_trace=IRCClient_do_trace; this.do_users=IRCClient_do_users; this.do_whois=IRCClient_do_whois; this.global=IRCClient_global; this.globops=IRCClient_globops; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.part_all=IRCClient_part_all; this.server_notice=IRCClient_server_notice; this.services_msg=IRCClient_services_msg; this.trace_all_opers=IRCClient_trace_all_opers; // WHO this.do_basic_who=IRCClient_do_basic_who; this.do_complex_who=IRCClient_do_complex_who; this.do_who_usage=IRCClient_do_who_usage; this.match_who_mask=IRCClient_match_who_mask; // LIST this.do_basic_list=IRCClient_do_basic_list; this.do_complex_list=IRCClient_do_complex_list; this.do_list_usage=IRCClient_do_list_usage; // Global functions this.check_nickname=IRCClient_check_nickname; this.check_timeout=IRCClient_check_timeout; this.check_sendq=IRCClient_check_sendq; this.get_usermode=IRCClient_get_usermode; this.netsplit=IRCClient_netsplit; this.onchanwith=IRCClient_onchanwith; this.rmchan=IRCClient_RMChan; this.setusermode=IRCClient_setusermode; this.set_chanmode=IRCClient_set_chanmode; // Numerics this.numeric=IRCClient_numeric; this.numeric200=IRCClient_numeric200; this.numeric201=IRCClient_numeric201; this.numeric202=IRCClient_numeric202; this.numeric203=IRCClient_numeric203; this.numeric204=IRCClient_numeric204; this.numeric205=IRCClient_numeric205; this.numeric206=IRCClient_numeric206; this.numeric208=IRCClient_numeric208; this.numeric261=IRCClient_numeric261; this.numeric321=IRCClient_numeric321; this.numeric322=IRCClient_numeric322; this.numeric331=IRCClient_numeric331; this.numeric332=IRCClient_numeric332; this.numeric333=IRCClient_numeric333; this.numeric351=IRCClient_numeric351; this.numeric352=IRCClient_numeric352; this.numeric353=IRCClient_numeric353; this.numeric382=IRCClient_numeric382; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; // Getters this.nuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); };}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4f81e4cda527089e4dcaa415a66740375f48551b/ircd_user.js/buggy/load/ircd_user.js
this.do_basic_list=IRCClient_do_basic_list; this.do_complex_list=IRCClient_do_complex_list; this.do_list_usage=IRCClient_do_list_usage;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric200=IRCClient_numeric200; this.numeric201=IRCClient_numeric201; this.numeric202=IRCClient_numeric202; this.numeric203=IRCClient_numeric203; this.numeric204=IRCClient_numeric204; this.numeric205=IRCClient_numeric205; this.numeric206=IRCClient_numeric206; this.numeric208=IRCClient_numeric208; this.numeric261=IRCClient_numeric261; this.numeric322=IRCClient_numeric322; this.numeric331=IRCClient_numeric331; this.numeric332=IRCClient_numeric332; this.numeric333=IRCClient_numeric333; this.numeric351=IRCClient_numeric351; this.numeric352=IRCClient_numeric352; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.onchanwith=IRCClient_onchanwith; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_trace=IRCClient_do_trace; this.trace_all_opers=IRCClient_trace_all_opers; this.do_connect=IRCClient_do_connect; this.do_basic_who=IRCClient_do_basic_who; this.do_complex_who=IRCClient_do_complex_who; this.do_who_usage=IRCClient_do_who_usage; this.match_who_mask=IRCClient_match_who_mask; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.check_timeout=IRCClient_check_timeout; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/eb0bdd5a634f6c8dd2a311bfb842586e6cea8219/ircd.js/buggy/ircd.js
if (possible_hostname) {
if (resolve_hostnames && possible_hostname) {
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.hops=0; this.server=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.decip=0; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.decip = ip_to_dec(this.socket.remote_ip_address); this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/3cdb4737ede98b701084e32d5f035666bf0170d2/ircd.js/clean/ircd.js
server_wallops("!DEBUG: resolve_host took " + went_into_hostname + " seconds.");
oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds.");
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.hops=0; this.server=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.decip=0; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; server_wallops("!DEBUG: resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.decip = ip_to_dec(this.socket.remote_ip_address); this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** Synchronet IRC Daemon (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/a8d6cb0d2c42aa8c23da559752d1d706d38ce217/ircd.js/buggy/ircd.js
this.reintroduce_nick=IRCClient_reintroduce_nick;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_connect=IRCClient_do_connect; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/932a434bc900126d724150bfed8b94b9a8e530e1/ircd.js/buggy/ircd.js
this.numeric412=IRCClient_numeric412;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.decip=0; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.decip = ip_to_dec(this.socket.remote_ip_address); this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/676b0e584f59b15abf9a76f2142d9d94a1b1bfc5/ircd.js/clean/ircd.js
this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/fded592664b20fd6b70f5931014b765c66e34702/ircd.js/clean/ircd.js
this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric200=IRCClient_numeric200; this.numeric201=IRCClient_numeric201; this.numeric202=IRCClient_numeric202; this.numeric203=IRCClient_numeric203; this.numeric204=IRCClient_numeric204; this.numeric205=IRCClient_numeric205; this.numeric206=IRCClient_numeric206; this.numeric208=IRCClient_numeric208; this.numeric261=IRCClient_numeric261; this.numeric321=IRCClient_numeric321; this.numeric322=IRCClient_numeric322; this.numeric331=IRCClient_numeric331; this.numeric332=IRCClient_numeric332; this.numeric333=IRCClient_numeric333; this.numeric351=IRCClient_numeric351; this.numeric352=IRCClient_numeric352; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.onchanwith=IRCClient_onchanwith; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_trace=IRCClient_do_trace; this.trace_all_opers=IRCClient_trace_all_opers; this.do_connect=IRCClient_do_connect; this.do_basic_who=IRCClient_do_basic_who; this.do_complex_who=IRCClient_do_complex_who; this.do_who_usage=IRCClient_do_who_usage; this.match_who_mask=IRCClient_match_who_mask; this.do_basic_list=IRCClient_do_basic_list; this.do_complex_list=IRCClient_do_complex_list; this.do_list_usage=IRCClient_do_list_usage; this.global=IRCClient_global; this.globops=IRCClient_globops; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.check_timeout=IRCClient_check_timeout; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; umode_notice(USERMODE_DEBUG,"Debug", "resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/f2f97bbbb51c190c74d5d75a9f8d6aac710d97ad/ircd.js/buggy/ircd.js
this.do_trace=IRCClient_do_trace; this.trace_all_opers=IRCClient_trace_all_opers;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric322=IRCClient_numeric322; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_connect=IRCClient_do_connect; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/648f341bbfcf39d714c3a0746ccef5a350ef8d6a/ircd.js/clean/ircd.js
this.numeric331=IRCClient_numeric331; this.numeric332=IRCClient_numeric332; this.numeric333=IRCClient_numeric333;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric200=IRCClient_numeric200; this.numeric201=IRCClient_numeric201; this.numeric202=IRCClient_numeric202; this.numeric203=IRCClient_numeric203; this.numeric204=IRCClient_numeric204; this.numeric205=IRCClient_numeric205; this.numeric206=IRCClient_numeric206; this.numeric208=IRCClient_numeric208; this.numeric261=IRCClient_numeric261; this.numeric322=IRCClient_numeric322; this.numeric351=IRCClient_numeric351; this.numeric352=IRCClient_numeric352; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.onchanwith=IRCClient_onchanwith; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_trace=IRCClient_do_trace; this.trace_all_opers=IRCClient_trace_all_opers; this.do_connect=IRCClient_do_connect; this.do_basic_who=IRCClient_do_basic_who; this.do_complex_who=IRCClient_do_complex_who; this.do_who_usage=IRCClient_do_who_usage; this.match_who_mask=IRCClient_match_who_mask; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.check_timeout=IRCClient_check_timeout; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/ce0c5fc9cc35dd9b76d2265a5d9bc3a463566019/ircd.js/clean/ircd.js
log("Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port);
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.hops=0; this.server=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.decip=0; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); log("Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; server_wallops("!DEBUG: resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.decip = ip_to_dec(this.socket.remote_ip_address); this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** Synchronet IRC Daemon (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds.");
umode_notice(USERMODE_DEBUG,"Debug", "resolve_host took " + went_into_hostname + " seconds.");
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric200=IRCClient_numeric200; this.numeric201=IRCClient_numeric201; this.numeric202=IRCClient_numeric202; this.numeric203=IRCClient_numeric203; this.numeric204=IRCClient_numeric204; this.numeric205=IRCClient_numeric205; this.numeric206=IRCClient_numeric206; this.numeric208=IRCClient_numeric208; this.numeric261=IRCClient_numeric261; this.numeric321=IRCClient_numeric321; this.numeric322=IRCClient_numeric322; this.numeric331=IRCClient_numeric331; this.numeric332=IRCClient_numeric332; this.numeric333=IRCClient_numeric333; this.numeric351=IRCClient_numeric351; this.numeric352=IRCClient_numeric352; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.onchanwith=IRCClient_onchanwith; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_trace=IRCClient_do_trace; this.trace_all_opers=IRCClient_trace_all_opers; this.do_connect=IRCClient_do_connect; this.do_basic_who=IRCClient_do_basic_who; this.do_complex_who=IRCClient_do_complex_who; this.do_who_usage=IRCClient_do_who_usage; this.match_who_mask=IRCClient_match_who_mask; this.do_basic_list=IRCClient_do_basic_list; this.do_complex_list=IRCClient_do_complex_list; this.do_list_usage=IRCClient_do_list_usage; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.check_timeout=IRCClient_check_timeout; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.finalize_server_connect=IRCClient_finalize_server_connect; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/4288a1a511dbe07b6c8a7901a012ddfdeb204568/ircd.js/buggy/ircd.js
this.server_notice("*** Synchronet IRC Daemon (" + serverdesc + ") Ready.");
this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready.");
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.hops=0; this.server=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.decip=0; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.decip = ip_to_dec(this.socket.remote_ip_address); this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** Synchronet IRC Daemon (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/9391ec6e3acaecf7a3a4e48b48d6dfa93b1b8c93/ircd.js/clean/ircd.js
this.numeric445=IRCClient_numeric445; this.numeric446=IRCClient_numeric446;
function IRCClient(socket,new_id,local_client,do_newconn) { this.pinged=false; this.nick = ""; this.away = ""; this.realname = ""; this.uprefix = ""; this.hostname = ""; this.conntype = TYPE_UNREGISTERED; this.ircclass = 0; this.flags = 0; this.idletime = ""; this.invited = ""; this.password = ""; this.sentps = false; this.local = local_client; this.mode = USERMODE_NONE; this.socket = socket; this.channels = new Array(); this.searchbyiline=IRCClient_searchbyiline; this.quit=IRCClient_Quit; this.netsplit=IRCClient_netsplit; this.ircnuh getter = function() { return(this.nick + "!" + this.uprefix + "@" + this.hostname); }; this.isulined getter = function() { for (my_ul in ULines) { if (this.nick.toUpperCase() == ULines[my_ul].toUpperCase()) return 1; } return 0; }; this.hops=0; this.server=false; this.hub=false; this.servername = servername; this.affect_mode_list=IRCClient_affect_mode_list; this.tweaktmpmode=IRCClient_tweaktmpmode; this.tweaktmpmodelist=IRCClient_tweaktmpmodelist; this.rmchan=IRCClient_RMChan; this.rawout=IRCClient_rawout; this.originatorout=IRCClient_originatorout; this.ircout=IRCClient_ircout; this.server_notice=IRCClient_server_notice; this.setusermode=IRCClient_setusermode; this.numeric=IRCClient_numeric; this.numeric351=IRCClient_numeric351; this.numeric353=IRCClient_numeric353; this.numeric391=IRCClient_numeric391; this.numeric401=IRCClient_numeric401; this.numeric402=IRCClient_numeric402; this.numeric403=IRCClient_numeric403; this.numeric411=IRCClient_numeric411; this.numeric412=IRCClient_numeric412; this.numeric440=IRCClient_numeric440; this.numeric441=IRCClient_numeric441; this.numeric442=IRCClient_numeric442; this.numeric451=IRCClient_numeric451; this.numeric461=IRCClient_numeric461; this.numeric462=IRCClient_numeric462; this.numeric481=IRCClient_numeric481; this.numeric482=IRCClient_numeric482; this.lusers=IRCClient_lusers; this.motd=IRCClient_motd; this.names=IRCClient_names; this.set_chanmode=IRCClient_set_chanmode; this.get_usermode=IRCClient_get_usermode; this.onchannel=IRCClient_onchannel; this.num_channels_on=IRCClient_num_channels_on; this.bcast_to_uchans_unique=IRCClient_bcast_to_uchans_unique; this.check_nickname=IRCClient_check_nickname; this.bcast_to_channel=IRCClient_bcast_to_channel; this.bcast_to_list=IRCClient_bcast_to_list; this.bcast_to_channel_servers=IRCClient_bcast_to_channel_servers; this.bcast_to_servers=IRCClient_bcast_to_servers; this.bcast_to_servers_raw=IRCClient_bcast_to_servers_raw; this.do_join=IRCClient_do_join; this.do_part=IRCClient_do_part; this.do_whois=IRCClient_do_whois; this.do_msg=IRCClient_do_msg; this.do_admin=IRCClient_do_admin; this.do_info=IRCClient_do_info; this.do_stats=IRCClient_do_stats; this.do_users=IRCClient_do_users; this.do_summon=IRCClient_do_summon; this.do_links=IRCClient_do_links; this.do_connect=IRCClient_do_connect; this.global=IRCClient_global; this.services_msg=IRCClient_services_msg; this.part_all=IRCClient_part_all; this.server_commands=IRCClient_server_commands; this.unregistered_commands=IRCClient_unregistered_commands; this.registered_commands=IRCClient_registered_commands; this.id=new_id; this.created=time(); this.parent=0; this.work=IRCClient_work; this.server_nick_info=IRCClient_server_nick_info; this.server_chan_info=IRCClient_server_chan_info; this.server_info=IRCClient_server_info; this.synchronize=IRCClient_synchronize; this.reintroduce_nick=IRCClient_reintroduce_nick; this.ip=""; this.linkparent=""; if (this.socket && local_client && do_newconn) { log(format("%04u",this.socket.descriptor) + " Accepted new connection: " + this.socket.remote_ip_address + " port " + this.socket.remote_port); this.nick = "*"; this.realname = ""; this.away = ""; this.uprefix = ""; this.mode = USERMODE_NONE; if (this.socket.remote_ip_address == "127.0.0.1") { this.hostname = servername; } else { if (debug && resolve_hostnames) went_into_hostname = time(); if (resolve_hostnames) possible_hostname = resolve_host(this.socket.remote_ip_address); if (resolve_hostnames && possible_hostname) { this.hostname = possible_hostname; if(server.client_update != undefined) server.client_update(this.socket,this.nick, this.hostname); } else this.hostname = this.socket.remote_ip_address; if (debug && resolve_hostnames) { went_into_hostname = time() - went_into_hostname; if (went_into_hostname == "NaN") went_into_hostname=0; oper_notice("DEBUG","resolve_host took " + went_into_hostname + " seconds."); } } if (this.socket.remote_ip_address) this.ip = this.socket.remote_ip_address; this.connecttime = time(); this.idletime = time(); this.talkidle = time(); this.conntype = TYPE_UNREGISTERED; this.server_notice("*** " + VERSION + " (" + serverdesc + ") Ready."); }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/8873ee606eff83dfffb34fbfda973ddb55c1e1ba/ircd.js/clean/ircd.js
set_ban = create_ban_mask(chan_tmplist[x][tmp_index]);
var set_ban = create_ban_mask(chan_tmplist[x][tmp_index]);
function IRCClient_affect_mode_list(list_bit,chan) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } } } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js
banid = chan.add_modelist(set_ban,CHANLIST_BAN);
var banid = chan.add_modelist(set_ban,CHANLIST_BAN);
function IRCClient_affect_mode_list(list_bit,chan) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } } } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js
banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN);
var banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN);
function IRCClient_affect_mode_list(list_bit,chan) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } } } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js
tmp_nick = searchbynick(chan_tmplist[x][tmp_index]);
var tmp_nick = searchbynick(chan_tmplist[x][tmp_index]);
function IRCClient_affect_mode_list(list_bit,chan) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } } } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/916eecaff32dd50d9b82305f9be06517866554ea/ircd.js/clean/ircd.js
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index])); if (tmp_nick) { if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,list_bit); } else if (chan.ismode(tmp_nick.id,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit-1);
function IRCClient_affect_mode_list(list_bit) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); }
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,list_bit); } else if (chan.ismode(tmp_nick.id,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit-1); } } else { this.numeric401(chan_tmplist[list_bit][tmp_index]); } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/676b0e584f59b15abf9a76f2142d9d94a1b1bfc5/ircd.js/clean/ircd.js
} else { this.numeric401(chan_tmplist[list_bit][tmp_index]);
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,list_bit); } else if (chan.ismode(tmp_nick.id,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit-1); } } else { this.numeric401(chan_tmplist[list_bit][tmp_index]); } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/676b0e584f59b15abf9a76f2142d9d94a1b1bfc5/ircd.js/clean/ircd.js
function IRCClient_affect_mode_list(list_bit) {
function IRCClient_affect_mode_list(list_bit,chan) {
function IRCClient_affect_mode_list(list_bit) { for (x=list_bit;x<=(list_bit+1);x++) { for (tmp_index in chan_tmplist[x]) { if (list_bit >= CHANLIST_BAN) { if (x == CHANLIST_BAN) { set_ban = create_ban_mask(chan_tmplist[x][tmp_index]); if (chan.count_modelist(CHANLIST_BAN) >= max_bans) { this.numeric(478, chan.nam + " " + set_ban + " :Cannot add ban, channel's ban list is full."); } else if (set_ban && !chan.isbanned(set_ban)) { addmodes += "b"; addmodeargs += " " + set_ban; banid = chan.add_modelist(set_ban,CHANLIST_BAN); chan.bantime[banid] = time(); chan.bancreator[banid] = this.ircnuh; } } else if (x == CHANLIST_UNBAN) { for (ban in chan.modelist[CHANLIST_BAN]) { if (chan_tmplist[CHANLIST_UNBAN][tmp_index].toUpperCase() == chan.modelist[CHANLIST_BAN][ban].toUpperCase()) { delmodes += "b"; delmodeargs += " " + chan_tmplist[CHANLIST_UNBAN][tmp_index]; banid = chan.del_modelist(chan_tmplist[CHANLIST_UNBAN][tmp_index],CHANLIST_BAN); delete chan.bantime[banid]; delete chan.bancreator[banid]; } } } } else { tmp_nick = searchbynick(chan_tmplist[x][tmp_index]); if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[x][tmp_index])); if (tmp_nick) { // FIXME: check for user existing on channel? if ((x == list_bit) && (!chan.ismode(tmp_nick.id,list_bit))) { addmodes += MODECHAR[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nick.id,x); } else if (chan.ismode(tmp_nick.id,list_bit)) { delmodes += MODECHAR[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nick.id,list_bit); } } else { this.numeric401(chan_tmplist[x][tmp_index]); } } } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/0377762ff75ff64d0a57091e04f264dfebbd9f56/ircd.js/buggy/ircd.js
tmp_nickid = tmp_nick.id; if (tmp_nickid) { if (tmp_add && (!chan.ismode(tmp_nickid,list_bit))) {
if (!tmp_nick) tmp_nick = searchbynick(search_nickbuf(chan_tmplist[list_bit][tmp_index])); if (tmp_nick) { if (tmp_add && (!chan.ismode(tmp_nick.id,list_bit))) {
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); tmp_nickid = tmp_nick.id; if (tmp_nickid) { if (tmp_add && (!chan.ismode(tmp_nickid,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nickid,list_bit); } else if (chan.ismode(tmp_nickid,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nickid,list_bit-1); } } else { this.numeric401(chan_tmplist[list_bit][tmp_index]); this.numeric441(cm_cmd[1]); } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
chan.add_modelist(tmp_nickid,list_bit); } else if (chan.ismode(tmp_nickid,list_bit-1)) {
chan.add_modelist(tmp_nick.id,list_bit); } else if (chan.ismode(tmp_nick.id,list_bit-1)) {
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); tmp_nickid = tmp_nick.id; if (tmp_nickid) { if (tmp_add && (!chan.ismode(tmp_nickid,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nickid,list_bit); } else if (chan.ismode(tmp_nickid,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nickid,list_bit-1); } } else { this.numeric401(chan_tmplist[list_bit][tmp_index]); this.numeric441(cm_cmd[1]); } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js
chan.del_modelist(tmp_nickid,list_bit-1);
chan.del_modelist(tmp_nick.id,list_bit-1);
function IRCClient_affect_mode_list(tmp_add,list_bit) { for (tmp_index in chan_tmplist[list_bit]) { tmp_nick = searchbynick(chan_tmplist[list_bit][tmp_index]); tmp_nickid = tmp_nick.id; if (tmp_nickid) { if (tmp_add && (!chan.ismode(tmp_nickid,list_bit))) { addmodes += const_modechar[list_bit]; addmodeargs += " " + tmp_nick.nick; chan.add_modelist(tmp_nickid,list_bit); } else if (chan.ismode(tmp_nickid,list_bit-1)) { delmodes += const_modechar[list_bit]; delmodeargs += " " + tmp_nick.nick; chan.del_modelist(tmp_nickid,list_bit-1); } } else { this.numeric401(chan_tmplist[list_bit][tmp_index]); this.numeric441(cm_cmd[1]); } }}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/995570afd2ebfd8ca9cc37782b0e8fc41222eae4/ircd.js/clean/ircd.js