rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
label_19: | label_22: | final public void expr() throws ParseException { xor_expr(); label_19: while (true) { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case OR: ; break; default: jj_la1[57] = jj_gen; break label_19; } jj_consume_token(OR); SimpleNode jjtn001 = (SimpleNode)SimpleNode.jjtCreate(this, JJTOR_2OP); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001); jjtreeOpenNodeScope(jjtn001); try { xor_expr(); } catch (Throwable jjte001) { if (jjtc001) { jjtree.clearNodeScope(jjtn001); jjtc001 = false; } else { jjtree.popNode(); } if (jjte001 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte001;} } if (jjte001 instanceof ParseException) { {if (true) throw (ParseException)jjte001;} } {if (true) throw (Error)jjte001;} } finally { if (jjtc001) { jjtree.closeNodeScope(jjtn001, 2); jjtreeCloseNodeScope(jjtn001); } } } } | 6527 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6527/2b47cff319e0a469e540c356f904a833b9b33cd7/PythonGrammar.java/clean/org/python/parser/PythonGrammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
3065,
1435,
1216,
10616,
288,
565,
17586,
67,
8638,
5621,
565,
1433,
67,
3787,
30,
565,
1323,
261,
3767,
13,
288,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
1071,
918,
3065,
1435,
1216,
10616,
288,
565,
17586,
67,
8638,
5621,
565,
1433,
67,
3787,
30,
565,
1323,
261,
3767,
13,
288,
1377,
1620,
14015,
78,
78,
67,
496,
79,
631,
17,
21,
... |
Object entry = null; | public final synchronized void dispose() throws UMOException { disposed.set(true); if (logger.isInfoEnabled()) { logger.info("Disposing Connector: " + getClass().getName()); logger.debug("Disposing Receivers"); } if (receivers != null) { Map.Entry entry; for (Iterator iterator = receivers.entrySet().iterator(); iterator.hasNext();) { entry = (Map.Entry) iterator.next(); try { destroyReceiver(((UMOMessageReceiver) entry.getValue()), null); } catch (Exception e) { logger.error("Failed to destroy receiver: " + e.getMessage(), e); } receivers.remove(entry.getKey()); } logger.debug("Receivers Disposed"); } if (dispatchers != null) { //Map.Entry entry; logger.debug("Disposing Dispatchers"); Object entry = null; for (Iterator iterator = dispatchers.values().iterator(); iterator.hasNext();) { UMOMessageDispatcher umoMessageDispatcher = (UMOMessageDispatcher) iterator.next(); umoMessageDispatcher.dispose(); } dispatchers.clear(); logger.debug("Dispatchers Disposed"); } disposeConnector(); if (logger.isInfoEnabled()) logger.info("Connector " + getClass().getName() + " has been disposed."); receivers = null; dispatchers = null; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f2c9f8d06f3a2065a447d9fac9378212525895b4/AbstractConnector.java/buggy/mule/src/java/org/mule/providers/AbstractConnector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
3852,
918,
15825,
1435,
1216,
587,
5980,
503,
565,
288,
3639,
1015,
7423,
18,
542,
12,
3767,
1769,
3639,
309,
261,
4901,
18,
291,
966,
1526,
10756,
3639,
288,
5411,
1194,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
3852,
918,
15825,
1435,
1216,
587,
5980,
503,
565,
288,
3639,
1015,
7423,
18,
542,
12,
3767,
1769,
3639,
309,
261,
4901,
18,
291,
966,
1526,
10756,
3639,
288,
5411,
1194,
18,
... | |
public <T extends DBusSignal> void addSigHandler(Class<T> type, String source, DBusInterface object, DBusSigHandler<T> handler) throws DBusException | public <T extends DBusSignal> void addSigHandler(Class<T> type, DBusSigHandler<T> handler) throws DBusException | public <T extends DBusSignal> void addSigHandler(Class<T> type, String source, DBusInterface object, DBusSigHandler<T> handler) throws DBusException { if (!DBusSignal.class.isAssignableFrom(type)) throw new ClassCastException("Not A DBus Signal"); if (source.matches(BUSNAME_REGEX)) throw new DBusException("Cannot watch for signals based on well known bus name as source, only unique names."); if (!source.matches(CONNID_REGEX)||source.length() > MAX_NAME_LENGTH) throw new DBusException("Invalid bus name ("+source+")"); String objectpath = importedObjects.get(object).objectpath; if (!objectpath.matches(OBJECT_REGEX)||objectpath.length() > MAX_NAME_LENGTH) throw new DBusException("Invalid object path ("+objectpath+")"); addSigHandler(new DBusMatchRule(type, source, objectpath), handler); } | 5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/03f1628bfca4aeb69152473edbe4c88b684409cd/DBusConnection.java/buggy/org/freedesktop/dbus/DBusConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
411,
56,
3231,
2383,
407,
11208,
34,
918,
527,
8267,
1503,
12,
797,
32,
56,
34,
618,
16,
2383,
407,
8267,
1503,
32,
56,
34,
1838,
13,
1216,
2383,
407,
503,
282,
288,
1377,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
411,
56,
3231,
2383,
407,
11208,
34,
918,
527,
8267,
1503,
12,
797,
32,
56,
34,
618,
16,
2383,
407,
8267,
1503,
32,
56,
34,
1838,
13,
1216,
2383,
407,
503,
282,
288,
1377,
309,
... |
log.debug( "Looking up variable: " + name + " answer: " + answer ); | String answerString = null; try { answerString = answer.toString(); } catch(Exception ex) {} if(answerString==null && answer!=null) answerString = " of class " + answer.getClass(); log.debug( "Looking up variable: " + name + " answer: " + answerString ); | public Object getVariable(String name) { // look in parent first Object answer = super.getVariable(name); if (answer == null) { answer = project.getProperty(name); } if ( log.isDebugEnabled() ) { log.debug( "Looking up variable: " + name + " answer: " + answer ); } return answer; } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/be25a8752619eaf1e25c6b182f12d0837adf9fc5/AntJellyContext.java/clean/jelly-tags/ant/src/java/org/apache/commons/jelly/task/AntJellyContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
13522,
12,
780,
508,
13,
288,
3639,
368,
2324,
316,
982,
1122,
3639,
1033,
5803,
273,
2240,
18,
588,
3092,
12,
529,
1769,
3639,
309,
261,
13490,
422,
446,
13,
288,
5411,
580... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
13522,
12,
780,
508,
13,
288,
3639,
368,
2324,
316,
982,
1122,
3639,
1033,
5803,
273,
2240,
18,
588,
3092,
12,
529,
1769,
3639,
309,
261,
13490,
422,
446,
13,
288,
5411,
580... |
if (metaData == null) throw new IllegalArgumentException("the classname:methodMetaData tuple can not be null"); | if (metaData == null) throw new IllegalArgumentException("classname:methodMetaData tuple can not be null"); | public void exitingControlFlow(final ClassNameMethodMetaDataTuple metaData) { if (metaData == null) throw new IllegalArgumentException("the classname:methodMetaData tuple can not be null"); Set cflowSet = (Set)m_controlFlowLog.get(); if (cflowSet == null) { return; } cflowSet.remove(metaData); m_controlFlowLog.set(cflowSet); } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/b147fecbdfbb03a8c3a5bfed9c349908e93b15cb/AspectWerkz.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/AspectWerkz.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15702,
24762,
12,
6385,
19811,
1305,
6998,
9038,
11651,
13,
288,
3639,
309,
261,
3901,
751,
422,
446,
13,
604,
394,
2754,
2932,
18340,
30,
2039,
6998,
3193,
848,
486,
506,
446,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
15702,
24762,
12,
6385,
19811,
1305,
6998,
9038,
11651,
13,
288,
3639,
309,
261,
3901,
751,
422,
446,
13,
604,
394,
2754,
2932,
18340,
30,
2039,
6998,
3193,
848,
486,
506,
446,... |
else curLexState = lexState; | } curLexState = lexState; | public void SwitchTo(int lexState) { if (lexState >= 2 || lexState < 0) throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); else curLexState = lexState; } | 47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/3dda2c1710507b1766cc32a32df8e77e81c19227/ParserTokenManager.java/clean/projects/woenvironment/src/java/org/objectstyle/woenvironment/util/ParserTokenManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13967,
774,
12,
474,
5275,
1119,
13,
288,
202,
202,
430,
261,
4149,
1119,
1545,
576,
747,
5275,
1119,
411,
374,
13,
1082,
202,
12849,
394,
3155,
9455,
668,
2932,
668,
30,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
13967,
774,
12,
474,
5275,
1119,
13,
288,
202,
202,
430,
261,
4149,
1119,
1545,
576,
747,
5275,
1119,
411,
374,
13,
1082,
202,
12849,
394,
3155,
9455,
668,
2932,
668,
30,... |
if (titleLabel == null) { | if (titleLabel == null) | public void setTitle(String newTitle) { if (titleLabel == null) { return; } String title = newTitle; if (title == null) { title = "";//$NON-NLS-1$ } titleLabel.setText(title); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/da161fa58798fc8bc17f94c43475620ff52e72c2/TitleAreaDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14109,
12,
780,
394,
4247,
13,
288,
3639,
309,
261,
2649,
2224,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
514,
2077,
273,
394,
4247,
31,
3639,
309,
261,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
14109,
12,
780,
394,
4247,
13,
288,
3639,
309,
261,
2649,
2224,
422,
446,
13,
288,
1082,
202,
2463,
31,
202,
202,
97,
3639,
514,
2077,
273,
394,
4247,
31,
3639,
309,
261,
2... |
} } | } } | public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ // Lets get the server this request was aimed for String host = req.getHeader("Host") ; String imcServer = Utility.getDomainPref("adminserver",host) ; HttpSession session = req.getSession(); imcode.server.User user ; // Check if the user logged on if ( (user = Check.userLoggedOn(req,res,"StartDoc" )) == null ) { return ; } res.setContentType("text/html"); PrintWriter out = res.getWriter(); String whichFile = (String)session.getAttribute("file") ; if (req.getParameter("back")!=null) { res.sendRedirect("AdminQuestions") ; return; } List lines = (List)session.getAttribute("lines"); String date1 = ""; String date2 = ""; String text = ""; if (req.getParameter("save")!=null) { addLineToList(req,lines); IMCServiceRMI.setPollList(imcServer, whichFile+"enkat.txt", lines); //tillbaks till res.sendRedirect("AdminQuestions") ; return; }else{ String options = IMCServiceRMI.parseExternalDoc(imcServer, null, OPTION_LINE , user.getLangPrefix(),DOCTYPE_FORTUNES+""); String errMsgDate = IMCServiceRMI.parseExternalDoc(imcServer, null, DATE_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); String errMsgTxt = IMCServiceRMI.parseExternalDoc(imcServer, null, TEXT_ERROR , user.getLangPrefix(), DOCTYPE_FORTUNES+""); date1 = ""; date2 = ""; text = ""; if ((req.getParameter("add")).equals("add")){ //hmta parametrar date1 = (req.getParameter("date1")).trim(); date2 = (req.getParameter("date2")).trim(); text = (req.getParameter("text")).trim(); boolean ok = true; if( !checkDate(date1) ) { date1=errMsgDate; ok = false; } if( !checkDate(date2) ) { date2=errMsgDate; ok = false; } if( text.length()<1 ){ text=errMsgTxt; ok = false; } if( ok ){ addLineToList(req,lines); date1 = ""; date2 = ""; text = ""; } } if (req.getParameter("edit")!=null){ //hmta raden som r markerad String row = req.getParameter("AdminFile") ; //lgg till en eventuellt redan uppflyttad rad addLineToList(req,lines); if (!row.equals("No_Choice")){ Integer theRow = Integer.decode(row); Poll poll = (Poll)lines.get(theRow.intValue()); DateRange dates = poll.getDateRange(); date1 = dateForm.format(dates.getStartDate()); date2 = dateForm.format(dates.getEndDate()); text = poll.getQuestion(); lines.remove(poll); } } if (req.getParameter("remove")!=null){ //hmta de rader som ska tas bort String rows[] = req.getParameterValues("AdminFile") ; //ta bort de som ska raderas for(int i=0;i<rows.length;i++){ if (!rows[i].equals("No_Choice")){ lines.remove( lines.get(Integer.parseInt(rows[i])) ); } } } //this part is always done its the creation and sending of the page to the browser session.setAttribute("lines",lines); StringBuffer buff = createOptionList(req,lines, imcServer, user ); //Add info for parsing to a Vector and parse it with a template to a htmlString that is printed Vector values = new Vector(); values.add("#date1#"); values.add(date1); values.add("#date2#"); values.add(date2); values.add("#text#"); values.add(text); values.add("#file#"); values.add(whichFile); values.add("#options#"); values.add(buff.toString()); String parsed = IMCServiceRMI.parseExternalDoc(imcServer, values, ADMIN_TEMPLATE, user.getLangPrefix(), DOCTYPE_FORTUNES+""); out.print(parsed); return; } }//end doPost() | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/4a10d17acd8cda7aeee387299ff417f51fcbeac4/AdminQuestionsFile.java/clean/servlets/AdminQuestionsFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
377,
202,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
3349,
12,
2940,
18572,
1111,
16,
12446,
400,
13,
202,
15069,
16517,
16,
1860,
95,
377,
202,
202,
759,
511,
2413,
336,
326,
1438,
333,
590,
1703,
279,
381,
329,
364,
... |
_t = __t1799; | _t = __t1800; | public final void processeventsstate(AST _t) throws RecognitionException { AST processeventsstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1799 = _t; AST tmp1323_AST_in = (AST)_t; match(_t,PROCESS); _t = _t.getFirstChild(); AST tmp1324_AST_in = (AST)_t; match(_t,EVENTS); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t1799; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
450,
764,
307,
616,
87,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
450,
764,
307,
616,
87,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
91... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
450,
764,
307,
616,
87,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
450,
764,
307,
616,
87,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
91... |
setTabPosition(tabLocation); | tabFolder.setTabPosition(tabLocation); | public PartTabFolderPresentation(Composite parent, IStackPresentationSite newSite) { super(new CTabFolder(parent, SWT.BORDER), newSite); CTabFolder tabFolder = getTabFolder(); preferenceStore.addPropertyChangeListener(propertyChangeListener); int tabLocation = preferenceStore.getInt(IPreferenceConstants.VIEW_TAB_POSITION); setTabPosition(tabLocation); setTabStyle(preferenceStore.getBoolean(IPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS)); // do not support close box on unselected tabs. tabFolder.setUnselectedCloseVisible(false); // do not support icons in unselected tabs. tabFolder.setUnselectedImageVisible(false); // set basic colors ColorSchemeService.setTabAttributes(this, tabFolder); updateGradient(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/db95d896a9728c87e103baad4b7543446b1ff52f/PartTabFolderPresentation.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/PartTabFolderPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6393,
5661,
3899,
6351,
367,
12,
9400,
982,
16,
467,
2624,
6351,
367,
4956,
394,
4956,
13,
288,
9506,
202,
9565,
12,
2704,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
38,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6393,
5661,
3899,
6351,
367,
12,
9400,
982,
16,
467,
2624,
6351,
367,
4956,
394,
4956,
13,
288,
9506,
202,
9565,
12,
2704,
385,
5661,
3899,
12,
2938,
16,
348,
8588,
18,
38,
... |
result = userAgent.getClientAreaLocationOnScreen(); | result = userAgent.getAlternateStyleSheet(); | public void run() { result = userAgent.getClientAreaLocationOnScreen(); } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/0e8fac772791a058755ef5ad1de71c14544b11bb/JSVGComponent.java/buggy/sources/org/apache/batik/swing/svg/JSVGComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1086,
1435,
288,
13491,
563,
273,
7574,
18,
588,
25265,
2885,
8229,
5621,
10792,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
5397,
1071,
918,
1086,
1435,
288,
13491,
563,
273,
7574,
18,
588,
25265,
2885,
8229,
5621,
10792,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
_t = __t320; | _t = __t323; | public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST constructor_AST_in = (AST)_t; AST e = null; AST attrName = null; AST attrVal = null; AST pcdata = null; AST cdata = null; AST p = null; step= null; PathExpr elementContent= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ELEMENT: { AST __t320 = _t; e = _t==ASTNULL ? null :(AST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); path.add(c); step= c; { _loop326: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t322 = _t; attrName = _t==ASTNULL ? null :(AST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); c.addAttribute(attrib); { int _cnt325=0; _loop325: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (AST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t324 = _t; AST tmp66_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t324; _t = _t.getNextSibling(); break; } default: { if ( _cnt325>=1 ) { break _loop325; } else {throw new NoViableAltException(_t);} } } _cnt325++; } while (true); } _t = __t322; _t = _t.getNextSibling(); } else { break _loop326; } } while (true); } { _loop328: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } constructor(_t,elementContent); _t = _retTree; } else { break _loop328; } } while (true); } _t = __t320; _t = _t.getNextSibling(); break; } case TEXT: { AST __t329 = _t; pcdata = _t==ASTNULL ? null :(AST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); path.add(text); step= text; _t = __t329; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t330 = _t; cdata = _t==ASTNULL ? null :(AST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); path.add(comment); step= comment; _t = __t330; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t331 = _t; p = _t==ASTNULL ? null :(AST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); path.add(pi); step= pi; _t = __t331; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t332 = _t; AST tmp67_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); expr(_t,subexpr); _t = _retTree; path.addPath(subexpr); step= subexpr; _t = __t332; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... |
String prefix = qname.substring(0, columnPosition); localName = qname.substring(columnPosition + 1); namespaceURI = null; | rootPrefix = rootQName.substring(0, columnPosition); rootLocalName = rootQName.substring(columnPosition + 1); String tempNamespaceURI = null; | public ProcessorOutput createOutput(String name) { ProcessorOutput output = new CacheableTransformerOutputImpl(getClass(), name) { public void readImpl(PipelineContext context, ContentHandler contentHandler) { try { // Read config Element config = readCacheInputAsDOM4J(context, INPUT_CONFIG).getRootElement(); String qname = config.element("root").getText(); String namespaceURI; String localName; // Get declared namespaces int columnPosition = qname.indexOf(':'); if (columnPosition == -1) { namespaceURI = ""; localName = qname; } else { String prefix = qname.substring(0, columnPosition); localName = qname.substring(columnPosition + 1); namespaceURI = null; for (Iterator i = config.elements("namespace").iterator(); i.hasNext();) { Element namespaceElement = (Element) i.next(); if (namespaceElement.attributeValue("prefix").equals(prefix)) { namespaceURI = namespaceElement.attributeValue("uri"); break; } } if (namespaceURI == null) throw new ValidationException("Undeclared namespace prefix '" + prefix + "'", (LocationData) config.getData()); } // Start document contentHandler.startDocument(); contentHandler.startElement(namespaceURI, localName, qname, XMLUtils.EMPTY_ATTRIBUTES); // Processor input processors for (Iterator i = getInputsByName(INPUT_DATA).iterator(); i.hasNext();) { ProcessorInput input = (ProcessorInput) i.next(); readInputAsSAX(context, input, new EmbeddedDocumentContentHandler(contentHandler)); } // End document contentHandler.endElement(namespaceURI, localName, qname); contentHandler.endDocument(); } catch (SAXException e) { throw new OXFException(e); } } public OutputCacheKey getKeyImpl(PipelineContext pipelineContext) { // Create input information final List keys = new ArrayList(); final Map inputsMap = getConnectedInputs(); for (Iterator i = inputsMap.keySet().iterator(); i.hasNext();) { final List currentInputs = (List) inputsMap.get(i.next()); for (Iterator j = currentInputs.iterator(); j.hasNext();) { final OutputCacheKey outputKey = getInputKey(pipelineContext, (ProcessorInput) j.next()); if (outputKey == null) return null; keys.add(outputKey); } } // Add local key if needed if (supportsLocalKeyValidity()) { final CacheKey localKey = getLocalKey(pipelineContext); if (localKey == null) return null; keys.add(localKey); } // Concatenate current processor info and input info final CacheKey[] outputKeys = new CacheKey[ keys.size() ]; keys.toArray(outputKeys); final Class processorClass = getProcessorClass(); final String outputName = getName(); return new CompoundOutputCacheKey(processorClass, outputName, outputKeys); } }; addOutput(name, output); return output; } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/62eabac7eb1abdc6a8498b9a67e23ed69ae6ceb7/AggregatorProcessor.java/buggy/src/java/org/orbeon/oxf/processor/pipeline/AggregatorProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
780,
508,
13,
288,
3639,
15476,
1447,
876,
273,
394,
4379,
429,
8319,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
2828,
12,
879... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15476,
1447,
752,
1447,
12,
780,
508,
13,
288,
3639,
15476,
1447,
876,
273,
394,
4379,
429,
8319,
1447,
2828,
12,
588,
797,
9334,
508,
13,
288,
5411,
1071,
918,
855,
2828,
12,
879... |
assertNotNull( mojoDescriptor.getRequiresDependencyResolution() ); | assertNotNull( mojoDescriptor.isDependencyResolutionRequired() ); | private void checkMojo( MojoDescriptor mojoDescriptor ) { assertEquals( "test:testGoal", mojoDescriptor.getFullGoalName() ); assertEquals( "org.apache.maven.tools.plugin.generator.TestMojo", mojoDescriptor.getImplementation() ); // The following should be defaults assertEquals( "per-lookup", mojoDescriptor.getInstantiationStrategy() ); assertNotNull( mojoDescriptor.getRequiresDependencyResolution() ); // check the parameter. checkParameter( (Parameter) mojoDescriptor.getParameters().get( 0 ) ); } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/76c4ceda28a98ca54da4e08088f54f6fb71430ef/PluginDescriptorGeneratorTest.java/clean/maven-plugin-tools/maven-plugin-tools-api/src/test/java/org/apache/maven/tools/plugin/generator/PluginDescriptorGeneratorTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
49,
10007,
12,
15931,
3187,
312,
10007,
3187,
262,
565,
288,
3639,
1815,
8867,
12,
315,
3813,
30,
3813,
27716,
3113,
312,
10007,
3187,
18,
588,
5080,
27716,
461,
1435,
112... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
49,
10007,
12,
15931,
3187,
312,
10007,
3187,
262,
565,
288,
3639,
1815,
8867,
12,
315,
3813,
30,
3813,
27716,
3113,
312,
10007,
3187,
18,
588,
5080,
27716,
461,
1435,
112... |
object = null; | object = nameService.lookup(objectName); | protected void processRequest(CdrInputStream parameters, CdrOutputStream output, CdrOutputStream results, RequestHeader_1_2 request) { byte[] objectKey = getObjectKey(request.target); int keyLength = objectKey.length; int keyType = keyLength == 0 ? 0 : objectKey[0]; if (keyType >= 'A' && keyType <= 'Z') { RequestHandler handler = _handlers[keyType]; if (handler != null) { handler.processRequest(objectKey, request.operation, parameters, output); return; } } ReplyHeader_1_2 reply = new ReplyHeader_1_2(); reply.request_id = request.request_id; org.apache.geronimo.interop.rmi.iiop.ObjectInputStream objectIn; org.apache.geronimo.interop.rmi.iiop.ObjectOutputStream objectOut; if (SIMPLE_IDL || keyType == 'N' || keyType == 'J') { // Name Service and JMS use simple IDL interoperability. objectIn = org.apache.geronimo.interop.rmi.iiop.SimpleObjectInputStream.getInstance(parameters); objectOut = org.apache.geronimo.interop.rmi.iiop.SimpleObjectOutputStream.getInstance(results); } else { // Otherwise use RMI-IIOP interoperability. objectIn = org.apache.geronimo.interop.rmi.iiop.ObjectInputStream.getInstance(parameters); objectOut = org.apache.geronimo.interop.rmi.iiop.ObjectOutputStream.getInstance(results); } try { String objectName = null; for (int colonPos = 0; colonPos < keyLength; colonPos++) { if (objectKey[colonPos] == ':') { objectName = UTF8.toString(objectKey, 0, colonPos); int newKeyLength = keyLength - colonPos - 1; byte[] newObjectKey = new byte[newKeyLength]; System.arraycopy(objectKey, colonPos + 1, newObjectKey, 0, newKeyLength); objectKey = newObjectKey; break; } } if (objectName == null) { objectName = UTF8.toString(objectKey); } /* if (objectName.startsWith("EJB~")) { // Compact encoding of component class names, // saves 11 bytes per request. objectName = "ejb.components." + objectName.substring(4); } */ processServiceContext(request); /* Object object; try { object = null; //_nameService.lookup(objectName); } catch (javax.naming.NameNotFoundException notFound) { warnLookupFailed(_clientInfo, notFound); throw new org.omg.CORBA.OBJECT_NOT_EXIST(objectName); } if (object instanceof RemoteInterface) { RemoteInterface skeleton = ((RemoteInterface)object).$getSkeleton(); skeleton.$invoke(request.operation, objectKey, objectIn, objectOut); if (objectOut.hasException()) { reply.reply_status = ReplyStatusType_1_2.USER_EXCEPTION; } else { reply.reply_status = ReplyStatusType_1_2.NO_EXCEPTION; } output.write_reply(reply, results); } else { warnInvokeFailedNoRemoteInterface(_clientInfo, object, object.getClass()); throw new org.omg.CORBA.OBJECT_NOT_EXIST(objectName); } */ Object object; try { object = _nameService.lookup(objectName); } catch (javax.naming.NameNotFoundException notFound) { object = AdapterManager.getInstance().getAdapter(objectName); if (object == null) { warnLookupFailed(_clientInfo, notFound); throw new org.omg.CORBA.OBJECT_NOT_EXIST(objectName); } }// Adapter a = AdapterManager.getInstance().getAdapter(objectName);// if (a != null) if (object != null && object instanceof Adapter) { Adapter a = (Adapter) object; //RemoteInterface skeleton = a.getRemoteInterface(); a.invoke(request.operation, objectKey, objectIn, objectOut); if (objectOut.hasException()) { reply.reply_status = ReplyStatusType_1_2.USER_EXCEPTION; } else { reply.reply_status = ReplyStatusType_1_2.NO_EXCEPTION; } output.write_reply(reply, results); } else { throw new org.omg.CORBA.OBJECT_NOT_EXIST(objectName); } } catch (Exception ex) { warnSystemException(_clientInfo, ex); results = CdrOutputStream.getInstance(); // in case we already wrote to it results.write_SystemException(ex, _writeSystemExceptionStackTrace); reply.reply_status = ReplyStatusType_1_2.SYSTEM_EXCEPTION; output.write_reply(reply, results); } } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/MessageHandler.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/server/MessageHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
691,
12,
39,
3069,
4348,
1472,
16,
385,
3069,
4632,
876,
16,
385,
3069,
4632,
1686,
16,
1567,
1864,
67,
21,
67,
22,
590,
13,
288,
3639,
1160,
8526,
733,
653,
273,
645... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
691,
12,
39,
3069,
4348,
1472,
16,
385,
3069,
4632,
876,
16,
385,
3069,
4632,
1686,
16,
1567,
1864,
67,
21,
67,
22,
590,
13,
288,
3639,
1160,
8526,
733,
653,
273,
645... |
if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { | if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (isArgState() && space_seen != 0 && !isSpace(c))) { if (isArgState()) { | private int yylex() { int c; int space_seen = 0; kwtable kw; retry : for (;;) { switch (c = nextc()) { case '\0' : // NUL case '\004' : // ^D case '\032' : // ^Z case -1 : //end of script. return 0; // white spaces case ' ' : case '\t' : case '\f' : case '\r' : case '\013' : // '\v' space_seen++; continue retry; case '#' : // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n' : switch (ph.getLexState()) { case LexState.EXPR_BEG : case LexState.EXPR_FNAME : case LexState.EXPR_DOT : continue retry; default : break; } ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*' : if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = "**"; // ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = "*"; // ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("'*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=' : if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (;;) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<' : c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen != 0)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = "<<"; // ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ">>"; //ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"' : return parse_string(c, c, c); case '`' : if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'' : return parse_qstring(c, 0); case '?' : if (ph.getLexState() == LexState.EXPR_END) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&' : if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "&&"; // ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = "&"; //ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = "||"; // ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = "|"; //ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "+"; //ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-' : c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "-"; // ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0 && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0' : case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : return start_num(c); case ']' : case '}' : ph.setLexState(LexState.EXPR_END); return c; case ')' : if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':' : c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen != 0)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/' : if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = "/"; // ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen != 0) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^' : ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = "^"; //ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',' : case ';' : ph.setLexState(LexState.EXPR_BEG); return c; case '~' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(' : if (cond_nest > 0) { cond_stack = (cond_stack << 1) | 0; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call"); } ph.setLexState(LexState.EXPR_BEG); return c; case '[' : if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen != 0) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{' : if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ARG) { c = Token.tLBRACE; } ph.setLexState(LexState.EXPR_BEG); return c; case '\\' : c = nextc(); if (c == '\n') { space_seen = 1; continue retry; // skip \\n } pushback(c); return '\\'; case '%' : quotation : for (;;) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q' : return parse_string('"', term, paren); case 'q' : return parse_qstring(term, paren); case 'w' : return parse_quotedwords(term, paren); case 'x' : return parse_string('`', term, paren); case 'r' : return parse_regx(term, paren); default : yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = "%"; //ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen != 0 && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$' : ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_' : // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~' : // $~: match-data ph.getLocalIndex(String.valueOf(c)); // fall through case '*' : // $*: argv case '$' : // $$: pid case '?' : // $?: last status case '!' : // $!: error string case '@' : // $@: error position case '/' : // $/: input record separator case '\\' : // $\: output record separator case ';' : // $;: field separator case ',' : // $,: output field separator case '.' : // $.: last read line number case '=' : // $=: ignorecase case ':' : // $:: load path case '<' : // $<: reading filename case '>' : // $>: default output handle case '\"' : // $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); return Token.tGVAR; case '-' : tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = tok(); // ruby.intern(tok()); /* xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&' : // $&: last match case '`' : // $`: string before last match case '\'' : // $': string after last match case '+' : // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1' : case '2' : case '3' : case '4' : case '5' : case '6' : case '7' : case '8' : case '9' : tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default : if (!is_identchar(c)) { pushback(c); return '$'; } case '0' : tokadd('$'); } break; case '@' : c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default : if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$' : ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@' : ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default : if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = kw.name; // ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P()) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG) { ph.setLexState(LexState.EXPR_ARG); } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = tok(); // ruby.intern(tok()); return result; } } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/d31a76ee29d5978a9bec41e3ac9134cee024bcab/DefaultRubyScanner.java/buggy/org/jruby/parser/DefaultRubyScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
677,
1362,
92,
1435,
288,
3639,
509,
276,
31,
3639,
509,
3476,
67,
15156,
273,
374,
31,
3639,
5323,
2121,
5323,
31,
3639,
3300,
294,
364,
261,
25708,
13,
288,
5411,
1620,
261... |
final Map portletParameters = PortletStateManager.getURLDecodedParameters(source); this.parameters.putAll(portletParameters); | public RequestParamWrapper(HttpServletRequest source, boolean request_verified) { super(source); setFileUploadMaxSize(); // leech all of the information from the source request this.request_verified = request_verified; // only bother with parameter work if should be accessable if (request_verified) { //Decode portlet parameters and store them as standard request parameters in this wrapper final Map portletParameters = PortletStateManager.getURLDecodedParameters(source); this.parameters.putAll(portletParameters); //Determine if this is a request for a portlet boolean isPortletRequest = parameters.containsKey(PortletStateManager.ACTION); // parse request body String contentType = source.getContentType(); if (contentType != null && contentType.startsWith("multipart/form-data") && !isPortletRequest) { com.oreilly.servlet.multipart.Part attachmentPart; try { MultipartParser multi = new MultipartParser(source, source.getContentLength(), true, true, "UTF-8"); boolean noAttachments = source.getContentLength() > sizeLimit; while ((attachmentPart = multi.readNextPart()) != null) { String partName = attachmentPart.getName(); if (attachmentPart.isParam()) { ParamPart parameterPart = (ParamPart)attachmentPart; String paramValue = parameterPart.getStringValue(); if (parameters.containsKey(partName)) { /* Assume they meant a multivalued tag, like a checkbox */ String[] oldValueArray = (String[])parameters.get(partName); String[] valueArray = new String[oldValueArray.length + 1]; for (int i = 0; i < oldValueArray.length; i++) { valueArray[i] = oldValueArray[i]; } valueArray[oldValueArray.length] = paramValue; parameters.put(partName, valueArray); } else { String[] valueArray = new String[1]; valueArray[0] = paramValue; parameters.put(partName, valueArray); } } else if (attachmentPart.isFile()) { FilePart filePart = (FilePart)attachmentPart; String filename = filePart.getFileName(); MultipartDataSource fileUpload = null; // check if this file has exceeded the maximum allowed upload size if (noAttachments){ fileUpload = new MultipartDataSource(filename, "Exceeded file size allowed"); } else if (filename != null) { fileUpload = new MultipartDataSource(filePart); } if (fileUpload != null) { if (parameters.containsKey(partName)) { MultipartDataSource[] oldValueArray = (MultipartDataSource[])parameters.get(partName); MultipartDataSource[] valueArray = new MultipartDataSource[oldValueArray.length + 1]; for (int i = 0; i < oldValueArray.length; i++) { valueArray[i] = oldValueArray[i]; } valueArray[oldValueArray.length] = fileUpload; parameters.put(partName, valueArray); } else { MultipartDataSource[] valueArray = new MultipartDataSource[1]; valueArray[0] = fileUpload; parameters.put(partName, valueArray); } } } } } catch (Exception e) { //was: LogService.log(LogService.ERROR, e); ExceptionHelper.genericTopHandler(Errors.bug, e); } } // regular params Enumeration en = source.getParameterNames(); if (en != null) { while (en.hasMoreElements()) { String pName = (String)en.nextElement(); parameters.put(pName, source.getParameterValues(pName)); } } } } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/cad27a7ed0dad9a0296a070c08340f00b03793df/RequestParamWrapper.java/buggy/source/org/jasig/portal/RequestParamWrapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31411,
3611,
12,
2940,
18572,
1084,
16,
1250,
590,
67,
19685,
13,
288,
3639,
2240,
12,
3168,
1769,
7734,
19658,
4777,
21485,
5621,
13491,
368,
884,
8987,
777,
434,
326,
1779,
628,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
31411,
3611,
12,
2940,
18572,
1084,
16,
1250,
590,
67,
19685,
13,
288,
3639,
2240,
12,
3168,
1769,
7734,
19658,
4777,
21485,
5621,
13491,
368,
884,
8987,
777,
434,
326,
1779,
628,
3... | |
try { if (imageURLString != null && !imageURLString.equals("")) { URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString); ImageIcon imageIcon = new ImageIcon(imageURL); spatialIndex.setPointIcon(imageIcon); } } catch (MalformedURLException murle) { Debug.error("ShapeLayer.setProperties: point image URL not so good: \n\t" + imageURLString); } catch (NullPointerException npe) { fireRequestMessage("Can't access icon image: \n" + imageURLString); } | try { if (imageURLString != null && !imageURLString.equals("")) { URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString); ImageIcon imageIcon = new ImageIcon(imageURL); spatialIndex.setPointIcon(imageIcon); } } catch (MalformedURLException murle) { Debug.error("ShapeLayer.setProperties: point image URL not so good: \n\t" + imageURLString); } catch (NullPointerException npe) { fireRequestMessage("Can't access icon image: \n" + imageURLString); } | public void setProperties(String prefix, Properties props) { super.setProperties(prefix, props); String realPrefix = PropUtils.getScopedPropertyPrefix(this); shapeFileName = props.getProperty(realPrefix + shapeFileProperty); spatialIndexFileName = props.getProperty(realPrefix + spatialIndexProperty); if (shapeFileName != null && !shapeFileName.equals("")) { if (spatialIndexFileName != null && !spatialIndexFileName.equals("")) { spatialIndex = SpatialIndex.locateAndSetShapeData(shapeFileName, spatialIndexFileName); } else { spatialIndex = SpatialIndex.locateAndSetShapeData(shapeFileName); } imageURLString = props.getProperty(realPrefix + pointImageURLProperty); try { if (imageURLString != null && !imageURLString.equals("")) { URL imageURL = LayerUtils.getResourceOrFileOrURL(this, imageURLString); ImageIcon imageIcon = new ImageIcon(imageURL); spatialIndex.setPointIcon(imageIcon); } } catch (MalformedURLException murle) { Debug.error("ShapeLayer.setProperties: point image URL not so good: \n\t" + imageURLString); } catch (NullPointerException npe) { // May happen if not connected to the internet. fireRequestMessage("Can't access icon image: \n" + imageURLString); } } else { Debug.error("One of the following properties was null or empty:"); Debug.error("\t" + realPrefix + shapeFileProperty); Debug.error("\t" + realPrefix + spatialIndexProperty); } drawingAttributes = new DrawingAttributes(prefix, props); shadowX = LayerUtils.intFromProperties(props, realPrefix + shadowXProperty, 0); shadowY = LayerUtils.intFromProperties(props, realPrefix + shadowYProperty, 0); } | 47208 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47208/edbeffa6fb72058fbd5312d50c86c88fa8d47f6b/ShapeLayer.java/buggy/src/openmap/com/bbn/openmap/layer/shape/ShapeLayer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23126,
12,
780,
1633,
16,
6183,
3458,
13,
288,
202,
9565,
18,
542,
2297,
12,
3239,
16,
3458,
1769,
202,
780,
2863,
2244,
273,
10484,
1989,
18,
588,
25470,
1396,
2244,
12,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
23126,
12,
780,
1633,
16,
6183,
3458,
13,
288,
202,
9565,
18,
542,
2297,
12,
3239,
16,
3458,
1769,
202,
780,
2863,
2244,
273,
10484,
1989,
18,
588,
25470,
1396,
2244,
12,
221... |
debug = Messages.getString("DimensionLookup.Debug.FirstFieldNotFound"); | debug = "first: notfound field"; | private synchronized void lookupValues(Row row) throws KettleException { Row lu = new Row(); Row add; Value technicalKey; Value val_version; Value val_date = null; Value val_datfrom = null; Value val_datto = null; debug = "Start of lookupValues()"; //$NON-NLS-1$ if (first) { debug = "init of lookupValues()"; //$NON-NLS-1$ first=false; determineTechKeyCreation(); if (getCopy()==0) data.db.checkDimZero(meta.getTableName(), meta.getKeyField(), meta.getVersionField(), meta.isAutoIncrement()); debug = "first: setDimLookup()"; //$NON-NLS-1$ data.db.setDimLookup(meta.getTableName(), meta.getKeyLookup(), meta.getKeyField(), meta.getVersionField(), meta.getFieldLookup(), meta.getFieldStream(), meta.getDateFrom(), meta.getDateTo() ); // Lookup values debug = "first: lookup key nrs"; //$NON-NLS-1$ data.keynrs = new int[meta.getKeyStream().length]; for (int i=0;i<meta.getKeyStream().length;i++) { //logDetailed("Lookup values key["+i+"] --> "+key[i]+", row==null?"+(row==null)); data.keynrs[i]=row.searchValueIndex(meta.getKeyStream()[i]); if (data.keynrs[i]<0) // couldn't find field! { throw new KettleStepException(Messages.getString("DimensionLookup.Exception.KeyFieldNotFound",meta.getKeyStream()[i])); //$NON-NLS-1$ //$NON-NLS-2$ } } debug = Messages.getString("DimensionLookup.Debug.FirstLookupValues"); //$NON-NLS-1$ // Return values if (meta.isUpdate()) { data.fieldnrs = new int[meta.getFieldStream().length]; for (int i=0;meta.getFieldStream()!=null && i<meta.getFieldStream().length;i++) { data.fieldnrs[i]=row.searchValueIndex(meta.getFieldStream()[i]); } } if (meta.getDateField()!=null && meta.getDateField().length()>0) { data.datefieldnr = row.searchValueIndex(meta.getDateField()); } else { data.datefieldnr=-1; } debug = Messages.getString("DimensionLookup.Debug.FirstFieldNotFound"); //$NON-NLS-1$ meta.setNotFound( new Value(meta.getKeyField(), (double)meta.getDatabaseMeta().getNotFoundTK(meta.isAutoIncrement())) ); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) meta.getNotFound().setName(meta.getKeyRename()); if (meta.getDateField()!=null && data.datefieldnr>=0) { data.val_datnow = row.getValue(data.datefieldnr); } else { Calendar cal=Calendar.getInstance(); data.val_datnow = new Value("MIN", new Date(cal.getTimeInMillis())); // System date... //$NON-NLS-1$ } debug = Messages.getString("DimensionLookup.Debug.FirstEnd"); //$NON-NLS-1$ } if (meta.getDateField()!=null && data.datefieldnr>=0) { data.val_datnow = row.getValue(data.datefieldnr); } for (int i=0;i<meta.getKeyStream().length;i++) { try { lu.addValue( row.getValue(data.keynrs[i]) ); } catch(Exception e) { throw new KettleStepException(Messages.getString("DimensionLookup.Exception.ErrorDetectedInGettingKey",i+"",data.keynrs[i]+"/"+row.size(),row.toString())); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ } } if (data.datefieldnr>=0) val_date = row.getValue(data.datefieldnr); else val_date = data.val_datnow; if (log.isDebug()) logDebug(Messages.getString("DimensionLookup.Log.LookupRow")+lu.toString()+" val_date="+val_date.toString()); //$NON-NLS-1$ //$NON-NLS-2$ debug = "setDimValues()"; //$NON-NLS-1$ data.db.setDimValues(lu, val_date ); debug = "getLookup()"; //$NON-NLS-1$ add=data.db.getLookup(); /* Handle "update = false" first for performance reasons */ if (!meta.isUpdate()) { debug = Messages.getString("DimensionLookup.Debug.Lookup"); //$NON-NLS-1$ if (add==null) { debug = Messages.getString("DimensionLookup.Debug.NothingFound"); //$NON-NLS-1$ add=new Row(); add.addValue(meta.getNotFound()); Value v; for (int i=0;i<meta.getFieldStream().length;i++) { debug = Messages.getString("DimensionLookup.Debug.LookupFieldstream")+i; //$NON-NLS-1$ if (meta.getFieldStream()[i]!=null) { debug = Messages.getString("DimensionLookup.Debug.LookupNewvalue")+i; //$NON-NLS-1$ if (meta.getFieldStream()[i]!=null) // Rename the field? v=new Value(meta.getFieldStream()[i], meta.getFieldUpdate()[i]); else v=new Value(meta.getFieldLookup()[i], meta.getFieldUpdate()[i]); // Nope, take the default name v.setNull(); add.addValue(v); } } } else { // We found the return values in row "add". // Throw away the version nr... add.removeValue(1); // Rename the key field if needed. Do it directly in the row... if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) add.getValue(0).setName(meta.getKeyRename()); } } else // Insert - update algorithm for slowly changing dimensions { if (add==null) // The dimension entry was not found, we need to add it! { debug = Messages.getString("DimensionLookup.Debug.Insert"); //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.NoDimensionEntryFound")+lu+")"); //$NON-NLS-1$ //$NON-NLS-2$ //logDetailed("Entry not found: add value!"); // Date range: ]-oo,+oo[ val_datfrom = new Value("MIN", meta.getMinDate()); //$NON-NLS-1$ val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ val_version = new Value(meta.getVersionField(), 1L); // Versions start at 1. // get a new value from the sequence choosen. boolean autoinc=false; technicalKey = null; switch ( getTechKeyCreation() ) { case CREATION_METHOD_TABLEMAX: // What's the next value for the technical key? technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... data.db.getNextValue(getTransMeta().getCounters(), meta.getTableName(), technicalKey); break; case CREATION_METHOD_AUTOINC: autoinc=true; technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... break; case CREATION_METHOD_SEQUENCE: technicalKey=data.db.getNextSequenceValue(meta.getSequenceName(), meta.getKeyField()); if (technicalKey!=null && log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.FoundNextSequence")+technicalKey.toString()); //$NON-NLS-1$ break; } /* * INSERT INTO table(version, datefrom, dateto, fieldlookup) * VALUES(val_version, val_datfrom, val_datto, row.fieldnrs) * ; */ debug = Messages.getString("DimensionLookup.Debug.InsertRow"); //$NON-NLS-1$ data.db.dimInsert(row, meta.getTableName(), true, autoinc?null:meta.getKeyField(), // In case of auto increment, don't insert the key, let the database do it. autoinc, technicalKey, meta.getVersionField(), val_version, meta.getDateFrom(), val_datfrom, meta.getDateTo(), val_datto, meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesOutput++; add=new Row(); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) technicalKey.setName(meta.getKeyRename()); add.addValue(technicalKey); if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.AddedDimensionEntry")+add.toString()); //$NON-NLS-1$ } else // The entry was found: do we need to insert, update or both? { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.DimensionEntryFound")+add); //$NON-NLS-1$ debug = Messages.getString("DimensionLookup.Debug.Update"); //$NON-NLS-1$ // What's the key? The first value of the return row technicalKey = add.getValue(0); val_version = add.getValue(1); // Date range: ]-oo,+oo[ val_datfrom = new Value("MIN", meta.getMinDate()); //$NON-NLS-1$ val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ // The other values, we compare with int cmp; // If everything is the same: don't do anything // If one of the fields is different: insert or update // If all changed fields have update = Y, update // If one of the changed fields has update = N, insert boolean insert=false; boolean identical=true; boolean punch=false; Value v1, v2; for (int i=0;i<meta.getFieldStream().length;i++) { v1 = row.getValue(data.fieldnrs[i]); v2 = add.getValue(i+2); cmp = v1.compare(v2); // Not the same and update = 'N' --> insert if (cmp!=0) identical=false; // Field flagged for insert: insert if (cmp!=0 && meta.getFieldUpdate()[i]==DimensionLookupMeta.TYPE_UPDATE_DIM_INSERT) { insert=true; } // Field flagged for punchthrough if (cmp!=0 && meta.getFieldUpdate()[i]==DimensionLookupMeta.TYPE_UPDATE_DIM_PUNCHTHROUGH) { punch=true; } logRowlevel(Messages.getString("DimensionLookup.Log.ComparingValues",""+v1,""+v2,String.valueOf(cmp),String.valueOf(identical),String.valueOf(insert),String.valueOf(punch))); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ //$NON-NLS-6$ } if (!insert) // Just an update of row at key = val_key { if (!identical) { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.UpdateRowWithValues")+row); //$NON-NLS-1$ /* * UPDATE d_customer * SET fieldlookup[] = row.getValue(fieldnrs) * WHERE returnkey = dimkey */ debug = Messages.getString("DimensionLookup.Debug.UpdateRow"); //$NON-NLS-1$ data.db.dimUpdate(row, meta.getTableName(), meta.getFieldLookup(), data.fieldnrs, meta.getKeyField(), technicalKey); linesUpdated++; } else { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.SkipLine")); //$NON-NLS-1$ // Don't do anything, everything is file in de dimension. linesSkipped++; } } else { if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.InsertNewVersion")+technicalKey.toString()); //$NON-NLS-1$ val_datfrom = data.val_datnow; val_datto = new Value("MAX", meta.getMaxDate()); //$NON-NLS-1$ boolean autoinc=false; // First try to use an AUTOINCREMENT field if (meta.getDatabaseMeta().supportsAutoinc() && meta.isAutoIncrement()) { autoinc=true; technicalKey=new Value(meta.getKeyField(), 0.0); // value to accept new key... } else // Try to get the value by looking at a SEQUENCE (oracle mostly) if (meta.getDatabaseMeta().supportsSequences() && meta.getSequenceName()!=null && meta.getSequenceName().length()>0) { technicalKey=data.db.getNextSequenceValue(meta.getSequenceName(), meta.getKeyField()); if (technicalKey!=null && log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.FoundNextSequence2")+technicalKey.toString()); //$NON-NLS-1$ } else // Use our own sequence here... { // What's the next value for the technical key? technicalKey=new Value(meta.getKeyField(), 0L); // value to accept new key... data.db.getNextValue(getTransMeta().getCounters(), meta.getTableName(), technicalKey); } data.db.dimInsert( row, meta.getTableName(), false, meta.getKeyField(), autoinc, technicalKey, meta.getVersionField(), val_version, meta.getDateFrom(), val_datfrom, meta.getDateTo(), val_datto, meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesOutput++; } if (punch) // On of the fields we have to punch through has changed! { /* * This means we have to update all versions: * * UPDATE dim SET punchf1 = val1, punchf2 = val2, ... * WHERE fieldlookup[] = ? * ; * * --> update ALL versions in the dimension table. */ data.db.dimPunchThrough( row, meta.getTableName(), meta.getFieldUpdate(), meta.getFieldLookup(), data.fieldnrs, meta.getKeyStream(), meta.getKeyLookup(), data.keynrs ); linesUpdated++; } add=new Row(); if (meta.getKeyRename()!=null && meta.getKeyRename().length()>0) technicalKey.setName(meta.getKeyRename()); add.addValue(technicalKey); if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.TechnicalKey")+technicalKey); //$NON-NLS-1$ } } debug = Messages.getString("DimensionLookup.Debug.AddValuesToRow"); //$NON-NLS-1$ if (log.isRowLevel()) logRowlevel(Messages.getString("DimensionLookup.Log.AddValuesToRow")+add); //$NON-NLS-1$ for (int i=0;i<add.size();i++) { row.addValue( add.getValue(i) ); } debug = Messages.getString("DimensionLookup.Debug.GetDateFromDateField")+data.datefieldnr; //$NON-NLS-1$ // // Finaly, check the date range! Value date; if (data.datefieldnr>=0) date = row.getValue(data.datefieldnr); else date = new Value("date", new Date()); // system date //$NON-NLS-1$ debug = "check min date (min_date==null? "+(data.min_date==null)+", date==null? "+(date==null)+"), datefieldnr="+data.datefieldnr; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ if (data.min_date.compare(date)>0) data.min_date.setValue( date.getDate() ); debug = Messages.getString("DimensionLookup.Debug.CheckMaxDate"); //$NON-NLS-1$ if (data.max_date.compare(date)<0) data.max_date.setValue( date.getDate() ); debug = "end of lookupValues()"; //$NON-NLS-1$ } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/76197a64ed9ff8c9246b3fe10eb0db66194e2d06/DimensionLookup.java/clean/kettle/src/be/ibridge/kettle/trans/step/dimensionlookup/DimensionLookup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
3689,
1972,
12,
1999,
1027,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
1999,
20072,
273,
394,
6556,
5621,
202,
202,
1999,
527,
31,
9506,
202,
62... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3852,
918,
3689,
1972,
12,
1999,
1027,
13,
202,
202,
15069,
1475,
278,
5929,
503,
202,
95,
202,
202,
1999,
20072,
273,
394,
6556,
5621,
202,
202,
1999,
527,
31,
9506,
202,
62... |
return getRuntime().getNil(); | return changesMade ? this : getRuntime().getNil(); | public IRubyObject swapcase_bang() { char[] chars = getValue().toCharArray(); StringBuffer sb = new StringBuffer(chars.length); boolean changesMade = false; for (int i = 0; i < chars.length; i++) { if (!Character.isLetter(chars[i])) { sb.append(chars[i]); } else if (Character.isLowerCase(chars[i])) { changesMade = true; sb.append(Character.toUpperCase(chars[i])); } else { changesMade = true; sb.append(Character.toLowerCase(chars[i])); } } if (changesMade) { setValue(sb.toString()); return this; } return getRuntime().getNil(); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/clean/src/org/jruby/RubyString.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
7720,
3593,
67,
70,
539,
1435,
288,
202,
202,
3001,
8526,
5230,
273,
2366,
7675,
869,
15936,
5621,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
7549,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15908,
10340,
921,
7720,
3593,
67,
70,
539,
1435,
288,
202,
202,
3001,
8526,
5230,
273,
2366,
7675,
869,
15936,
5621,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
7549,
18,
... |
scheduleUpdate(0); | scheduleUpdate(10); | public boolean ensureUpToDate(boolean canBeCanceled) { final boolean ok = ProgressManager.getInstance().runProcessWithProgressSynchronously(new Runnable() { public void run() { final ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); if (indicator != null) { indicator.setText(VcsBundle.message("commit.wait.util.synced.message")); } synchronized (myPendingUpdatesLock) { scheduleUpdate(0); while (ourUpdateAlarm.getActiveRequestCount() > 0 || myUpdateInProgress) { if (indicator != null && indicator.isCanceled()) break; try { myPendingUpdatesLock.wait(100); } catch (InterruptedException e) { break; } } } } }, VcsBundle.message("commit.wait.util.synced.title"), canBeCanceled, myProject); if (ok) { refreshView(); } return ok; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/084b93c9d53876cc9bafcb5f473d7ee21d5eab5d/ChangeListManagerImpl.java/buggy/source/com/intellij/openapi/vcs/changes/ChangeListManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
3387,
1211,
31264,
12,
6494,
24978,
23163,
13,
288,
565,
727,
1250,
1529,
273,
10980,
1318,
18,
588,
1442,
7675,
2681,
2227,
1190,
5491,
55,
24845,
12,
2704,
10254,
1435,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
3387,
1211,
31264,
12,
6494,
24978,
23163,
13,
288,
565,
727,
1250,
1529,
273,
10980,
1318,
18,
588,
1442,
7675,
2681,
2227,
1190,
5491,
55,
24845,
12,
2704,
10254,
1435,
288,
... |
return (fScannerState != SCANNER_STATE_END_OF_INPUT); | return true; | public boolean dispatch(boolean keepgoing) throws Exception { do { switch (fScannerState) { case SCANNER_STATE_ROOT_ELEMENT: { scanElementType(fEntityReader, '>', fElementQName); if (fElementQName.rawname != -1) { // // root element // fContentReader = fReaderId; fSeenRootElement = true; // // scan element // if (fEntityReader.lookingAtChar('>', true)) { // // we have more content // fEventHandler.callStartElement(fElementQName); fScannerMarkupDepth--; if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; restoreScannerState(SCANNER_STATE_CONTENT); } else if (scanElement(fElementQName)) { // // we have more content // if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; restoreScannerState(SCANNER_STATE_CONTENT); } else { fDispatcher = new TrailingMiscDispatcher(); restoreScannerState(SCANNER_STATE_TRAILING_MISC); return true; } } else { reportFatalXMLError(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_PROLOG, XMLMessages.P22_NOT_RECOGNIZED); fDispatcher = new PrologDispatcher(); restoreScannerState(SCANNER_STATE_PROLOG); return true; } break; } case SCANNER_STATE_START_OF_MARKUP: if (fEntityReader.lookingAtChar('?', true)) { int piTarget = fEntityReader.scanName(' '); if (piTarget == -1) { abortMarkup(XMLMessages.MSG_PITARGET_REQUIRED, XMLMessages.P16_PITARGET_REQUIRED); } else if ("xml".equals(fStringPool.toString(piTarget))) { if (fEntityReader.lookingAtSpace(true)) { // an XMLDecl looks like a PI with the target 'xml' if (fParseTextDecl) { scanXMLDeclOrTextDecl(true); fParseTextDecl = false; } else { abortMarkup(XMLMessages.MSG_TEXTDECL_MUST_BE_FIRST, XMLMessages.P30_TEXTDECL_MUST_BE_FIRST); } } else { // a PI target matching 'xml' abortMarkup(XMLMessages.MSG_RESERVED_PITARGET, XMLMessages.P17_RESERVED_PITARGET); } } else { // PI scanPI(piTarget); } restoreScannerState(SCANNER_STATE_CONTENT); } else if (fEntityReader.lookingAtChar('!', true)) { if (fEntityReader.lookingAtChar('-', true)) { // comment ? if (fEntityReader.lookingAtChar('-', true)) { scanComment(); // scan through the closing '-->' } else { abortMarkup(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT, XMLMessages.P43_NOT_RECOGNIZED); } } else { if (fEntityReader.skippedString(cdata_string)) { fEntityReader.setInCDSect(true); fEventHandler.callStartCDATA(); } else { abortMarkup(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT, XMLMessages.P43_NOT_RECOGNIZED); } } } else { if (fEntityReader.lookingAtChar('/', true)) { // // [42] ETag ::= '</' Name S? '>' // if (!scanExpectedElementType(fEntityReader, '>', fCurrentElementType)) { abortMarkup(XMLMessages.MSG_ETAG_REQUIRED, XMLMessages.P39_UNTERMINATED, fCurrentElementType); } else { if (!fEntityReader.lookingAtChar('>', true)) { fEntityReader.skipPastSpaces(); if (!fEntityReader.lookingAtChar('>', true)) { reportFatalXMLError(XMLMessages.MSG_ETAG_UNTERMINATED, XMLMessages.P42_UNTERMINATED, fCurrentElementType); } } fScannerMarkupDepth--; fEventHandler.callEndElement(fReaderId); if (fElementDepth-- == 0) { throw new RuntimeException("FWK002 popElementType: fElementDepth-- == 0."); } if (fElementDepth == 0) { fCurrentElementType = - 1; fDispatcher = new TrailingMiscDispatcher(); restoreScannerState(SCANNER_STATE_TRAILING_MISC); return true; } else { fCurrentElementType = fElementTypeStack[fElementDepth - 1]; } } } else { scanElementType(fEntityReader, '>', fElementQName); if (fElementQName.rawname != -1) { // // element // if (fEntityReader.lookingAtChar('>', true)) { fEventHandler.callStartElement(fElementQName); fScannerMarkupDepth--; if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; } else { if (scanElement(fElementQName)) { if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; } } } else { abortMarkup(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT, XMLMessages.P43_NOT_RECOGNIZED); } } } restoreScannerState(SCANNER_STATE_CONTENT); break; case SCANNER_STATE_CONTENT: if (fParseTextDecl && fEntityReader.lookingAtChar('<', true)) { fScannerMarkupDepth++; setScannerState(SCANNER_STATE_START_OF_MARKUP); continue; } // REVISIT: Is this the right thing to do? Do we need to // save more information on the stack? fCurrentElementQName.setValues(-1, -1, fCurrentElementType); switch (fEntityReader.scanContent(fCurrentElementQName)) { case XMLEntityHandler.CONTENT_RESULT_START_OF_PI: fScannerMarkupDepth++; int piTarget = fEntityReader.scanName(' '); if (piTarget == -1) { abortMarkup(XMLMessages.MSG_PITARGET_REQUIRED, XMLMessages.P16_PITARGET_REQUIRED); } else if ("xml".equals(fStringPool.toString(piTarget))) { if (fEntityReader.lookingAtSpace(true)) { // an XMLDecl looks like a PI with the target 'xml' if (fReaderId == fContentReader) { abortMarkup(XMLMessages.MSG_XMLDECL_MUST_BE_FIRST, XMLMessages.P22_XMLDECL_MUST_BE_FIRST); } else { abortMarkup(XMLMessages.MSG_TEXTDECL_MUST_BE_FIRST, XMLMessages.P30_TEXTDECL_MUST_BE_FIRST); } } else { // a PI target matching 'xml' abortMarkup(XMLMessages.MSG_RESERVED_PITARGET, XMLMessages.P17_RESERVED_PITARGET); } } else { // PI scanPI(piTarget); } break; case XMLEntityHandler.CONTENT_RESULT_START_OF_COMMENT: fScannerMarkupDepth++; fParseTextDecl = false; scanComment(); // scan through the closing '-->' break; case XMLEntityHandler.CONTENT_RESULT_START_OF_CDSECT: fScannerMarkupDepth++; fParseTextDecl = false; fEntityReader.setInCDSect(true); fEventHandler.callStartCDATA(); break; case XMLEntityHandler.CONTENT_RESULT_START_OF_ETAG: fScannerMarkupDepth++; fParseTextDecl = false; // // [42] ETag ::= '</' Name S? '>' // if (!scanExpectedElementType(fEntityReader, '>', fCurrentElementType)) { abortMarkup(XMLMessages.MSG_ETAG_REQUIRED, XMLMessages.P39_UNTERMINATED, fCurrentElementType); } else { if (!fEntityReader.lookingAtChar('>', true)) { fEntityReader.skipPastSpaces(); if (!fEntityReader.lookingAtChar('>', true)) { reportFatalXMLError(XMLMessages.MSG_ETAG_UNTERMINATED, XMLMessages.P42_UNTERMINATED, fCurrentElementType); } } fScannerMarkupDepth--; fEventHandler.callEndElement(fReaderId); if (fElementDepth-- == 0) { throw new RuntimeException("FWK002 popElementType: fElementDepth-- == 0."); } if (fElementDepth == 0) { fCurrentElementType = - 1; fDispatcher = new TrailingMiscDispatcher(); restoreScannerState(SCANNER_STATE_TRAILING_MISC); return true; } else { fCurrentElementType = fElementTypeStack[fElementDepth - 1]; } } restoreScannerState(SCANNER_STATE_CONTENT); break; case XMLEntityHandler.CONTENT_RESULT_START_OF_ELEMENT: { fScannerMarkupDepth++; fParseTextDecl = false; scanElementType(fEntityReader, '>', fElementQName); if (fElementQName.rawname != -1) { if (fEntityReader.lookingAtChar('>', true)) { fEventHandler.callStartElement(fElementQName); fScannerMarkupDepth--; if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; } else { if (scanElement(fElementQName)) { if (fElementDepth == fElementTypeStack.length) { int[] newStack = new int[fElementDepth * 2]; System.arraycopy(fElementTypeStack, 0, newStack, 0, fElementDepth); fElementTypeStack = newStack; } fCurrentElementType = fElementQName.rawname; fElementTypeStack[fElementDepth] = fElementQName.rawname; fElementDepth++; } } } else { abortMarkup(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT, XMLMessages.P43_NOT_RECOGNIZED); } if (fScannerState != SCANNER_STATE_END_OF_INPUT) fScannerState = SCANNER_STATE_CONTENT; break; } case XMLEntityHandler.CONTENT_RESULT_MATCHING_ETAG: { fParseTextDecl = false; fEventHandler.callEndElement(fReaderId); if (fElementDepth-- == 0) { throw new RuntimeException("FWK002 popElementType: fElementDepth-- == 0."); } if (fElementDepth == 0) { fCurrentElementType = - 1; if (fScannerState != SCANNER_STATE_END_OF_INPUT) { fDispatcher = new TrailingMiscDispatcher(); fScannerState = SCANNER_STATE_TRAILING_MISC; } return true; } else { fCurrentElementType = fElementTypeStack[fElementDepth - 1]; } if (fScannerState != SCANNER_STATE_END_OF_INPUT) fScannerState = SCANNER_STATE_CONTENT; break; } case XMLEntityHandler.CONTENT_RESULT_START_OF_CHARREF: fParseTextDecl = false; // // [67] Reference ::= EntityRef | CharRef // [68] EntityRef ::= '&' Name ';' // [66] CharRef ::= '&#' [0-9]+ ';' | '&#x' [0-9a-fA-F]+ ';' // setScannerState(SCANNER_STATE_REFERENCE); int num = scanCharRef(); // if (num == -1) num = 0xfffd; // REVISIT - alternative is to use Unicode replacement char if (num != -1) fEventHandler.callCharacters(num); restoreScannerState(SCANNER_STATE_CONTENT); break; case XMLEntityHandler.CONTENT_RESULT_REFERENCE_END_OF_INPUT: // REVISIT - This should hopefully get us the "reference not // contained in one entity" error when endOfInput is called. // Test that this is so... // // fall through... // case XMLEntityHandler.CONTENT_RESULT_START_OF_ENTITYREF: fParseTextDecl = false; // // [68] EntityRef ::= '&' Name ';' // setScannerState(SCANNER_STATE_REFERENCE); int nameOffset = fEntityReader.currentOffset(); fEntityReader.skipPastName(';'); int nameLength = fEntityReader.currentOffset() - nameOffset; if (nameLength == 0) { reportFatalXMLError(XMLMessages.MSG_NAME_REQUIRED_IN_REFERENCE, XMLMessages.P68_NAME_REQUIRED); restoreScannerState(SCANNER_STATE_CONTENT); } else if (!fEntityReader.lookingAtChar(';', true)) { reportFatalXMLError(XMLMessages.MSG_SEMICOLON_REQUIRED_IN_REFERENCE, XMLMessages.P68_SEMICOLON_REQUIRED, fEntityReader.addString(nameOffset, nameLength)); restoreScannerState(SCANNER_STATE_CONTENT); } else { restoreScannerState(SCANNER_STATE_CONTENT); int entityName = fEntityReader.addSymbol(nameOffset, nameLength); fParseTextDecl = fEntityHandler.startReadingFromEntity(entityName, fElementDepth, XMLEntityHandler.ENTITYREF_IN_CONTENT); } break; case XMLEntityHandler.CONTENT_RESULT_END_OF_CDSECT: fParseTextDecl = false; // // [14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*) // [21] CDEnd ::= ']]>' // if (fEntityReader.getInCDSect()) { fEntityReader.setInCDSect(false); fEventHandler.callEndCDATA(); fScannerMarkupDepth--; } else { reportFatalXMLError(XMLMessages.MSG_CDEND_IN_CONTENT, XMLMessages.P14_INVALID); } restoreScannerState(SCANNER_STATE_CONTENT); break; case XMLEntityHandler.CONTENT_RESULT_INVALID_CHAR: fParseTextDecl = false; // // The reader will also use this state if it // encounters the end of input while reading // content. We need to check for this case. // if (fScannerState != SCANNER_STATE_END_OF_INPUT) { if (!fEntityReader.lookingAtValidChar(false)) { // // [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] // any Unicode character, excluding the // | [#xE000-#xFFFD] | [#x10000-#x10FFFF] // surrogate blocks, FFFE, and FFFF. // int invChar = fEntityReader.scanInvalidChar(); if (fScannerState != SCANNER_STATE_END_OF_INPUT) { if (invChar >= 0) { if (fEntityReader.getInCDSect()) { reportFatalXMLError(XMLMessages.MSG_INVALID_CHAR_IN_CDSECT, XMLMessages.P20_INVALID_CHARACTER, Integer.toHexString(invChar)); } else { reportFatalXMLError(XMLMessages.MSG_INVALID_CHAR_IN_CONTENT, XMLMessages.P43_INVALID_CHARACTER, Integer.toHexString(invChar)); } } } } restoreScannerState(SCANNER_STATE_CONTENT); } break; case XMLEntityHandler.CONTENT_RESULT_MARKUP_NOT_RECOGNIZED: fParseTextDecl = false; abortMarkup(XMLMessages.MSG_MARKUP_NOT_RECOGNIZED_IN_CONTENT, XMLMessages.P43_NOT_RECOGNIZED); break; case XMLEntityHandler.CONTENT_RESULT_MARKUP_END_OF_INPUT: // REVISIT - This should hopefully get us the "markup not // contained in one entity" error when endOfInput is called. // Test that this is so... fScannerMarkupDepth++; fParseTextDecl = false; fScannerState = SCANNER_STATE_START_OF_MARKUP; break; default: throw new RuntimeException("FWK001 3] ScannerState="+fScannerState+"\n" + "3\t"+fScannerState); // should not happen } break; default: throw new RuntimeException("FWK001 4] ScannerState="+fScannerState+"\n" + "4\t"+fScannerState); } } while (fScannerState != SCANNER_STATE_END_OF_INPUT && keepgoing); return (fScannerState != SCANNER_STATE_END_OF_INPUT); } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/1592c2719b3e4ae8ed2b7bec1a4876f499d86726/XMLDocumentScanner.java/buggy/src/org/apache/xerces/framework/XMLDocumentScanner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
3435,
12,
6494,
3455,
8162,
13,
1216,
1185,
288,
5411,
741,
288,
7734,
1620,
261,
74,
11338,
1119,
13,
288,
7734,
648,
8795,
11489,
654,
67,
7998,
67,
9185,
67,
10976,
30,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1250,
3435,
12,
6494,
3455,
8162,
13,
1216,
1185,
288,
5411,
741,
288,
7734,
1620,
261,
74,
11338,
1119,
13,
288,
7734,
648,
8795,
11489,
654,
67,
7998,
67,
9185,
67,
10976,
30,
7... |
if (!new QueryFilters(nutchConf).isField(c.getField())) { | if (!new QueryFilters(conf).isField(c.getField())) { | private static Query fixup(Query input, NutchConf nutchConf) { // walk the query Query output = new Query(nutchConf); Clause[] clauses = input.getClauses(); for (int i = 0; i < clauses.length; i++) { Clause c = clauses[i]; if (!new QueryFilters(nutchConf).isField(c.getField())) { // unknown field ArrayList terms = new ArrayList(); // add name to query if (c.isPhrase()) { terms.addAll(Arrays.asList(c.getPhrase().getTerms())); } else { terms.add(c.getTerm()); } terms.add(0, new Term(c.getField())); // add to front of phrase c = (Clause)c.clone(); c.field = Clause.DEFAULT_FIELD; // use default field instead c.termOrPhrase = new Phrase((Term[])terms.toArray(new Term[terms.size()])); } output.clauses.add(c); // copy clause to output } return output; } | 50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/Query.java/clean/src/java/org/apache/nutch/searcher/Query.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
2770,
2917,
416,
12,
1138,
810,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
288,
565,
368,
5442,
326,
843,
565,
2770,
876,
273,
394,
2770,
12,
82,
322,
343,
3976,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
2770,
2917,
416,
12,
1138,
810,
16,
423,
322,
343,
3976,
290,
322,
343,
3976,
13,
288,
565,
368,
5442,
326,
843,
565,
2770,
876,
273,
394,
2770,
12,
82,
322,
343,
3976,
176... |
v += value_weights[i] * values[i][j]; h += hue_weights[i] * values[i][j]; | v += valueWeights[i] * values[i][j]; h += hueWeights[i] * values[i][j]; | public void doit() { try { float[] value_weights = new float[NFILES]; float[] hue_weights = new float[NFILES]; for (int i=0; i<NFILES; i++) { Real r = (Real) value_refs[i].getData(); value_weights[i] = (float) r.getValue(); r = (Real) hue_refs[i].getData(); hue_weights[i] = (float) r.getValue(); } float vmin = Float.MAX_VALUE; float vmax = Float.MIN_VALUE; float hmin = Float.MAX_VALUE; float hmax = Float.MIN_VALUE; for (int j=0; j<npixels; j++) { float v = 0, h = 0; for (int i=0; i<NFILES; i++) { v += value_weights[i] * values[i][j]; h += hue_weights[i] * values[i][j]; } data_values[0][j] = v; data_values[1][j] = h; if (v < vmin) vmin = v; if (v > vmax) vmax = v; if (h < hmin) hmin = h; if (h > hmax) hmax = h; } for (int i=0; i<768; i++) { float hue = hmin + (((float) i) / 767.0f) * (hmax - hmin); for (int k=i; k<768*21; k+=768) { wedge_samples[0][k] = vmax; wedge_samples[1][k] = hue; } } minmax.setText("vmin = " + vmin + "; vmax = " + vmax); double x1 = 0.0, x2 = 767.0, y = 525.0; text_field.setSample(0, new Tuple(text_tuple, new Scalar[] { new Real(element, x1), new Real(line, y), new Text(text, "" + hmin) })); text_field.setSample(1, new Tuple(text_tuple, new Scalar[] { new Real(element, x2), new Real(line, y), new Text(text, "" + hmax) })); display1.disableAction(); vmap.setRange(vmin, vmax); hmap.setRange(hmin, hmax); huexmap.setRange(hmin, hmax); data.setSamples(data_values, false); wedge.setSamples(wedge_samples, false); display1.enableAction(); } catch (VisADException ex) { ex.printStackTrace(); } catch (RemoteException ex) { ex.printStackTrace(); } } | 11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/d3560cf43f33592c964cabbb057bed37fea39a07/MultiLUT.java/buggy/loci/MultiLUT.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
305,
1435,
288,
565,
775,
288,
1377,
1431,
8526,
460,
67,
9727,
273,
394,
1431,
63,
50,
12669,
15533,
1377,
1431,
8526,
16846,
67,
9727,
273,
394,
1431,
63,
50,
12669,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
741,
305,
1435,
288,
565,
775,
288,
1377,
1431,
8526,
460,
67,
9727,
273,
394,
1431,
63,
50,
12669,
15533,
1377,
1431,
8526,
16846,
67,
9727,
273,
394,
1431,
63,
50,
12669,
1... |
System.out.println("Could not solve x * " + mapping + " = " + q); | throw new RuntimeException("Could not solve x * " + mapping + " = " + q); | public void setPosition(final INode v, final Point p) { final Matrix mapping = new Matrix((double[][]) this.node2mapping.get(v)); final int n = mapping.numberOfRows(); if (n > 1) { final int d = this.dimGraph; final Matrix q = new Matrix(1, d + 1); q.setSubMatrix(0, 0, ((Point) p.times(getSymmetrizer(v))).getCoordinates()); q.set(0, d, Whole.ONE); final Matrix s = LinearAlgebra.solutionInRows(mapping, q, false); if (s == null) { System.out.println("Could not solve x * " + mapping + " = " + q); } final int offset = ((Integer) this.node2index.get(v)).intValue(); for (int i = 0; i < n-1; ++i) { this.p[offset+i] = ((Real) s.get(0, i)).doubleValue(); } } } | 9751 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9751/95fa8ddf6fee903abe15705b5bcbe35538d1194b/AmoebaEmbedder.java/buggy/src/org/gavrog/joss/pgraphs/embed/AmoebaEmbedder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19776,
12,
6385,
21176,
331,
16,
727,
4686,
293,
13,
288,
3639,
727,
7298,
2874,
273,
394,
7298,
12443,
9056,
63,
6362,
5717,
333,
18,
2159,
22,
6770,
18,
588,
12,
90,
10019,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
19776,
12,
6385,
21176,
331,
16,
727,
4686,
293,
13,
288,
3639,
727,
7298,
2874,
273,
394,
7298,
12443,
9056,
63,
6362,
5717,
333,
18,
2159,
22,
6770,
18,
588,
12,
90,
10019,... |
if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } | if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } return bigNorm(getRuntime(), results[0]); } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
9902,
1061,
67,
2892,
12,
7937,
10340,
921,
818,
13,
288,
3639,
19817,
9902,
1308,
273,
6389,
620,
12,
2107,
1769,
3639,
309,
261,
3011,
1276,
19817,
4723,
13,
288,
5411,
327... |
enterFrame(cx, frame, args); | enterFrame(cx, frame, args, false); | private static void initFrame(Context cx, Scriptable callerScope, Scriptable thisObj, Object[] args, double[] argsDbl, int argShift, int argCount, InterpretedFunction fnOrScript, CallFrame parentFrame, CallFrame frame) { InterpreterData idata = fnOrScript.idata; boolean useActivation = idata.itsNeedsActivation; DebugFrame debuggerFrame = null; if (cx.debugger != null) { debuggerFrame = cx.debugger.getFrame(cx, idata); if (debuggerFrame != null) { useActivation = true; } } if (useActivation) { // Copy args to new array to pass to enterActivationFunction // or debuggerFrame.onEnter if (argsDbl != null) { args = getArgsArray(args, argsDbl, argShift, argCount); } argShift = 0; argsDbl = null; } Scriptable scope; if (idata.itsFunctionType != 0) { if (!idata.useDynamicScope) { scope = fnOrScript.getParentScope(); } else { scope = callerScope; } if (useActivation) { scope = ScriptRuntime.createFunctionActivation( fnOrScript, scope, args); } } else { scope = callerScope; ScriptRuntime.initScript(fnOrScript, thisObj, cx, scope, fnOrScript.idata.evalScriptFlag); } if (idata.itsNestedFunctions != null) { if (idata.itsFunctionType != 0 && !idata.itsNeedsActivation) Kit.codeBug(); for (int i = 0; i < idata.itsNestedFunctions.length; i++) { InterpreterData fdata = idata.itsNestedFunctions[i]; if (fdata.itsFunctionType == FunctionNode.FUNCTION_STATEMENT) { initFunction(cx, scope, fnOrScript, i); } } } Scriptable[] scriptRegExps = null; if (idata.itsRegExpLiterals != null) { // Wrapped regexps for functions are stored in // InterpretedFunction // but for script which should not contain references to scope // the regexps re-wrapped during each script execution if (idata.itsFunctionType != 0) { scriptRegExps = fnOrScript.functionRegExps; } else { scriptRegExps = fnOrScript.createRegExpWraps(cx, scope); } } // Initialize args, vars, locals and stack int emptyStackTop = idata.itsMaxVars + idata.itsMaxLocals - 1; int maxFrameArray = idata.itsMaxFrameArray; if (maxFrameArray != emptyStackTop + idata.itsMaxStack + 1) Kit.codeBug(); Object[] stack; double[] sDbl; boolean stackReuse; if (frame.stack != null && maxFrameArray <= frame.stack.length) { // Reuse stacks from old frame stackReuse = true; stack = frame.stack; sDbl = frame.sDbl; } else { stackReuse = false; stack = new Object[maxFrameArray]; sDbl = new double[maxFrameArray]; } int definedArgs = idata.argCount; if (definedArgs > argCount) { definedArgs = argCount; } // Fill the frame structure frame.parentFrame = parentFrame; frame.frameIndex = (parentFrame == null) ? 0 : parentFrame.frameIndex + 1; if(frame.frameIndex > cx.getMaximumInterpreterStackDepth()) { throw Context.reportRuntimeError("Exceeded maximum stack depth"); } frame.frozen = false; frame.fnOrScript = fnOrScript; frame.idata = idata; frame.stack = stack; frame.sDbl = sDbl; frame.varSource = frame; frame.localShift = idata.itsMaxVars; frame.emptyStackTop = emptyStackTop; frame.debuggerFrame = debuggerFrame; frame.useActivation = useActivation; frame.thisObj = thisObj; frame.scriptRegExps = scriptRegExps; // Initialize initial values of variables that change during // interpretation. frame.result = Undefined.instance; frame.pc = 0; frame.pcPrevBranch = 0; frame.pcSourceLineStart = idata.firstLinePC; frame.scope = scope; frame.savedStackTop = emptyStackTop; frame.savedCallOp = 0; System.arraycopy(args, argShift, stack, 0, definedArgs); if (argsDbl != null) { System.arraycopy(argsDbl, argShift, sDbl, 0, definedArgs); } for (int i = definedArgs; i != idata.itsMaxVars; ++i) { stack[i] = Undefined.instance; } if (stackReuse) { // Clean the stack part and space beyond stack if any // of the old array to allow to GC objects there for (int i = emptyStackTop + 1; i != stack.length; ++i) { stack[i] = null; } } enterFrame(cx, frame, args); } | 51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/58ec1a01c5cab478b5d9f7c1a948fe247cc7d281/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1208,
3219,
12,
1042,
9494,
16,
22780,
4894,
3876,
16,
21394,
22780,
15261,
16,
21394,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
21394,
509,
1501,
10544,
16,
509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1208,
3219,
12,
1042,
9494,
16,
22780,
4894,
3876,
16,
21394,
22780,
15261,
16,
21394,
1033,
8526,
833,
16,
1645,
8526,
833,
40,
3083,
16,
21394,
509,
1501,
10544,
16,
509... |
request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears()); } } request.setAttribute("documentRequestCreateBean", new DocumentRequestCreator( registration)); return mapping.findForward("createDocumentRequests"); | if (registration.getStudentCurricularPlansCount() > 1) { request.setAttribute("studentCurricularPlans", registration .getStudentCurricularPlans()); } request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears()); } } return mapping.findForward("createDocumentRequests"); | public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request, HttpServletResponse response) { registration = SessionUtils.getUserView(request).getPerson().getStudentByUsername(); final DocumentRequestCreateBean documentRequestCreateBean = new DocumentRequestCreateBean(registration); if (!registration.getPayedTuition()) { addActionMessage(request, "error.message.tuitionNotPayed"); } else { if (!registration.hasAnyStudentCurricularPlans()) { addActionMessage(request, "error.student.curricularPlan.nonExistent"); } else { request.setAttribute("registration", registration); if (registration.getStudentCurricularPlansCount() > 1) { request.setAttribute("studentCurricularPlans", registration .getStudentCurricularPlans()); } //getAndSetExecutionYears(request, registration.getActiveStudentCurricularPlan()); request.setAttribute("executionYears", registration.getEnrolmentsExecutionYears()); } } request.setAttribute("documentRequestCreateBean", new DocumentRequestCreator( registration)); return mapping.findForward("createDocumentRequests"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/db8406c5599f15055435fa0820aa6ca80db5e56d/DocumentRequestDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/student/administrativeOfficeServices/DocumentRequestDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
5411,
9984,
590,
16,
12446,
766,
13,
288,
3639,
7914,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
2934,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
12,
1803,
3233,
2874,
16,
4382,
1204,
1301,
1204,
16,
5411,
9984,
590,
16,
12446,
766,
13,
288,
3639,
7914,
273,
3877,
1989,
18,
588,
1299,
1767,
12,
2293,
2934,
... |
InvocationMatcher expectation = new MockInvocationMatcher(); mockCoreMock.addInvokableCalls.setExpected(1); assertNotNull("Should be invokedMethod expectation", mock.expects(expectation)); mockCoreMock.verifyExpectations(); } | InvocationMatcher expectation = new MockInvocationMatcher(); mockCoreMock.addInvokableCalls.setExpected(1); assertNotNull("Should be invokedMethod expectation", mock.expects(expectation)); mockCoreMock.verifyExpectations(); } | public void testExpectAddsInvocationMockerAndAddsExpectationAndReturnsBuilder() { InvocationMatcher expectation = new MockInvocationMatcher(); mockCoreMock.addInvokableCalls.setExpected(1); assertNotNull("Should be invokedMethod expectation", mock.expects(expectation)); mockCoreMock.verifyExpectations(); } | 57371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57371/4aaf60d8fa76687c3492c508dd98678fbbd3d935/MockTest.java/clean/jmock/core/src/test/jmock/MockTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11988,
3655,
9267,
49,
6203,
1876,
3655,
11988,
367,
1876,
1356,
1263,
1435,
288,
3639,
11298,
6286,
17733,
273,
394,
7867,
9267,
6286,
5621,
1171,
5416,
4670,
9865,
18,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
11988,
3655,
9267,
49,
6203,
1876,
3655,
11988,
367,
1876,
1356,
1263,
1435,
288,
3639,
11298,
6286,
17733,
273,
394,
7867,
9267,
6286,
5621,
1171,
5416,
4670,
9865,
18,
12... |
item.addDC("type", null, "en", types[i]); | for (int i = 0; i < types.length; i++) { item.addDC("type", null, "en", types[i]); } | private void processEditMetadataOne(Context context, HttpServletRequest request, HttpServletResponse response, SubmissionInfo subInfo) throws ServletException, IOException, SQLException, AuthorizeException { String buttonPressed = UIUtil.getSubmitButton(request, "submit_next"); // Firstly, check for a click of the cancel button. if (buttonPressed.equals("submit_cancel")) { doCancellation(request, response, subInfo, EDIT_METADATA_1, EDIT_METADATA_1); return; } Item item = subInfo.submission.getItem(); // Update the item metadata. readNames(request, item, "contributor", "author", true); readText(request, item, "title", null, false, "en"); if (subInfo.submission.hasMultipleTitles()) { readText(request, item, "title", "alternative", true, "en"); } readSeriesNumbers(request, item, "relation", "ispartofseries", true); // Type item.clearDC("type", null, Item.ANY); String[] types = request.getParameterValues("type"); for (int i = 0; i < types.length; i++) { item.addDC("type", null, "en", types[i]); } // FIXME: Maybe should do integrity check using language object readText(request, item, "language", "iso", false, null); // Identifiers - A special case so do this here // First, remove existing identifiers. subInfo.submission.getItem().clearDC("identifier", Item.ANY, Item.ANY); // Get qualifiers and values List quals = getRepeatedParameter(request, "identifier_qualifier"); List vals = getRepeatedParameter(request, "identifier_value"); // Add to item DC for (int i = 0; i<vals.size(); i++) { String thisQual = (String) quals.get(i); String thisVal = (String) vals.get(i); if (!buttonPressed.equals("submit_identifier_remove_" + i) && !thisVal.equals("")) { item.addDC("identifier", thisQual, null, thisVal); } } if (subInfo.submission.isPublishedBefore()) { readDate(request, item, "date", "issued"); // Careful that this happens AFTER identifier.* is blown away // above!! readText(request, item, "identifier", "citation", false, "en"); readText(request, item, "publisher", null, false, "en"); } int nextStep = -1; // Proceed according to button pressed if (buttonPressed.equals("submit_contributor_author_more")) { // "Add more" clicked for authors subInfo.moreBoxesFor = "contributor_author"; subInfo.jumpToField = "contributor_author"; nextStep = EDIT_METADATA_1; } else if (subInfo.submission.hasMultipleTitles() && buttonPressed.equals("submit_title_alternative_more")) { // "Add more" clicked for alternative titles subInfo.moreBoxesFor = "title_alternative"; subInfo.jumpToField = "title_alternative"; nextStep = EDIT_METADATA_1; } else if (buttonPressed.equals("submit_relation_ispartofseries_more")) { // "Add more" clicked for series/number subInfo.moreBoxesFor = "relation_ispartofseries"; subInfo.jumpToField = "relation_ispartofseries"; nextStep = EDIT_METADATA_1; } else if (buttonPressed.equals("submit_identifier_more")) { // "Add more" clicked for identifier subInfo.moreBoxesFor = "identifier"; subInfo.jumpToField = "identifier"; nextStep = EDIT_METADATA_1; } else if (buttonPressed.equals("submit_prev")) { nextStep = INITIAL_QUESTIONS; } else if (buttonPressed.equals("submit_next")) { userHasReached(subInfo, EDIT_METADATA_2); nextStep = EDIT_METADATA_2; } else if (buttonPressed.indexOf("remove") > -1) { // Remove button pressed - stay with same form nextStep = EDIT_METADATA_1; } // Write changes to database subInfo.submission.update(); if (nextStep != -1) { doStep(context, request, response, subInfo, nextStep); } else { doStepJump(context, request, response, subInfo); } context.complete(); } | 47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/e282fcda9b6f14ece31a9f9f6cca000a04572c16/SubmitServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/SubmitServlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
4666,
2277,
3335,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1207,
4666,
2277,
3335,
12,
1042,
819,
16,
3639,
9984,
590,
16,
3639,
12446,
766,
16,
3639,
2592,
3951,
966,
720,
966,
13,
3639,
1216,
16517,
16,
1860,
16,
6483,
16,
23859,
5... |
protected boolean quickCheckVisibility( int iLabelLocation, Point previousPoint, double x, double y ) { // quick check first (fast) if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { if ( previousPoint.getX() > x ) { return false; } } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { if ( previousPoint.getY() < y ) { return false; } } return true; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5190634b7d993e200827f366f533ffbc5d0b341/AutoScale.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/AutoScale.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6494,
19525,
1564,
10135,
12,
474,
77,
2224,
2735,
16,
2148,
11515,
2148,
16,
9506,
202,
9056,
92,
16,
9056,
93,
13,
202,
95,
9506,
202,
759,
19525,
1893,
3645,
12,
8076,
13,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6494,
19525,
1564,
10135,
12,
474,
77,
2224,
2735,
16,
2148,
11515,
2148,
16,
9506,
202,
9056,
92,
16,
9056,
93,
13,
202,
95,
9506,
202,
759,
19525,
1893,
3645,
12,
8076,
13,... | ||
if (method == null) { | if (method.isUndefined()) { | public void undef(String name) { Ruby ruby = getRuntime(); if (this == ruby.getClasses().getObjectClass()) { ruby.secure(4); } if (ruby.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (name.equals("__id__") || name.equals("__send__")) { /*rb_warn("undefining `%s' may cause serious problem", rb_id2name( id ) );*/ } ICallable method = searchMethod(name); if (method == null) { String s0 = " class"; RubyModule c = this; if (c.isSingleton()) { IRubyObject obj = getInstanceVariable("__attached__"); if (obj instanceof RubyModule) { c = (RubyModule) obj; s0 = ""; } } else if (c.isModule()) { s0 = " module"; } throw new NameError(ruby, "Undefined method " + name + " for" + s0 + " '" + c.toName() + "'"); } addMethod(name, null, Constants.NOEX_PUBLIC); } | 47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
22155,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
22155,
18,
8869,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
640,
536,
12,
780,
508,
13,
288,
3639,
19817,
22155,
273,
18814,
5621,
3639,
309,
261,
2211,
422,
22155,
18,
588,
4818,
7675,
588,
921,
797,
10756,
288,
5411,
22155,
18,
8869,
... |
if (rec.page instanceof IPageBookViewPage) { site = ((IPageBookViewPage)rec.page).getSite(); | Integer count; if (!doesPageExist(rec.page)) { if (rec.page instanceof IPageBookViewPage) { site = ((IPageBookViewPage)rec.page).getSite(); } if (site == null) { site = new PageSite(getViewSite()); } mapPageToSite.put(rec.page, site); rec.subActionBars = (SubActionBars)site.getActionBars(); rec.subActionBars.addPropertyChangeListener(actionBarPropListener); rec.page.setActionBars(rec.subActionBars); count = new Integer(0); } else { site = (IPageSite)mapPageToSite.get(rec.page); rec.subActionBars = (SubActionBars)site.getActionBars(); count = ((Integer)mapPageToNumRecs.get(rec.page)); | private void preparePage(PageRec rec) { IPageSite site = null; if (rec.page instanceof IPageBookViewPage) { site = ((IPageBookViewPage)rec.page).getSite(); } if (site == null) { // We will create a site for our use site = new PageSite(getViewSite()); } mapPageToSite.put(rec.page, site); rec.subActionBars = (SubActionBars)site.getActionBars(); rec.subActionBars.addPropertyChangeListener(actionBarPropListener); // for backward compability with IPage rec.page.setActionBars(rec.subActionBars);} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d250528d501891131ef34ee8c602a80ece58a94c/PageBookView.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/PageBookView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
2911,
1964,
12,
1964,
5650,
1950,
13,
288,
202,
45,
1964,
4956,
2834,
273,
446,
31,
202,
430,
261,
3927,
18,
2433,
1276,
467,
1964,
9084,
1767,
1964,
13,
288,
202,
202,
4256,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
918,
2911,
1964,
12,
1964,
5650,
1950,
13,
288,
202,
45,
1964,
4956,
2834,
273,
446,
31,
202,
430,
261,
3927,
18,
2433,
1276,
467,
1964,
9084,
1767,
1964,
13,
288,
202,
202,
4256,
273,... |
setBoolean(((Boolean) value).booleanValue()); | setBoolean(((Boolean) value).booleanValue()); | void setObject(Object value) throws SQLException { /* throw (SQLException)createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); */ if (value == null) { setNull(true); return; } if (value instanceof InputStream) { setBinaryStream((InputStream) value); } else if (value instanceof BigDecimal) { setBigDecimal((BigDecimal) value); } else if (value instanceof Blob) { setBinaryStream(((Blob) value).getBinaryStream()); } else if (value instanceof Boolean) { setBoolean(((Boolean) value).booleanValue()); } else if (value instanceof Byte) { setByte(((Byte) value).byteValue()); } else if (value instanceof byte[]) { setBytes((byte[]) value); } else if (value instanceof Date) { setDate((Date) value); } else if (value instanceof Double) { setDouble(((Double) value).doubleValue()); } else if (value instanceof Float) { setFloat(((Float) value).floatValue()); } else if (value instanceof Integer) { setInteger(((Integer) value).intValue()); } else if (value instanceof Long) { setLong(((Long) value).longValue()); } else if (value instanceof Short) { setShort(((Short) value).shortValue()); } else if (value instanceof String) { setString((String) value); } else if (value instanceof Time) { setTime((Time) value); } else if (value instanceof Timestamp) { setTimestamp((Timestamp) value); } else { throw (SQLException) createException( OBJECT_CONVERSION_ERROR).fillInStackTrace(); } } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/0e421973c2ccc32dad59dc9dfb8faebabd131d31/FBField.java/buggy/src/org/firebirdsql/jdbc/FBField.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
20530,
12,
921,
460,
13,
1216,
6483,
288,
3639,
1748,
3639,
604,
261,
23116,
13,
2640,
503,
12,
5411,
12166,
67,
2248,
5757,
67,
3589,
2934,
5935,
382,
6332,
5621,
3639,
1195,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
20530,
12,
921,
460,
13,
1216,
6483,
288,
3639,
1748,
3639,
604,
261,
23116,
13,
2640,
503,
12,
5411,
12166,
67,
2248,
5757,
67,
3589,
2934,
5935,
382,
6332,
5621,
3639,
1195,
3639,
... |
public String getHomeRoot() { if (homeRoot == null) { homeRoot = getProject().getProperty(HOME_ROOT); | public File getHomeRoot() { String aPath; if (this.homeRoot == null) { aPath = this.getProject().getProperty(HOME_ROOT); | public String getHomeRoot() { if (homeRoot == null) { homeRoot = getProject().getProperty(HOME_ROOT); if (homeRoot == null) { homeRoot = System.getProperty("user.home"); } } return homeRoot; } | 47899 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47899/79613a38b91e73bc59241796b4a32e50c9026cda/WOPropertiesHandler.java/buggy/src/java/org/objectstyle/woproject/ant/WOPropertiesHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7628,
1742,
2375,
1435,
288,
202,
202,
430,
261,
8712,
2375,
422,
446,
13,
288,
1082,
202,
8712,
2375,
273,
11080,
7675,
588,
1396,
12,
14209,
67,
9185,
1769,
1082,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
7628,
1742,
2375,
1435,
288,
202,
202,
430,
261,
8712,
2375,
422,
446,
13,
288,
1082,
202,
8712,
2375,
273,
11080,
7675,
588,
1396,
12,
14209,
67,
9185,
1769,
1082,
202,
... |
protected void addMatchingMarkers() { | protected boolean addMatchingMarkers() { | protected void addMatchingMarkers() { Object[] all = markerView.getCurrentMarkers().getArray(); progressPart.beginTask( MarkerMessages.MarkerResolutionDialog_CalculatingTask, all.length); WorkbenchMarkerResolution[] existing = new WorkbenchMarkerResolution[resolutions.length]; System.arraycopy(resolutions, 0, existing, 0, existing.length); for (int i = 0; i < all.length; i++) { ConcreteMarker marker = (ConcreteMarker) all[i]; progressPart.subTask(NLS.bind( MarkerMessages.MarkerResolutionDialog_WorkingSubTask, marker.getDescription())); IMarkerResolution[] resolutions = IDE.getMarkerHelpRegistry() .getResolutions(marker.getMarker()); if (isCompatible(resolutions, existing)){ markersTable.add(marker.getMarker()); resolutionMap .put(marker.getMarker(),resolutions); } progressPart.worked(1); } progressPart.done(); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/979925a59e19734c0d2a268a93d76877ef54d587/MarkerResolutionDialog.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerResolutionDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
9517,
21644,
1435,
288,
202,
202,
921,
8526,
777,
273,
5373,
1767,
18,
588,
3935,
21644,
7675,
588,
1076,
5621,
202,
202,
8298,
1988,
18,
10086,
2174,
12,
9506,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
527,
9517,
21644,
1435,
288,
202,
202,
921,
8526,
777,
273,
5373,
1767,
18,
588,
3935,
21644,
7675,
588,
1076,
5621,
202,
202,
8298,
1988,
18,
10086,
2174,
12,
9506,
202,
... |
super(N); | super(N); | public SplitJoin2(int N) { super(N); } | 5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/b1f8aeb3a397f4241e4a905e8e42f0988432ee10/FFTLocal.java/clean/streams/apps/benchmarks/fft/streamit/FFTLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5385,
4572,
22,
12,
474,
423,
13,
288,
202,
9565,
12,
50,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5385,
4572,
22,
12,
474,
423,
13,
288,
202,
9565,
12,
50,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
lc.setRefIPD(referenceIPD - getIPIndents()); | lc.setRefIPD(contentIPD); | public void addAreas(PositionIterator parentIter, LayoutContext layoutContext) { getParentArea(null); getPSLM().addIDToPage(fobj.getId()); // if adjusted space before double adjust = layoutContext.getSpaceAdjust(); addBlockSpacing(adjust, spaceBefore); spaceBefore = null; int startXOffset = fobj.getCommonMarginBlock().startIndent.getValue(this); // add column, body then row areas int tableHeight = 0; //Body childLM; LayoutContext lc = new LayoutContext(0); lc.setRefIPD(referenceIPD - getIPIndents()); contentLM.setStartXOffset(startXOffset); contentLM.addAreas(parentIter, lc); tableHeight += contentLM.getUsedBPD(); curBlockArea.setBPD(tableHeight); if (fobj.isSeparateBorderModel()) { TraitSetter.addBorders(curBlockArea, fobj.getCommonBorderPaddingBackground(), this); } TraitSetter.addBackground(curBlockArea, fobj.getCommonBorderPaddingBackground(), this); TraitSetter.addMargins(curBlockArea, fobj.getCommonBorderPaddingBackground(), fobj.getCommonMarginBlock(), this); TraitSetter.addBreaks(curBlockArea, fobj.getBreakBefore(), fobj.getBreakAfter()); flush(); // if adjusted space after addBlockSpacing(adjust, spaceAfter); //bodyBreaks.clear(); curBlockArea = null; } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e5e875900e4af10fb0bf6116c552373c4b580edd/TableLayoutManager.java/clean/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
28377,
12,
2555,
3198,
982,
2360,
16,
7682,
9995,
1042,
3511,
1042,
13,
288,
3639,
5089,
5484,
12,
2011,
1769,
3639,
1689,
4559,
49,
7675,
1289,
734,
774,
1964,
12,
27936,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
28377,
12,
2555,
3198,
982,
2360,
16,
7682,
9995,
1042,
3511,
1042,
13,
288,
3639,
5089,
5484,
12,
2011,
1769,
3639,
1689,
4559,
49,
7675,
1289,
734,
774,
1964,
12,
27936,... |
} | } | public Properties getParameters( HttpServletRequest req) throws ServletException, IOException { Properties params = new Properties() ; // Lets get the parameters we know we are supposed to get from the request object String del_meta_id = (req.getParameter("delete_meta_id")==null) ? "" : (req.getParameter("delete_meta_id")) ; params.setProperty("DEL_META_ID", del_meta_id) ; return params ;} | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/cbaf8fbf9eeaf7b9db5163cf0496eea1be5ce141/AdminDeleteDoc.java/buggy/servlets/AdminDeleteDoc.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6183,
10028,
12,
9984,
1111,
13,
1216,
16517,
16,
1860,
288,
1082,
202,
2297,
859,
273,
394,
6183,
1435,
274,
202,
759,
511,
2413,
336,
326,
1472,
732,
5055,
732,
854,
18405,
358,
336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6183,
10028,
12,
9984,
1111,
13,
1216,
16517,
16,
1860,
288,
1082,
202,
2297,
859,
273,
394,
6183,
1435,
274,
202,
759,
511,
2413,
336,
326,
1472,
732,
5055,
732,
854,
18405,
358,
336,
... |
stmt.setInt(1, folder.getId()); | int pos = 1; if (DebugConfig.enableMailboxGroup) stmt.setInt(pos++, mbox.getId()); stmt.setInt(pos++, folder.getId()); | public static List<UnderlyingData> getByFolder(Folder folder, byte type, byte sort) throws ServiceException { if (Mailbox.isCachedType(type)) throw ServiceException.INVALID_REQUEST("folders and tags must be retrieved from cache", null); Mailbox mbox = folder.getMailbox(); Connection conn = mbox.getOperationConnection(); ArrayList<UnderlyingData> result = new ArrayList<UnderlyingData>(); PreparedStatement stmt = null; ResultSet rs = null; try { stmt = conn.prepareStatement("SELECT " + DB_FIELDS + " FROM " + getMailItemTableName(folder.getMailboxId(), " mi") + " WHERE folder_id = ? AND type IN " + typeConstraint(type) + sortQuery(sort)); stmt.setInt(1, folder.getId()); rs = stmt.executeQuery(); while (rs.next()) result.add(constructItem(rs)); return result; } catch (SQLException e) { throw ServiceException.FAILURE("fetching items in folder " + folder.getId(), e); } finally { DbPool.closeResults(rs); DbPool.closeStatement(stmt); } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/f1be72d52deaf8675b97f101b1ec8231e1b9a5d7/DbMailItem.java/buggy/ZimbraServer/src/java/com/zimbra/cs/db/DbMailItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
32,
14655,
6291,
751,
34,
9979,
3899,
12,
3899,
3009,
16,
1160,
618,
16,
1160,
1524,
13,
1216,
16489,
288,
3639,
309,
261,
30239,
18,
291,
9839,
559,
12,
723,
3719,
5411... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
987,
32,
14655,
6291,
751,
34,
9979,
3899,
12,
3899,
3009,
16,
1160,
618,
16,
1160,
1524,
13,
1216,
16489,
288,
3639,
309,
261,
30239,
18,
291,
9839,
559,
12,
723,
3719,
5411... |
public void testImportStatement_MultipleDots() throws Exception { Parser parser = newParser( "import cheddar.cheese.Toast" ); | public void testImportStatement_MultipleDots() throws Exception { Parser parser = newParser("import cheddar.cheese.Toast"); | public void testImportStatement_MultipleDots() throws Exception { Parser parser = newParser( "import cheddar.cheese.Toast" ); CSTNode root = parser.importStatement(); assertNode( root, "import", Token.KEYWORD_IMPORT, 2 ); { assertNode( root.getChild( 0 ), ".", Token.DOT, 2 ); { assertNode( root.getChild( 0 ).getChild( 0 ), ".", Token.DOT, 2 ); { assertNode( root.getChild( 0 ).getChild( 0 ).getChild( 0 ), "cheddar", Token.IDENTIFIER, 0 ); assertNode( root.getChild( 0 ).getChild( 0 ).getChild( 1 ), "cheese", Token.IDENTIFIER, 0 ); } assertNode( root.getChild( 0 ).getChild( 1 ), "Toast", Token.IDENTIFIER, 0 ); } assertNullNode( root.getChild( 1 ), 0 ); } } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/3d37acd34fcf44c4a51bd104ef70043af62c7d99/ParserTest.java/clean/src/test/org/codehaus/groovy/syntax/parser/ParserTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5010,
3406,
67,
8438,
40,
6968,
1435,
3639,
1216,
1185,
565,
288,
3639,
6783,
2082,
273,
394,
2678,
12,
315,
5666,
462,
329,
72,
297,
18,
18706,
3392,
18,
774,
689,
6,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
5010,
3406,
67,
8438,
40,
6968,
1435,
3639,
1216,
1185,
565,
288,
3639,
6783,
2082,
273,
394,
2678,
12,
315,
5666,
462,
329,
72,
297,
18,
18706,
3392,
18,
774,
689,
6,
... |
if (!appInfoSchemaLocation.equals("")) | if (!appInfoSchemaLocation.equals("")) | public void modifyText(ModifyEvent e) { categoryName = nameText.getText(); // name is in the invalid List if (invalidNames != null) { if (invalidNames.contains(categoryName.trim())) { isCategoryNameValid = false; getButton(IDialogConstants.OK_ID).setEnabled(false); errDisplayer.setText("The name is already being used."); errDisplayer.setImage(XSDEditorPlugin.getXSDImage("icons/error_st_obj.gif")); return; } } // name is empty string if (categoryName.equals("")) { isCategoryNameValid = false; getButton(IDialogConstants.OK_ID).setEnabled(false); errDisplayer.setText(""); errDisplayer.setImage(null); return; } /* * Enable the Ok button if the location field AND the name field are not * empty */ if (!categoryName.equals("")) { isCategoryNameValid = true; errDisplayer.setText(""); errDisplayer.setImage(null); } if (!appInfoSchemaLocation.equals("")) { getButton(IDialogConstants.OK_ID).setEnabled(true); } } | 13989 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13989/62c89ad1fbc07ee51dde873a5a1d9b4784eaf3f9/AddNewCategoryDialog.java/buggy/bundles/org.eclipse.wst.xsd.ui/src-common/org/eclipse/wst/xsd/ui/internal/common/properties/sections/appinfo/AddNewCategoryDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1377,
288,
3639,
3150,
461,
273,
508,
1528,
18,
588,
1528,
5621,
3639,
368,
508,
353,
316,
326,
2057,
987,
3639,
309,
261,
5387,
1557,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
1377,
288,
3639,
3150,
461,
273,
508,
1528,
18,
588,
1528,
5621,
3639,
368,
508,
353,
316,
326,
2057,
987,
3639,
309,
261,
5387,
1557,
... |
if (newPart == null) { WorkbenchPage page = (WorkbenchPage) ref.getPage(); newPart = new ViewPane((IViewReference) ref, page); ref.setPane(newPart); } | public static final ViewPane createView(ViewFactory factory, String viewId) throws PartInitException { WorkbenchPartReference ref = (WorkbenchPartReference) factory .createView(viewId); ViewPane newPart = (ViewPane) ref.getPane(); if (newPart == null) { WorkbenchPage page = (WorkbenchPage) ref.getPage(); newPart = new ViewPane((IViewReference) ref, page); ref.setPane(newPart); } return newPart; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e63fb57c60e1285097cb8d21d56f8acdff80e7de/LayoutHelper.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/LayoutHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
4441,
8485,
15193,
12,
1767,
1733,
3272,
16,
514,
1476,
548,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
4147,
22144,
1988,
2404,
1278,
273,
261,
2421,
22144,
1988,
2404,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
727,
4441,
8485,
15193,
12,
1767,
1733,
3272,
16,
514,
1476,
548,
13,
5411,
1216,
6393,
2570,
503,
288,
3639,
4147,
22144,
1988,
2404,
1278,
273,
261,
2421,
22144,
1988,
2404,
... | |
if (mainProcessorDefinition == null) { mainProcessorDefinition = new ProcessorDefinition(); mainProcessorDefinition.setUri(DEFAULT_PROCESSOR_URI); mainProcessorDefinition.addInput(DEFAULT_PROCESSOR_INPUT_NAME, DEFAULT_PROCESSOR_INPUT_URL); } | public synchronized void init(ProcessorDefinition mainProcessorDefinition) { if (initialized) { logger.debug("ProcessorService is already initialized. Skipping new initialization."); return; } try { // Create initial context jndiContext = new InitialContext(); // Create default definition if needed if (mainProcessorDefinition == null) { mainProcessorDefinition = new ProcessorDefinition(); mainProcessorDefinition.setUri(DEFAULT_PROCESSOR_URI); mainProcessorDefinition.addInput(DEFAULT_PROCESSOR_INPUT_NAME, DEFAULT_PROCESSOR_INPUT_URL); } // Create and connect main processor mainProcessor = InitUtils.createProcessor(mainProcessorDefinition); // Create and connect error processor // TODO: make this configurable like the main processor try { QName processorQName = OXFProperties.instance().getPropertySet().getQName(ERROR_PROCESSOR_URI_PROPERTY); if (processorQName != null) { errorProcessor = ProcessorFactoryRegistry.lookup(processorQName).createInstance(new PipelineContext()); // Add inputs for (Iterator i = OXFProperties.instance().keySet().iterator(); i.hasNext();) { String key = (String) i.next(); if (key.startsWith(ERROR_PROCESSOR_INPUT_PROPERTY_PREFIX)) { // It's an input String inputName = key.substring(ERROR_PROCESSOR_INPUT_PROPERTY_PREFIX.length()); String inputSrc = OXFProperties.instance().getPropertySet().getStringOrURIAsString(key); Processor urlGenerator = PipelineUtils.createURLGenerator(inputSrc); PipelineUtils.connect(urlGenerator, ProcessorImpl.OUTPUT_DATA, errorProcessor, inputName); } } } } catch (Exception e) { logger.warn("Can't instanciate the error pipeline", e); } initialized = true; } catch (Exception e) { throw new OXFException(e); } } | 10097 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10097/e6be08b8bdb9b840876e25b54dcaab3ad2234c7c/ProcessorService.java/buggy/src/java/org/orbeon/oxf/webapp/ProcessorService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1208,
12,
5164,
1852,
2774,
5164,
1852,
13,
288,
3639,
309,
261,
13227,
13,
288,
5411,
1194,
18,
4148,
2932,
5164,
1179,
353,
1818,
6454,
18,
27455,
394,
10313,
1199,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
918,
1208,
12,
5164,
1852,
2774,
5164,
1852,
13,
288,
3639,
309,
261,
13227,
13,
288,
5411,
1194,
18,
4148,
2932,
5164,
1179,
353,
1818,
6454,
18,
27455,
394,
10313,
1199,
176... | |
LOG.info("query: " + expr.pprint()); | protected ResourceSet doQuery(String query, DocumentSet docs, NodeSet contextSet, String sortExpr) throws XMLDBException { LOG.debug("query: " + query); DBBroker broker = null; try { broker = brokerPool.get(user); StaticContext context = new StaticContext(broker); context.setBaseURI(collection.getPath()); Map.Entry entry; // declare namespace/prefix mappings for(Iterator i = namespaceDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); LOG.debug("prefix " + entry.getKey() + " = " + entry.getValue()); context.declareNamespace((String)entry.getKey(), (String)entry.getValue()); } // declare static variables for(Iterator i = variableDecls.entrySet().iterator(); i.hasNext(); ) { entry = (Map.Entry)i.next(); context.declareVariable((String)entry.getKey(), (String)entry.getValue()); } XPathLexer2 lexer = new XPathLexer2(new StringReader(query)); XPathParser2 parser = new XPathParser2(lexer, false); XPathTreeParser2 treeParser = new XPathTreeParser2(context); parser.xpath(); if(parser.foundErrors()) { LOG.debug(parser.getErrorMessage()); throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, parser.getErrorMessage()); } AST ast = parser.getAST(); LOG.debug("generated AST: " + ast.toStringList()); PathExpr expr = new PathExpr(context); treeParser.xpath(ast, expr); if(treeParser.foundErrors()) { throw new XMLDBException(ErrorCodes.UNKNOWN_ERROR, treeParser.getErrorMessage(), treeParser.getLastException()); } LOG.info("query: " + expr.pprint()); long start = System.currentTimeMillis(); //if (parser.foundErrors()) // throw new XMLDBException(ErrorCodes.VENDOR_ERROR, parser.getErrorMsg()); Sequence result = null;// docs = (docs == null ? expr.preselect() : expr.preselect(docs));// if (docs.getLength() == 0) {// result = Sequence.EMPTY_SEQUENCE;// LOG.info("no documents!");// } else result = expr.eval(docs, contextSet, null); LOG.info( expr.pprint() + " found: " + result.getLength() + " in " + (System.currentTimeMillis() - start) + "ms."); LocalResourceSet resultSet = new LocalResourceSet( user, brokerPool, collection, result, sortExpr); return resultSet; } catch (antlr.RecognitionException re) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, re.getMessage(), re); } catch (antlr.TokenStreamException te) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, te.getMessage(), te); } catch (IllegalArgumentException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (XPathException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } catch (EXistException e) { throw new XMLDBException(ErrorCodes.VENDOR_ERROR, e.getMessage(), e); } finally { brokerPool.release(broker); } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/LocalXPathQueryService.java/clean/src/org/exist/xmldb/LocalXPathQueryService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2591,
694,
741,
1138,
12,
780,
843,
16,
4319,
694,
3270,
16,
3196,
202,
907,
694,
819,
694,
16,
514,
1524,
4742,
13,
202,
202,
15069,
26014,
503,
288,
3639,
2018,
18,
4148,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
2591,
694,
741,
1138,
12,
780,
843,
16,
4319,
694,
3270,
16,
3196,
202,
907,
694,
819,
694,
16,
514,
1524,
4742,
13,
202,
202,
15069,
26014,
503,
288,
3639,
2018,
18,
4148,
... | |
int flags = Pattern.MULTILINE; | int flags = Pattern.MULTILINE; | int translateFlags(int options) { int flags = Pattern.MULTILINE; if ((options & ReOptions.RE_OPTION_IGNORECASE) > 0) { flags |= Pattern.CASE_INSENSITIVE; } if ((options & ReOptions.RE_OPTION_EXTENDED) > 0) { flags |= Pattern.COMMENTS; } if ((options & ReOptions.RE_OPTION_MULTILINE) > 0) { flags |= Pattern.DOTALL; } return flags; } | 46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/2c27b59d0859c8f4097e71f0b43756b07d481510/RegexpTranslator.java/clean/src/org/jruby/RegexpTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
4204,
5094,
12,
474,
702,
13,
288,
3639,
509,
2943,
273,
6830,
18,
12845,
30690,
31,
3639,
309,
14015,
2116,
473,
868,
1320,
18,
862,
67,
7425,
67,
20118,
13415,
13,
405,
374,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
474,
4204,
5094,
12,
474,
702,
13,
288,
3639,
509,
2943,
273,
6830,
18,
12845,
30690,
31,
3639,
309,
14015,
2116,
473,
868,
1320,
18,
862,
67,
7425,
67,
20118,
13415,
13,
405,
374,... |
plugin = ks.substring(0, to); data = ks.substring(to + 1); | plugin = path.substring(0, to); data = path.substring(to + 1); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException { //String basepath = "/plugins/"; String ks = uri.getPath(); if(ks.startsWith("/")) ks = ks.substring(1); ks = ks.substring("plugins/".length()); Logger.minor(this, "Pproxy fetching "+ks); try { if (ks.equals("")) { StringBuffer out = new StringBuffer(); ctx.getPageMaker().makeHead(out, "Plugin List"); out.append("<table style=\"border: 1pt solid #c0c0c0;\">"); out.append(" <tr>\n"); out.append(" <th>Name</th>\n"); out.append(" <th>ID</th>\n"); out.append(" <th>Started</th>\n"); out.append(" <th></th>\n"); out.append(" </tr>\n"); Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); out.append(" <tr>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getPluginClassName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + pi.getThreadName() + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">" + (new Date(pi.getStarted())) + "</td>\n"); out.append(" <td style=\"border: 1pt solid #c0c0c0;\">"); if (pi.isPproxyPlugin()) out.append(" <a href=\""+pi.getPluginClassName()+"/\">[VISIT]</a> "); out.append(" <a href=\"?remove="+pi.getThreadName()+"\">[UNLOAD]</a> "); out.append(" <a href=\"?reload="+pi.getThreadName()+"\">[RELOAD]</a> "); out.append("</td>\n"); out.append(" </tr>\n"); } if (pm.getPlugins().isEmpty()) { out.append("<tr>\n"); out.append("<td colspan=\"4\"\n"); out.append("<i>No plugins loaded</i>\n"); out.append("</td>\n"); out.append("</tr>\n"); } out.append("</table>"); //String ret = "<hr/>" + out.toString(); //ret = pm.dumpPlugins().replaceAll(",", "\n ").replaceAll("\"", " \" "); /*if (ret.length() < 6) ret += "<i>No plugins loaded</i>\n"; ret += "<hr/>";*/ // Obsolete //out.append("<form method=\"get\"><div>Remove plugin: (enter ID) <input type=\"text\" name=\"remove\" size=40/><input type=\"submit\" value=\"Remove\"/></div></form>\n"); out.append("<form method=\"get\" action=\".\"><div>Load plugin: <input type=\"text\" name=\"load\" size=\"40\"/><input type=\"submit\" value=\"Load\" /></div></form>\n"); ctx.getPageMaker().makeTail(out); writeReply(ctx, 200, "text/html", "OK", out.toString()); } else if (ks.startsWith("?remove=")) { pm.killPlugin(ks.substring("?remove=".length())); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Removing plugin", "Removing plugin...", ".", 5)); } else if (ks.startsWith("?load=")) { pm.startPlugin(ks.substring("?load=".length())); //writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Loading plugin", "Loading plugin...", ".", 5)); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } else if (ks.startsWith("?reload=")) { String fn = null; Iterator it = pm.getPlugins().iterator(); while (it.hasNext()) { PluginInfoWrapper pi = (PluginInfoWrapper) it.next(); if (pi.getThreadName().equals(ks.substring("?reload=".length()))) { fn = pi.getFilename(); break; } } if (fn == null) { writeReply(ctx, 200, "text/html", "OK", mkForwardPage("Error", "Plugin not found...", ".", 5)); } else { pm.killPlugin(ks.substring("?reload=".length())); pm.startPlugin(fn); MultiValueTable headers = new MultiValueTable(); headers.put("Location", "."); ctx.sendReplyHeaders(302, "Found", headers, null, 0); } } else { int to = ks.indexOf("/"); String plugin, data; if (to == -1) { plugin = ks; data = ""; } else { plugin = ks.substring(0, to); data = ks.substring(to + 1); } //pm.handleHTTPGet(plugin, data); HTTPRequest request = new HTTPRequest(data, uri.getRawQuery()); //writeReply(ctx, 200, "text/html", "OK", mkPage("plugin", pm.handleHTTPGet(plugin, data))); writeReply(ctx, 200, "text/html", "OK", pm.handleHTTPGet(plugin, request)); } //FetchResult result = fetch(key); //writeReply(ctx, 200, result.getMimeType(), "OK", result.asBucket()); } catch (PluginHTTPException ex) { // TODO: make it into html writeReply(ctx, ex.getCode(), ex.getMimeType(), ex.getDesc(), ex.getReply()); } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } } | 50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/b1b9fcf2f7a24a776052951252d7f304b96e9495/PproxyToadlet.java/clean/src/freenet/pluginmanager/PproxyToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1082,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
288,
202,
202,
759,
780,
23853,
273,
2206,
8... |
} | } | private ISubCategoryProvider getProvider(final IConfigurationElement element) { final ISubCategoryProvider[] providers = new ISubCategoryProvider[1]; final CoreException[] exceptions = new CoreException[1]; Platform.run(new ISafeRunnable() { public void run() { try { providers[0] = (ISubCategoryProvider) IDEWorkbenchPlugin .createExtension(element, CLASS); } catch (CoreException exception) { exceptions[0] = exception; } } /* * (non-Javadoc) Method declared on ISafeRunnable. */ public void handleException(Throwable e) { // Do nothing as Core will handle the logging } }); if (exceptions[0] != null){ Util.log(exceptions[0]); return null; } return providers[0]; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/MarkerSupportRegistry.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerSupportRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1676,
4457,
2249,
16137,
12,
6385,
467,
1750,
1046,
930,
13,
288,
9506,
202,
6385,
467,
1676,
4457,
2249,
8526,
9165,
273,
394,
467,
1676,
4457,
2249,
63,
21,
15533,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1676,
4457,
2249,
16137,
12,
6385,
467,
1750,
1046,
930,
13,
288,
9506,
202,
6385,
467,
1676,
4457,
2249,
8526,
9165,
273,
394,
467,
1676,
4457,
2249,
63,
21,
15533,
202,
... |
nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilClass.defineMethod("to_a", getMethodToA()); nilClass.defineMethod("inspect", getMethodInspect()); | nilClass.defineMethod("type", getMethod("m_type")); nilClass.defineMethod("to_i", getMethod("m_to_")); nilClass.defineMethod("to_s", getMethod("m_to_s")); nilClass.defineMethod("to_a", getMethod("m_to_a")); nilClass.defineMethod("inspect", getMethod("m_inspect")); | public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getObjectClass()); nilClass.defineMethod("type", getMethodType()); nilClass.defineMethod("to_i", getMethodToI()); nilClass.defineMethod("to_s", getMethodToS()); nilClass.defineMethod("to_a", getMethodToA()); nilClass.defineMethod("inspect", getMethodInspect()); nilClass.defineMethod("&", getMethodAnd()); nilClass.defineMethod("|", getMethodOr()); nilClass.defineMethod("^", getMethodXor()); nilClass.defineMethod("nil?", DefaultCallbackMethods.getMethodTrue()); nilClass.getRubyClass().undefMethod("new"); ruby.defineGlobalConstant("NIL", ruby.getNil()); return nilClass; } | 49476 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49476/60d09f0d06e157ff7d9bb828d89273706e4e2798/RbNilClass.java/clean/org/jruby/core/RbNilClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
12616,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
515,
797,
273,
22155,
18,
11255,
797,
2932,
12616,
797,
3113,
22155,
18,
588,
921,
797,
10663,
773... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
12616,
797,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
515,
797,
273,
22155,
18,
11255,
797,
2932,
12616,
797,
3113,
22155,
18,
588,
921,
797,
10663,
773... |
super(position); | super(position, NodeTypes.CLASSVARNODE); | public ClassVarNode(ISourcePosition position, String name) { super(position); this.name = name.intern(); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/6e15491217631472c05c6928672f9c7064a978b3/ClassVarNode.java/buggy/src/org/jruby/ast/ClassVarNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
1537,
907,
12,
45,
1830,
2555,
1754,
16,
514,
508,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
5237,
58,
4391,
2712,
1769,
3639,
333,
18,
529,
273,
508,
18,
267,
79... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1659,
1537,
907,
12,
45,
1830,
2555,
1754,
16,
514,
508,
13,
288,
3639,
2240,
12,
3276,
16,
2029,
2016,
18,
5237,
58,
4391,
2712,
1769,
3639,
333,
18,
529,
273,
508,
18,
267,
79... |
if (column.equals(queryID)) | if (column.equals(queryID) && queryIDindex < 0) | protected void processResultSet(Connection conn, ResultSet rs) throws IOException, SQLException { ResultSetMetaData rmeta = rs.getMetaData(); // process columnNames for required attribute indices for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(rankField)) rankIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(chrField)) chromIndex = i; else if (column.equals(strandField)) strandIndex = i; else otherIndices.add(new Integer(i)); } while (rs.next()) { Integer keyID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if ( keyID.intValue() != lastID ) { if ( lastID > -1 ) { //This is not the first ID in a batch, process the previous ID sequences seqWriter.writeSequences(new Integer(lastID), conn); } lastIDRowsProcessed = 0; // refresh for the new ID locations = new TreeMap(); headerinfo = new Hashtable(); calcLocation = null; } int start = rs.getInt(startIndex); if (start > 0) { // if start is not null, create a new SequenceLocation object from the chr, start, end, and strand String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); // order the locations by their rank in ascending order locations.put(rank, new SequenceLocation(chr, start, end, strand)); // keep track of the lowest start and highest end for the gene if (calcLocation == null) { calcLocation = new SequenceLocation(chr, start, end, strand); } else { if (start < calcLocation.getStart()) calcLocation = new SequenceLocation(chr, start, calcLocation.getEnd(), strand); if (end > calcLocation.getEnd()) calcLocation = new SequenceLocation(chr, calcLocation.getStart(), end, strand); } } // Rest can be duplicates, or novel values for a given field, collect lists of values for each field // currindex is now the last index of the DisplayIDs. Increment it, and iterate over the rest of the ResultSet to print the description for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null) { String field = attributes[currindex - 1].getField(); if (!fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if (headerinfo.containsKey(field)) { if (!((ArrayList) headerinfo.get(field)).contains(value)) ((ArrayList) headerinfo.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); headerinfo.put(field, values); } } } totalRows++; totalRowsThisExecute++; resultSetRowsProcessed++; lastID = keyID.intValue(); lastIDRowsProcessed++; } } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/6671cbbcb14579637249dca27eb9ceb0fb9c7b7d/UpStreamUTRSeqQueryRunner.java/clean/src/java/org/ensembl/mart/lib/UpStreamUTRSeqQueryRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
13198,
12,
1952,
1487,
16,
10842,
3597,
13,
1216,
1860,
16,
6483,
288,
3639,
10842,
6998,
436,
3901,
273,
3597,
18,
588,
6998,
5621,
7734,
368,
1207,
19975,
364,
1931,
15... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1207,
13198,
12,
1952,
1487,
16,
10842,
3597,
13,
1216,
1860,
16,
6483,
288,
3639,
10842,
6998,
436,
3901,
273,
3597,
18,
588,
6998,
5621,
7734,
368,
1207,
19975,
364,
1931,
15... |
} while (current != null); | } while (current != null); | public int getLevel() { // Variables TreeNode current; int count; // Lookup Parent count = -1; current = this; do { current = current.getParent(); count++; } while (current != null); return count; } // getLevel() | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/9e763280cf1369c9681ea91b32ae758840a76dc3/DefaultMutableTreeNode.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
17236,
1435,
288,
202,
202,
759,
23536,
202,
202,
12513,
202,
2972,
31,
202,
202,
474,
1082,
202,
1883,
31,
202,
202,
759,
8834,
9520,
202,
202,
1883,
273,
300,
21,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
17236,
1435,
288,
202,
202,
759,
23536,
202,
202,
12513,
202,
2972,
31,
202,
202,
474,
1082,
202,
1883,
31,
202,
202,
759,
8834,
9520,
202,
202,
1883,
273,
300,
21,
31,
... |
o.write(" on this object."); | o.write(" on this object. Generated automatically, DO NOT CHANGE!"); | private final void writeInvariant(Writer o, String classname, CodeFragment cf) throws IOException { o.write("/**"); o.write(lineSeparator); o.write(" An object representing ocl invariant "); o.write(cf.getName()); o.write(" on this object."); o.write(lineSeparator); o.write(" Generated automatically, DO NOT CHANGE!"); o.write(lineSeparator); o.write(" @author "); o.write(Instrumentor.OCL_AUTHOR); o.write(lineSeparator); o.write(" */private final "); o.write(Invariant.class.getName()); o.write(" "); o.write(Invariant.INVARIANT_OBJECT); o.write(cf.getName()); o.write("=new "); o.write(Invariant.class.getName()); o.write("(\""); o.write(cf.getName()); o.write("\", this);"); o.write("/**"); o.write(lineSeparator); o.write(" Checks ocl invariant "); o.write(cf.getName()); o.write(" on this object."); o.write(lineSeparator); o.write(" Generated automatically, DO NOT CHANGE!"); o.write(lineSeparator); o.write(" @author "); o.write(Instrumentor.OCL_AUTHOR); o.write(lineSeparator); o.write(" */public final void "); o.write(Invariant.INVARIANT_METHOD); o.write(cf.getName()); o.write("()"); o.write(lineSeparator); o.write(" {"); o.write(lineSeparator); if(tracechecking) { o.write(" System.out.println(\"checking ocl invariant '"); o.write(cf.getName()); o.write("' on object '\"+this+\"'.\");"); o.write(lineSeparator); } o.write(" tudresden.ocl.lib.OclAnyImpl.setFeatureListener("); o.write(Invariant.INVARIANT_OBJECT); o.write(cf.getName()); o.write(");"); o.write(lineSeparator); o.write(cf.getCode()); o.write(" tudresden.ocl.lib.OclAnyImpl.clearFeatureListener();"); o.write(lineSeparator); o.write(" if(!"); o.write(cf.getResultVariable()); o.write(".isTrue()) "); o.write(violationmacro); o.write("(\"violated ocl invariant '"); o.write(cf.getName()); o.write("' on object '\"+this+\"'"); if(config.logclass) o.write(" of class '\"+getClass().getName()+\"'"); o.write(".\");"); o.write(lineSeparator); o.write(" }"); } | 6381 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6381/24b73b3edb9488e3583972b20883311e5dce9ecb/OclInstrumentor.java/clean/ocl/src/tudresden/ocl/injection/ocl/OclInstrumentor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1045,
382,
8688,
12,
2289,
320,
16,
514,
7479,
16,
3356,
7456,
6080,
13,
1216,
1860,
202,
95,
202,
202,
83,
18,
2626,
2932,
26873,
8863,
202,
202,
83,
18,
2626,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
727,
918,
1045,
382,
8688,
12,
2289,
320,
16,
514,
7479,
16,
3356,
7456,
6080,
13,
1216,
1860,
202,
95,
202,
202,
83,
18,
2626,
2932,
26873,
8863,
202,
202,
83,
18,
2626,
1... |
} | } | public CreateLinkedResourceGroup(int type, Listener listener, IStringValue updatableResourceName) { this.type = type; this.listener = listener; this.updatableResourceName = updatableResourceName; if (updatableResourceName != null) { lastUpdatedValue = updatableResourceName.getValue(); } } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/e816513e58ce5e8aac27c7ab2d1aae964d5540df/CreateLinkedResourceGroup.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/CreateLinkedResourceGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1788,
13174,
18860,
12,
474,
618,
16,
10652,
2991,
16,
467,
19733,
2166,
8163,
19327,
13,
288,
3639,
333,
18,
723,
273,
618,
31,
3639,
333,
18,
12757,
273,
2991,
31,
202,
202,
221... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1788,
13174,
18860,
12,
474,
618,
16,
10652,
2991,
16,
467,
19733,
2166,
8163,
19327,
13,
288,
3639,
333,
18,
723,
273,
618,
31,
3639,
333,
18,
12757,
273,
2991,
31,
202,
202,
221... |
list1Viewer = new CheckboxTableViewer(parent, SWT.NONE); | list1Viewer = new CheckboxTableViewer(parent, SWT.NONE, false); | protected void createList1Viewer(Composite parent) { list1Viewer = new CheckboxTableViewer(parent, SWT.NONE); list1Viewer.setContentProvider(list1ContentProvider); list1Viewer.setLabelProvider(list1LabelProvider); list1Viewer.addCheckStateListener(this); list1Viewer.addSelectionChangedListener(this);} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/3b897574fcea8b9db8885a44dbe682407c3beec3/CheckboxDoubleListGroup.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/misc/CheckboxDoubleListGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
682,
21,
18415,
12,
9400,
982,
13,
288,
202,
1098,
21,
18415,
273,
394,
29213,
1388,
18415,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
1098,
21,
18415,
18,
542,
1350,
2249... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
752,
682,
21,
18415,
12,
9400,
982,
13,
288,
202,
1098,
21,
18415,
273,
394,
29213,
1388,
18415,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
202,
1098,
21,
18415,
18,
542,
1350,
2249... |
if(enabled) setChecked(!((EditorSite)editor.getEditorSite()).getReuseEditor()); else | if(enabled) { EditorSite site = (EditorSite)editor.getEditorSite(); EditorPane pane = (EditorPane)site.getPane(); pane.setPinEditorAction(this); setChecked(!(site).getReuseEditor()); } else { | protected void updateState() { if(window == null) { setChecked(false); setEnabled(false); return; } IWorkbenchPage page = window.getActivePage(); if(page == null) { setChecked(false); setEnabled(false); return; } IEditorPart editor = getActiveEditor(); boolean enabled = editor != null; setEnabled(enabled); if(enabled) setChecked(!((EditorSite)editor.getEditorSite()).getReuseEditor()); else setChecked(false);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/e5bfe7abb1ee06bc7775813f1eb0e830e55c1965/PinEditorAction.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/PinEditorAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1089,
1119,
1435,
288,
202,
430,
12,
5668,
422,
446,
13,
288,
202,
202,
542,
11454,
12,
5743,
1769,
202,
202,
542,
1526,
12,
5743,
1769,
202,
202,
2463,
31,
202,
97,
202,
45,
24... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
1089,
1119,
1435,
288,
202,
430,
12,
5668,
422,
446,
13,
288,
202,
202,
542,
11454,
12,
5743,
1769,
202,
202,
542,
1526,
12,
5743,
1769,
202,
202,
2463,
31,
202,
97,
202,
45,
24... |
gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); | private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; jSplitPane1 = new javax.swing.JSplitPane(); jScrollPane1 = new javax.swing.JScrollPane(); navigatorTree = new javax.swing.JTree(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); bugTree = new javax.swing.JTree(); reportPanel = new javax.swing.JPanel(); editProjectPanel = new javax.swing.JPanel(); jarFileLabel = new javax.swing.JLabel(); jarNameTextField = new javax.swing.JTextField(); addJarButton = new javax.swing.JButton(); jarFileListLabel = new javax.swing.JLabel(); sourceDirLabel = new javax.swing.JLabel(); srcDirTextField = new javax.swing.JTextField(); addSourceDirButton = new javax.swing.JButton(); sourceDirListLabel = new javax.swing.JLabel(); removeJarButton = new javax.swing.JButton(); removeSrcDirButton = new javax.swing.JButton(); jSeparator1 = new javax.swing.JSeparator(); browseJarButton = new javax.swing.JButton(); browseSrcDirButton = new javax.swing.JButton(); editProjectLabel = new javax.swing.JLabel(); jSeparator2 = new javax.swing.JSeparator(); findBugsButton = new javax.swing.JButton(); jSeparator4 = new javax.swing.JSeparator(); jScrollPane2 = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); jScrollPane3 = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); jMenuBar1 = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); closeProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); setTitle("FindBugs"); addWindowListener(new java.awt.event.WindowAdapter() { public void windowOpened(java.awt.event.WindowEvent evt) { formWindowOpened(evt); } public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); jSplitPane1.setResizeWeight(0.4); navigatorTree.setModel(createNavigatorTreeModel()); jScrollPane1.setViewportView(navigatorTree); jSplitPane1.setLeftComponent(jScrollPane1); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(bugTree, "BugTree"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Jar file:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); gridBagConstraints.weightx = 1.0; editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Jar Files:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source Dir:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 6; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); gridBagConstraints.weightx = 1.0; editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addSourceDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source Dirs:"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 7; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 5; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setText("..."); browseJarButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseJarButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 3; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setText("..."); browseSrcDirButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseSrcDirButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 6; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseSrcDirButton, gridBagConstraints); editProjectLabel.setBackground(new java.awt.Color(0, 0, 204)); editProjectLabel.setFont(new java.awt.Font("Dialog", 1, 24)); editProjectLabel.setForeground(new java.awt.Color(255, 255, 255)); editProjectLabel.setText("Project"); editProjectLabel.setOpaque(true); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setText("Find Bugs!"); findBugsButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findBugsButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 4; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(findBugsButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jScrollPane2.setPreferredSize(new java.awt.Dimension(259, 1)); jarFileList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); jarFileList.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane2.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 4; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.weighty = 0.7; editProjectPanel.add(jScrollPane2, gridBagConstraints); jScrollPane3.setPreferredSize(new java.awt.Dimension(259, 1)); sourceDirList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); sourceDirList.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); jScrollPane3.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); gridBagConstraints.weighty = 0.3; editProjectPanel.add(jScrollPane3, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); jSplitPane1.setRightComponent(viewPanel); getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER); jMenuBar1.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setText("New Project"); newProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { newProjectItemActionPerformed(evt); } }); fileMenu.add(newProjectItem); openProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); openProjectItem.setText("Open Project"); fileMenu.add(openProjectItem); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setText("Close Project"); fileMenu.add(closeProjectItem); fileMenu.add(jSeparator3); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setText("Exit"); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); jMenuBar1.add(fileMenu); setJMenuBar(jMenuBar1); pack(); }//GEN-END:initComponents | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/28ec3108776e388dcbf07f165a306955b3c18b87/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
525,
5521,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1208,
7171,
1435,
288,
759,
16652,
17,
16061,
30,
2738,
7171,
3639,
2252,
18,
2219,
88,
18,
6313,
6852,
8747,
31,
3639,
525,
5521,
8485,
21,
273,
394,
6863,
18,
5328,
310,
18... | |
MylarPlugin.getDefault().addWindowPartListener(browserTracker); | MylarMonitorPlugin.getDefault().addWindowPartListener(browserTracker); | public void run() { try { browserTracker = new BrowserTracker(); MylarPlugin.getDefault().addWindowPartListener(browserTracker); // workbench.addWindowListener(browserTracker);// IWorkbenchWindow[] windows = workbench.getWorkbenchWindows();// for (int i = 0; i < windows.length; i++) {// windows[i].addPageListener(browserTracker);// IWorkbenchPage[] pages = windows[i].getPages();// for (int j = 0; j < pages.length; j++) {// pages[j].addPartListener(browserTracker);// }// } } catch (Exception e) { MylarStatusHandler.fail(e, "Mylar Hypertext initialization failed", false); } } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/2e7eae84382d4bd28180a6f6e15a4f55e7a1db3d/MylarWebPlugin.java/clean/sandbox/org.eclipse.mylyn.web.ui/src/org/eclipse/mylyn/internal/web/MylarWebPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
11213,
8135,
273,
394,
15408,
8135,
5621,
6862,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
1289,
3829,
1988,
2223,
12,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
1435,
288,
9506,
202,
698,
288,
6862,
202,
11213,
8135,
273,
394,
15408,
8135,
5621,
6862,
202,
12062,
7901,
3773,
18,
588,
1868,
7675,
1289,
3829,
1988,
2223,
12,
1... |
handler = new IOHandlerSeekable(getRuntime(), path, modes); | handler = new IOHandlerSeekable(getRuntime(), newPath, newModes); | public void openInternal(String path, IOModes modes) { this.path = path; this.modes = modes; try { handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOException e) { throw IOError.fromException(getRuntime(), e); } } | 45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyFile.java/clean/src/org/jruby/RubyFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
3061,
12,
780,
589,
16,
1665,
18868,
12382,
13,
288,
3639,
333,
18,
803,
273,
589,
31,
3639,
333,
18,
19282,
273,
12382,
31,
3639,
775,
288,
5411,
1838,
273,
394,
1665,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1696,
3061,
12,
780,
589,
16,
1665,
18868,
12382,
13,
288,
3639,
333,
18,
803,
273,
589,
31,
3639,
333,
18,
19282,
273,
12382,
31,
3639,
775,
288,
5411,
1838,
273,
394,
1665,... |
case 344 : | case 339 : | protected void consumeRule(int act) { switch ( act ) { case 29 : // System.out.println("Type ::= PrimitiveType"); consumePrimitiveType(); break ; case 43 : // System.out.println("ReferenceType ::= ClassOrInterfaceType"); consumeReferenceType(); break ; case 52 : // System.out.println("QualifiedName ::= Name DOT SimpleName"); consumeQualifiedName(); break ; case 53 : // System.out.println("CompilationUnit ::= EnterCompilationUnit PackageDeclarationopt ImportDeclarationsopt"); consumeCompilationUnit(); break ; case 54 : // System.out.println("EnterCompilationUnit ::="); consumeEnterCompilationUnit(); break ; case 67 : // System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN LBRACE"); consumeCatchHeader(); break ; case 69 : // System.out.println("ImportDeclarations ::= ImportDeclarations ImportDeclaration"); consumeImportDeclarations(); break ; case 71 : // System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); consumeTypeDeclarations(); break ; case 72 : // System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); consumePackageDeclaration(); break ; case 73 : // System.out.println("PackageDeclarationName ::= package Name"); consumePackageDeclarationName(); break ; case 76 : // System.out.println("SingleTypeImportDeclaration ::= SingleTypeImportDeclarationName SEMICOLON"); consumeSingleTypeImportDeclaration(); break ; case 77 : // System.out.println("SingleTypeImportDeclarationName ::= import Name"); consumeSingleTypeImportDeclarationName(); break ; case 78 : // System.out.println("TypeImportOnDemandDeclaration ::= TypeImportOnDemandDeclarationName SEMICOLON"); consumeTypeImportOnDemandDeclaration(); break ; case 79 : // System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT MULTIPLY"); consumeTypeImportOnDemandDeclarationName(); break ; case 82 : // System.out.println("TypeDeclaration ::= SEMICOLON"); consumeEmptyTypeDeclaration(); break ; case 96 : // System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); consumeClassDeclaration(); break ; case 97 : // System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt ClassHeaderImplementsopt"); consumeClassHeader(); break ; case 98 : // System.out.println("ClassHeaderName ::= Modifiersopt class Identifier"); consumeClassHeaderName(); break ; case 99 : // System.out.println("ClassHeaderExtends ::= extends ClassType"); consumeClassHeaderExtends(); break ; case 100 : // System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); consumeClassHeaderImplements(); break ; case 102 : // System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType"); consumeInterfaceTypeList(); break ; case 103 : // System.out.println("InterfaceType ::= ClassOrInterfaceType"); consumeInterfaceType(); break ; case 106 : // System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration"); consumeClassBodyDeclarations(); break ; case 110 : // System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); consumeClassBodyDeclaration(); break ; case 111 : // System.out.println("Diet ::="); consumeDiet(); break ; case 112 : // System.out.println("Initializer ::= Diet NestedMethod Block"); consumeClassBodyDeclaration(); break ; case 119 : // System.out.println("ClassMemberDeclaration ::= SEMICOLON"); consumeEmptyClassMemberDeclaration(); break ; case 120 : // System.out.println("FieldDeclaration ::= Modifiersopt Type VariableDeclarators SEMICOLON"); consumeFieldDeclaration(); break ; case 122 : // System.out.println("VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator"); consumeVariableDeclarators(); break ; case 125 : // System.out.println("EnterVariable ::="); consumeEnterVariable(); break ; case 126 : // System.out.println("ExitVariableWithInitialization ::="); consumeExitVariableWithInitialization(); break ; case 127 : // System.out.println("ExitVariableWithoutInitialization ::="); consumeExitVariableWithoutInitialization(); break ; case 128 : // System.out.println("ForceNoDiet ::="); consumeForceNoDiet(); break ; case 129 : // System.out.println("RestoreDiet ::="); consumeRestoreDiet(); break ; case 134 : // System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); // set to true to consume a method with a body consumeMethodDeclaration(true); break ; case 135 : // System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); // set to false to consume a method without body consumeMethodDeclaration(false); break ; case 136 : // System.out.println("MethodHeader ::= MethodHeaderName MethodHeaderParameters MethodHeaderExtendedDims"); consumeMethodHeader(); break ; case 137 : // System.out.println("MethodPushModifiersHeader ::= MethodPushModifiersHeaderName MethodHeaderParameters"); consumeMethodHeader(); break ; case 138 : // System.out.println("MethodPushModifiersHeaderName ::= Modifiers Type PushModifiers Identifier LPAREN"); consumeMethodPushModifiersHeaderName(); break ; case 139 : // System.out.println("MethodPushModifiersHeaderName ::= Type PushModifiers Identifier LPAREN"); consumeMethodPushModifiersHeaderName(); break ; case 140 : // System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); consumeMethodHeaderName(); break ; case 141 : // System.out.println("MethodHeaderParameters ::= FormalParameterListopt RPAREN"); consumeMethodHeaderParameters(); break ; case 142 : // System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); consumeMethodHeaderExtendedDims(); break ; case 143 : // System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); consumeMethodHeaderThrowsClause(); break ; case 144 : // System.out.println("ConstructorHeader ::= ConstructorHeaderName MethodHeaderParameters..."); consumeConstructorHeader(); break ; case 145 : // System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); consumeConstructorHeaderName(); break ; case 147 : // System.out.println("FormalParameterList ::= FormalParameterList COMMA FormalParameter"); consumeFormalParameterList(); break ; case 148 : // System.out.println("FormalParameter ::= Modifiersopt Type VariableDeclaratorId"); // the boolean is used to know if the modifiers should be reset consumeFormalParameter(); break ; case 150 : // System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); consumeClassTypeList(); break ; case 151 : // System.out.println("ClassTypeElt ::= ClassType"); consumeClassTypeElt(); break ; case 152 : // System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt RBRACE"); consumeMethodBody(); break ; case 153 : // System.out.println("NestedMethod ::="); consumeNestedMethod(); break ; case 154 : // System.out.println("StaticInitializer ::= StaticOnly Block"); consumeStaticInitializer(); break ; case 155 : // System.out.println("StaticOnly ::= static"); consumeStaticOnly(); break ; case 156 : // System.out.println("ConstructorDeclaration ::= ConstructorHeader ConstructorBody"); consumeConstructorDeclaration() ; break ; case 157 : // System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); consumeInvalidConstructorDeclaration() ; break ; case 158 : // System.out.println("ConstructorBody ::= NestedMethod LBRACE ConstructorBlockStatementsopt RBRACE"); consumeConstructorBody(); break ; case 161 : // System.out.println("ConstructorBlockStatementsopt ::= ExplicitConstructorInvocation BlockStatements"); consumeConstructorBlockStatements(); break ; case 162 : // System.out.println("ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON"); consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.This); break ; case 163 : // System.out.println("ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON"); consumeExplicitConstructorInvocation(0,ExplicitConstructorCall.Super); break ; case 164 : // System.out.println("ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN"); consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.Super); break ; case 165 : // System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.Super); break ; case 166 : // System.out.println("ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(1, ExplicitConstructorCall.This); break ; case 167 : // System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN ArgumentListopt RPAREN..."); consumeExplicitConstructorInvocation(2, ExplicitConstructorCall.This); break ; case 168 : // System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); consumeInterfaceDeclaration(); break ; case 169 : // System.out.println("InterfaceHeader ::= InterfaceHeaderName InterfaceHeaderExtendsopt"); consumeInterfaceHeader(); break ; case 170 : // System.out.println("InterfaceHeaderName ::= Modifiersopt interface Identifier"); consumeInterfaceHeaderName(); break ; case 172 : // System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); consumeInterfaceHeaderExtends(); break ; case 175 : // System.out.println("InterfaceMemberDeclarations ::= InterfaceMemberDeclarations..."); consumeInterfaceMemberDeclarations(); break ; case 176 : // System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); consumeEmptyInterfaceMemberDeclaration(); break ; case 179 : // System.out.println("InterfaceMemberDeclaration ::= InvalidMethodDeclaration"); ignoreMethodBody(); break ; case 180 : // System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader ConstructorBody"); ignoreInvalidConstructorDeclaration(true); break ; case 181 : // System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader SEMICOLON"); ignoreInvalidConstructorDeclaration(false); break ; case 187 : // System.out.println("ArrayInitializer ::= LBRACE ,opt RBRACE"); consumeEmptyArrayInitializer(); break ; case 188 : // System.out.println("ArrayInitializer ::= LBRACE VariableInitializers RBRACE"); consumeArrayInitializer(); break ; case 189 : // System.out.println("ArrayInitializer ::= LBRACE VariableInitializers COMMA RBRACE"); consumeArrayInitializer(); break ; case 191 : // System.out.println("VariableInitializers ::= VariableInitializers COMMA VariableInitializer"); consumeVariableInitializers(); break ; case 192 : // System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); consumeBlock(); break ; case 193 : // System.out.println("OpenBlock ::="); consumeOpenBlock() ; break ; case 195 : // System.out.println("BlockStatements ::= BlockStatements BlockStatement"); consumeBlockStatements() ; break ; case 199 : // System.out.println("BlockStatement ::= InvalidInterfaceDeclaration"); ignoreInterfaceDeclaration(); break ; case 200 : // System.out.println("LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON"); consumeLocalVariableDeclarationStatement(); break ; case 201 : // System.out.println("LocalVariableDeclaration ::= Type PushModifiers VariableDeclarators"); consumeLocalVariableDeclaration(); break ; case 202 : // System.out.println("LocalVariableDeclaration ::= Modifiers Type PushModifiers VariableDeclarators"); consumeLocalVariableDeclaration(); break ; case 203 : // System.out.println("PushModifiers ::="); consumePushModifiers(); break ; case 227 : // System.out.println("EmptyStatement ::= SEMICOLON"); consumeEmptyStatement(); break ; case 228 : // System.out.println("LabeledStatement ::= Identifier COLON Statement"); consumeStatementLabel() ; break ; case 229 : // System.out.println("LabeledStatementNoShortIf ::= Identifier COLON StatementNoShortIf"); consumeStatementLabel() ; break ; case 230 : // System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); consumeExpressionStatement(); break ; case 238 : // System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN Statement"); consumeStatementIfNoElse(); break ; case 239 : // System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else..."); consumeStatementIfWithElse(); break ; case 240 : // System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf..."); consumeStatementIfWithElse(); break ; case 241 : // System.out.println("SwitchStatement ::= switch OpenBlock LPAREN Expression RPAREN SwitchBlock"); consumeStatementSwitch() ; break ; case 242 : // System.out.println("SwitchBlock ::= LBRACE RBRACE"); consumeEmptySwitchBlock() ; break ; case 245 : // System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements SwitchLabels RBRACE"); consumeSwitchBlock() ; break ; case 247 : // System.out.println("SwitchBlockStatements ::= SwitchBlockStatements SwitchBlockStatement"); consumeSwitchBlockStatements() ; break ; case 248 : // System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); consumeSwitchBlockStatement() ; break ; case 250 : // System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); consumeSwitchLabels() ; break ; case 251 : // System.out.println("SwitchLabel ::= case ConstantExpression COLON"); consumeCaseLabel(); break ; case 252 : // System.out.println("SwitchLabel ::= default COLON"); consumeDefaultLabel(); break ; case 253 : // System.out.println("WhileStatement ::= while LPAREN Expression RPAREN Statement"); consumeStatementWhile() ; break ; case 254 : // System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf"); consumeStatementWhile() ; break ; case 255 : // System.out.println("DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON"); consumeStatementDo() ; break ; case 256 : // System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON..."); consumeStatementFor() ; break ; case 257 : // System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON"); consumeStatementFor() ; break ; case 258 : // System.out.println("ForInit ::= StatementExpressionList"); consumeForInit() ; break ; case 262 : // System.out.println("StatementExpressionList ::= StatementExpressionList COMMA StatementExpression"); consumeStatementExpressionList() ; break ; case 263 : // System.out.println("AssertStatement ::= assert Expression SEMICOLON"); consumeSimpleAssertStatement() ; break ; case 264 : // System.out.println("AssertStatement ::= assert Expression COLON Expression SEMICOLON"); consumeAssertStatement() ; break ; case 265 : // System.out.println("BreakStatement ::= break SEMICOLON"); consumeStatementBreak() ; break ; case 266 : // System.out.println("BreakStatement ::= break Identifier SEMICOLON"); consumeStatementBreakWithLabel() ; break ; case 267 : // System.out.println("ContinueStatement ::= continue SEMICOLON"); consumeStatementContinue() ; break ; case 268 : // System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); consumeStatementContinueWithLabel() ; break ; case 269 : // System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); consumeStatementReturn() ; break ; case 270 : // System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); consumeStatementThrow(); break ; case 271 : // System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN Expression RPAREN Block"); consumeStatementSynchronized(); break ; case 272 : // System.out.println("OnlySynchronized ::= synchronized"); consumeOnlySynchronized(); break ; case 273 : // System.out.println("TryStatement ::= try Block Catches"); consumeStatementTry(false); break ; case 274 : // System.out.println("TryStatement ::= try Block Catchesopt Finally"); consumeStatementTry(true); break ; case 276 : // System.out.println("Catches ::= Catches CatchClause"); consumeCatches(); break ; case 277 : // System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN Block"); consumeStatementCatch() ; break ; case 279 : // System.out.println("PushLPAREN ::= LPAREN"); consumeLeftParen(); break ; case 280 : // System.out.println("PushRPAREN ::= RPAREN"); consumeRightParen(); break ; case 285 : // System.out.println("PrimaryNoNewArray ::= this"); consumePrimaryNoNewArrayThis(); break ; case 286 : // System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression PushRPAREN"); consumePrimaryNoNewArray(); break ; case 289 : // System.out.println("PrimaryNoNewArray ::= Name DOT this"); consumePrimaryNoNewArrayNameThis(); break ; case 290 : // System.out.println("PrimaryNoNewArray ::= Name DOT super"); consumePrimaryNoNewArrayNameSuper(); break ; case 291 : // System.out.println("PrimaryNoNewArray ::= Name DOT class"); consumePrimaryNoNewArrayName(); break ; case 292 : // System.out.println("PrimaryNoNewArray ::= ArrayType DOT class"); consumePrimaryNoNewArrayArrayType(); break ; case 293 : // System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); consumePrimaryNoNewArrayPrimitiveType(); break ; case 296 : // System.out.println("AllocationHeader ::= new ClassType LPAREN ArgumentListopt RPAREN"); consumeAllocationHeader(); break ; case 297 : // System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN ArgumentListopt RPAREN..."); consumeClassInstanceCreationExpression(); break ; case 298 : // System.out.println("ClassInstanceCreationExpression ::= Primary DOT new SimpleName LPAREN..."); consumeClassInstanceCreationExpressionQualified() ; break ; case 299 : // System.out.println("ClassInstanceCreationExpression ::= ClassInstanceCreationExpressionName new..."); consumeClassInstanceCreationExpressionQualified() ; break ; case 300 : // System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); consumeClassInstanceCreationExpressionName() ; break ; case 301 : // System.out.println("ClassBodyopt ::="); consumeClassBodyopt(); break ; case 303 : // System.out.println("EnterAnonymousClassBody ::="); consumeEnterAnonymousClassBody(); break ; case 305 : // System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); consumeArgumentList(); break ; case 306 : // System.out.println("ArrayCreationHeader ::= new PrimitiveType DimWithOrWithOutExprs"); consumeArrayCreationHeader(); break ; case 307 : // System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType DimWithOrWithOutExprs"); consumeArrayCreationHeader(); break ; case 308 : // System.out.println("ArrayCreationWithoutArrayInitializer ::= new PrimitiveType DimWithOrWithOutExprs"); consumeArrayCreationExpressionWithoutInitializer(); break ; case 309 : // System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType DimWithOrWithOutExprs..."); consumeArrayCreationExpressionWithInitializer(); break ; case 310 : // System.out.println("ArrayCreationWithoutArrayInitializer ::= new ClassOrInterfaceType..."); consumeArrayCreationExpressionWithoutInitializer(); break ; case 311 : // System.out.println("ArrayCreationWithArrayInitializer ::= new ClassOrInterfaceType..."); consumeArrayCreationExpressionWithInitializer(); break ; case 313 : // System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs DimWithOrWithOutExpr"); consumeDimWithOrWithOutExprs(); break ; case 315 : // System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); consumeDimWithOrWithOutExpr(); break ; case 316 : // System.out.println("Dims ::= DimsLoop"); consumeDims(); break ; case 319 : // System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); consumeOneDimLoop(); break ; case 320 : // System.out.println("FieldAccess ::= Primary DOT Identifier"); consumeFieldAccess(false); break ; case 321 : // System.out.println("FieldAccess ::= super DOT Identifier"); consumeFieldAccess(true); break ; case 322 : // System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationName(); break ; case 323 : // System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationPrimary(); break ; case 324 : // System.out.println("MethodInvocation ::= super DOT Identifier LPAREN ArgumentListopt RPAREN"); consumeMethodInvocationSuper(); break ; case 325 : // System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); consumeArrayAccess(true); break ; case 326 : // System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression RBRACKET"); consumeArrayAccess(false); break ; case 327 : // System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer LBRACKET Expression RBRACKET"); consumeArrayAccess(false); break ; case 329 : // System.out.println("PostfixExpression ::= Name"); consumePostfixExpression(); break ; case 332 : // System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); consumeUnaryExpression(OperatorIds.PLUS,true); break ; case 333 : // System.out.println("PostDecrementExpression ::= PostfixExpression MINUS_MINUS"); consumeUnaryExpression(OperatorIds.MINUS,true); break ; case 334 : // System.out.println("PushPosition ::="); consumePushPosition(); break ; case 337 : // System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.PLUS); break ; case 338 : // System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.MINUS); break ; case 340 : // System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.PLUS,false); break ; case 341 : // System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.MINUS,false); break ; case 343 : // System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.TWIDDLE); break ; case 344 : // System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition UnaryExpression"); consumeUnaryExpression(OperatorIds.NOT); break ; case 346 : // System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt PushRPAREN InsideCastExpression"); consumeCastExpression(); break ; case 347 : // System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN InsideCastExpression..."); consumeCastExpression(); break ; case 348 : // System.out.println("CastExpression ::= PushLPAREN Expression PushRPAREN InsideCastExpressionLL1..."); consumeCastExpressionLL1(); break ; case 349 : // System.out.println("InsideCastExpression ::="); consumeInsideCastExpression(); break ; case 350 : // System.out.println("InsideCastExpressionLL1 ::="); consumeInsideCastExpressionLL1(); break ; case 352 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression"); consumeBinaryExpression(OperatorIds.MULTIPLY); break ; case 353 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression"); consumeBinaryExpression(OperatorIds.DIVIDE); break ; case 354 : // System.out.println("MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression"); consumeBinaryExpression(OperatorIds.REMAINDER); break ; case 356 : // System.out.println("AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression"); consumeBinaryExpression(OperatorIds.PLUS); break ; case 357 : // System.out.println("AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression"); consumeBinaryExpression(OperatorIds.MINUS); break ; case 359 : // System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break ; case 360 : // System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break ; case 361 : // System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT AdditiveExpression"); consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break ; case 363 : // System.out.println("RelationalExpression ::= RelationalExpression LESS ShiftExpression"); consumeBinaryExpression(OperatorIds.LESS); break ; case 364 : // System.out.println("RelationalExpression ::= RelationalExpression GREATER ShiftExpression"); consumeBinaryExpression(OperatorIds.GREATER); break ; case 365 : // System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression"); consumeBinaryExpression(OperatorIds.LESS_EQUAL); break ; case 366 : // System.out.println("RelationalExpression ::= RelationalExpression GREATER_EQUAL ShiftExpression"); consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break ; case 367 : // System.out.println("RelationalExpression ::= RelationalExpression instanceof ReferenceType"); consumeInstanceOfExpression(OperatorIds.INSTANCEOF); break ; case 369 : // System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression"); consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break ; case 370 : // System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression"); consumeEqualityExpression(OperatorIds.NOT_EQUAL); break ; case 372 : // System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); consumeBinaryExpression(OperatorIds.AND); break ; case 374 : // System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression"); consumeBinaryExpression(OperatorIds.XOR); break ; case 376 : // System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression"); consumeBinaryExpression(OperatorIds.OR); break ; case 378 : // System.out.println("ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression"); consumeBinaryExpression(OperatorIds.AND_AND); break ; case 380 : // System.out.println("ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression"); consumeBinaryExpression(OperatorIds.OR_OR); break ; case 382 : // System.out.println("ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON..."); consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break ; case 385 : // System.out.println("Assignment ::= PostfixExpression AssignmentOperator AssignmentExpression"); consumeAssignment(); break ; case 387 : // System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); ignoreExpressionAssignment(); break ; case 388 : // System.out.println("AssignmentOperator ::= EQUAL"); consumeAssignmentOperator(EQUAL); break ; case 389 : // System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); consumeAssignmentOperator(MULTIPLY); break ; case 390 : // System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); consumeAssignmentOperator(DIVIDE); break ; case 391 : // System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); consumeAssignmentOperator(REMAINDER); break ; case 392 : // System.out.println("AssignmentOperator ::= PLUS_EQUAL"); consumeAssignmentOperator(PLUS); break ; case 393 : // System.out.println("AssignmentOperator ::= MINUS_EQUAL"); consumeAssignmentOperator(MINUS); break ; case 394 : // System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); consumeAssignmentOperator(LEFT_SHIFT); break ; case 395 : // System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); consumeAssignmentOperator(RIGHT_SHIFT); break ; case 396 : // System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break ; case 397 : // System.out.println("AssignmentOperator ::= AND_EQUAL"); consumeAssignmentOperator(AND); break ; case 398 : // System.out.println("AssignmentOperator ::= XOR_EQUAL"); consumeAssignmentOperator(XOR); break ; case 399 : // System.out.println("AssignmentOperator ::= OR_EQUAL"); consumeAssignmentOperator(OR); break ; case 406 : // System.out.println("Expressionopt ::="); consumeEmptyExpression(); break ; case 410 : // System.out.println("ImportDeclarationsopt ::="); consumeEmptyImportDeclarationsopt(); break ; case 411 : // System.out.println("ImportDeclarationsopt ::= ImportDeclarations"); consumeImportDeclarationsopt(); break ; case 412 : // System.out.println("TypeDeclarationsopt ::="); consumeEmptyTypeDeclarationsopt(); break ; case 413 : // System.out.println("TypeDeclarationsopt ::= TypeDeclarations"); consumeTypeDeclarationsopt(); break ; case 414 : // System.out.println("ClassBodyDeclarationsopt ::="); consumeEmptyClassBodyDeclarationsopt(); break ; case 415 : // System.out.println("ClassBodyDeclarationsopt ::= NestedType ClassBodyDeclarations"); consumeClassBodyDeclarationsopt(); break ; case 416 : // System.out.println("Modifiersopt ::="); consumeDefaultModifiers(); break ; case 417 : // System.out.println("Modifiersopt ::= Modifiers"); consumeModifiers(); break ; case 418 : // System.out.println("BlockStatementsopt ::="); consumeEmptyBlockStatementsopt(); break ; case 420 : // System.out.println("Dimsopt ::="); consumeEmptyDimsopt(); break ; case 422 : // System.out.println("ArgumentListopt ::="); consumeEmptyArgumentListopt(); break ; case 426 : // System.out.println("FormalParameterListopt ::="); consumeFormalParameterListopt(); break ; case 430 : // System.out.println("InterfaceMemberDeclarationsopt ::="); consumeEmptyInterfaceMemberDeclarationsopt(); break ; case 431 : // System.out.println("InterfaceMemberDeclarationsopt ::= NestedType InterfaceMemberDeclarations"); consumeInterfaceMemberDeclarationsopt(); break ; case 432 : // System.out.println("NestedType ::="); consumeNestedType(); break ; case 433 : // System.out.println("ForInitopt ::="); consumeEmptyForInitopt(); break ; case 435 : // System.out.println("ForUpdateopt ::="); consumeEmptyForUpdateopt(); break ; case 439 : // System.out.println("Catchesopt ::="); consumeEmptyCatchesopt(); break ; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/ca8ac59322f9a5546de88cf1c276f2947f3dabe2/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
368,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
1082,
565,
7865,
9840... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
368,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
1082,
565,
7865,
9840... |
testFile = FileUtil.createFile("testDir/tempFile.txt", "test content"); | testFile = FileUtil.createFile("testdir/tempFile.txt", "test content"); | public void setUp() throws Exception { context = new FitNesseContext(); context.rootPagePath = "testdir"; FileUtil.makeDir("testdir"); FileUtil.makeDir("testdir/files"); testFile = FileUtil.createFile("testDir/tempFile.txt", "test content"); responder = new UploadResponder(); request = new MockRequest(); } | 6058 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6058/ec2576158a28bfaeeb5879001e3d4802a1e122b1/UploadResponderTest.java/clean/src/fitnesse/responders/files/UploadResponderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
1185,
202,
95,
565,
819,
273,
394,
30504,
50,
281,
307,
1042,
5621,
565,
819,
18,
3085,
1964,
743,
273,
315,
3813,
1214,
14432,
202,
202,
812,
1304,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
24292,
1435,
1216,
1185,
202,
95,
565,
819,
273,
394,
30504,
50,
281,
307,
1042,
5621,
565,
819,
18,
3085,
1964,
743,
273,
315,
3813,
1214,
14432,
202,
202,
812,
1304,
18... |
if ((derived.getXSType() & XSTypeDecl.SIMPLE_TYPE) != 0) { | if (derived.getXSType() == XSTypeDecl.SIMPLE_TYPE) { | public static boolean checkTypeDerivationOk(XSTypeDecl derived, XSTypeDecl base, int block) { // if derived is anyType, then it's valid only if base is anyType too if (derived.getXSType() == XSTypeDecl.ANY_TYPE) return derived == base; // if derived is anySimpleType, then it's valid only if the base // is ur-type if (derived.getXSType() == XSTypeDecl.ANYSIMPLE_TYPE) return (base.getXSType() & XSTypeDecl.UR_TYPE) != 0; // if derived is simple type if ((derived.getXSType() & XSTypeDecl.SIMPLE_TYPE) != 0) { // if base is complex type if ((base.getXSType() & XSTypeDecl.COMPLEX_TYPE) != 0) { // if base is anyType, change base to anySimpleType, // otherwise, not valid if (base.getXSType() == XSTypeDecl.ANY_TYPE) base = SchemaGrammar.SG_SchemaNS.getGlobalTypeDecl(SchemaSymbols.ATTVAL_ANYSIMPLETYPE); else return false; } return checkSimpleDerivation((DatatypeValidator)derived, (DatatypeValidator)base, block); } else { return checkComplexDerivation((XSComplexTypeDecl)derived, base, block); } } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/4b0def86a1a96df8c8cbd5bf50c757023d94325b/XSConstraints.java/buggy/src/org/apache/xerces/impl/v2/XSConstraints.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
23008,
12041,
8482,
8809,
12,
60,
55,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
309,
10379,
353,
1281,
559,
16,
1508,
518,
180... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1250,
23008,
12041,
8482,
8809,
12,
60,
55,
559,
3456,
10379,
16,
1139,
55,
559,
3456,
1026,
16,
509,
1203,
13,
288,
3639,
368,
309,
10379,
353,
1281,
559,
16,
1508,
518,
180... |
if (isValue) return read_value(); | if (isObject) return read_Object(); | public Object read_abstract_interface() { boolean isValue = read_boolean(); if (isValue) return read_value(); else return read_Object(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/44e3ea509d80974dab547c4d1cf8c070d32bac86/InputStream.java/clean/core/src/classpath/org/org/omg/CORBA_2_3/portable/InputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
855,
67,
17801,
67,
5831,
1435,
225,
288,
565,
1250,
21578,
273,
855,
67,
6494,
5621,
565,
309,
261,
291,
620,
13,
1377,
327,
855,
67,
1132,
5621,
565,
469,
1377,
327,
855,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1033,
855,
67,
17801,
67,
5831,
1435,
225,
288,
565,
1250,
21578,
273,
855,
67,
6494,
5621,
565,
309,
261,
291,
620,
13,
1377,
327,
855,
67,
1132,
5621,
565,
469,
1377,
327,
855,
... |
Logger.normal(this, "Removing ack request twice? Null on "+seqNo+" from "+pn.getPeer()+" ("+(int) pn.pingAverage.currentValue()+"ms ping avg)"); | Logger.normal(this, "Removing ack request twice? Null on "+seqNo+" from "+pn.getPeer()+" ("+TimeUtil.formatTime((int) pn.pingAverage.currentValue(), 2, true)+" ping avg)"); | private void removeAckRequest(int seqNo) throws UpdatableSortedLinkedListKilledException { QueuedAckRequest qr = (QueuedAckRequest)ackRequestQueue.removeByKey(new Integer(seqNo)); if(qr != null) qr.onAcked(); else Logger.normal(this, "Removing ack request twice? Null on "+seqNo+" from "+pn.getPeer()+" ("+(int) pn.pingAverage.currentValue()+"ms ping avg)"); } | 48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/e3e1385af7111953dc0be72e3d64baca37a22231/KeyTracker.java/clean/src/freenet/node/KeyTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1206,
11931,
691,
12,
474,
3833,
2279,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
3639,
27949,
5957,
11931,
691,
12677,
273,
261,
21039,
11931,
691,
13,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1206,
11931,
691,
12,
474,
3833,
2279,
13,
1216,
1948,
3404,
429,
11739,
13174,
682,
47,
13148,
503,
288,
3639,
27949,
5957,
11931,
691,
12677,
273,
261,
21039,
11931,
691,
13,
... |
requiredDeclarations ); | null ); | public PredicateConstraint(final Declaration declaration, final Declaration[] requiredDeclarations) { this( null, declaration, requiredDeclarations ); } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/0f829ce8bb17b0e62e967cc0206874476d49c3e2/PredicateConstraint.java/buggy/drools-core/src/main/java/org/drools/rule/PredicateConstraint.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10202,
5806,
12,
6385,
16110,
4302,
8266,
16,
1171,
9079,
727,
16110,
4302,
8526,
1931,
21408,
13,
288,
3639,
333,
12,
446,
16,
2868,
8266,
16,
2868,
446,
11272,
565,
289,
2,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10202,
5806,
12,
6385,
16110,
4302,
8266,
16,
1171,
9079,
727,
16110,
4302,
8526,
1931,
21408,
13,
288,
3639,
333,
12,
446,
16,
2868,
8266,
16,
2868,
446,
11272,
565,
289,
2,
-100,
... |
else { for (int i = startIndex; i >= 0; i--) { String item = model.getElementAt(i).toString(); if (item.startsWith(prefix)) { index = i; break; } } } return index; | return result; | public int getNextMatch(String prefix, int startIndex, Position.Bias bias) { if (prefix == null) throw new IllegalArgumentException("The argument 'prefix' must not be" + " null."); if (startIndex < 0) throw new IllegalArgumentException("The argument 'startIndex' must not" + " be less than zero."); int size = model.getSize(); if (startIndex > model.getSize()) throw new IllegalArgumentException("The argument 'startIndex' must not" + " be greater than the number of" + " elements in the ListModel."); int index = -1; if (bias == Position.Bias.Forward) { for (int i = startIndex; i < size; i++) { String item = model.getElementAt(i).toString(); if (item.startsWith(prefix)) { index = i; break; } } } else { for (int i = startIndex; i >= 0; i--) { String item = model.getElementAt(i).toString(); if (item.startsWith(prefix)) { index = i; break; } } } return index; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/JList.java/clean/core/src/classpath/javax/javax/swing/JList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
6927,
2060,
12,
780,
1633,
16,
509,
10588,
16,
11010,
18,
31645,
12005,
13,
225,
288,
565,
309,
261,
3239,
422,
446,
13,
1377,
604,
394,
2754,
2932,
1986,
1237,
296,
3239,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
509,
6927,
2060,
12,
780,
1633,
16,
509,
10588,
16,
11010,
18,
31645,
12005,
13,
225,
288,
565,
309,
261,
3239,
422,
446,
13,
1377,
604,
394,
2754,
2932,
1986,
1237,
296,
3239,
11... |
public void execute(HttpServletRequest request, Messages errores, Messages mensajes) { try { if (errores.isEmpty()) { // solo se ejecuta la accin si no hay errores acumulados // La siguiente condicin es para evitar que se ejecuta una accin de otro // mdulo visualizado en la misma pgina web (p. ej. en un portal) if (actionOfThisModule(request)) { String accionXava = request.getParameter("xava_action"); if (isFormUpload()) { accionXava = getDefaultActionQualifiedName(); // En los formulario upload ejecutamos la accin por defecto } if (!Is.emptyString(accionXava)) { String valorAccion = request.getParameter("xava_action_argv"); MetaAction a = MetaControllers.getMetaAction(accionXava); long ini = System.currentTimeMillis(); executeAction(a, errores, mensajes, valorAccion, request); long cuesta = System.currentTimeMillis() - ini; System.out.println("[ControladorWeb.ejecutar] " + accionXava + "=" + cuesta + " ms"); } } } } catch (Exception ex) { ex.printStackTrace(); errores.add("no_execute_action"); } } | 14127 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14127/7a3c9c76f093f8a531056cd194de193996defdc3/ModuleManager.java/buggy/OpenXava/src/org/openxava/controller/ModuleManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
2940,
18572,
590,
16,
4838,
6445,
303,
455,
16,
4838,
312,
773,
4365,
281,
13,
288,
9506,
202,
698,
288,
6862,
6862,
9506,
202,
430,
261,
264,
303,
455,
18,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1836,
12,
2940,
18572,
590,
16,
4838,
6445,
303,
455,
16,
4838,
312,
773,
4365,
281,
13,
288,
9506,
202,
698,
288,
6862,
6862,
9506,
202,
430,
261,
264,
303,
455,
18,
2... | ||
return source.replaceAll("\n"," "); | return source.trim( ).replaceAll( "\n", " " ); | private String formatQueryText(String source) { return source.replaceAll("\n"," "); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/4371353c5412f84f4917bd569e1969e10e38ffc4/Statement.java/clean/data/org.eclipse.birt.report.data.oda.jdbc/src/org/eclipse/birt/report/data/oda/jdbc/Statement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
740,
1138,
1528,
12,
780,
1084,
13,
202,
95,
202,
202,
2463,
1084,
18,
2079,
1595,
31458,
82,
15937,
315,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
740,
1138,
1528,
12,
780,
1084,
13,
202,
95,
202,
202,
2463,
1084,
18,
2079,
1595,
31458,
82,
15937,
315,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
for (int i = maxHitss.length() - 1; i >= 0; i--) { | for (int i = days.length() - 1; i >= 0; i--) { | public void modifyText(ModifyEvent e) { String maxHitss = maxHitsText.getText(); if (maxHitss.length() == 0) return; for (int i = maxHitss.length() - 1; i >= 0; i--) { try { if (maxHitss.equals("") || Integer.parseInt(maxHitss) > -1) { if (i == maxHitss.length() - 1) { maxHits = maxHitss; return; } else { break; } } } catch (NumberFormatException ex) { maxHitss = maxHitss.substring(0, i); } } BugzillaSearchPage.this.maxHits = maxHitss; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/f1213ea5e2cf811886d1cddc204b0d844e76584d/BugzillaSearchPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/search/BugzillaSearchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
288,
9506,
202,
780,
943,
13616,
1049,
273,
943,
20950,
1528,
18,
588,
1528,
5621,
9506,
202,
430,
261,
1896,
13616,
1049,
18,
2469,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
5612,
1528,
12,
11047,
1133,
425,
13,
288,
9506,
202,
780,
943,
13616,
1049,
273,
943,
20950,
1528,
18,
588,
1528,
5621,
9506,
202,
430,
261,
1896,
13616,
1049,
18,
2469,
... |
if (orderedFieldsArray != null) { return orderedFieldsArray; | if (orderedFieldsArray == null) { orderedFieldsArray = new int[fields.size()]; Iterator fieldItr = fields.iterator(); int i = 0; while (fieldItr.hasNext()) { orderedFieldsArray[i++] = ((Integer) fieldItr.next()).intValue(); } | int[] getOrderedFields() { if (orderedFieldsArray != null) { return orderedFieldsArray; } orderedFieldsArray = new int[orderedFields.size()]; for (int i = 0; i < orderedFields.size(); i++) { orderedFieldsArray[i] = ((Integer) orderedFields.get(i)).intValue(); } return orderedFieldsArray; } | 52211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52211/6f140a7c32d885d73de074e65f0860c06d313047/DataDictionary.java/clean/src/quickfix/DataDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8526,
11973,
329,
2314,
1435,
288,
3639,
309,
261,
9885,
2314,
1076,
480,
446,
13,
288,
5411,
327,
5901,
2314,
1076,
31,
3639,
289,
3639,
5901,
2314,
1076,
273,
394,
509,
63,
9885,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8526,
11973,
329,
2314,
1435,
288,
3639,
309,
261,
9885,
2314,
1076,
480,
446,
13,
288,
5411,
327,
5901,
2314,
1076,
31,
3639,
289,
3639,
5901,
2314,
1076,
273,
394,
509,
63,
9885,
... |
return new String[0]; | return history.getVersionLabels(); | public String[] getVersionLabels() { return new String[0]; // @todo implement VersionHistory#getVersionLabels() } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/85461cdb9cf077cd1d0aaac351c65ba422d5b5c2/VersionHistoryImpl.java/buggy/src/java/org/apache/jackrabbit/core/version/VersionHistoryImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
8343,
5888,
1435,
288,
3639,
327,
4927,
18,
588,
1444,
5888,
5621,
225,
368,
632,
9012,
2348,
4049,
5623,
7,
588,
1444,
5888,
1435,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
8343,
5888,
1435,
288,
3639,
327,
4927,
18,
588,
1444,
5888,
5621,
225,
368,
632,
9012,
2348,
4049,
5623,
7,
588,
1444,
5888,
1435,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
final ProjectFileIndex index = ProjectRootManager.getInstance(myDirectory.getProject()).getFileIndex(); final VirtualFile directory = myDirectory.getVirtualFile(); final VirtualFile contentRoot = index.getContentRootForFile(directory); if (contentRoot != null) { myFQName = VfsUtil.getRelativePath(directory, contentRoot.getParent(), File.separatorChar); | if (!showModules) { myFQName = myDirName; } else { final ProjectFileIndex index = ProjectRootManager.getInstance(myDirectory.getProject()).getFileIndex(); final VirtualFile directory = myDirectory.getVirtualFile(); final VirtualFile contentRoot = index.getContentRootForFile(directory); if (contentRoot != null) { myFQName = VfsUtil.getRelativePath(directory, contentRoot.getParent(), File.separatorChar); } | public DirectoryNode(PsiDirectory aDirectory, boolean compactPackages, boolean showFQName) { myDirectory = aDirectory; myDirName = aDirectory.getName(); myCompactPackages = compactPackages; if (showFQName) { final ProjectFileIndex index = ProjectRootManager.getInstance(myDirectory.getProject()).getFileIndex(); final VirtualFile directory = myDirectory.getVirtualFile(); final VirtualFile contentRoot = index.getContentRootForFile(directory); if (contentRoot != null) { myFQName = VfsUtil.getRelativePath(directory, contentRoot.getParent(), File.separatorChar); } } setUserObject(toString()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/308c03b3450f307fbe1510e6c3b116c65d76cbf9/DirectoryNode.java/buggy/source/com/intellij/packageDependencies/ui/DirectoryNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8930,
907,
12,
52,
7722,
2853,
279,
2853,
16,
1250,
6739,
11425,
16,
1250,
2405,
42,
13688,
13,
288,
565,
3399,
2853,
273,
279,
2853,
31,
565,
3399,
28780,
273,
279,
2853,
18,
179... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
8930,
907,
12,
52,
7722,
2853,
279,
2853,
16,
1250,
6739,
11425,
16,
1250,
2405,
42,
13688,
13,
288,
565,
3399,
2853,
273,
279,
2853,
31,
565,
3399,
28780,
273,
279,
2853,
18,
179... |
for ( Iterator j = sinks.iterator(); i.hasNext(); ) | for ( Iterator j = sinks.iterator(); j.hasNext(); ) | protected void closeReport() { int counter = 1; if ( !sinks.isEmpty() ) { for ( Iterator i = sinks.iterator(); i.hasNext(); ) { MultiPageSink currentSink = (MultiPageSink) i.next(); currentSink.paragraph(); for ( Iterator j = sinks.iterator(); i.hasNext(); ) { if ( counter > 1 ) { currentSink.text( " " ); } MultiPageSink sink = (MultiPageSink) i.next(); sink.link( sink.getOutputName() + ".html" ); sink.text( String.valueOf( counter++ ) ); sink.link_(); } currentSink.paragraph_(); currentSink.closeSink(); } } } | 1315 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1315/9f0c44d7eb5aecf119eb9b147f277aebd8aec396/AbstractMavenMultiPageReport.java/clean/maven-reporting/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenMultiPageReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1746,
4820,
1435,
565,
288,
3639,
509,
3895,
273,
404,
31,
3639,
309,
261,
401,
17074,
87,
18,
291,
1921,
1435,
262,
3639,
288,
5411,
364,
261,
4498,
277,
273,
28618,
18,
983... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1746,
4820,
1435,
565,
288,
3639,
509,
3895,
273,
404,
31,
3639,
309,
261,
401,
17074,
87,
18,
291,
1921,
1435,
262,
3639,
288,
5411,
364,
261,
4498,
277,
273,
28618,
18,
983... |
private void findFile(String[] includePaths, String name, ArrayList list) throws CoreException { | private void findFile(String[] includePaths, String name, ArrayList list, HashSet foundSet) throws CoreException { | private void findFile(String[] includePaths, String name, ArrayList list) throws CoreException { for (int i = 0; i < includePaths.length; i++) { IPath path = new Path(includePaths[i] + "/" + name); //$NON-NLS-1$ File file = path.toFile(); if (file.exists()) { list.add(path); } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/61aa8cb62cda8cc9df1895cdbf3829d3696ce903/OpenIncludeAction.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1104,
812,
12,
780,
8526,
2341,
4466,
16,
225,
514,
508,
16,
2407,
666,
13,
225,
1216,
30015,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2341,
4466,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1104,
812,
12,
780,
8526,
2341,
4466,
16,
225,
514,
508,
16,
2407,
666,
13,
225,
1216,
30015,
288,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
2341,
4466,
1... |
log.info("test- isc_dsql_allocate_statement"); | if (log!=null) log.info("test- isc_dsql_allocate_statement"); | public void testPreparedSelect() throws Exception { log.info("test- testPreparedSelect"); db1 = setupTable(); t1 = startTransaction(db1); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (1, 2)"); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (2, 3)"); doSQLImmed(db1, t1, "INSERT INTO R1 VALUES (3, 4)"); XSQLDA in_xsqlda;// = new XSQLDA(); XSQLDA out_xsqlda;// = new XSQLDA(); isc_stmt_handle stmt1 = gds.get_new_isc_stmt_handle(); log.info("test- isc_dsql_allocate_statement"); gds.isc_dsql_allocate_statement(db1, stmt1); log.info("test- isc_dsql_prepare"); out_xsqlda = gds.isc_dsql_prepare(t1, stmt1, "SELECT COL1, COL2 FROM R1 WHERE COL1 = 1", GDS.SQL_DIALECT_CURRENT);//, out_xsqlda);// log.info("test- isc_dsql_describe_bind");// in_xsqlda = gds.isc_dsql_describe_bind(stmt1, 1);//, in_xsqlda); in_xsqlda = null;// in_xsqlda.sqlvar[0].sqldata = new Short((short) 1);// log.info("test- isc_dsql_describe");// out_xsqlda = gds.isc_dsql_describe(stmt1, 1);//, out_xsqlda); log.info("test- isc_dsql_execute2"); gds.isc_dsql_execute2(t1, stmt1, 1, in_xsqlda, null);// log.info("test- isc_dsql_set_cursor_name");// gds.isc_dsql_set_cursor_name(stmt1, "cur1", 0);// int fetch_stat; String out = ""; while (gds.isc_dsql_fetch(stmt1, 1, out_xsqlda) != null) { for (int i = 0; i < out_xsqlda.sqld; i++) { Short data = (Short) out_xsqlda.sqlvar[i].sqldata; out += data.shortValue() + " "; } out += System.getProperty("line.separator"); } log.info("fetch returned: " + out); log.info("test- isc_dsql_free_statement"); gds.isc_dsql_free_statement(stmt1, GDS.DSQL_drop); commit(t1); teardownTable(db1); } | 6960 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6960/d551c5302d9d5f52860ad5a47b9cbab3e036a621/TestGds.java/clean/src/org/firebirdsql/jgds/TestGds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15464,
3391,
1435,
1216,
1185,
288,
3639,
613,
18,
1376,
2932,
3813,
17,
1842,
15464,
3391,
8863,
3639,
1319,
21,
273,
3875,
1388,
5621,
3639,
268,
21,
273,
787,
3342,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
15464,
3391,
1435,
1216,
1185,
288,
3639,
613,
18,
1376,
2932,
3813,
17,
1842,
15464,
3391,
8863,
3639,
1319,
21,
273,
3875,
1388,
5621,
3639,
268,
21,
273,
787,
3342,
12... |
deploymentFactories.add(factory); | if(factory == null) { throw new IllegalArgumentException("DeploymentFactory to register should not be null"); } if(!deploymentFactories.contains(factory)) { deploymentFactories.add(factory); } | public void registerDeploymentFactory(DeploymentFactory factory) { // apparently we dont care about null values, the Sun RI even adds the null // to the list. So after registerDeploymentFactory(null) getDeploymentFactories() // return an array with length 1. deploymentFactories.add(factory); } | 6764 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6764/1d998272539cfdfd236188855eaf18a50b068fac/DeploymentFactoryManager.java/clean/j2ee-deployment/src/java/javax/enterprise/deploy/shared/factories/DeploymentFactoryManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
6733,
1733,
12,
6733,
1733,
3272,
13,
288,
3639,
368,
29614,
715,
732,
14046,
7671,
2973,
446,
924,
16,
326,
31608,
534,
45,
5456,
4831,
326,
446,
3639,
368,
358,
326,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1744,
6733,
1733,
12,
6733,
1733,
3272,
13,
288,
3639,
368,
29614,
715,
732,
14046,
7671,
2973,
446,
924,
16,
326,
31608,
534,
45,
5456,
4831,
326,
446,
3639,
368,
358,
326,
... |
} | public void widgetSelected(SelectionEvent e) { try { // Might be nice to have more thorough docs stored locally. // For the mac app bundle version, they can be stored in the // app bundle and accessed through Help Viewer. showURL(new URL("http://irate.sourceforge.net/documentation.gettingstarted.html")); } catch (MalformedURLException ex) { ex.printStackTrace(); } } | 11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/306e972783550193081c78eb4898402201cb2c85/Client.java/clean/trunk/irate/irate/swt/Client.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
3639,
775,
288,
1850,
368,
490,
750,
506,
13752,
358,
1240,
1898,
286,
280,
4966,
3270,
4041,
13760,
18,
1850,
368,
2457,
326,
5318,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
918,
3604,
7416,
12,
6233,
1133,
425,
13,
288,
3639,
775,
288,
1850,
368,
490,
750,
506,
13752,
358,
1240,
1898,
286,
280,
4966,
3270,
4041,
13760,
18,
1850,
368,
2457,
326,
5318,
... | |
if (mMessage1 != null) { mMbox.delete(null, mMessage1.getId(), MailItem.TYPE_MESSAGE); } if (mMessage2 != null) { mMbox.delete(null, mMessage2.getId(), MailItem.TYPE_MESSAGE); } if (mMessage3 != null) { mMbox.delete(null, mMessage3.getId(), MailItem.TYPE_MESSAGE); } if (mMessage4 != null) { mMbox.delete(null, mMessage4.getId(), MailItem.TYPE_MESSAGE); | Set messageIds = search("subject:\"Test tags\"", MailItem.TYPE_MESSAGE); Iterator i = messageIds.iterator(); while (i.hasNext()) { int id = ((Integer) i.next()).intValue(); mMbox.delete(null, id, MailItem.TYPE_MESSAGE); | private void cleanUp() throws Exception { if (mMessage1 != null) { mMbox.delete(null, mMessage1.getId(), MailItem.TYPE_MESSAGE); } if (mMessage2 != null) { mMbox.delete(null, mMessage2.getId(), MailItem.TYPE_MESSAGE); } if (mMessage3 != null) { mMbox.delete(null, mMessage3.getId(), MailItem.TYPE_MESSAGE); } if (mMessage4 != null) { mMbox.delete(null, mMessage4.getId(), MailItem.TYPE_MESSAGE); } List tagList = mMbox.getTagList(); if (tagList == null) { return; } Iterator i = tagList.iterator(); while (i.hasNext()) { Tag tag = (Tag)i.next(); if (tag.getName().startsWith(TAG_PREFIX)) { mMbox.delete(null, tag.getId(), tag.getType()); } } } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/6cdc18ddc1bf3d59a4ef41bdb2ea220d41a64634/TestTags.java/buggy/ZimbraServer/src/java/com/zimbra/qa/unittest/TestTags.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
26384,
1435,
565,
1216,
1185,
288,
3639,
309,
261,
81,
1079,
21,
480,
446,
13,
288,
5411,
312,
49,
2147,
18,
3733,
12,
2011,
16,
312,
1079,
21,
18,
26321,
9334,
11542,
1180,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
26384,
1435,
565,
1216,
1185,
288,
3639,
309,
261,
81,
1079,
21,
480,
446,
13,
288,
5411,
312,
49,
2147,
18,
3733,
12,
2011,
16,
312,
1079,
21,
18,
26321,
9334,
11542,
1180,
... |
DependsOnTouchable dot = (DependsOnTouchable)child.getComponentInstance("test"); | DependsOnTouchable dot = (DependsOnTouchable) child.getComponentInstance("test"); | public void XXXtestComponentKeysFromParentCannotConfuseTheChild() throws Exception { DefaultPicoContainer pico = new DefaultPicoContainer(); pico.registerComponentImplementation("test", SimpleTouchable.class); DefaultPicoContainer child = new DefaultPicoContainer(pico); child.registerComponentImplementation("test", DependsOnTouchable.class); DependsOnTouchable dot = (DependsOnTouchable)child.getComponentInstance("test"); assertNotNull(dot); } | 9344 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9344/f454dbb64efa33852b061bb9933f49034518a4ef/DefaultPicoContainerTestCase.java/buggy/java/picocontainer/trunk/container/src/test/org/picocontainer/defaults/DefaultPicoContainerTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11329,
3813,
1841,
2396,
1265,
3054,
4515,
3976,
1202,
1986,
1763,
1435,
1216,
1185,
288,
3639,
2989,
52,
10764,
2170,
293,
10764,
273,
394,
2989,
52,
10764,
2170,
5621,
3639,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
11329,
3813,
1841,
2396,
1265,
3054,
4515,
3976,
1202,
1986,
1763,
1435,
1216,
1185,
288,
3639,
2989,
52,
10764,
2170,
293,
10764,
273,
394,
2989,
52,
10764,
2170,
5621,
3639,
29... |
private void populateLists() { this.bEnableEvents = false; cmbDataType.add("Number"); cmbDataType.add("Date/Time"); | private void populateLists( ) { this.bEnableEvents = false; cmbDataType.add( "Number" ); cmbDataType.add( "Date/Time" ); | private void populateLists() { this.bEnableEvents = false; cmbDataType.add("Number"); //$NON-NLS-1$ cmbDataType.add("Date/Time"); //$NON-NLS-1$ if (formatspecifier == null) { cmbDataType.select(0); btnUndefined.setSelection(true); slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } else if (formatspecifier instanceof DateFormatSpecifier || formatspecifier instanceof JavaDateFormatSpecifier) { cmbDataType.select(1); if (formatspecifier instanceof DateFormatSpecifier) { btnStandard.setSelection(true); } else if (formatspecifier instanceof JavaDateFormatSpecifier) { btnAdvanced.setSelection(true); } else { btnUndefined.setSelection(true); } slStandardDetails.topControl = this.cmpStandardDateDetails; slAdvancedDetails.topControl = this.cmpAdvancedDateDetails; } else { cmbDataType.select(0); if (formatspecifier instanceof NumberFormatSpecifier) { btnStandard.setSelection(true); } else if (formatspecifier instanceof JavaNumberFormatSpecifier) { btnAdvanced.setSelection(true); } else { btnUndefined.setSelection(true); } slStandardDetails.topControl = this.cmpStandardNumberDetails; slAdvancedDetails.topControl = this.cmpAdvancedNumberDetails; } updateUIState(); // Populate Date Types Object[] oArrDT = DateFormatType.VALUES.toArray(); for (int iDT = 0; iDT < oArrDT.length; iDT++) { cmbDateType.add(((DateFormatType) oArrDT[iDT]).getName()); if (formatspecifier instanceof DateFormatSpecifier && ((DateFormatSpecifier) formatspecifier).getType().equals(oArrDT[iDT])) { cmbDateType.select(iDT); } } if(cmbDateType.getSelectionIndex() == -1) { cmbDateType.select(0); } // Populate Date Details Object[] oArrDD = DateFormatDetail.VALUES.toArray(); for (int iDD = 0; iDD < oArrDD.length; iDD++) { cmbDateForm.add(((DateFormatDetail) oArrDD[iDD]).getName()); if (formatspecifier instanceof DateFormatSpecifier && ((DateFormatSpecifier) formatspecifier).getDetail().equals(oArrDD[iDD])) { cmbDateForm.select(iDD); } } if(cmbDateForm.getSelectionIndex() == -1) { cmbDateForm.select(0); } String str = ""; //$NON-NLS-1$ if (formatspecifier instanceof JavaDateFormatSpecifier) { str = ((JavaDateFormatSpecifier) formatspecifier).getPattern(); if (str == null) { str = ""; //$NON-NLS-1$ } txtDatePattern.setText(str); } if (formatspecifier instanceof NumberFormatSpecifier) { str = ((NumberFormatSpecifier) formatspecifier).getPrefix(); if (str == null) { str = ""; //$NON-NLS-1$ } txtPrefix.setText(str); str = ((NumberFormatSpecifier) formatspecifier).getSuffix(); if (str == null) { str = ""; //$NON-NLS-1$ } txtSuffix.setText(str); str = String.valueOf(((NumberFormatSpecifier) formatspecifier).getMultiplier()); if (str == null || !((NumberFormatSpecifier) formatspecifier).eIsSet(AttributePackage.eINSTANCE .getNumberFormatSpecifier_Multiplier())) { str = ""; //$NON-NLS-1$ } txtMultiplier.setText(str); iscFractionDigits.setValue(((NumberFormatSpecifier) formatspecifier).getFractionDigits()); } if (formatspecifier instanceof JavaNumberFormatSpecifier) { str = String.valueOf(((JavaNumberFormatSpecifier) formatspecifier).getMultiplier()); if (str == null || !((JavaNumberFormatSpecifier) formatspecifier).eIsSet(AttributePackage.eINSTANCE .getJavaNumberFormatSpecifier_Multiplier())) { str = ""; //$NON-NLS-1$ } txtAdvMultiplier.setText(str); str = ((JavaNumberFormatSpecifier) formatspecifier).getPattern(); if (str == null) { str = ""; //$NON-NLS-1$ } txtNumberPattern.setText(str); } this.layout(); this.bEnableEvents = true; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/c2635683b569bc35b628d25cbf49853caae225fa/FormatSpecifierComposite.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FormatSpecifierComposite.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
7432,
1435,
565,
288,
3639,
333,
18,
70,
8317,
3783,
273,
629,
31,
3639,
276,
1627,
6273,
18,
1289,
2932,
1854,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
276,
1627,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
6490,
7432,
1435,
565,
288,
3639,
333,
18,
70,
8317,
3783,
273,
629,
31,
3639,
276,
1627,
6273,
18,
1289,
2932,
1854,
8863,
4329,
3993,
17,
5106,
17,
21,
8,
3639,
276,
1627,
... |
this.itsFileName = new String(target); File targetFileName = new File(target); FileWriter fileWriter = null; try { fileWriter = new FileWriter(targetFileName); } catch (IOException e1) { e1.printStackTrace(); } try { fileWriter.write(shortCutDef); } catch (IOException e) { e.printStackTrace(); } try { fileWriter.close(); } catch (IOException e2) { e2.printStackTrace(); | if (rootUser4All && !create4All) { return; } writeShortCut(target, shortCutDef); | public void save() throws Exception { String FS = File.separator; String target = null; String shortCutDef = this.replace(); if ((this.itsGroupName == null) || ("".equals(this.itsGroupName))) { target = System.getProperty("user.home") + FS + "Desktop" + FS + this.itsName + DESKTOP_EXT; } else { File homedir = new File(System.getProperty("user.home")); File kdeHome = new File(homedir.toString() + FS + ".kde"); File kdeHomeShare = new File(kdeHome.toString() + FS + "share"); File kdeHomeShareApplnk = new File(kdeHomeShare.toString() + FS + itsApplnkFolder); target = kdeHomeShareApplnk.toString() + FS + this.itsGroupName + FS + this.itsName + DESKTOP_EXT; } File targetPath = new File(target.toString().substring(0, target.toString().lastIndexOf(File.separatorChar))); if (!targetPath.exists()) { targetPath.mkdirs(); this.createdDirectory = targetPath.toString(); } this.itsFileName = new String(target); File targetFileName = new File(target); FileWriter fileWriter = null; try { fileWriter = new FileWriter(targetFileName); } catch (IOException e1) { e1.printStackTrace(); } try { fileWriter.write(shortCutDef); } catch (IOException e) { e.printStackTrace(); } try { fileWriter.close(); } catch (IOException e2) { e2.printStackTrace(); } } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/d111fa07f5ac6767b0c3f0110542d9ef7e81b5c8/Unix_Shortcut.java/buggy/src/lib/com/izforge/izpack/util/os/Unix_Shortcut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
1216,
1185,
565,
288,
3639,
514,
9247,
273,
1387,
18,
11287,
31,
3639,
514,
1018,
273,
446,
31,
3639,
514,
3025,
15812,
3262,
273,
333,
18,
2079,
5621,
3639,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1923,
1435,
1216,
1185,
565,
288,
3639,
514,
9247,
273,
1387,
18,
11287,
31,
3639,
514,
1018,
273,
446,
31,
3639,
514,
3025,
15812,
3262,
273,
333,
18,
2079,
5621,
3639,
309,
... |
"/* \n" + " * Version (target 1.2) \n" + " * - magic: CAFEBABE\n" + " * - minor: 0\n" + " * - major: 46\n" + " */\n" + " "public class A extends java.lang.Object {\n" + " \n" + " /* Method descriptor #6 ()V */\n" + " public A();\n" + " /* Stack: 1, Locals: 1 */\n" + " Code attribute:\n" + " 0 aload_0\n" + " 1 invokespecial #9 <Constructor java.lang.Object()>\n" + " 4 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 1]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 5] local: this index: 0 type: A\n" + " \n" + | public void test007() { String source = "public class A {\n" + " public static void main(String[] args) {\n" + " boolean b = false;\n" + " if (true\n" + " && !b) { \n" + " System.out.println();\n" + " }\n" + " }\n" + "}"; String expectedOutput = "/* \n" + " * Version (target 1.2) \n" + " * - magic: CAFEBABE\n" + " * - minor: 0\n" + " * - major: 46\n" + " */\n" + "// Compiled from A.java\n" + "public class A extends java.lang.Object {\n" + " \n" + " /* Method descriptor #6 ()V */\n" + " public A();\n" + " /* Stack: 1, Locals: 1 */\n" + " Code attribute:\n" + " 0 aload_0\n" + " 1 invokespecial #9 <Constructor java.lang.Object()>\n" + " 4 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 1]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 5] local: this index: 0 type: A\n" + " \n" + " /* Method descriptor #15 ([Ljava/lang/String;)V */\n" + " public static void main(String[] args);\n" + " /* Stack: 1, Locals: 2 */\n" + " Code attribute:\n" + " 0 iconst_0\n" + " 1 istore_1\n" + " 2 iload_1\n" + " 3 ifne 12\n" + " 6 getstatic #21 <Field java.lang.System#out java.io.PrintStream>\n" + " 9 invokevirtual #26 <Method java.io.PrintStream#println() void>\n" + " 12 return\n" + "\n" + " Line number attribute:\n" + " [pc: 0, line: 3]\n" + " [pc: 2, line: 5]\n" + " [pc: 6, line: 6]\n" + " [pc: 12, line: 8]\n" + " Local variable table attribute:\n" + " [pc: 0, pc: 13] local: args index: 0 type: java/lang/String[]\n" + " [pc: 2, pc: 13] local: b index: 1 type: boolean\n" + " \n" + "}"; checkClassFile("A", source, expectedOutput); } | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/33954bbbcb57410dd9650c66d085059854f2f0c2/ClassFileReaderTest.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/ClassFileReaderTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
713,
27,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
713,
27,
1435,
288,
202,
202,
780,
1084,
273,
1082,
202,
6,
482,
667,
432,
18890,
82,
6,
397,
1082,
202,
6,
202,
482,
760,
918,
2774,
12,
780,
8526,
833,
13,
18... | |
private Table monthView(IWContext iwc, IWTimestamp stamp) { this.now = IWTimestamp.RightNow(); this.cal = new IWCalendar(); Text nameOfDay = new Text(); Text t = new Text(); int weekdays = 8; int daycount = this.cal.getLengthOfMonth(stamp.getMonth(),stamp.getYear()); int firstWeekDayOfMonth = this.cal.getDayOfWeek(stamp.getYear(),stamp.getMonth(),1);// int dayOfMonth = cal.getDay(); int row = 1; int column = firstWeekDayOfMonth; int n = 1; Table table = new Table(); table.setCellpadding(0); table.setCellspacing(0); Table topTable = new Table(); topTable.setCellpadding(0); topTable.setCellspacing(0); topTable.setWidth(Table.HUNDRED_PERCENT); Table backTable = new Table(); backTable.setColor("#cccccc"); backTable.setCellspacing(1); backTable.setCellpadding(0); backTable.setWidth(Table.HUNDRED_PERCENT);//700 backTable.setHeight(270); /* backTable.mergeCells(1,1,7,1); backTable.add(headTable,1,1);*/ int weekday = 1; for(int i=1; i<weekdays; i++) { weekday = i % 7; if (weekday == 0) { weekday = 7; } nameOfDay = new Text(this.cal.getDayName(weekday, iwc.getCurrentLocale(), IWCalendar.SHORT).toString().toLowerCase()); nameOfDay.setBold(); Table nameOfDayTable = new Table(); nameOfDayTable.setCellspacing(0); nameOfDayTable.setCellpadding(0); nameOfDayTable.setWidth(Table.HUNDRED_PERCENT); nameOfDayTable.setHeight(Table.HUNDRED_PERCENT); nameOfDayTable.setColor("#f8f8f8"); nameOfDayTable.setStyleAttribute("border-top: 1px solid #cccccc"); nameOfDayTable.setAlignment(1,1,Table.HORIZONTAL_ALIGN_CENTER); nameOfDayTable.setVerticalAlignment(1,1,Table.VERTICAL_ALIGN_BOTTOM); nameOfDayTable.add(nameOfDay,1,1); topTable.setHeight(i,1,"30"); topTable.setHeight(i,2,"5"); topTable.add(nameOfDayTable,i,1);// backTable.setWidth(i,2,"200"); } User user = null; Integer userID = null; if(iwc.isLoggedOn()) { user = iwc.getCurrentUser(); userID = (Integer) user.getPrimaryKey(); } else { userID = new Integer(-2); } Collection viewGroups = null; if(user != null) { try { viewGroups = getUserBusiness(iwc).getUserGroups(user); }catch(Exception e) { e.printStackTrace(); } } while (n <= daycount) { Table dayCell = new Table(); dayCell.setCellspacing(0); dayCell.setCellpadding(0); dayCell.setWidth(Table.HUNDRED_PERCENT); dayCell.setHeight(Table.HUNDRED_PERCENT); dayCell.setVerticalAlignment(1,1,Table.VERTICAL_ALIGN_TOP); t = new Text(String.valueOf(n)); int cellRow = 2; backTable.setWidth(column,row,"100"); backTable.setHeight(column,row,"95"); if(n == this.now.getDay()) { dayCell.setColor("#e9e9e9"); } else { dayCell.setColor("#ffffff"); } Link dayLink = new Link(t); dayLink.setStyleClass(this.styledLink); dayLink.addParameter(CalendarParameters.PARAMETER_VIEW,CalendarParameters.DAY); dayLink.addParameter(CalendarParameters.PARAMETER_YEAR, stamp.getYear()); dayLink.addParameter(CalendarParameters.PARAMETER_MONTH, stamp.getMonth()); dayLink.addParameter(CalendarParameters.PARAMETER_DAY, n); if(this.groupID != -2) { dayLink.addParameter(PARAMETER_ISI_GROUP_ID,this.groupID); } dayCell.add(dayLink,1,1); dayCell.setHeight(1,1,12); dayCell.add(Text.BREAK,1,1); dayCell.setAlignment(1,1,Table.HORIZONTAL_ALIGN_RIGHT); Timestamp fromStamp = Timestamp.valueOf(stamp.getDateString("yyyy-MM-dd hh:mm:ss.S")); fromStamp.setDate(n); fromStamp.setHours(0); fromStamp.setMinutes(0); fromStamp.setNanos(0); Timestamp toStamp = Timestamp.valueOf(stamp.getDateString("yyyy-MM-dd hh:mm:ss.S")); toStamp.setDate(n); toStamp.setHours(23); toStamp.setMinutes(59); toStamp.setNanos(0); List listOfEntries = (List) getCalBusiness(iwc).getEntriesBetweenTimestamps(fromStamp,toStamp); Collections.sort(listOfEntries,new Comparator() { public int compare(Object arg0, Object arg1) { return ((CalendarEntry) arg0).getDate().compareTo(((CalendarEntry) arg1).getDate()); } }); for(int h=0; h<listOfEntries.size(); h++) { CalendarEntry entry = (CalendarEntry) listOfEntries.get(h); CalendarLedger ledger = null; int groupIDInLedger = 0; int coachGroupIDInLedger = 0; boolean isInGroup = false; if(entry.getLedgerID() != -1) { ledger = getCalBusiness(iwc).getLedger(entry.getLedgerID()); if(ledger != null) { groupIDInLedger = ledger.getGroupID(); coachGroupIDInLedger = ledger.getCoachGroupID(); } } else { groupIDInLedger = -1; coachGroupIDInLedger = -1; } if(viewGroups != null) { Iterator viewGroupsIter = viewGroups.iterator(); //goes through the groups the user may view and prints out the entry if //the group connected to the entry is the same as the group the user may view while(viewGroupsIter.hasNext()) { Group group =(Group) viewGroupsIter.next(); Integer groupID = (Integer) group.getPrimaryKey(); if(entry.getGroupID() == groupID.intValue() || groupIDInLedger == groupID.intValue()){ isInGroup = true; } } } if(groupIDInLedger == getViewGroupID()) { isInGroup = true; } if(coachGroupIDInLedger == getViewGroupID()) { isInGroup = true; } if(isInGroup || iwc.isSuperAdmin() || getViewGroupID() == entry.getGroupID() || (userID!=null && userID.intValue() == entry.getUserID())) { String headline = getEntryHeadline(entry); Link headlineLink = new Link(headline); headlineLink.addParameter(ACTION,OPEN); headlineLink.addParameter(CalendarParameters.PARAMETER_VIEW,this.view); headlineLink.addParameter(CalendarParameters.PARAMETER_YEAR, stamp.getYear()); headlineLink.addParameter(CalendarParameters.PARAMETER_MONTH, stamp.getMonth()); headlineLink.addParameter(CalendarParameters.PARAMETER_DAY, stamp.getDay()); headlineLink.addParameter(CalendarEntryCreator.entryIDParameterName, entry.getPrimaryKey().toString()); if(!iwc.getAccessController().hasRole("cal_view_entry_creator",iwc) || this.isPrintable) { headlineLink.setWindowToOpen(EntryInfoWindow.class); } headlineLink.setStyleClass(this.entryLink); String e = iwc.getParameter(CalendarEntryCreator.entryIDParameterName); CalendarEntry ent = null; if(e == null || e.equals("")) { e = ""; } else { try { ent = getCalBusiness(iwc).getEntry(Integer.parseInt(e)); }catch(Exception ex) { ent = null; } } if(ent != null) { if(ent.getPrimaryKey().equals(entry.getPrimaryKey())) { headlineLink.setStyleClass(this.entryLinkActive); } } dayCell.add(headlineLink,1,cellRow); dayCell.setVerticalAlignment(1,cellRow,"top"); dayCell.add("<br>",1,cellRow++); } } backTable.add(dayCell,column,row); backTable.setColor(column,row,"#ffffff"); backTable.add(Text.NON_BREAKING_SPACE,column,row); backTable.setVerticalAlignment(column,row,"top"); column = column % 7 + 1; if (column == 1) { row++; } n++; } table.add(topTable,1,1); table.add(backTable,1,2); return table; } | 11359 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11359/c01f7052ab8e45b2d7028aadb7dcf01973de0155/CalendarView.java/clean/src/java/com/idega/block/cal/presentation/CalendarView.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
3138,
1767,
12,
45,
59,
1042,
25522,
71,
16,
467,
59,
4921,
14429,
13,
288,
1082,
202,
2211,
18,
3338,
273,
467,
59,
4921,
18,
4726,
8674,
5621,
202,
202,
2211,
18,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3555,
3138,
1767,
12,
45,
59,
1042,
25522,
71,
16,
467,
59,
4921,
14429,
13,
288,
1082,
202,
2211,
18,
3338,
273,
467,
59,
4921,
18,
4726,
8674,
5621,
202,
202,
2211,
18,
7... | ||
private void saveToFile () { File file = null; // ---------------------------------------------------- // open a file chooser dialog to get a path / file name // ---------------------------------------------------- JFileChooser fileDialog = new JFileChooser (idata.getInstallPath ()); fileDialog.setSelectedFile (new File (TEXT_FILE_NAME)); if(fileDialog.showSaveDialog (this) == JFileChooser.APPROVE_OPTION) { file = fileDialog.getSelectedFile (); } else { return; } // ---------------------------------------------------- // save to the file // ---------------------------------------------------- FileWriter output = null; StringBuffer buffer = new StringBuffer (); String header = parent.langpack.getString ("ShortcutPanel.textFile.header"); String newline = System.getProperty ("line.separator", "\n"); try { output = new FileWriter (file); } catch (Throwable exception) { // !!! show an error dialog return; } // ---------------------------------------------------- // break the header down into multiple lines based // on '\n' line breaks. // ---------------------------------------------------- int nextIndex = 0; int currentIndex = 0; do { nextIndex = header.indexOf ("\\n", currentIndex); if (nextIndex > -1) { buffer.append (header.substring (currentIndex, nextIndex)); buffer.append (newline); currentIndex = nextIndex + 2; } else { buffer.append (header.substring (currentIndex, header.length ())); buffer.append (newline); } } while (nextIndex > -1); buffer.append (SEPARATOR_LINE); buffer.append (newline); buffer.append (newline); for (int i = 0; i < shortcuts.size (); i++) { ShortcutData data = (ShortcutData)shortcuts.elementAt (i); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.name")); buffer.append (data.name); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.location")); switch (data.type) { case Shortcut.DESKTOP : { buffer.append (parent.langpack.getString ("ShortcutPanel.location.desktop")); break; } case Shortcut.APPLICATIONS : { buffer.append (parent.langpack.getString ("ShortcutPanel.location.applications")); break; } case Shortcut.START_MENU : { buffer.append (parent.langpack.getString ("ShortcutPanel.location.startMenu")); break; } case Shortcut.START_UP : { buffer.append (parent.langpack.getString ("ShortcutPanel.location.startup")); break; } } buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.description")); buffer.append (data.description); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.target")); buffer.append (data.target); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.command")); buffer.append (data.commandLine); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.iconName")); buffer.append (data.iconFile); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.iconIndex")); buffer.append (data.iconIndex); buffer.append (newline); buffer.append (parent.langpack.getString ("ShortcutPanel.textFile.work")); buffer.append (data.workingDirectory); buffer.append (newline); buffer.append (newline); buffer.append (SEPARATOR_LINE); buffer.append (newline); buffer.append (newline); } try { output.write (buffer.toString ()); } catch (Throwable exception) { } finally { try { output.flush (); output.close (); files.add (file.getPath ()); } catch (Throwable exception) { // not really anything I can do here, maybe should show a dialog that // tells the user that data might not have been saved completely!? } } } | 46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/df53b17757bee3d8fd6a9cb585cb425bb91e3213/ShortcutPanel.java/clean/src/lib/com/izforge/izpack/panels/ShortcutPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1923,
15450,
1832,
225,
288,
565,
1387,
585,
273,
446,
31,
3639,
368,
13420,
6062,
565,
368,
1696,
279,
585,
5011,
13164,
6176,
358,
336,
279,
589,
342,
585,
508,
565,
368,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1923,
15450,
1832,
225,
288,
565,
1387,
585,
273,
446,
31,
3639,
368,
13420,
6062,
565,
368,
1696,
279,
585,
5011,
13164,
6176,
358,
336,
279,
589,
342,
585,
508,
565,
368,
1... | ||
return eDynamicIsSet( eFeature ); | return super.eIsSet( featureID ); | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case DataPackage.NUMBER_DATA_ELEMENT__VALUE : return isSetValue( ); } return eDynamicIsSet( eFeature ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/NumberDataElementImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/data/impl/NumberDataElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1910,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
1910,
22... |
fBaseURIStack.push(identifier.getBaseSystemId()); | fBaseURIStack.push (identifier.getBaseSystemId ()); | public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException { if (DEBUG_EVENTS) { System.out.println("==>startExternalSubset"); if (DEBUG_BASEURI) { System.out.println(" expandedSystemId: "+identifier.getExpandedSystemId()); System.out.println(" baseURI:"+ identifier.getBaseSystemId()); } } fBaseURIStack.push(identifier.getBaseSystemId()); fInDTDExternalSubset = true; } // startExternalSubset(Augmentations) | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/9d1dbf89c75cf6f564facc2b605dd9f2cf2dac4d/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
6841,
20315,
12,
4201,
1420,
3004,
2756,
16,
19694,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
787,
6841,
20315,
12,
4201,
1420,
3004,
2756,
16,
19694,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
309,
261,
9394,
67,
29221,
13,
288,
5411,
2332,
... |
setAnchor((String) evalAttr("anchor", getAnchor(), String.class)); | setAnchor((String) evalAttr("anchor", getAnchorExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setAnchor((String) evalAttr("anchor", getAnchor(), String.class)); } catch (NullAttributeException ex) { setAnchor(null); } try { setForward((String) evalAttr("forward", getForward(), String.class)); } catch (NullAttributeException ex) { setForward(null); } try { setHref((String) evalAttr("href", getHref(), String.class)); } catch (NullAttributeException ex) { setHref(null); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setPage((String) evalAttr("page", getPage(), String.class)); } catch (NullAttributeException ex) { setPage(null); } try { setParamName((String) evalAttr("paramName", getParamName(), String.class)); } catch (NullAttributeException ex) { setParamName(null); } try { setParamProperty((String) evalAttr("paramProperty", getParamProperty(), String.class)); } catch (NullAttributeException ex) { setParamProperty(null); } try { setParamScope((String) evalAttr("paramScope", getParamScope(), String.class)); } catch (NullAttributeException ex) { setParamScope(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setScope((String) evalAttr("scope", getScope(), String.class)); } catch (NullAttributeException ex) { setScope(null); } try { setTransaction(((Boolean) evalAttr("transaction", getTransactionExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setTransaction(false); } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELRedirectTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/logic/ELRedirectTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
11605,
12443,
780,
13,
5302,
3843,
2932,
16215,
3113,
336,
11605,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
11605,
12443,
780,
13,
5302,
3843,
2932,
16215,
3113,
336,
11605,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044... |
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.equals("http: return lexicalHandler; throw new SAXNotRecognizedException(name); | public String getProperty(String key, String defaultValue) { String value = outputProperties.getProperty(key); if(value == null) value = defaultProperties.getProperty(key, defaultValue); return value; | public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException { if (name.equals("http://xml.org/sax/properties/lexical-handler")) return lexicalHandler; throw new SAXNotRecognizedException(name); } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/0d02dbc1d0f616dab3f8e359783b411587927ee5/Serializer.java/buggy/src/org/exist/storage/serializers/Serializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3911,
12,
780,
508,
13,
202,
202,
15069,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
288,
202,
202,
430,
261,
529,
18,
14963,
2932,
2505,
2207,
2902,
18,
3341,
19,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
3911,
12,
780,
508,
13,
202,
202,
15069,
10168,
1248,
5650,
9367,
503,
16,
10168,
25482,
288,
202,
202,
430,
261,
529,
18,
14963,
2932,
2505,
2207,
2902,
18,
3341,
19,
8... |
public void removeQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; List<Question> quests = section.getQuestions(); quests.remove(rowId); section.setQuestions(quests); session.setAttribute("currentSection", section); } | 54385 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54385/1987aafdf9f6e92293bee44cf33ba906d200af2c/SurveyWebComponent.java/buggy/survey/src/java/ar/com/survey/web/component/SurveyWebComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
588,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1206,
11665,
382,
5285,
12,
2940,
18572,
590,
15329,
202,
202,
2940,
2157,
1339,
273,
590,
18,
588,
2157,
5621,
202,
202,
5285,
2442,
273,
261,
5285,
13,
1339,
18,
588,
1... | ||
String append = "-D" + PROJECT_NAMES_KEY + "=" + path; | String append = "-D" + PROJECT_NAMES_KEY + "=" + path; | private String[] getVMArguments( ILaunchConfiguration configuration ) throws CoreException { String temp[] = ( new ExecutionArguments( configuration.getAttribute( "vmargs", "" ), "" ) ).getVMArgumentsArray( ); String path = configuration.getAttribute( IMPORTPROJECT, "" ); String append = "-D" + PROJECT_NAMES_KEY + "=" + path; String projectClassPaths = finder.getClassPath( configuration .getAttribute( IMPORTPROJECTNAMES, "" ) ); String classPath = ""; // String sourcePath = ""; if ( projectClassPaths != null && projectClassPaths.length( ) != 0 ) { classPath = "-D" + PROJECT_CLASSPATH_KEY + "=" + projectClassPaths; } if ( temp == null ) { temp = ( new String[] { append, classPath } ); } else { List list = new ArrayList( ); int size = temp.length; for ( int i = 0; i < size; i++ ) list.add( temp[i] ); list.add( append ); list.add( classPath ); temp = ( String[] ) list.toArray( temp ); } return temp; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/a65b86554e6b88d27b0f13430395ece7fbe71ea0/ReportLaunchConfigurationDelegate.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
336,
7397,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
780,
1906,
8526,
273,
261,
394,
8687,
4628,
12,
1664,
18,
588,
1499,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
336,
7397,
4628,
12,
467,
9569,
1750,
1664,
262,
1082,
202,
15069,
30015,
202,
95,
202,
202,
780,
1906,
8526,
273,
261,
394,
8687,
4628,
12,
1664,
18,
588,
1499,
1... |
public static Throwable getRootParentException(Throwable t) { | public static Throwable getRootParentException(Throwable t) { | public static Throwable getRootParentException(Throwable t) { Throwable cause = t; Throwable parent = t; while (cause != null) { if (cause.getCause() == null) { return parent; } parent = cause; cause = cause.getCause(); } return t; } | 28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/a786dc853ae4b3a64d08cfad2884587503d35d09/ExceptionHelper.java/buggy/src/java/org/mule/config/ExceptionHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4206,
7656,
3054,
503,
12,
15155,
268,
13,
565,
288,
3639,
4206,
4620,
273,
268,
31,
3639,
4206,
982,
273,
268,
31,
3639,
1323,
261,
2700,
480,
446,
13,
288,
5411,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
4206,
7656,
3054,
503,
12,
15155,
268,
13,
565,
288,
3639,
4206,
4620,
273,
268,
31,
3639,
4206,
982,
273,
268,
31,
3639,
1323,
261,
2700,
480,
446,
13,
288,
5411,
309,
261,
... |
throw x; } | throw x; } | public void fatalError(SAXParseException x) throws SAXException { // Debug.err(x.toString()); throw x; } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/01f8aec31f0d408a977de26cc5f242ec8ba1e32f/CallerList.java/buggy/jfritz/src/de/moonflower/jfritz/callerlist/CallerList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
10081,
668,
12,
55,
2501,
13047,
619,
13,
1216,
14366,
288,
6862,
202,
759,
4015,
18,
370,
12,
92,
18,
10492,
10663,
6862,
202,
12849,
619,
31,
9506,
202,
97,
2,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4697,
202,
482,
918,
10081,
668,
12,
55,
2501,
13047,
619,
13,
1216,
14366,
288,
6862,
202,
759,
4015,
18,
370,
12,
92,
18,
10492,
10663,
6862,
202,
12849,
619,
31,
9506,
202,
97,
2,
-100,
... |
if (value == null) { | if (value == null) { | public Object get() { Thread currentThread = Thread.currentThread(); // Note that we don't have to synchronize, as only this thread will // ever modify the returned value. Object value = valueMap.get(currentThread); if (value == null) { value = initialValue(); valueMap.put(currentThread, value == null ? NULL : value); } return value == NULL ? null : value; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/b2ed890086e708f00d163f3e8514bfa8b353f662/ThreadLocal.java/buggy/core/src/classpath/java/java/lang/ThreadLocal.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
336,
1435,
288,
202,
202,
3830,
11800,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
759,
3609,
716,
732,
2727,
1404,
1240,
358,
16978,
16,
487,
1338,
333,
2650,
903,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
336,
1435,
288,
202,
202,
3830,
11800,
273,
4884,
18,
2972,
3830,
5621,
202,
202,
759,
3609,
716,
732,
2727,
1404,
1240,
358,
16978,
16,
487,
1338,
333,
2650,
903,
202,
... |
this.persist = hibernateSession.getMethod("persist", new Class[]{Object.class}); | this.persist = hibernateSession.getMethod("persist", new Class[]{String.class,Object.class}); | public HibernateRichObjectBuilder(Object session) { super(); // call the normal rich object builder first try { // Lazy load the Session class from Hibernate. Class hibernateSession = Class.forName("org.hibernate.Session"); // Test to see if our parameter is really a Session if (!hibernateSession.isInstance(session)) throw new IllegalArgumentException("Parameter must be a org.hibernate.Session object"); this.session = session; // Lookup the createQuery and persist methods this.createQuery = hibernateSession.getMethod("createQuery", new Class[]{String.class}); this.persist = hibernateSession.getMethod("persist", new Class[]{Object.class}); // Lazy load the Query class from Hibernate. Class hibernateQuery = Class.forName("org.hibernate.Query"); // Lookup the setParameter and list methods this.setParameter = hibernateQuery.getMethod("setParameter", new Class[]{int.class,Object.class}); this.list = hibernateQuery.getMethod("list", new Class[]{}); } catch (ClassNotFoundException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new RuntimeException(e); } } | 50115 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50115/19351f078278fa928ff9bc18f85c51a99eec3c28/HibernateRichObjectBuilder.java/clean/src/org/biojavax/bio/db/HibernateRichObjectBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
24360,
22591,
921,
1263,
12,
921,
1339,
13,
288,
3639,
2240,
5621,
368,
745,
326,
2212,
23657,
733,
2089,
1122,
3639,
775,
288,
5411,
368,
12805,
1262,
326,
3877,
667,
628,
670... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
670,
24360,
22591,
921,
1263,
12,
921,
1339,
13,
288,
3639,
2240,
5621,
368,
745,
326,
2212,
23657,
733,
2089,
1122,
3639,
775,
288,
5411,
368,
12805,
1262,
326,
3877,
667,
628,
670... |
final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writePUSH(msbv); os.writePUSH(lsbv); } | final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writePUSH(msbv); os.writePUSH(lsbv); } | protected final void pushConstant(EmitterContext ec, AbstractX86Stream os) { final long lvalue = Double.doubleToLongBits(value); final int lsbv = (int) (lvalue & 0xFFFFFFFFL); final int msbv = (int) ((lvalue >>> 32) & 0xFFFFFFFFL); os.writePUSH(msbv); os.writePUSH(lsbv); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/55b12818040bb69b51502c4cd0f42118d2046977/DoubleItem.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/DoubleItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1817,
6902,
12,
13476,
1042,
6557,
16,
4115,
60,
5292,
1228,
1140,
13,
288,
3639,
727,
1525,
328,
1132,
273,
3698,
18,
9056,
30220,
6495,
12,
1132,
1769,
3639,
727,
509,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
727,
918,
1817,
6902,
12,
13476,
1042,
6557,
16,
4115,
60,
5292,
1228,
1140,
13,
288,
3639,
727,
1525,
328,
1132,
273,
3698,
18,
9056,
30220,
6495,
12,
1132,
1769,
3639,
727,
509,
... |
result= fFragments[i].getFile(path); | result= fFragments[i].getFile(location); | public IIndexFile getFile(IPath location) throws CoreException { IIndexFile result= null; String path= location.toOSString(); for (int i = 0; result==null && i < fPrimaryFragmentCount; i++) { result= fFragments[i].getFile(path); } return result; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/d6d9ed6df05fa9a4d5efa12e7ef50e6fa2caec66/CIndex.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/index/CIndex.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1016,
812,
6034,
12,
45,
743,
2117,
13,
1216,
30015,
288,
202,
202,
45,
1016,
812,
563,
33,
446,
31,
202,
202,
780,
589,
33,
2117,
18,
869,
4618,
780,
5621,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1016,
812,
6034,
12,
45,
743,
2117,
13,
1216,
30015,
288,
202,
202,
45,
1016,
812,
563,
33,
446,
31,
202,
202,
780,
589,
33,
2117,
18,
869,
4618,
780,
5621,
202,
202,
... |
handle.addDisposeListener(disposeLitener); | if (handle != null) { handle.addDisposeListener(disposeLitener); } | public ReportMediator getMediator( ModuleHandle handle ) { handle.addDisposeListener(disposeLitener); ReportMediator mediator = (ReportMediator) mediatorMap.get( handle ); if ( mediator == null ) { mediator = new ReportMediator( ); mediatorMap.put( handle, mediator ); } return mediator; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/b97243816b5e6a0657e44d3f9ed52189a65aaf65/SessionHandleAdapter.java/buggy/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/SessionHandleAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
13265,
10620,
2108,
329,
10620,
12,
5924,
3259,
1640,
262,
202,
95,
202,
202,
4110,
18,
1289,
1669,
4150,
2223,
12,
2251,
4150,
23707,
708,
1769,
202,
202,
4820,
13265,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8706,
13265,
10620,
2108,
329,
10620,
12,
5924,
3259,
1640,
262,
202,
95,
202,
202,
4110,
18,
1289,
1669,
4150,
2223,
12,
2251,
4150,
23707,
708,
1769,
202,
202,
4820,
13265,
10... |
if (lookaheadType instanceof X10ParsedClassType) c = ((X10Context) c).pushDepType((X10ParsedClassType) lookaheadType); | if (lookaheadType instanceof X10NamedType) c = ((X10Context) c).pushDepType((X10NamedType) lookaheadType); | public Context enterChildScope(Node child, Context c) { if (child == this.dep) { TypeSystem ts = c.typeSystem(); if (lookaheadType instanceof X10ParsedClassType) c = ((X10Context) c).pushDepType((X10ParsedClassType) lookaheadType); } Context cc = super.enterChildScope(child, c); return cc; } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/0fa62f634e354c0b852779d3823c83e336744505/X10AmbTypeNode_c.java/buggy/x10.compiler/src/polyglot/ext/x10/ast/X10AmbTypeNode_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
6103,
1763,
3876,
12,
907,
1151,
16,
1772,
276,
13,
288,
3639,
309,
261,
3624,
422,
333,
18,
15037,
13,
288,
5411,
1412,
3163,
3742,
273,
276,
18,
723,
3163,
5621,
5411,
309... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1772,
6103,
1763,
3876,
12,
907,
1151,
16,
1772,
276,
13,
288,
3639,
309,
261,
3624,
422,
333,
18,
15037,
13,
288,
5411,
1412,
3163,
3742,
273,
276,
18,
723,
3163,
5621,
5411,
309... |
return _output; | return output; | public org.apache.geronimo.interop.rmi.iiop.ObjectOutputStream getOutputStream() { if (SIMPLE_IDL) { return getSimpleOutputStream(); } if (_output == null) { _output = org.apache.geronimo.interop.rmi.iiop.ObjectOutputStream.getInstance(_parameters); } return _output; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/Connection.java/clean/modules/interop/src/java/org/apache/geronimo/interop/rmi/iiop/client/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2358,
18,
19211,
18,
693,
265,
381,
83,
18,
30376,
18,
8864,
77,
18,
2835,
556,
18,
921,
4632,
22553,
1435,
288,
3639,
309,
261,
31669,
900,
67,
734,
48,
13,
288,
5411,
327,
812... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2358,
18,
19211,
18,
693,
265,
381,
83,
18,
30376,
18,
8864,
77,
18,
2835,
556,
18,
921,
4632,
22553,
1435,
288,
3639,
309,
261,
31669,
900,
67,
734,
48,
13,
288,
5411,
327,
812... |
dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); | dirtyScreen.setBounds(0, lenScreen - 1, 0, 0); updateDirty(); | protected void restoreScreen() { lastAttr = 32; dirtyScreen.setBounds(0,lenScreen - 1,0,0); updateDirty(); } | 1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/d3f4f0d032e4305c6a78bdb863ee5599f3e41633/Screen5250.java/clean/tn5250j/src/org/tn5250j/framework/tn5250/Screen5250.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5217,
7956,
1435,
288,
202,
202,
2722,
3843,
273,
3847,
31,
1377,
9603,
7956,
18,
542,
5694,
12,
20,
16,
1897,
7956,
300,
404,
16,
20,
16,
20,
1769,
1377,
1089,
10785,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
5217,
7956,
1435,
288,
202,
202,
2722,
3843,
273,
3847,
31,
1377,
9603,
7956,
18,
542,
5694,
12,
20,
16,
1897,
7956,
300,
404,
16,
20,
16,
20,
1769,
1377,
1089,
10785,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.