rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
13
136k
meta
stringlengths
132
347
case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers;
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(user.settings & USER_EXPERT) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h"); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@",P_SAVEATR); else console.putmsg("@TLEFT@",P_SAVEATR); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': bbs.curdir++; if(bbs.curdir>=file_area.lib_list[bbs.cur_lib].dir_list.length) bbs.curdir=0; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir<=0) bbs.curdir=file_area.lib_list[bbs.cur_lib].dir_list.length; bbs.curdir--; continue file_transfers; case ']': bbs.curlib++; if(bbs.curlib >= file_area.lib_list.length) bbs.curlib=0; continue file_transfers; case '[': if(bbs.curlib <= 0) bbs.curlib=file_area.lib_list.length; bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); } } /* ToDo getfilespec if_true file_download // See line 290 in execfile.cpp end_if */ continue file_transfers; case '/D': /* ToDo: file_download_user see line 312 in execfile.cpp */ continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; str=str.replace(/^(.*)(\..*)?$/, function(s, p1, p2, oset, s) { if(p2==undefined) return(format("%-8.8s ",p1)); return(format("%-8.8s%-4.4s",p1,p2)); } ); /* ToDo file_list_extended See execfile.cpp:406 */ continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': /* ToDo: execfile.cpp:50 */ continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logout(); } continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); /* ToDo: execfile.cpp:452 getfilespec if_true file_remove end_if */ continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { if(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; /* else ToDo: cfg.upload_dir not available to JS */ } /* else ToDo: cfg.upload_dir not available to JS */ bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); /* ToDo: file_upload_user (user_dir not available) */ continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); /* ToDo execfile.cpp:370 getfilespec if_true file_view end_if end_cmd */ continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); /* ToDo: sysop_dir not available file_upload_sysop */ continue file_transfers; case '*': if(!file_areas.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_areas.lib_list[bbs.curlib].number+1); if(file_exist(str)) { str=format("menu/dirs%u.*", file_areas.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].name),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) outchar('*'); else outchar(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].name,"" /* ToDo: getfiles not implemented */ ,-1); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers; case '/*': /* ToDo execfile.cpp:184 file_show_libraries end_cmd */ continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/164f1130a8415bc95cd5c6381d472d2e0026b86a/classic_shell.js/clean/classic_shell.js
/* ToDo execfile.cpp:184 file_show_libraries end_cmd */
if(!file_area.lib_list.length) continue file_transfers; if(file_exists(system.text_dir+'menu/libs.*')) { bbs.menu('libs'); continue file_transfers; } console.putmsg(bbs.text(LibLstHdr),P_SAVEATR); for(i=0;i<file_area.lib_list.length;i++) { if(i==bbs.curlib) console.putmsg('*'); else console.putmsg(' '); if(i<9) console.putmsg(' '); console.putmsg(format(bbs.text(LibLstFmt),i+1,file_area.lib_list[i].description,"",file_area.lib_list[i].dir_list.length)); }
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(user.settings & USER_EXPERT) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h"); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@",P_SAVEATR); else console.putmsg("@TLEFT@",P_SAVEATR); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': bbs.curdir++; if(bbs.curdir>=file_area.lib_list[bbs.cur_lib].dir_list.length) bbs.curdir=0; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir<=0) bbs.curdir=file_area.lib_list[bbs.cur_lib].dir_list.length; bbs.curdir--; continue file_transfers; case ']': bbs.curlib++; if(bbs.curlib >= file_area.lib_list.length) bbs.curlib=0; continue file_transfers; case '[': if(bbs.curlib <= 0) bbs.curlib=file_area.lib_list.length; bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); } } /* ToDo getfilespec if_true file_download // See line 290 in execfile.cpp end_if */ continue file_transfers; case '/D': /* ToDo: file_download_user see line 312 in execfile.cpp */ continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; str=str.replace(/^(.*)(\..*)?$/, function(s, p1, p2, oset, s) { if(p2==undefined) return(format("%-8.8s ",p1)); return(format("%-8.8s%-4.4s",p1,p2)); } ); /* ToDo file_list_extended See execfile.cpp:406 */ continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': /* ToDo: execfile.cpp:50 */ continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logout(); } continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); /* ToDo: execfile.cpp:452 getfilespec if_true file_remove end_if */ continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { if(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; /* else ToDo: cfg.upload_dir not available to JS */ } /* else ToDo: cfg.upload_dir not available to JS */ bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); /* ToDo: file_upload_user (user_dir not available) */ continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); /* ToDo execfile.cpp:370 getfilespec if_true file_view end_if end_cmd */ continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); /* ToDo: sysop_dir not available file_upload_sysop */ continue file_transfers; case '*': if(!file_areas.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_areas.lib_list[bbs.curlib].number+1); if(file_exist(str)) { str=format("menu/dirs%u.*", file_areas.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].name),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) outchar('*'); else outchar(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].name,"" /* ToDo: getfiles not implemented */ ,-1); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers; case '/*': /* ToDo execfile.cpp:184 file_show_libraries end_cmd */ continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/164f1130a8415bc95cd5c6381d472d2e0026b86a/classic_shell.js/clean/classic_shell.js
console.putmsg("-c\r\n bhFile nc h",P_SAVEATR);
console.putmsg("-c\r\n bhFile nc h");
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(user.settings & USER_EXPERT) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h",P_SAVEATR); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@"); else console.putmsg("@TLEFT@"); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': bbs.curdir++; if(bbs.curdir>=file_area.lib_list[bbs.cur_lib].dir_list.length) bbs.curdir=0; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir<=0) bbs.curdir=file_area.lib_list[bbs.cur_lib].dir_list.length; bbs.curdir--; continue file_transfers; case ']': bbs.curlib++; if(bbs.curlib >= file_area.lib_list.length) bbs.curlib=0; continue file_transfers; case '[': if(bbs.curlib <= 0) bbs.curlib=file_area.lib_list.length; bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); } } /* ToDo getfilespec if_true file_download // See line 290 in execfile.cpp end_if */ continue file_transfers; case '/D': /* ToDo: file_download_user see line 312 in execfile.cpp */ continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; str=str.replace(/^(.*)(\..*)?$/, function(s, p1, p2, oset, s) { if(p2==undefined) return(format("%-8.8s ",p1)); return(format("%-8.8s%-4.4s",p1,p2)); } ); /* ToDo file_list_extended See execfile.cpp:406 */ continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': /* ToDo: execfile.cpp:50 */ continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logout(); } continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); /* ToDo: execfile.cpp:452 getfilespec if_true file_remove end_if */ continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { if(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; /* else ToDo: cfg.upload_dir not available to JS */ } /* else ToDo: cfg.upload_dir not available to JS */ bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); /* ToDo: file_upload_user (user_dir not available) */ continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); /* ToDo execfile.cpp:370 getfilespec if_true file_view end_if end_cmd */ continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); /* ToDo: sysop_dir not available file_upload_sysop */ continue file_transfers; case '*': if(!file_areas.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_areas.lib_list[bbs.curlib].number+1); if(file_exist(str)) { str=format("menu/dirs%u.*", file_areas.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].name),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) outchar('*'); else outchar(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].name,"" /* ToDo: getfiles not implemented */ ,-1); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers; case '/*': /* ToDo execfile.cpp:184 file_show_libraries end_cmd */ continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/25d563dbbc97d7372f3378829b1933b65c9d87f3/classic_shell.js/buggy/classic_shell.js
console.putmsg("@TUSED@");
console.putmsg("@TUSED@",P_SAVEATR);
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(user.settings & USER_EXPERT) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h",P_SAVEATR); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@"); else console.putmsg("@TLEFT@"); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': bbs.curdir++; if(bbs.curdir>=file_area.lib_list[bbs.cur_lib].dir_list.length) bbs.curdir=0; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir<=0) bbs.curdir=file_area.lib_list[bbs.cur_lib].dir_list.length; bbs.curdir--; continue file_transfers; case ']': bbs.curlib++; if(bbs.curlib >= file_area.lib_list.length) bbs.curlib=0; continue file_transfers; case '[': if(bbs.curlib <= 0) bbs.curlib=file_area.lib_list.length; bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); } } /* ToDo getfilespec if_true file_download // See line 290 in execfile.cpp end_if */ continue file_transfers; case '/D': /* ToDo: file_download_user see line 312 in execfile.cpp */ continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; str=str.replace(/^(.*)(\..*)?$/, function(s, p1, p2, oset, s) { if(p2==undefined) return(format("%-8.8s ",p1)); return(format("%-8.8s%-4.4s",p1,p2)); } ); /* ToDo file_list_extended See execfile.cpp:406 */ continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': /* ToDo: execfile.cpp:50 */ continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logout(); } continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); /* ToDo: execfile.cpp:452 getfilespec if_true file_remove end_if */ continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { if(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; /* else ToDo: cfg.upload_dir not available to JS */ } /* else ToDo: cfg.upload_dir not available to JS */ bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); /* ToDo: file_upload_user (user_dir not available) */ continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); /* ToDo execfile.cpp:370 getfilespec if_true file_view end_if end_cmd */ continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); /* ToDo: sysop_dir not available file_upload_sysop */ continue file_transfers; case '*': if(!file_areas.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_areas.lib_list[bbs.curlib].number+1); if(file_exist(str)) { str=format("menu/dirs%u.*", file_areas.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].name),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) outchar('*'); else outchar(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].name,"" /* ToDo: getfiles not implemented */ ,-1); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers; case '/*': /* ToDo execfile.cpp:184 file_show_libraries end_cmd */ continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/25d563dbbc97d7372f3378829b1933b65c9d87f3/classic_shell.js/buggy/classic_shell.js
console.putmsg("@TLEFT@");
console.putmsg("@TLEFT@",P_SAVEATR);
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(user.settings & USER_EXPERT) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h",P_SAVEATR); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@"); else console.putmsg("@TLEFT@"); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': bbs.curdir++; if(bbs.curdir>=file_area.lib_list[bbs.cur_lib].dir_list.length) bbs.curdir=0; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir<=0) bbs.curdir=file_area.lib_list[bbs.cur_lib].dir_list.length; bbs.curdir--; continue file_transfers; case ']': bbs.curlib++; if(bbs.curlib >= file_area.lib_list.length) bbs.curlib=0; continue file_transfers; case '[': if(bbs.curlib <= 0) bbs.curlib=file_area.lib_list.length; bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); } } /* ToDo getfilespec if_true file_download // See line 290 in execfile.cpp end_if */ continue file_transfers; case '/D': /* ToDo: file_download_user see line 312 in execfile.cpp */ continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; str=str.replace(/^(.*)(\..*)?$/, function(s, p1, p2, oset, s) { if(p2==undefined) return(format("%-8.8s ",p1)); return(format("%-8.8s%-4.4s",p1,p2)); } ); /* ToDo file_list_extended See execfile.cpp:406 */ continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': /* ToDo: execfile.cpp:50 */ continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logout(); } continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); /* ToDo: execfile.cpp:452 getfilespec if_true file_remove end_if */ continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { if(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; /* else ToDo: cfg.upload_dir not available to JS */ } /* else ToDo: cfg.upload_dir not available to JS */ bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); /* ToDo: file_upload_user (user_dir not available) */ continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); /* ToDo execfile.cpp:370 getfilespec if_true file_view end_if end_cmd */ continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); /* ToDo: sysop_dir not available file_upload_sysop */ continue file_transfers; case '*': if(!file_areas.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_areas.lib_list[bbs.curlib].number+1); if(file_exist(str)) { str=format("menu/dirs%u.*", file_areas.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].name),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) outchar('*'); else outchar(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].name,"" /* ToDo: getfiles not implemented */ ,-1); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '*': /* ToDo: execfile.cpp:200 file_show_directories end_cmd */ continue file_transfers; case '/*': /* ToDo execfile.cpp:184 file_show_libraries end_cmd */ continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/25d563dbbc97d7372f3378829b1933b65c9d87f3/classic_shell.js/buggy/classic_shell.js
console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR);
console.putmsg(format(bbs.text(NFilesListed),i),P_SAVEATR);
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(!(user.settings & USER_EXPERT)) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h"); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@",P_SAVEATR); else console.putmsg("@TLEFT@",P_SAVEATR); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': if(bbs.curdir>=file_area.lib_list[bbs.curlib].dir_list.length-1) bbs.curdir=0; else bbs.curdir++; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir==0) bbs.curdir=file_area.lib_list[bbs.curlib].dir_list.length-1; else bbs.curdir--; continue file_transfers; case ']': if(bbs.curlib == file_area.lib_list.length-1) bbs.curlib=0; else bbs.curlib++; continue file_transfers; case '[': if(bbs.curlib == 0) bbs.curlib=file_area.lib_list.length-1; else bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); continue file_transfers; } } str=bbs.get_filespec(); if(str==null) continue file_transfers; if(file_area.lib_list.length==0) continue file_transfers; if(user.security.restrictions&UFLAG_D) { console.putmsg(bbs.text(R_Download)); continue file_transfers; } if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_DOWNLOAD)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_DOWNLOAD))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_DOWNLOAD))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case '/D': if(file_area.user_dir==undefined) console.putmsg(bbs.text(NoUserDir)); else { if(user.compare_ars("rest D")) console.putmsg(bbs.text(R_Download)); else { console.crlf(); if(!bbs.list_file_info(file_area.user_dir, FI_USERXFER)) console.putmsg(bbs.text(NoFilesForYou)); } } continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_INFO)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_INFO))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_INFO))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': if(!file_area.lib_list.length) continue file_transfers; while(1) { var orig_lib=bbs.curlib; var i=0; var j=0; if(file_area.lib_list.length>1) { if(file_exists(system.text_dir+"menu/libs.*")) bbs.menu("libs"); else { console.putmsg(bbs.text(CfgLibLstHdr),P_SAVEATR); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) console.putmsg('*',P_SAVEATR); else console.putmsg(' ',P_SAVEATR); if(i<9) console.putmsg(' ',P_SAVEATR); if(i<99) console.putmsg(' ',P_SAVEATR); // We use console.putmsg to expand ^A, @, etc console.putmsg(format(bbs.text(CfgLibLstFmt),i+1,file_area.lib_list[i].description),P_SAVEATR); } } console.mnemonics(format(bbs.text(JoinWhichLib),bbs.curlib+1)); j=get_next_num(file_area.lib_list.length,false); if(j<0) continue file_transfers; if(!j) j=bbs.curlib; else j--; } bbs.curlib=j; if(file_exists(system.text_dir+"menu/dirs"+(bbs.curlib+1))) bbs.menu("dirs"+(bbs.curlib+1)); else { console.clear(); console.putmsg(format(bbs.text(DirLstHdr), file_area.lib_list[j].description),P_SAVEATR); for(i=0; i<file_area.lib_list[j].dir_list.length; i++) { if(i==bbs.curdir) console.putmsg('*',P_SAVEATR); else console.putmsg(' ',P_SAVEATR); if(i<9) console.putmsg(' ',P_SAVEATR); if(i<99) console.putmsg(' ',P_SAVEATR); console.putmsg(format(bbs.text(DirLstFmt),i+1, file_area.lib_list[j].dir_list[i].description,"",todo_getfiles(j,i)),P_SAVEATR); } } console.mnemonics(format(bbs.text(JoinWhichDir),bbs.curdir+1)); i=get_next_num(file_area.lib_list[j].dir_list.length,false); if(i==-1) { if(file_area.lib_list.length==1) { bbs.curlib=orig_lib; continue file_transfers; } continue; } if(!i) i=bbs.curdir; else i--; bbs.curdir=i; continue file_transfers; } // This never actually happens... continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.hangup(); } } else bbs.hangup(); continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_REMOVE)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_REMOVE))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_REMOVE))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); i=0xffff; /* INVALID_DIR */ if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; if(file_area.upload_dir != undefined && !file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.upload_dir.number; } else { if(file_area.upload_dir != undefined) i=file_area.upload_dir.number; } bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); if(file_area.upload_dir == undefined) console.putmsg(bbs.text(NoUserDir)); else bbs.upload_file(file_area.upload_dir.number); continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FL_VIEW)) { console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i==bbs.curdir) continue; if(bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FL_VIEW)) break; } if(i<file_area.lib_list[bbs.curlib].dir_list.length) continue file_transfers; console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if(bbs.list_files(file_area.lib_list[i].dir_list[j].number, str, FL_VIEW)) continue file_transfers; } } } continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); if(file_area.sysop_dir == undefined) console.putmsg(bbs.text(NoSysopDir)); else bbs.upload_file(file_area.sysop_dir.number); continue file_transfers; case '*': if(!file_area.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_area.lib_list[bbs.curlib].number+1); if(file_exists(str)) { str=format("menu/dirs%u.*", file_area.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].descirption),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) console.putmsg('*'); else console.putmsg(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].description,"" ,todo_getfiles(bbs.curlib,i)); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '/*': if(!file_area.lib_list.length) continue file_transfers; if(file_exists(system.text_dir+'menu/libs.*')) { bbs.menu('libs'); continue file_transfers; } console.putmsg(bbs.text(LibLstHdr),P_SAVEATR); for(i=0;i<file_area.lib_list.length;i++) { if(i==bbs.curlib) console.putmsg('*'); else console.putmsg(' '); if(i<9) console.putmsg(' '); console.putmsg(format(bbs.text(LibLstFmt),i+1,file_area.lib_list[i].description,"",file_area.lib_list[i].dir_list.length)); } continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bb216196faa864ac714615a9a16ab2fa9f3ff6a6/classic_shell.js/buggy/classic_shell.js
bbs.menu(xfercfg);
bbs.menu("xfercfg");
function file_transfers(){ var key; if(user.compare_ars("file_cmds=0")) { if(user.settings & USER_ASK_NSCAN) { console.crlf(); console.crlf(); if(console.yesno("Search all libraries for new files")) bbs.scan_dirs(FL_ULTIME, true); } }file_transfers: while(1) { if(!(user.settings & USER_EXPERT)) { console.clear(); bbs.menu("transfer"); } // Update node status bbs.node_action=NODE_XFER; // async bbs.file_cmds++; // Display main Prompt console.putmsg("-c\r\n bhFile nc h"); if(user.compare_ars("exempt T")) console.putmsg("@TUSED@",P_SAVEATR); else console.putmsg("@TLEFT@",P_SAVEATR); console.putmsg(" nc(h@LN@nc) @LIB@ (h@DN@nc) @DIR@: n"); // Get key (with / extended commands allowed) str=get_next_key(); if(user.compare_ars("RIP")) console.getlines(); // Do nothing for control keys and space switch(str) { case "\001": case "\015": case "\023": case " ": continue file_transfers; } // Write command to log file bbs.log_key(str,true); // Hitting number changes current sub-board switch(str) { case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": bbs.curdir=get_next_num(file_area.lib_list[bbs.curlib].dir_list.length,true); continue file_transfers; // Hitting /number changes current group case "/1": case "/2": case "/3": case "/4": case "/5": case "/6": case "/7": case "/8": case "/9": bbs.curlib=get_next_num(file_area.lib_list.length,true)-1; continue file_transfers; } // Show the key hit if(!(user.settings & USER_COLDKEYS)) printf(str); switch(str) { case '>': case '}': case '+': case '=': if(bbs.curdir>=file_area.lib_list[bbs.curlib].dir_list.length-1) bbs.curdir=0; else bbs.curdir++; continue file_transfers; case '<': case '{': case '-': if(bbs.curdir==0) bbs.curdir=file_area.lib_list[bbs.curlib].dir_list.length-1; else bbs.curdir--; continue file_transfers; case ']': if(bbs.curlib == file_area.lib_list.length-1) bbs.curlib=0; else bbs.curlib++; continue file_transfers; case '[': if(bbs.curlib == 0) bbs.curlib=file_area.lib_list.length-1; else bbs.curlib--; continue file_transfers; // String commands start with a semicolon case ';': // Difference from default.src... do NOT force upper-case! // Upper-case pisses of *nix people. str=get_next_str("",40,0,false); str_cmds(str); continue file_transfers; case 'Q': return; } if(!(user.settings & USER_COLDKEYS)) console.crlf(); console.line_counter=0; // Menu switch(str) { case '?': if(user.settings & USER_EXPERT) bbs.menu("transfer"); continue file_transfers; } if(user.compare_ars("SYSOP")) { switch(str) { case '!': bbs.menu("sysxfer"); continue file_transfers; } } // Commands switch(str) { case 'B': bbs.batch_menu(); continue file_transfers; case 'C': load("chat_sec.js"); continue file_transfers; case 'D': console.putmsg("\r\nchDownload File(s)\r\n"); if(bbs.batch_dnload_total>0) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); continue file_transfers; } } str=bbs.get_filespec(); if(str==null) continue file_transfers; if(file_area.lib_list.length==0) continue file_transfers; if(user.security.restrictions&UFLAG_D) { console.putmsg(bbs.text(R_Download)); continue file_transfers; } if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_DOWNLOAD)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_DOWNLOAD))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_DOWNLOAD))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case '/D': if(file_area.user_dir==undefined) console.putmsg(bbs.text(NoUserDir)); else { if(user.compare_ars("rest D")) console.putmsg(bbs.text(R_Download)); else { console.crlf(); if(!bbs.list_file_info(file_area.user_dir, FI_USERXFER)) console.putmsg(bbs.text(NoFilesForYou)); } } continue file_transfers; case 'E': console.putmsg("\r\nchList Extended File Information\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_INFO)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_INFO))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_INFO))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case 'F': console.putmsg("\r\nchFind Text in File Descriptions (no wildcards)\r\n"); bbs.scan_dirs(FL_FINDDESC); continue file_transfers; case '/F': bbs.scan_dirs(FL_FINDDESC,true); continue file_transfers; case 'I': file_info(); continue file_transfers; case 'J': if(!file_area.lib_list.length) continue file_transfers; while(1) { var orig_lib=bbs.curlib; var i=0; var j=0; if(file_area.lib_list.length>1) { if(file_exists(system.text_dir+"menu/libs.*")) bbs.menu("libs"); else { console.putmsg(bbs.text(CfgLibLstHdr),P_SAVEATR); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) console.putmsg('*',P_SAVEATR); else console.putmsg(' ',P_SAVEATR); if(i<9) console.putmsg(' ',P_SAVEATR); if(i<99) console.putmsg(' ',P_SAVEATR); // We use console.putmsg to expand ^A, @, etc console.putmsg(format(bbs.text(CfgLibLstFmt),i+1,file_area.lib_list[i].description),P_SAVEATR); } } console.mnemonics(format(bbs.text(JoinWhichLib),bbs.curlib+1)); j=get_next_num(file_area.lib_list.length,false); if(j<0) continue file_transfers; if(!j) j=bbs.curlib; else j--; } bbs.curlib=j; if(file_exists(system.text_dir+"menu/dirs"+(bbs.curlib+1))) bbs.menu("dirs"+(bbs.curlib+1)); else { console.clear(); console.putmsg(format(bbs.text(DirLstHdr), file_area.lib_list[j].description),P_SAVEATR); for(i=0; i<file_area.lib_list[j].dir_list.length; i++) { if(i==bbs.curdir) console.putmsg('*',P_SAVEATR); else console.putmsg(' ',P_SAVEATR); if(i<9) console.putmsg(' ',P_SAVEATR); if(i<99) console.putmsg(' ',P_SAVEATR); console.putmsg(format(bbs.text(DirLstFmt),i+1, file_area.lib_list[j].dir_list[i].description,"",todo_getfiles(j,i)),P_SAVEATR); } } console.mnemonics(format(bbs.text(JoinWhichDir),bbs.curdir+1)); i=get_next_num(file_area.lib_list[j].dir_list.length,false); if(i==-1) { if(file_area.lib_list.length==1) { bbs.curlib=orig_lib; continue file_transfers; } continue; } if(!i) i=bbs.curdir; else i--; bbs.curdir=i; continue file_transfers; } // This never actually happens... continue file_transfers; case 'L': i=bbs.list_files(); if(i==-1) continue file_transfers; if(i==0) console.putmsg(bbs.text(EmptyDir),P_SAVEATR); else console.putmsg(bbs.text(NFilesListed,i),P_SAVEATR); continue file_transfers; case '/L': bbs.list_nodes(); continue file_transfers; case 'N': console.putmsg("\r\nchNew File Scan\r\n"); bbs.scan_dirs(FL_ULTIME); continue file_transfers; case '/N': bbs.scan_dirs(FL_ULTIME,true); continue file_transfers; case 'O': if(bbs.batch_dnload_total && console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.logoff(); } continue file_transfers; case '/O': if(bbs.batch_dnload_total) { if(console.yesno(bbs.text(DownloadBatchQ))) { bbs.batch_download(); bbs.hangup(); } } else bbs.hangup(); continue file_transfers; case 'R': console.putmsg("\r\nchRemove/Edit File(s)\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FI_REMOVE)) { var s=0; console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i!=bbs.curdir && (s=bbs.list_file_info(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FI_REMOVE))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if((s=bbs.list_file_info(file_area.lib_list[i].dir_list[j].number, str, FI_REMOVE))!=0) { if(s==-1 || str.indexOf('?')!=-1 || str.indexOf('*')!=-1) { continue file_transfers; } } } } } continue file_transfers; case 'S': console.putmsg("\r\nchSearch for Filename(s)\r\n"); bbs.scan_dirs(FL_NO_HDR); continue file_transfers; case '/S': bbs.scan_dirs(FL_NO_HDR,true); continue file_transfers; case 'T': bbs.temp_xfer(); continue file_transfers; case 'U': console.putmsg("\r\nchUpload File\r\n"); i=0xffff; /* INVALID_DIR */ if(file_exists(system.text_dir+"menu/upload.*")) bbs.menu("upload"); if(file_area.lib_list.length) { i=file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number; if(file_area.upload_dir != undefined && !file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload) i=file_area.upload_dir.number; } else { if(file_area.upload_dir != undefined) i=file_area.upload_dir.number; } bbs.upload_file(i); continue file_transfers; case '/U': console.putmsg("\r\nchUpload File to User\r\n"); if(file_area.upload_dir == undefined) console.putmsg(bbs.text(NoUserDir)); else bbs.upload_file(file_area.upload_dir.number); continue file_transfers; case 'V': console.putmsg("\r\nchView File(s)\r\n"); str=bbs.get_filespec(); if(str==null) continue file_transfers; if(!bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].number, str, FL_VIEW)) { console.putmsg(bbs.text(SearchingAllDirs)); for(i=0; i<file_area.lib_list[bbs.curlib].dir_list.length; i++) { if(i==bbs.curdir) continue; if(bbs.list_files(file_area.lib_list[bbs.curlib].dir_list[i].number, str, FL_VIEW)) break; } if(i<file_area.lib_list[bbs.curlib].dir_list.length) continue file_transfers; console.putmsg(bbs.text(SearchingAllLibs)); for(i=0; i<file_area.lib_list.length; i++) { if(i==bbs.curlib) continue; for(j=0; j<file_area.lib_list[i].dir_list.length; j++) { if(bbs.list_files(file_area.lib_list[i].dir_list[j].number, str, FL_VIEW)) continue file_transfers; } } } continue file_transfers; case 'Z': console.putmsg("\r\nchUpload File to Sysop\r\n"); if(file_area.sysop_dir == undefined) console.putmsg(bbs.text(NoSysopDir)); else bbs.upload_file(file_area.sysop_dir.number); continue file_transfers; case '*': if(!file_area.lib_list.length) continue file_transfers; str=format("%smenu/dirs%u.*", system.text_dir, file_area.lib_list[bbs.curlib].number+1); if(file_exists(str)) { str=format("menu/dirs%u.*", file_area.lib_list[bbs.curlib].number+1); bbs.menu(str); continue file_transfers; } console.crlf(); console.putmsg(format(bbs.text(DirLstHdr),file_area.lib_list[bbs.curlib].descirption),P_SAVEATR); for(i=0;i<file_area.lib_list[bbs.curlib].dir_list.length;i++) { if(i==bbs.curdir) console.putmsg('*'); else console.putmsg(' '); str=format(bbs.text(DirLstFmt),i+1 ,file_area.lib_list[bbs.curlib].dir_list[i].description,"" ,todo_getfiles(bbs.curlib,i)); if(i<9) console.putmsg(' '); if(i<99) console.putmsg(' '); console.putmsg(str); } continue file_transfers; case '/*': if(!file_area.lib_list.length) continue file_transfers; if(file_exists(system.text_dir+'menu/libs.*')) { bbs.menu('libs'); continue file_transfers; } console.putmsg(bbs.text(LibLstHdr),P_SAVEATR); for(i=0;i<file_area.lib_list.length;i++) { if(i==bbs.curlib) console.putmsg('*'); else console.putmsg(' '); if(i<9) console.putmsg(' '); console.putmsg(format(bbs.text(LibLstFmt),i+1,file_area.lib_list[i].description,"",file_area.lib_list[i].dir_list.length)); } continue file_transfers; case '&':xfercfg: while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu(xfercfg); // async console.putmsg("\r\nyhConfig: n",P_SAVEATR); key=get_next_keys("?QBEP\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("xfercfg"); break; case 'P': bbs.get_newscantime(bbs.new_file_time); break; case 'B': user.settings ^= USER_BATCHFLAG; break; case 'E': user.settings ^= USER_EXTDESC; break; default: break xfercfg; } } continue file_transfers; case '#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; case '/#': console.putmsg("\r\nchType the actual number, not the symbol.\r\n"); continue file_transfers; default: // fall through console.putmsg("\r\nchUnrecognized command.",P_SAVEATR); if(user.settings & USER_EXPERT) console.putmsg(" Hit 'i?nch' for a menu."); } console.crlf(); } // shouldn't hit next line alert("Problem in command shell."); console.pause(); bbs.hangup();}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/bb216196faa864ac714615a9a16ab2fa9f3ff6a6/classic_shell.js/buggy/classic_shell.js
document.getElementById(currentFile).className = "passive"; document.getElementById(fileId).className = "active";
document.getElementById(currentFile).className = "passive"; document.getElementById(fileId).className = "active";
function fileClicked(fileId, shouldLoadFile){ if (shouldLoadFile === undefined) shouldLoadFile = true; document.getElementById(currentFile).className = "passive"; document.getElementById(fileId).className = "active"; if (shouldLoadFile) loadFile(fileId, false);}
10664 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10664/75f7b1c539a192b149c18bc6570c80690c5510b0/debugger.js/clean/third_party/WebKit/WebKitTools/Drosera/debugger.js
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Filedirmenu(x, y, changenewscan){ this.items=new Array(); var width=changenewscan?20:0; if(width<10+file_area.lib_list[bbs.curlib].name.length) width=10+file_area.lib_list[bbs.curlib].name.length; if(width<12+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length) width=12+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length; this.xpos=x; this.ypos=y; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add("|All File Areas","A",width); this.add("|Library ("+file_area.lib_list[bbs.curlib].name+")","L",width); this.add("|Directory ("+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name+")","D",width); if(changenewscan) this.add("Change New Scan |Date","N",width); this.add(bottom_bar(width),undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/34f6c69cd3ce42ea1878ef314f794dabc773eb90/lbshell.js/clean/lbshell.js
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Fileinfo(){ this.items=new Array(); this.xpos=22; this.ypos=4; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add("\xda\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xbf",undefined,undefined,"",""); this.add("File |Transfer Policy","T",32); this.add("Information on |Directory","D",32); this.add("|Users With Access to Dir","U",32); this.add("|Your File Transfer Statistics","Y",32); this.add("\xc0\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xd9",undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/34f6c69cd3ce42ea1878ef314f794dabc773eb90/lbshell.js/clean/lbshell.js
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Filemenu(){ this.items=new Array(); // Width of longest line with no dynamic variables var width=0; var scantime=system.datestr(bbs.new_file_time); // Expand for scan time line. if(width < 27+scantime.length) width=27+scantime.length; if(width < 11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length) width=11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length; this.xpos=1; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add( format_opt("|Change Directory",width,false) ,"C",width ); this.add( format_opt("|List Dir ("+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name+")",width,false) ,"L",width ); this.add( format_opt("Scan for |New Files since "+scantime,width,true) ,"N",width ); this.add( format_opt("Search for |Filenames",width,true) ,"F",width ); this.add( format_opt("Search for |Text in Descriptions",width,true) ,"T",width ); this.add( format_opt("|Download file(s)",width,true) ,"D",width,undefined,undefined ,user.compare_ars("REST D") || (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download) ); this.add( format_opt("|Upload file(s)",width,true) ,"U",width,undefined,undefined ,user.compare_ars("REST U") || ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload) && file_area.upload_dir==undefined) ); this.add( format_opt("|Remove/Edit Files",width,false) ,"R",width ); this.add( format_opt("View/Edit |Batch Queue",width,false) ,"B",width,undefined,undefined // Disabled if you can't upload or download. // Disabled if no upload dir and no batch queue ,(user.compare_ars("REST U AND REST D")) || (bbs.batch_upload_total <= 0 && bbs.batch_dnload_total <= 0 && file_area.upload_dir==undefined ) ); this.add( format_opt("|View",width,true) ,"V",width ); this.add( format_opt("|Settings",width,true) ,"S",width ); this.add(bottom_bar(width),undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/34f6c69cd3ce42ea1878ef314f794dabc773eb90/lbshell.js/clean/lbshell.js
|| (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download)
|| (!file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_download)
function Filemenu(){ this.items=new Array(); // Width of longest line with no dynamic variables var width=0; var scantime=system.datestr(bbs.new_file_time); // Expand for scan time line. if(width < 27+scantime.length) width=27+scantime.length; if(width < 11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length) width=11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length; this.xpos=1; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P'); this.add(top_bar(width),undefined,undefined,"",""); this.add( format_opt("|Change Directory",width,false) ,"C",width ); this.add( format_opt("|List Dir ("+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name+")",width,false) ,"L",width ); this.add( format_opt("Scan for |New Files since "+scantime,width,true) ,"N",width ); this.add( format_opt("Search for |Filenames",width,true) ,"F",width ); this.add( format_opt("Search for |Text in Descriptions",width,true) ,"T",width ); this.add( format_opt("|Download file(s)",width,true) ,"D",width,undefined,undefined ,user.compare_ars("REST D") || (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download) ); this.add( format_opt("|Upload file(s)",width,true) ,"U",width,undefined,undefined ,user.compare_ars("REST U") || ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload) && file_area.upload_dir==undefined) ); this.add( format_opt("|Remove/Edit Files",width,false) ,"R",width ); this.add( format_opt("View/Edit |Batch Queue",width,false) ,"B",width,undefined,undefined // Disabled if you can't upload or download. // Disabled if no upload dir and no batch queue ,(user.compare_ars("REST U AND REST D")) || (bbs.batch_upload_total <= 0 && bbs.batch_dnload_total <= 0 && file_area.upload_dir==undefined ) ); this.add( format_opt("|View",width,true) ,"V",width ); this.add( format_opt("|Settings",width,true) ,"S",width ); this.add(bottom_bar(width),undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/999a302abdbf6ff3c35ba20deb5c1fefe05ae88c/lbshell.js/buggy/lbshell.js
|| ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload)
|| ((!file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].can_upload)
function Filemenu(){ this.items=new Array(); // Width of longest line with no dynamic variables var width=0; var scantime=system.datestr(bbs.new_file_time); // Expand for scan time line. if(width < 27+scantime.length) width=27+scantime.length; if(width < 11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length) width=11+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name.length; this.xpos=1; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P'); this.add(top_bar(width),undefined,undefined,"",""); this.add( format_opt("|Change Directory",width,false) ,"C",width ); this.add( format_opt("|List Dir ("+file_area.lib_list[bbs.curlib].dir_list[bbs.curdir].name+")",width,false) ,"L",width ); this.add( format_opt("Scan for |New Files since "+scantime,width,true) ,"N",width ); this.add( format_opt("Search for |Filenames",width,true) ,"F",width ); this.add( format_opt("Search for |Text in Descriptions",width,true) ,"T",width ); this.add( format_opt("|Download file(s)",width,true) ,"D",width,undefined,undefined ,user.compare_ars("REST D") || (!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_download) ); this.add( format_opt("|Upload file(s)",width,true) ,"U",width,undefined,undefined ,user.compare_ars("REST U") || ((!file_area.lib_list[bbs.curdir].dir_list[bbs.curdir].can_upload) && file_area.upload_dir==undefined) ); this.add( format_opt("|Remove/Edit Files",width,false) ,"R",width ); this.add( format_opt("View/Edit |Batch Queue",width,false) ,"B",width,undefined,undefined // Disabled if you can't upload or download. // Disabled if no upload dir and no batch queue ,(user.compare_ars("REST U AND REST D")) || (bbs.batch_upload_total <= 0 && bbs.batch_dnload_total <= 0 && file_area.upload_dir==undefined ) ); this.add( format_opt("|View",width,true) ,"V",width ); this.add( format_opt("|Settings",width,true) ,"S",width ); this.add(bottom_bar(width),undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;}
4284 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4284/999a302abdbf6ff3c35ba20deb5c1fefe05ae88c/lbshell.js/buggy/lbshell.js
var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i];
var matches = []; var len = this.length; for (var i = 0; i < len; i++) { if (test(this[i])) { matches[matches.length] = this[i]; }
Array.prototype.filter = function(test) { var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i]; } } return matches;};
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/dateparse.js/clean/django/contrib/admin/media/js/dateparse.js
} return matches; };
return matches; };
Array.prototype.filter = function(test) { var matches = []; for (var i = 0; i < this.length; i++) { if (test(this[i])) { matches[matches.length] = this[i]; } } return matches;};
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/dateparse.js/clean/django/contrib/admin/media/js/dateparse.js
if ($Element(el, 'hasClass', className)) found.push(el);
if (Element.prototype.hasClass.call(el, className)) found.push(el);
filterByClassName: function(className){ var found = []; this.each(function(el){ if ($Element(el, 'hasClass', className)) found.push(el); }); return found; },
5409 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5409/b57774298a216831aaf9ee0a5b41fa9aa6fc447e/Dom.js/buggy/Addons/Dom.js
if ($Element(el, 'hasClass', className)) found.push(el);
if (Element.prototype.hasClass.call(el, className)) found.push(el);
filterByClassName: function(className){ var found = []; this.each(function(el){ if ($Element(el, 'hasClass', className)) found.push(el); }); return found; },
6991 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6991/b57774298a216831aaf9ee0a5b41fa9aa6fc447e/Dom.js/clean/Addons/Dom.js
dictTypes ['sc'] = true;
function filterTree (){ var eltMissing = document.getElementById ('missing'); var eltTodo = document.getElementById ('todo'); var eltExtra = document.getElementById ('extra'); var eltErrors = document.getElementById ('errors'); var dictTypes = new Object (); if (eltMissing.checked) dictTypes ['sm'] = true; if (eltTodo.checked) dictTypes ['st'] = true; if (eltErrors.checked) dictTypes ['se'] = true; if (eltExtra.checked) dictTypes ['sx'] = true; dictTypes ['sc'] = true; viewAll (document.getElementById ('ROOT'), dictTypes);}
7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/8f94011aa668acfdc27aed556fdc6b7761d4ab68/cormissing.js/buggy/web/web/deploy/cm/cormissing.js
dictTypes ['sc'] = true;
function filterTree (){ var eltMissing = document.getElementById ('missing'); var eltTodo = document.getElementById ('todo'); var eltExtra = document.getElementById ('extra'); var eltErrors = document.getElementById ('errors'); var dictTypes = new Object (); if (eltMissing.checked) dictTypes ['sm'] = true; if (eltTodo.checked) dictTypes ['st'] = true; if (eltErrors.checked) dictTypes ['se'] = true; if (eltExtra.checked) dictTypes ['sx'] = true; dictTypes ['sc'] = true; viewAll (document.getElementById ('ROOT'), dictTypes);}
7338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7338/8f94011aa668acfdc27aed556fdc6b7761d4ab68/cormissing.js/buggy/doc/web/deploy/cm/cormissing.js
f_resourceBundle._resources=undefined;
f_resourceBundle._Resources=undefined;
f_resourceBundle.Finalizer=function() { f_resourceBundle._resources=undefined;}
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_resourceBundle.js/clean/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_resourceBundle.js
}
},
Finalizer: function() { f_locale._Instance=undefined; }
4326 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4326/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/f_locale.js/buggy/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/javascript/f_locale.js
if($element == null) return null;
function find_class($element,$classnames,$result,$first) { if(!$first)$first=$element; if(!$result)$result=new Array(); if ($element.nodeType==1) { var $test_exp=new RegExp("(^| )("+$classnames+")( |$)"); if($test_exp.test($element.className)) $result[$result.length]=$element; } if ($element.hasChildNodes()) $result=find_class($element.firstChild,$classnames,$result,$first); if ($element.nextSibling && $element!=$first) $result=find_class($element.nextSibling,$classnames,$result,$first); return $result; }
1857 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1857/516705b8f0b226d950d4b984f1f7bd320363a288/rounded-corners.js/buggy/static/javascripts/rounded-corners.js
var c;
var c, i, ok, n;
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c; for (; !fc.atEnd(); fc.moveNext()) { c = FSO.BuildPath(fc.item(), "config.w32"); if (FSO.FileExists(c)) { //WScript.StdOut.WriteLine(c); modules += file_get_contents(c); } }}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/buildconf.js/buggy/win32/build/buildconf.js
modules += "configure_module_dirname = condense_path(FSO.GetParentFolderName('" + c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n";
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c; for (; !fc.atEnd(); fc.moveNext()) { c = FSO.BuildPath(fc.item(), "config.w32"); if (FSO.FileExists(c)) { //WScript.StdOut.WriteLine(c); modules += file_get_contents(c); } }}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/a5cf8362603d1f0a40ce1e0ccbf326a28e741777/buildconf.js/buggy/win32/build/buildconf.js
var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm");
var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"].*\\);", "gm");
function find_config_w32(dirname){ if (!FSO.FolderExists(dirname)) { return; } var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); var c, i, ok, n; var item = null; var re_dep_line = new RegExp("ADD_EXTENSION_DEP\\([^,]*\\s*,\\s*['\"]([^'\"]+)['\"]\\);", "gm"); for (; !fc.atEnd(); fc.moveNext()) { ok = true; /* check if we already picked up a module with the same dirname; * if we have, don't include it here */ n = FSO.GetFileName(fc.item()); if (n == 'CVS' || n == 'tests') continue; // WScript.StdOut.WriteLine("checking " + dirname + "/" + n); if (MODULES.Exists(n)) { WScript.StdOut.WriteLine("Skipping " + dirname + "/" + n + " -- already have a module with that name"); continue; } c = FSO.BuildPath(fc.item(), "config.w32"); if (FSO.FileExists(c)) {// WScript.StdOut.WriteLine(c); var dir_line = "configure_module_dirname = condense_path(FSO.GetParentFolderName('" + c.replace(new RegExp('(["\\\\])', "g"), '\\$1') + "'));\r\n"; var contents = file_get_contents(c); var deps = new Array(); // parse out any deps from the file var calls = contents.match(re_dep_line); if (calls != null) { for (i = 0; i < calls.length; i++) { // now we need the extension name out of this thing if (calls[i].match(re_dep_line)) {// WScript.StdOut.WriteLine("n depends on " + RegExp.$1); deps[deps.length] = RegExp.$1; } } } item = new Module_Item(n, c, dir_line, deps, contents); MODULES.Add(n, item); } }}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/510dd7cca578e097a3ba7f615a19820c1337d29a/buildconf.js/buggy/win32/build/buildconf.js
WScript.StdOut.WriteLine(fc.item());
function find_cvsignore(dirname){ if (!FSO.FolderExists(dirname)) return; var f = FSO.GetFolder(dirname); var fc = new Enumerator(f.SubFolders); for (; !fc.atEnd(); fc.moveNext()) { WScript.StdOut.WriteLine(fc.item()); find_cvsignore(fc.item()); } if (FSO.FileExists(dirname + "\\.cvsignore")) { kill_from_cvsignore(dirname + "\\.cvsignore"); }}
631 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/631/b2913063e09af9b54fe35601d2d85c3573e4ce7b/cvsclean.js/clean/win32/build/cvsclean.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/buggy/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode)
var element = Event.element(event); while (element.parentNode && (!element.tagName || (element.tagName.toUpperCase() != tagName.toUpperCase())))
findElement: function(event, tagName) { element = Event.element(event); while (element.tagName.toUpperCase() != tagName.toUpperCase() && element.parentNode) element = element.parentNode; return element; },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/d763f08ba81f0e3e4aac9c09f0342a2a53254211/prototype.js/clean/actionpack/lib/action_view/helpers/javascripts/prototype.js
element = getDoc().getElementById(id);
var element = findElementByIdOrName(id);
function findElement(id) { element = getDoc().getElementById(id); if(element == null) { setRowFailed("Element not found", ERROR); } return element;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/40101f37ab8b5f25202111634151140a0768541b/selenium-fitrunner.js/clean/javascript/selenium-fitrunner.js
element = getDoc().getElementById(id);
var element = findElementByIdOrName(id);
function findElement(id) { element = getDoc().getElementById(id); if(element == null) { setRowFailed("Element not found", ERROR); } return element;}
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/a571d0ab29c9c650dde37a79dcc38968ddf4302c/selenium-fitrunner.js/buggy/javascript/selenium-fitrunner.js
throw new Error("Unrecognised locator type: '" + locatorType + "'");
throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");
this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new Error("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/selenium-browserbot.js/clean/code/javascript/selenium-browserbot.js
throw new Error("Unrecognised locator type: '" + locatorType + "'");
throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");
this.findElementBy = function(locatorType, locator, inDocument) { var locatorFunction = this.locationStrategies[locatorType]; if (! locatorFunction) { throw new Error("Unrecognised locator type: '" + locatorType + "'"); } return locatorFunction.call(this, locator, inDocument); };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/selenium-browserbot.js/buggy/code/javascript/selenium-browserbot.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(e.tagName && e.tagName==options.tag.toUpperCase() &&
if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() &&
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/05fe2a0cedda1db289e31115a3a294bf19c93017/dragdrop.js/clean/src/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
949 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/949/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/dragdrop.js/clean/web/scripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2338 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2338/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/52b4437ffae6e47fa0d68153e54fdf6f451953b2/dragdrop.js/clean/src/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
4687 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4687/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
269 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/269/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
(!options.only || (Element.hasClassName(e, options.only))))
(!only || (Element.classNames(e).detect(function(v) { return only.include(v) }))))
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!options.only || (Element.hasClassName(e, options.only)))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
167 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/167/130001c377e7abf17ea2f4f856cab30882a60f92/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
5521 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5521/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/buggy/railties/html/javascripts/dragdrop.js
if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null);
return Element.findChildren( element, options.only, options.tree ? true : false, options.tag);
findElements: function(element, options) { if(!element.hasChildNodes()) return null; var elements = []; var only = options.only ? [options.only].flatten() : null; $A(element.childNodes).each( function(e) { if(e.tagName && e.tagName.toUpperCase()==options.tag.toUpperCase() && (!only || (Element.classNames(e).detect(function(v) { return only.include(v) })))) elements.push(e); if(options.tree) { var grandchildren = this.findElements(e, options); if(grandchildren) elements.push(grandchildren); } }); return (elements.length>0 ? elements.flatten() : null); },
107 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/107/bb2276098a5a21c35e5ee72b3097bd9d7caa919f/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
return element.type != 'hidden' && !element.disabled &&
return element.type != 'hidden' && element.type != 'submit' && !element.disabled &&
findFirstElement: function(form) { return Form.getElements(form).find(function(element) { return element.type != 'hidden' && !element.disabled && ['input', 'select', 'textarea'].include(element.tagName.toLowerCase()); }); },
2320 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2320/19200c26046dc00f15305e03b7c1d28b4c38c952/prototype.js/clean/web/scripts/prototype.js
var last_token_pos = -1;
var lastTokenPos = -1;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js
var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos;
var thisTokenPos = this.element.value.lastIndexOf(this.options.tokens[i]); if (thisTokenPos > lastTokenPos) lastTokenPos = thisTokenPos;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js
return last_token_pos;
return lastTokenPos;
findLastToken: function() { var last_token_pos = -1; for (var i=0; i<this.options.tokens.length; i++) { var this_token_pos = this.element.value.lastIndexOf(this.options.tokens[i]); if (this_token_pos > last_token_pos) last_token_pos = this_token_pos; } return last_token_pos; }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/controls.js/clean/public/javascripts/controls.js
throw new Error("Option with value '" + this.value + "' not found");
throw new SeleniumError("Option with value '" + this.value + "' not found");
this.findOption = function(element) { for (var i = 0; i < element.options.length; i++) { if (this.patternMatcher.matches(this.value, element.options[i].value)) { return element.options[i]; } } throw new Error("Option with value '" + this.value + "' not found"); };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/39b01a6737325d783eaf2dbc5a138c33adb4c379/selenium-api.js/buggy/code/javascript/selenium-api.js
throw new Error("Option with value '" + this.value + "' not found");
throw new SeleniumError("Option with value '" + this.value + "' not found");
this.findOption = function(element) { for (var i = 0; i < element.options.length; i++) { if (this.patternMatcher.matches(this.value, element.options[i].value)) { return element.options[i]; } } throw new Error("Option with value '" + this.value + "' not found"); };
4983 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/8204ef0e684c368119f602100144e47b160a21e4/selenium-api.js/clean/code/javascript/selenium-api.js
curleft += obj.offsetLeft
curleft += obj.offsetLeft;
function findPosX(obj) { var curleft = 0; if (obj.offsetParent) { while (obj.offsetParent) { curleft += obj.offsetLeft obj = obj.offsetParent; } } else if (obj.x) { curleft += obj.x; } return curleft;}
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/core.js/clean/django/contrib/admin/media/js/core.js
curtop += obj.offsetTop
curtop += obj.offsetTop;
function findPosY(obj) { var curtop = 0; if (obj.offsetParent) { while (obj.offsetParent) { curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) { curtop += obj.y; } return curtop;}
1086 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1086/3daf7bde2e150c623b80a3a0518196121bd4ea36/core.js/clean/django/contrib/admin/media/js/core.js
this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; }
742 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/742/3f913f897829fb026ef98df2d57f8da94ee5339d/effects.js/buggy/public/javascripts/effects.js
if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage;
this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage; }
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c2899354aa41a031d40098e29499ce0de7ca7fba/effects.js/clean/src/effects.js
this.addLinksToResults();
finish: function(status, summary) { if (!this.log) return; this.lastLogLine.className = status; this.statusCell.innerHTML = status; this.messageCell.innerHTML = this._toHTML(summary); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/deb40113fa3880d79b7caf84914bd36a93f96fba/unittest.js/buggy/src/unittest.js
this.element.style.backgroundImage = this.oldBgImage;
if(this.oldBgImage) this.element.style.backgroundImage = this.oldBgImage;
finish: function() { this.element.style.backgroundColor = this.options.restorecolor; this.element.style.backgroundImage = this.oldBgImage; }
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/e8c39d48af400cd700cad64b8c66b855d356a5bc/effects.js/clean/src/effects.js
if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; }
finishDrag: function(event, success) { this.active = false; this.dragging = false; if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
4053 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4053/c6e87e236b0c011b46ab9e806d47184261c9b697/dragdrop.js/buggy/src/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
1604 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1604/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/buggy/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
6649 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6649/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
1534 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1534/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
2069 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2069/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/actionpack/lib/action_view/helpers/javascripts/dragdrop.js
this.element.style.zIndex = this.originalZ;
if(this.options.zindex) this.element.style.zIndex = this.originalZ;
finishDrag: function(event, success) { // this.unregisterEvents(); this.active = false; this.dragging = false; if(this.options.ghosting) { Position.relativize(this.element); Element.remove(this._clone); this._clone = null; } if(success) Droppables.fire(event, this.element); Draggables.notify('onEnd', this); var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) { this.options.reverteffect(this.element, this.currentTop()-this.originalTop, this.currentLeft()-this.originalLeft); } else { this.originalLeft = this.currentLeft(); this.originalTop = this.currentTop(); } this.element.style.zIndex = this.originalZ; if(this.options.endeffect) this.options.endeffect(this.element); Droppables.reset(); },
5523 /local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5523/7d101d58400acaff232091485c8e140f0a37cbaf/dragdrop.js/clean/railties/html/javascripts/dragdrop.js