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
if(exc instanceof EcmaError) {
if (exc instanceof EcmaError) {
public void run() { Context cx = Context.enter(); DebuggableEngine engine = cx.getDebuggableEngine(); engine.setBreakNextLine(true); try { cx.evaluateReader(scope, new FileReader(fileName), fileName, 1, null); } catch(Exception exc) { String msg = exc.getMessage(); if(exc instanceof EcmaError) { EcmaError err = (EcmaError)exc; msg = err.getSourceName() + ", line " + err.getLineNumber() + ": " + msg; } MessageDialogWrapper.showMessageDialog(db, msg, "Run", JOptionPane.ERROR_MESSAGE); } finally { cx.exit(); } }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/buggy/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 4015, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 3639, 4073, 18, 542, 7634, 2134, 1670, 12, 3767, 1769, 3639, 775, 288, 5411, 9494, 18, 21024, 2514, 12, 4887, 16, 394, 23010, 12, 17812, 3631, 17311, 3968, 16, 404, 16, 446, 1769, 3639, 289, 1044, 12, 503, 3533, 13, 288, 5411, 514, 1234, 273, 3533, 18, 24906, 5621, 5411, 309, 261, 10075, 1276, 20840, 2540, 668, 13, 288, 7734, 20840, 2540, 668, 393, 273, 261, 23057, 2540, 668, 13, 10075, 31, 7734, 1234, 273, 393, 18, 588, 1830, 461, 1435, 397, 3104, 980, 315, 397, 393, 18, 588, 31063, 1435, 397, 6398, 315, 397, 1234, 31, 5411, 289, 5411, 2350, 6353, 3611, 18, 4500, 1079, 6353, 12, 1966, 16, 4766, 10402, 1234, 16, 4766, 10402, 315, 1997, 3113, 4766, 10402, 804, 1895, 8485, 18, 3589, 67, 8723, 1769, 3639, 289, 3095, 288, 5411, 9494, 18, 8593, 5621, 3639, 289, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 1772, 9494, 273, 1772, 18, 2328, 5621, 3639, 4015, 8455, 4410, 4073, 273, 9494, 18, 588, 2829, 8455, 4410, 5621, 3639, 4073, 18, 542, 7634, 2134, 1670, 12, 3767, 1769, 3639, 775, 288, 5411, 9494, 18, 21024, 2514, 12, 4887, 16, 394, 23010, 12, 17812, 3631, 17311, 3968, 16, 404, 16, 446, 1769, 3639, 289, 1044, 12, 503, 3533, 13, 288, 5411, 514, 1234, 273, 3533, 18, 24906, 5621, 5411, 309, 261, 10075, 1276, 20840, 2540, 668, 13, 288, 7734, 20840, 2540, 668, 393, 273, 261, 23057, 2540, 668, 13, 10075, 31, 7734, 1234, 273, 393, 18, 588, 1830, 461, 1435, 397, 3104, 980, 315, 397, 393, 18, 588, 31063, 1435, 397, 2 ]
previousAfter = previous.getStyle().getCalculatedStyle().getIdent(
previous.getStyle().getCalculatedStyle().getIdent(
public void markRun(int offset, BlockBox previous, BlockBox current) { RelayoutData previousData = get(offset-1); RelayoutData currentData = get(offset); IdentValue previousAfter = previousAfter = previous.getStyle().getCalculatedStyle().getIdent( CSSName.PAGE_BREAK_AFTER); IdentValue currentBefore = current.getStyle().getCalculatedStyle().getIdent( CSSName.PAGE_BREAK_BEFORE); if ( (previousAfter == IdentValue.AVOID && currentBefore == IdentValue.AUTO) || (previousAfter == IdentValue.AUTO && currentBefore == IdentValue.AVOID) || (previousAfter == IdentValue.AVOID && currentBefore == IdentValue.AVOID)) { if (! previousData.isInRun()) { previousData.setStartsRun(true); } previousData.setInRun(true); currentData.setInRun(true); if (offset == _hints.size() - 1) { currentData.setEndsRun(true); } } else { if (previousData.isInRun()) { previousData.setEndsRun(true); } } }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/374d17ea4f8f5f5914c5c65d8a4c5a5ce9f4749d/BlockBoxing.java/clean/src/java/org/xhtmlrenderer/layout/BlockBoxing.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2267, 1997, 12, 474, 1384, 16, 3914, 3514, 2416, 16, 3914, 3514, 783, 13, 288, 5411, 4275, 2012, 751, 2416, 751, 273, 336, 12, 3348, 17, 21, 1769, 5411, 4275, 2012, 751, 30685, 273, 336, 12, 3348, 1769, 13491, 13128, 620, 2416, 4436, 273, 1171, 2416, 18, 588, 2885, 7675, 588, 4844, 690, 2885, 7675, 588, 6106, 12, 10792, 6765, 461, 18, 11219, 67, 27960, 67, 18249, 1769, 5411, 13128, 620, 783, 4649, 273, 1171, 783, 18, 588, 2885, 7675, 588, 4844, 690, 2885, 7675, 588, 6106, 12, 10792, 6765, 461, 18, 11219, 67, 27960, 67, 19152, 1769, 13491, 309, 261, 261, 11515, 4436, 422, 13128, 620, 18, 5856, 12945, 597, 783, 4649, 422, 13128, 620, 18, 18909, 13, 747, 1171, 261, 11515, 4436, 422, 13128, 620, 18, 18909, 597, 783, 4649, 422, 13128, 620, 18, 5856, 12945, 13, 747, 1171, 261, 11515, 4436, 422, 13128, 620, 18, 5856, 12945, 597, 783, 4649, 422, 13128, 620, 18, 5856, 12945, 3719, 288, 7734, 309, 16051, 2416, 751, 18, 291, 382, 1997, 10756, 288, 10792, 2416, 751, 18, 542, 11203, 1997, 12, 3767, 1769, 7734, 289, 7734, 2416, 751, 18, 542, 382, 1997, 12, 3767, 1769, 7734, 30685, 18, 542, 382, 1997, 12, 3767, 1769, 27573, 309, 261, 3348, 422, 389, 24598, 18, 1467, 1435, 300, 404, 13, 288, 10792, 30685, 18, 542, 24980, 1997, 12, 3767, 1769, 7734, 289, 5411, 289, 469, 288, 7734, 309, 261, 11515, 751, 18, 291, 382, 1997, 10756, 288, 10792, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2267, 1997, 12, 474, 1384, 16, 3914, 3514, 2416, 16, 3914, 3514, 783, 13, 288, 5411, 4275, 2012, 751, 2416, 751, 273, 336, 12, 3348, 17, 21, 1769, 5411, 4275, 2012, 751, 30685, 273, 336, 12, 3348, 1769, 13491, 13128, 620, 2416, 4436, 273, 1171, 2416, 18, 588, 2885, 7675, 588, 4844, 690, 2885, 7675, 588, 6106, 12, 10792, 6765, 461, 18, 11219, 67, 27960, 67, 18249, 1769, 5411, 13128, 620, 783, 4649, 273, 1171, 783, 18, 588, 2885, 7675, 588, 4844, 690, 2885, 7675, 588, 6106, 12, 10792, 6765, 461, 18, 11219, 67, 27960, 67, 19152, 1769, 13491, 309, 261, 261, 11515, 4436, 422, 13128, 620, 18, 5856, 12945, 597, 783, 4649, 422, 13128, 620, 2 ]
AST tmp1992_AST_in = (AST)_t;
AST tmp1995_AST_in = (AST)_t;
public final void systemhandlename(AST _t) throws RecognitionException { AST systemhandlename_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AAMEMORY: { AST tmp1967_AST_in = (AST)_t; match(_t,AAMEMORY); _t = _t.getNextSibling(); break; } case ACTIVEWINDOW: { AST tmp1968_AST_in = (AST)_t; match(_t,ACTIVEWINDOW); _t = _t.getNextSibling(); break; } case AUDITCONTROL: { AST tmp1969_AST_in = (AST)_t; match(_t,AUDITCONTROL); _t = _t.getNextSibling(); break; } case AUDITPOLICY: { AST tmp1970_AST_in = (AST)_t; match(_t,AUDITPOLICY); _t = _t.getNextSibling(); break; } case CLIPBOARD: { AST tmp1971_AST_in = (AST)_t; match(_t,CLIPBOARD); _t = _t.getNextSibling(); break; } case CODEBASELOCATOR: { AST tmp1972_AST_in = (AST)_t; match(_t,CODEBASELOCATOR); _t = _t.getNextSibling(); break; } case COLORTABLE: { AST tmp1973_AST_in = (AST)_t; match(_t,COLORTABLE); _t = _t.getNextSibling(); break; } case COMPILER: { AST tmp1974_AST_in = (AST)_t; match(_t,COMPILER); _t = _t.getNextSibling(); break; } case COMSELF: { AST tmp1975_AST_in = (AST)_t; match(_t,COMSELF); _t = _t.getNextSibling(); break; } case CURRENTWINDOW: { AST tmp1976_AST_in = (AST)_t; match(_t,CURRENTWINDOW); _t = _t.getNextSibling(); break; } case DEBUGGER: { AST tmp1977_AST_in = (AST)_t; match(_t,DEBUGGER); _t = _t.getNextSibling(); break; } case DEFAULTWINDOW: { AST tmp1978_AST_in = (AST)_t; match(_t,DEFAULTWINDOW); _t = _t.getNextSibling(); break; } case ERRORSTATUS: { AST tmp1979_AST_in = (AST)_t; match(_t,ERRORSTATUS); _t = _t.getNextSibling(); break; } case FILEINFORMATION: { AST tmp1980_AST_in = (AST)_t; match(_t,FILEINFORMATION); _t = _t.getNextSibling(); break; } case FOCUS: { AST tmp1981_AST_in = (AST)_t; match(_t,FOCUS); _t = _t.getNextSibling(); break; } case FONTTABLE: { AST tmp1982_AST_in = (AST)_t; match(_t,FONTTABLE); _t = _t.getNextSibling(); break; } case LASTEVENT: { AST tmp1983_AST_in = (AST)_t; match(_t,LASTEVENT); _t = _t.getNextSibling(); break; } case LOGMANAGER: { AST tmp1984_AST_in = (AST)_t; match(_t,LOGMANAGER); _t = _t.getNextSibling(); break; } case MOUSE: { AST tmp1985_AST_in = (AST)_t; match(_t,MOUSE); _t = _t.getNextSibling(); break; } case PROFILER: { AST tmp1986_AST_in = (AST)_t; match(_t,PROFILER); _t = _t.getNextSibling(); break; } case RCODEINFORMATION: { AST tmp1987_AST_in = (AST)_t; match(_t,RCODEINFORMATION); _t = _t.getNextSibling(); break; } case SECURITYPOLICY: { AST tmp1988_AST_in = (AST)_t; match(_t,SECURITYPOLICY); _t = _t.getNextSibling(); break; } case SELF: { AST tmp1989_AST_in = (AST)_t; match(_t,SELF); _t = _t.getNextSibling(); break; } case SESSION: { AST tmp1990_AST_in = (AST)_t; match(_t,SESSION); _t = _t.getNextSibling(); break; } case SOURCEPROCEDURE: { AST tmp1991_AST_in = (AST)_t; match(_t,SOURCEPROCEDURE); _t = _t.getNextSibling(); break; } case SUPER: { AST tmp1992_AST_in = (AST)_t; match(_t,SUPER); _t = _t.getNextSibling(); break; } case TARGETPROCEDURE: { AST tmp1993_AST_in = (AST)_t; match(_t,TARGETPROCEDURE); _t = _t.getNextSibling(); break; } case TEXTCURSOR: { AST tmp1994_AST_in = (AST)_t; match(_t,TEXTCURSOR); _t = _t.getNextSibling(); break; } case THISOBJECT: { AST tmp1995_AST_in = (AST)_t; match(_t,THISOBJECT); _t = _t.getNextSibling(); break; } case THISPROCEDURE: { AST tmp1996_AST_in = (AST)_t; match(_t,THISPROCEDURE); _t = _t.getNextSibling(); break; } case WEBCONTEXT: { AST tmp1997_AST_in = (AST)_t; match(_t,WEBCONTEXT); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 2619, 2349, 14724, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 2349, 14724, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 432, 1642, 49, 3964, 30, 202, 202, 95, 1082, 202, 9053, 1853, 3657, 9599, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 1642, 49, 3964, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 21135, 23407, 30, 202, 202, 95, 1082, 202, 9053, 1853, 3657, 9470, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 13301, 23407, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 432, 12587, 1285, 18248, 30, 202, 202, 95, 1082, 202, 9053, 1853, 3657, 8148, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 12587, 1285, 18248, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 432, 12587, 1285, 26366, 30, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2619, 2349, 14724, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 2619, 2349, 14724, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 432, 1642, 49, 3964, 30, 202, 202, 95, 1082, 202, 9053, 1853, 3657, 9599, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 37, 1642, 49, 3964, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 2 ]
return dstFile;
return new BooleanWrapper(true);
private File sendFile(FileTransferService ftsRemote, File srcFile, File dstFile) throws IOException { long init=System.currentTimeMillis(); long numBlocks=0; FileBlock fileBlock = new FileBlock(srcFile.getAbsolutePath()); fileBlock.setDstFilename(dstFile.getAbsolutePath()); Boolean[] sent_blocks = new Boolean[DEFAULT_MAX_SIMULTANEOUS_BLOCKS]; while (fileBlock.hasNextBlock()) { int i; //Exceptions can happen here for (i = 0; (i < sent_blocks.length) && fileBlock.hasNextBlock(); i++) { fileBlock.loadNexBlock(); numBlocks++; ftsRemote.saveFileBlock(fileBlock); //remote (async) invocation (not yet since it's void an throws Exception) } //Wait for exceptions here } if(logger.isDebugEnabled()){ long fin=System.currentTimeMillis(); long delta = (fin-init); logger.debug("File sent using "+numBlocks+" blocks, in: "+ delta + "[ms]"); } //TODO Here We could register this FTS AO into a Node or RunTime pool for reuse! return dstFile; }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/efad12ff223250b786d8e78eee36a4cdbeaad898/FileTransferService.java/clean/src/org/objectweb/proactive/core/filetransfer/FileTransferService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1387, 1366, 812, 12, 812, 5912, 1179, 284, 3428, 5169, 16, 1387, 24672, 16, 3639, 1387, 3046, 812, 13, 1216, 1860, 288, 377, 202, 377, 202, 5748, 1208, 33, 3163, 18, 2972, 28512, 5621, 377, 202, 5748, 818, 6450, 33, 20, 31, 377, 202, 3639, 1387, 1768, 585, 1768, 273, 394, 1387, 1768, 12, 4816, 812, 18, 588, 10368, 743, 10663, 3639, 585, 1768, 18, 542, 15295, 5359, 12, 11057, 812, 18, 588, 10368, 743, 10663, 3639, 3411, 8526, 3271, 67, 7996, 273, 394, 3411, 63, 5280, 67, 6694, 67, 2320, 12845, 1258, 41, 21667, 67, 11403, 55, 15533, 3639, 1323, 261, 768, 1768, 18, 5332, 2134, 1768, 10756, 288, 5411, 509, 277, 31, 13491, 368, 11416, 848, 5865, 2674, 5411, 364, 261, 77, 273, 374, 31, 261, 77, 411, 3271, 67, 7996, 18, 2469, 13, 597, 585, 1768, 18, 5332, 2134, 1768, 5621, 10792, 277, 27245, 288, 7734, 585, 1768, 18, 945, 50, 338, 1768, 5621, 7734, 818, 6450, 9904, 31, 7734, 284, 3428, 5169, 18, 5688, 812, 1768, 12, 768, 1768, 1769, 368, 7222, 261, 3810, 13, 9495, 261, 902, 4671, 3241, 518, 1807, 918, 392, 1216, 1185, 13, 5411, 289, 5411, 368, 5480, 364, 4798, 2674, 3639, 289, 3639, 309, 12, 4901, 18, 291, 2829, 1526, 10756, 95, 540, 202, 5748, 574, 33, 3163, 18, 2972, 28512, 5621, 540, 202, 5748, 3622, 273, 261, 926, 17, 2738, 1769, 540, 202, 4901, 18, 4148, 2932, 812, 3271, 1450, 13773, 2107, 6450, 9078, 4398, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1387, 1366, 812, 12, 812, 5912, 1179, 284, 3428, 5169, 16, 1387, 24672, 16, 3639, 1387, 3046, 812, 13, 1216, 1860, 288, 377, 202, 377, 202, 5748, 1208, 33, 3163, 18, 2972, 28512, 5621, 377, 202, 5748, 818, 6450, 33, 20, 31, 377, 202, 3639, 1387, 1768, 585, 1768, 273, 394, 1387, 1768, 12, 4816, 812, 18, 588, 10368, 743, 10663, 3639, 585, 1768, 18, 542, 15295, 5359, 12, 11057, 812, 18, 588, 10368, 743, 10663, 3639, 3411, 8526, 3271, 67, 7996, 273, 394, 3411, 63, 5280, 67, 6694, 67, 2320, 12845, 1258, 41, 21667, 67, 11403, 55, 15533, 3639, 1323, 261, 768, 1768, 18, 5332, 2134, 1768, 10756, 288, 5411, 509, 277, 31, 13491, 368, 11416, 2 ]
out.println("window.parent.dwrHandleResponse(\"" + eq.getId() + "\", reply);");
out.println("window.parent.DWREngine.handleResponse(\"" + eq.getId() + "\", reply);");
protected void doExec(HttpServletRequest req, HttpServletResponse resp) { ExecuteQuery eq = new ExecuteQuery(req, creatorManager, converterManager); try { Object reply = eq.execute(); OutboundVariable ss = converterManager.convertOutbound(reply); PrintWriter out = resp.getWriter(); Log.info("Returning: id[" + eq.getId() + "] init[" + ss.getInitCode() + "] assign[" + ss.getAssignCode() + "] xml[" + eq.isXmlMode() + "]"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ LocalUtil.addNoCacheHeaders(resp); if (eq.isXmlMode()) { resp.setContentType(MIME_XML); out.println(ss.getInitCode()); out.println("var reply = " + ss.getAssignCode() + ";"); //$NON-NLS-1$ //$NON-NLS-2$ out.println("dwrHandleResponse(\"" + eq.getId() + "\", reply);"); //$NON-NLS-1$ //$NON-NLS-2$ } else { resp.setContentType(MIME_HTML); out.println("<script type='text/javascript'>"); //$NON-NLS-1$ out.println(ss.getInitCode()); out.println("var reply = " + ss.getAssignCode() + ";"); //$NON-NLS-1$ //$NON-NLS-2$ out.println("window.parent.dwrHandleResponse(\"" + eq.getId() + "\", reply);"); //$NON-NLS-1$ //$NON-NLS-2$ out.println("</script>"); //$NON-NLS-1$ } out.flush(); } catch (Throwable ex) { Log.warn("Erroring: id[" + eq.getId() + "] message[" + ex.getMessage() + "]", ex); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ try { PrintWriter out = resp.getWriter(); String output = StringEscapeUtils.escapeJavaScript(ex.getMessage()); if (eq.isXmlMode()) { resp.setContentType(MIME_XML); out.println("dwrHandleError(\"" + eq.getId() + "\", \"" + output + "\");"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } else { resp.setContentType(MIME_HTML); out.println("<script type='text/javascript'>"); //$NON-NLS-1$ out.println("window.parent.dwrHandleError(\"" + eq.getId() + "\", '" + output + "')"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ out.println("</script>"); //$NON-NLS-1$ } out.flush(); } catch (IOException ex2) { Log.error("IO error: " + eq.getId(), ex2); //$NON-NLS-1$ return; } } }
45384 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45384/1c2e43c84790bfe925e41713280232cd61fc9288/DWRServlet.java/clean/java/uk/ltd/getahead/dwr/DWRServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 741, 1905, 12, 2940, 18572, 1111, 16, 12446, 1718, 13, 565, 288, 3639, 7903, 1138, 7555, 273, 394, 7903, 1138, 12, 3658, 16, 11784, 1318, 16, 6027, 1318, 1769, 3639, 775, 3639, 288, 5411, 1033, 4332, 273, 7555, 18, 8837, 5621, 5411, 2976, 3653, 3092, 5202, 273, 6027, 1318, 18, 6283, 17873, 12, 10629, 1769, 5411, 14071, 596, 273, 1718, 18, 588, 2289, 5621, 5411, 1827, 18, 1376, 2932, 28365, 30, 612, 9614, 397, 7555, 18, 26321, 1435, 397, 9850, 1208, 9614, 397, 5202, 18, 588, 2570, 1085, 1435, 397, 9850, 2683, 9614, 397, 5202, 18, 588, 4910, 1085, 1435, 397, 9850, 2025, 9614, 397, 7555, 18, 291, 4432, 2309, 1435, 397, 9870, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 4329, 3993, 17, 5106, 17, 23, 8, 4329, 3993, 17, 5106, 17, 24, 8, 4329, 3993, 17, 5106, 17, 25, 8, 5411, 3566, 1304, 18, 1289, 2279, 1649, 3121, 12, 12243, 1769, 5411, 309, 261, 11253, 18, 291, 4432, 2309, 10756, 5411, 288, 7734, 1718, 18, 542, 8046, 12, 18178, 67, 4201, 1769, 7734, 596, 18, 8222, 12, 1049, 18, 588, 2570, 1085, 10663, 7734, 596, 18, 8222, 2932, 1401, 4332, 273, 315, 397, 5202, 18, 588, 4910, 1085, 1435, 397, 11430, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 7734, 596, 18, 8222, 2932, 22512, 86, 3259, 1064, 12, 8530, 397, 7555, 18, 26321, 1435, 397, 1548, 3113, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 1905, 12, 2940, 18572, 1111, 16, 12446, 1718, 13, 565, 288, 3639, 7903, 1138, 7555, 273, 394, 7903, 1138, 12, 3658, 16, 11784, 1318, 16, 6027, 1318, 1769, 3639, 775, 3639, 288, 5411, 1033, 4332, 273, 7555, 18, 8837, 5621, 5411, 2976, 3653, 3092, 5202, 273, 6027, 1318, 18, 6283, 17873, 12, 10629, 1769, 5411, 14071, 596, 273, 1718, 18, 588, 2289, 5621, 5411, 1827, 18, 1376, 2932, 28365, 30, 612, 9614, 397, 7555, 18, 26321, 1435, 397, 9850, 1208, 9614, 397, 5202, 18, 588, 2570, 1085, 1435, 397, 9850, 2683, 9614, 397, 5202, 18, 588, 4910, 1085, 1435, 397, 9850, 2025, 9614, 397, 7555, 18, 291, 4432, 2309, 1435, 397, 9870, 1769, 4329, 3993, 2 ]
boolean wasChanged = false;
boolean changed = false;
public boolean sync() throws IOException { if (getType() == Aggregation.Type.UNION) return false; // see if we need to recheck if (recheck == null) return false; Date now = new Date(); Date lastCheckedDate = new Date(lastChecked); Date need = recheck.add(lastCheckedDate); if (now.before(need)) return false; // ok were gonna recheck lastChecked = System.currentTimeMillis(); // rescan ArrayList newDatasets = new ArrayList(); scan(newDatasets, null); // replace with previous datasets if they exist boolean wasChanged = false; for (int i = 0; i < newDatasets.size(); i++) { Dataset newDataset = (Dataset) newDatasets.get(i); int index = nestedDatasets.indexOf(newDataset); if (index >= 0) { newDatasets.set(i, nestedDatasets.get(index)); logger.debug("Agg.sync oldDataset= {}", newDataset.location); } else { wasChanged = true; logger.debug("Agg.sync newDataset= {}", newDataset.location); } } // see if anything is changed if (!wasChanged) return false; // recreate the list of datasets nestedDatasets = new ArrayList(); nestedDatasets.addAll(explicitDatasets); nestedDatasets.addAll(newDatasets); buildCoords( null); // chose a new typical dataset if (typical != null) { typical.close(); typical = null; typicalDataset = null; } //ncd.empty(); // rebuild the metadata if (getType() == Aggregation.Type.JOIN_NEW) aggNewDimension( false, ncd, null); else if (getType() == Aggregation.Type.JOIN_EXISTING) aggExistingDimension( false, ncd, null); else if (getType() == Aggregation.Type.FORECAST_MODEL) aggExistingDimension( false, ncd, null); ncd.finish(); return true; }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/b0404daf12e2383fdcab31178ed65cf88b9c105e/Aggregation.java/buggy/cdm/src/main/java/ucar/nc2/ncml/Aggregation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 3792, 1435, 1216, 1860, 288, 565, 309, 261, 588, 559, 1435, 422, 21100, 18, 559, 18, 2124, 1146, 13, 1377, 327, 629, 31, 565, 368, 2621, 309, 732, 1608, 358, 283, 1893, 565, 309, 261, 266, 1893, 422, 446, 13, 1377, 327, 629, 31, 565, 2167, 2037, 273, 394, 2167, 5621, 565, 2167, 1142, 11454, 1626, 273, 394, 2167, 12, 2722, 11454, 1769, 565, 2167, 1608, 273, 283, 1893, 18, 1289, 12, 2722, 11454, 1626, 1769, 565, 309, 261, 3338, 18, 5771, 12, 14891, 3719, 1377, 327, 629, 31, 565, 368, 1529, 4591, 314, 265, 6582, 283, 1893, 565, 1142, 11454, 273, 2332, 18, 2972, 28512, 5621, 565, 368, 29144, 565, 2407, 394, 14305, 2413, 273, 394, 2407, 5621, 565, 4135, 12, 2704, 14305, 2413, 16, 446, 1769, 565, 368, 1453, 598, 2416, 11109, 309, 2898, 1005, 565, 1250, 3550, 273, 629, 31, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 394, 14305, 2413, 18, 1467, 5621, 277, 27245, 288, 1377, 10778, 394, 10656, 273, 261, 10656, 13, 394, 14305, 2413, 18, 588, 12, 77, 1769, 1377, 509, 770, 273, 4764, 14305, 2413, 18, 31806, 12, 2704, 10656, 1769, 1377, 309, 261, 1615, 1545, 374, 13, 288, 3639, 394, 14305, 2413, 18, 542, 12, 77, 16, 4764, 14305, 2413, 18, 588, 12, 1615, 10019, 3639, 1194, 18, 4148, 2932, 17139, 18, 8389, 1592, 10656, 33, 3728, 16, 394, 10656, 18, 3562, 1769, 1377, 289, 469, 288, 3639, 1703, 5033, 273, 638, 31, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3792, 1435, 1216, 1860, 288, 565, 309, 261, 588, 559, 1435, 422, 21100, 18, 559, 18, 2124, 1146, 13, 1377, 327, 629, 31, 565, 368, 2621, 309, 732, 1608, 358, 283, 1893, 565, 309, 261, 266, 1893, 422, 446, 13, 1377, 327, 629, 31, 565, 2167, 2037, 273, 394, 2167, 5621, 565, 2167, 1142, 11454, 1626, 273, 394, 2167, 12, 2722, 11454, 1769, 565, 2167, 1608, 273, 283, 1893, 18, 1289, 12, 2722, 11454, 1626, 1769, 565, 309, 261, 3338, 18, 5771, 12, 14891, 3719, 1377, 327, 629, 31, 565, 368, 1529, 4591, 314, 265, 6582, 283, 1893, 565, 1142, 11454, 273, 2332, 18, 2972, 28512, 5621, 565, 368, 29144, 565, 2407, 394, 14305, 2413, 273, 2 ]
if (true) {
if (false) {
public static Test suite() { if (true) { return new Suite(ASTConverter15Test.class); } TestSuite suite = new Suite(ASTConverter15Test.class.getName()); suite.addTest(new ASTConverter15Test("test0138")); return suite; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/7d5a60efabb391d97858c488686ccdd01da96842/ASTConverter15Test.java/buggy/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 7766, 11371, 1435, 288, 202, 202, 430, 261, 3767, 13, 288, 1082, 202, 2463, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 1769, 202, 202, 97, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 18, 17994, 10663, 202, 202, 30676, 18, 1289, 4709, 12, 2704, 9183, 5072, 3600, 4709, 2932, 3813, 1611, 7414, 7923, 1769, 202, 202, 2463, 11371, 31, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 482, 760, 7766, 11371, 1435, 288, 202, 202, 430, 261, 3767, 13, 288, 1082, 202, 2463, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 1769, 202, 202, 97, 202, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 9053, 5072, 3600, 4709, 18, 1106, 18, 17994, 10663, 202, 202, 30676, 18, 1289, 4709, 12, 2704, 9183, 5072, 3600, 4709, 2932, 3813, 1611, 7414, 7923, 1769, 202, 202, 2463, 11371, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (((org.postgresql.jdbc1.AbstractJdbc1Connection)con).haveMinimumServerVersion("7.3")) {
if (TestUtil.haveMinimumServerVersion(con,"7.3")) {
public void testPreparedStatementsWithBinds() throws Exception { PreparedStatement pstmt = con.prepareStatement("SELECT * FROM testsps WHERE id = ? or id = ?"); ((PGStatement)pstmt).setUseServerPrepare(true); if (((org.postgresql.jdbc1.AbstractJdbc1Connection)con).haveMinimumServerVersion("7.3")) { assertTrue(((PGStatement)pstmt).isUseServerPrepare()); } else { assertTrue(!((PGStatement)pstmt).isUseServerPrepare()); } //Test that basic functionality works //bind different datatypes pstmt.setInt(1,2); pstmt.setString(2,"2"); ResultSet rs = pstmt.executeQuery(); assertTrue(rs.next()); assertEquals(2, rs.getInt(1)); rs.close(); //Verify that subsequent calls still work rs = pstmt.executeQuery(); assertTrue(rs.next()); assertEquals(2, rs.getInt(1)); rs.close(); pstmt.close(); }
46409 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46409/7c553901d7ab010ad1cb5bf44f9ca2fdae83909a/ServerPreparedStmtTest.java/clean/src/interfaces/jdbc/org/postgresql/test/jdbc2/ServerPreparedStmtTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 15464, 14663, 1190, 17856, 1435, 1216, 1185, 202, 95, 202, 202, 29325, 293, 10589, 273, 356, 18, 9366, 3406, 2932, 4803, 380, 4571, 7434, 1121, 4852, 612, 273, 692, 578, 612, 273, 692, 8863, 3639, 14015, 18679, 3406, 13, 84, 10589, 2934, 542, 3727, 2081, 7543, 12, 3767, 1769, 3639, 309, 261, 12443, 3341, 18, 2767, 24330, 18, 24687, 21, 18, 7469, 25316, 21, 1952, 13, 591, 2934, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 6, 3719, 288, 1082, 202, 11231, 5510, 12443, 12, 18679, 3406, 13, 84, 10589, 2934, 291, 3727, 2081, 7543, 10663, 202, 202, 97, 469, 288, 1082, 202, 11231, 5510, 12, 5, 12443, 18679, 3406, 13, 84, 10589, 2934, 291, 3727, 2081, 7543, 10663, 202, 202, 97, 3639, 368, 4709, 716, 5337, 14176, 6330, 3639, 368, 4376, 3775, 14760, 3639, 293, 10589, 18, 542, 1702, 12, 21, 16, 22, 1769, 3639, 293, 10589, 18, 542, 780, 12, 22, 10837, 22, 8863, 202, 202, 13198, 3597, 273, 293, 10589, 18, 8837, 1138, 5621, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 3639, 1815, 8867, 12, 22, 16, 3597, 18, 588, 1702, 12, 21, 10019, 3639, 3597, 18, 4412, 5621, 3639, 368, 8097, 716, 10815, 4097, 4859, 1440, 202, 202, 5453, 273, 293, 10589, 18, 8837, 1138, 5621, 202, 202, 11231, 5510, 12, 5453, 18, 4285, 10663, 3639, 1815, 8867, 12, 22, 16, 3597, 18, 588, 1702, 12, 21, 10019, 3639, 3597, 18, 4412, 5621, 202, 202, 84, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15464, 14663, 1190, 17856, 1435, 1216, 1185, 202, 95, 202, 202, 29325, 293, 10589, 273, 356, 18, 9366, 3406, 2932, 4803, 380, 4571, 7434, 1121, 4852, 612, 273, 692, 578, 612, 273, 692, 8863, 3639, 14015, 18679, 3406, 13, 84, 10589, 2934, 542, 3727, 2081, 7543, 12, 3767, 1769, 3639, 309, 261, 12443, 3341, 18, 2767, 24330, 18, 24687, 21, 18, 7469, 25316, 21, 1952, 13, 591, 2934, 21516, 13042, 2081, 1444, 2932, 27, 18, 23, 6, 3719, 288, 1082, 202, 11231, 5510, 12443, 12, 18679, 3406, 13, 84, 10589, 2934, 291, 3727, 2081, 7543, 10663, 202, 202, 97, 469, 288, 1082, 202, 11231, 5510, 12, 5, 12443, 18679, 3406, 13, 84, 10589, 2934, 2 ]
QName qn = QName.parse(context, t.getText()); int code = Type.getType(qn);
QName qn= QName.parse(context, t.getText()); int code= Type.getType(qn);
public final void sequenceType(AST _t, SequenceType type ) throws RecognitionException, XPathException { AST sequenceType_AST_in = (AST)_t; AST t = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATOMIC_TYPE: { AST __t229 = _t; t = _t==ASTNULL ? null :(AST)_t; match(_t,ATOMIC_TYPE); _t = _t.getFirstChild(); QName qn = QName.parse(context, t.getText()); int code = Type.getType(qn); type.setPrimaryType(code); _t = __t229; _t = _t.getNextSibling(); break; } case LITERAL_empty: { AST __t230 = _t; AST tmp26_AST_in = (AST)_t; match(_t,LITERAL_empty); _t = _t.getFirstChild(); type.setPrimaryType(Type.EMPTY); type.setCardinality(Cardinality.EMPTY); _t = __t230; _t = _t.getNextSibling(); break; } case LITERAL_item: { AST __t231 = _t; AST tmp27_AST_in = (AST)_t; match(_t,LITERAL_item); _t = _t.getFirstChild(); type.setPrimaryType(Type.ITEM); _t = __t231; _t = _t.getNextSibling(); break; } case LITERAL_node: { AST __t232 = _t; AST tmp28_AST_in = (AST)_t; match(_t,LITERAL_node); _t = _t.getFirstChild(); type.setPrimaryType(Type.NODE); _t = __t232; _t = _t.getNextSibling(); break; } case LITERAL_element: { AST __t233 = _t; AST tmp29_AST_in = (AST)_t; match(_t,LITERAL_element); _t = _t.getFirstChild(); type.setPrimaryType(Type.ELEMENT); _t = __t233; _t = _t.getNextSibling(); break; } case LITERAL_attribute: { AST __t234 = _t; AST tmp30_AST_in = (AST)_t; match(_t,LITERAL_attribute); _t = _t.getFirstChild(); type.setPrimaryType(Type.ATTRIBUTE); _t = __t234; _t = _t.getNextSibling(); break; } case LITERAL_text: { AST __t235 = _t; AST tmp31_AST_in = (AST)_t; match(_t,LITERAL_text); _t = _t.getFirstChild(); type.setPrimaryType(Type.ITEM); _t = __t235; _t = _t.getNextSibling(); break; } case 110: { AST __t236 = _t; AST tmp32_AST_in = (AST)_t; match(_t,110); _t = _t.getFirstChild(); type.setPrimaryType(Type.PROCESSING_INSTRUCTION); _t = __t236; _t = _t.getNextSibling(); break; } case LITERAL_comment: { AST __t237 = _t; AST tmp33_AST_in = (AST)_t; match(_t,LITERAL_comment); _t = _t.getFirstChild(); type.setPrimaryType(Type.COMMENT); _t = __t237; _t = _t.getNextSibling(); break; } case 111: { AST __t238 = _t; AST tmp34_AST_in = (AST)_t; match(_t,111); _t = _t.getFirstChild(); type.setPrimaryType(Type.DOCUMENT); _t = __t238; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STAR: { AST tmp35_AST_in = (AST)_t; match(_t,STAR); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ZERO_OR_MORE); break; } case PLUS: { AST tmp36_AST_in = (AST)_t; match(_t,PLUS); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ONE_OR_MORE); break; } case QUESTION: { AST tmp37_AST_in = (AST)_t; match(_t,QUESTION); _t = _t.getNextSibling(); type.setCardinality(Cardinality.ZERO_OR_ONE); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _retTree = _t; }
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, 918, 3102, 559, 12, 9053, 389, 88, 16, 202, 202, 4021, 559, 618, 202, 13, 1216, 9539, 16, 10172, 503, 288, 9506, 202, 9053, 3102, 559, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 268, 273, 446, 31, 9506, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 27460, 2871, 67, 2399, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 3787, 29, 273, 389, 88, 31, 1082, 202, 88, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 28146, 2871, 67, 2399, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 6862, 25083, 202, 13688, 31054, 273, 16723, 18, 2670, 12, 2472, 16, 268, 18, 588, 1528, 10663, 6862, 1082, 202, 474, 981, 273, 1412, 18, 588, 559, 12, 15785, 1769, 6862, 1082, 202, 723, 18, 542, 6793, 559, 12, 710, 1769, 6862, 6862, 202, 67, 88, 273, 1001, 88, 3787, 29, 31, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 511, 18454, 67, 5531, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 29157, 273, 389, 88, 31, 1082, 202, 9053, 1853, 5558, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3102, 559, 12, 9053, 389, 88, 16, 202, 202, 4021, 559, 618, 202, 13, 1216, 9539, 16, 10172, 503, 288, 9506, 202, 9053, 3102, 559, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 268, 273, 446, 31, 9506, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 27460, 2871, 67, 2399, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 3787, 29, 273, 389, 88, 31, 1082, 202, 88, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 1082, 202, 2 ]
String currentValue = (String)values.elementAt(currentIndex);
String currentValue = (String) values.elementAt(currentIndex);
public void addContinuation(String line) { String currentValue = (String)values.elementAt(currentIndex); setValue(currentValue + line.substring(1)); }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/0dab862ee09d706c3f373fc18bedbf17caf427b9/Manifest.java/clean/src/main/org/apache/tools/ant/taskdefs/Manifest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 527, 660, 23946, 12, 780, 980, 13, 288, 5411, 514, 14794, 273, 261, 780, 13, 924, 18, 2956, 861, 12, 2972, 1016, 1769, 5411, 5524, 12, 2972, 620, 397, 980, 18, 28023, 12, 21, 10019, 3639, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 540, 1071, 918, 527, 660, 23946, 12, 780, 980, 13, 288, 5411, 514, 14794, 273, 261, 780, 13, 924, 18, 2956, 861, 12, 2972, 1016, 1769, 5411, 5524, 12, 2972, 620, 397, 980, 18, 28023, 12, 21, 10019, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private static RepositoryCleanerConfiguration buildConfig( String configPath ) throws IOException { Properties props = new Properties(); FileInputStream input = null; try { input = new FileInputStream( configPath ); props.load( input ); } finally { IOUtil.close( input ); } RepositoryCleanerConfiguration config = new RepositoryCleanerConfiguration(); config.setSourceRepositoryPath( props.getProperty( "sourceRepositoryPath" ) ); config.setSourceRepositoryLayout( props.getProperty( "sourceRepositoryLayout", "legacy" ) ); config.setTargetRepositoryPath( props.getProperty( "targetRepositoryPath" ) ); config.setTargetRepositoryLayout( props.getProperty( "targetRepositoryLayout", "default" ) ); config.setReportsPath( props.getProperty( "reportsPath" ) ); config.setBlacklistedPatterns( props.getProperty( "blacklistedPatterns" ) ); config.setReportOnly( Boolean.valueOf( props.getProperty( "reportOnly" ) ).booleanValue() ); config.setMailErrorReport( Boolean.valueOf( props.getProperty( "errorReport.mailOnError", "false" ) ) .booleanValue() ); config.setErrorReportFromAddress( props.getProperty( "errorReport.fromAddress" ) ); config.setErrorReportFromName( props.getProperty( "errorReport.fromName" ) ); config.setErrorReportSubject( props.getProperty( "errorReport.subject" ) ); config.setErrorReportToAddress( props.getProperty( "errorReport.toAddress" ) ); config.setErrorReportToName( props.getProperty( "errorReport.toName" ) ); config.setErrorReportLink( props.getProperty( "errorReport.link" ) ); return config; }
47160 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47160/0db2b646d23049f80b0beb13c4c45740172fcab7/Main.java/buggy/sandbox/repoclean/src/main/java/org/apache/maven/tools/repoclean/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 6281, 7605, 264, 1750, 1361, 809, 12, 514, 16012, 262, 3639, 1216, 1860, 565, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 11907, 810, 273, 446, 31, 3639, 775, 3639, 288, 5411, 810, 273, 394, 11907, 12, 16012, 11272, 5411, 3458, 18, 945, 12, 810, 11272, 3639, 289, 3639, 3095, 3639, 288, 5411, 1665, 1304, 18, 4412, 12, 810, 11272, 3639, 289, 3639, 6281, 7605, 264, 1750, 642, 273, 394, 6281, 7605, 264, 1750, 5621, 3639, 642, 18, 542, 1830, 3305, 743, 12, 3458, 18, 588, 1396, 12, 315, 3168, 3305, 743, 6, 262, 11272, 3639, 642, 18, 542, 1830, 3305, 3744, 12, 3458, 18, 588, 1396, 12, 315, 3168, 3305, 3744, 3113, 315, 17386, 6, 262, 11272, 3639, 642, 18, 542, 2326, 3305, 743, 12, 3458, 18, 588, 1396, 12, 315, 3299, 3305, 743, 6, 262, 11272, 3639, 642, 18, 542, 2326, 3305, 3744, 12, 3458, 18, 588, 1396, 12, 315, 3299, 3305, 3744, 3113, 315, 1886, 6, 262, 11272, 3639, 642, 18, 542, 18631, 743, 12, 3458, 18, 588, 1396, 12, 315, 20195, 743, 6, 262, 11272, 3639, 642, 18, 542, 13155, 18647, 11268, 12, 3458, 18, 588, 1396, 12, 315, 11223, 18647, 11268, 6, 262, 11272, 3639, 642, 18, 542, 4820, 3386, 12, 3411, 18, 1132, 951, 12, 3458, 18, 588, 1396, 12, 315, 6006, 3386, 6, 262, 262, 18, 6494, 620, 1435, 11272, 3639, 642, 18, 542, 6759, 668, 4820, 12, 3411, 18, 1132, 951, 12, 3458, 18, 588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6281, 7605, 264, 1750, 1361, 809, 12, 514, 16012, 262, 3639, 1216, 1860, 565, 288, 3639, 6183, 3458, 273, 394, 6183, 5621, 3639, 11907, 810, 273, 446, 31, 3639, 775, 3639, 288, 5411, 810, 273, 394, 11907, 12, 16012, 11272, 5411, 3458, 18, 945, 12, 810, 11272, 3639, 289, 3639, 3095, 3639, 288, 5411, 1665, 1304, 18, 4412, 12, 810, 11272, 3639, 289, 3639, 6281, 7605, 264, 1750, 642, 273, 394, 6281, 7605, 264, 1750, 5621, 3639, 642, 18, 542, 1830, 3305, 743, 12, 3458, 18, 588, 1396, 12, 315, 3168, 3305, 743, 6, 262, 11272, 3639, 642, 18, 542, 1830, 3305, 3744, 12, 3458, 18, 588, 1396, 12, 315, 3168, 3305, 3744, 3113, 315, 17386, 2 ]
} catch (CoreException e){
} catch (CoreException e) {
private void doOpenClass() { String name = fClassEntry.getText().getText(); name = trimNonAlphaChars(name); IProject project = getPage().getPDEEditor().getCommonProject(); String path = name.replace('.', '/') + ".java"; try { if (project.hasNature(JavaCore.NATURE_ID)){ IJavaProject javaProject = JavaCore.create(project); IJavaElement result = javaProject.findElement(new Path(path)); JavaUI.openInEditor(result); } else { IResource resource = project.findMember(new Path(path)); if (resource!=null && resource instanceof IFile){ IWorkbenchPage page = PDEPlugin.getActivePage(); IDE.openEditor(page, (IFile)resource, true); } } } catch (PartInitException e) { PDEPlugin.logException(e); } catch (JavaModelException e) { // nothing Display.getCurrent().beep(); } catch (CoreException e){ PDEPlugin.logException(e); } }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/1dbb0b54c530f703f5b13713faab970d4b145c96/GeneralInfoSection.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/plugin/GeneralInfoSection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 741, 3678, 797, 1435, 288, 202, 202, 780, 508, 273, 284, 797, 1622, 18, 588, 1528, 7675, 588, 1528, 5621, 202, 202, 529, 273, 2209, 3989, 9690, 7803, 12, 529, 1769, 202, 202, 45, 4109, 1984, 273, 8957, 7675, 588, 52, 1639, 6946, 7675, 588, 6517, 4109, 5621, 202, 202, 780, 589, 273, 508, 18, 2079, 2668, 1093, 16, 2023, 13, 397, 3552, 6290, 14432, 202, 202, 698, 288, 1082, 202, 430, 261, 4406, 18, 5332, 50, 1231, 12, 5852, 4670, 18, 50, 10511, 67, 734, 3719, 95, 9506, 202, 45, 5852, 4109, 2252, 4109, 273, 5110, 4670, 18, 2640, 12, 4406, 1769, 9506, 202, 45, 5852, 1046, 563, 273, 2252, 4109, 18, 4720, 1046, 12, 2704, 2666, 12, 803, 10019, 9506, 202, 5852, 5370, 18, 3190, 382, 6946, 12, 2088, 1769, 1082, 202, 97, 469, 288, 9506, 202, 45, 1420, 1058, 273, 1984, 18, 4720, 4419, 12, 2704, 2666, 12, 803, 10019, 9506, 202, 430, 261, 3146, 5, 33, 2011, 597, 1058, 1276, 467, 812, 15329, 6862, 202, 45, 2421, 22144, 1964, 1363, 273, 453, 1639, 3773, 18, 588, 3896, 1964, 5621, 6862, 202, 10385, 18, 3190, 6946, 12, 2433, 16, 261, 45, 812, 13, 3146, 16, 638, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 1044, 261, 1988, 2570, 503, 425, 13, 288, 1082, 202, 52, 1639, 3773, 18, 1330, 503, 12, 73, 1769, 202, 202, 97, 1044, 261, 5852, 1488, 503, 425, 13, 288, 1082, 202, 759, 5083, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 3678, 797, 1435, 288, 202, 202, 780, 508, 273, 284, 797, 1622, 18, 588, 1528, 7675, 588, 1528, 5621, 202, 202, 529, 273, 2209, 3989, 9690, 7803, 12, 529, 1769, 202, 202, 45, 4109, 1984, 273, 8957, 7675, 588, 52, 1639, 6946, 7675, 588, 6517, 4109, 5621, 202, 202, 780, 589, 273, 508, 18, 2079, 2668, 1093, 16, 2023, 13, 397, 3552, 6290, 14432, 202, 202, 698, 288, 1082, 202, 430, 261, 4406, 18, 5332, 50, 1231, 12, 5852, 4670, 18, 50, 10511, 67, 734, 3719, 95, 9506, 202, 45, 5852, 4109, 2252, 4109, 273, 5110, 4670, 18, 2640, 12, 4406, 1769, 9506, 202, 45, 5852, 1046, 563, 273, 2252, 4109, 18, 4720, 1046, 2 ]
BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID())
BitstreamFormat unknown = null;; try { unknown = findUnknown(bfContext); } catch (IllegalStateException e) { } if (unknown == null || unknown.getID() != getID()) {
public void setShortDescription(String s) throws SQLException { // You can not reset the unknown's registry's name BitstreamFormat unknown = findUnknown(bfContext); if (unknown.getID() != getID()) bfRow.setColumn("short_description", s); }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/b1f9fd2d4f8f5a194f5770c224795f089f004bd4/BitstreamFormat.java/buggy/dspace/src/org/dspace/content/BitstreamFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4897, 3291, 12, 780, 272, 13, 4202, 1216, 6483, 565, 288, 3639, 368, 4554, 848, 486, 2715, 326, 5917, 1807, 4023, 1807, 508, 3639, 6539, 3256, 1630, 5917, 273, 1104, 4874, 12, 17156, 1042, 1769, 3639, 309, 261, 8172, 18, 588, 734, 1435, 480, 14744, 10756, 5411, 16222, 1999, 18, 542, 1494, 2932, 6620, 67, 3384, 3113, 272, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 918, 444, 4897, 3291, 12, 780, 272, 13, 4202, 1216, 6483, 565, 288, 3639, 368, 4554, 848, 486, 2715, 326, 5917, 1807, 4023, 1807, 508, 3639, 6539, 3256, 1630, 5917, 273, 1104, 4874, 12, 17156, 1042, 1769, 3639, 309, 261, 8172, 18, 588, 734, 1435, 480, 14744, 10756, 5411, 16222, 1999, 18, 542, 1494, 2932, 6620, 67, 3384, 3113, 272, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ super.display(id); removeAll(); m_actionLabel.setText(id.getName() + " battle"); add(m_actionLabel); Iterator iter = battles.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), false); add(new JButton(action)); } iter = bombing.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), true); add(new JButton(action)); } SwingUtilities.invokeLater(REFRESH); }
{ super.display(id); removeAll(); m_actionLabel.setText(id.getName() + " battle"); add(m_actionLabel); Iterator iter = battles.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), false); add(new JButton(action)); } iter = bombing.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), true); add(new JButton(action)); } SwingUtilities.invokeLater(REFRESH); }
public void display(PlayerID id, Collection battles, Collection bombing) { super.display(id); removeAll(); m_actionLabel.setText(id.getName() + " battle"); add(m_actionLabel); Iterator iter = battles.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), false); add(new JButton(action)); } iter = bombing.iterator(); while(iter.hasNext() ) { Action action = new FightBattleAction((Territory) iter.next(), true); add(new JButton(action)); } SwingUtilities.invokeLater(REFRESH); }
8909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8909/7323d27dff023d9995ebfe7fc40938462adf250b/BattlePanel.java/buggy/triplea/src/games/strategy/triplea/ui/BattlePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2562, 12, 12148, 734, 612, 16, 2200, 324, 4558, 1040, 16, 2200, 324, 16659, 310, 13, 202, 95, 202, 202, 9565, 18, 5417, 12, 350, 1769, 202, 202, 4479, 1595, 5621, 202, 202, 81, 67, 1128, 2224, 18, 542, 1528, 12, 350, 18, 17994, 1435, 397, 315, 324, 4558, 298, 8863, 202, 202, 1289, 12, 81, 67, 1128, 2224, 1769, 202, 202, 3198, 1400, 273, 324, 4558, 1040, 18, 9838, 5621, 202, 202, 17523, 12, 2165, 18, 5332, 2134, 1435, 262, 202, 202, 95, 1082, 202, 1803, 1301, 273, 394, 478, 750, 38, 4558, 298, 1803, 12443, 56, 25313, 13, 1400, 18, 4285, 9334, 629, 1769, 1082, 202, 1289, 12, 2704, 28804, 12, 1128, 10019, 202, 202, 97, 9506, 202, 2165, 273, 324, 16659, 310, 18, 9838, 5621, 202, 202, 17523, 12, 2165, 18, 5332, 2134, 1435, 262, 202, 202, 95, 1082, 202, 1803, 1301, 273, 394, 478, 750, 38, 4558, 298, 1803, 12443, 56, 25313, 13, 1400, 18, 4285, 9334, 638, 1769, 1082, 202, 1289, 12, 2704, 28804, 12, 1128, 10019, 202, 202, 97, 202, 202, 6050, 310, 11864, 18, 14407, 20607, 12, 10771, 14753, 1769, 202, 97, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 482, 918, 2562, 12, 12148, 734, 612, 16, 2200, 324, 4558, 1040, 16, 2200, 324, 16659, 310, 13, 202, 95, 202, 202, 9565, 18, 5417, 12, 350, 1769, 202, 202, 4479, 1595, 5621, 202, 202, 81, 67, 1128, 2224, 18, 542, 1528, 12, 350, 18, 17994, 1435, 397, 315, 324, 4558, 298, 8863, 202, 202, 1289, 12, 81, 67, 1128, 2224, 1769, 202, 202, 3198, 1400, 273, 324, 4558, 1040, 18, 9838, 5621, 202, 202, 17523, 12, 2165, 18, 5332, 2134, 1435, 262, 202, 202, 95, 1082, 202, 1803, 1301, 273, 394, 478, 750, 38, 4558, 298, 1803, 12443, 56, 25313, 13, 1400, 18, 4285, 9334, 629, 1769, 1082, 202, 1289, 12, 2704, 28804, 12, 1128, 10019, 2 ]
UCDProperty up = UnifiedBinaryProperty.make(i, Default.ucd);
UCDProperty up = UnifiedBinaryProperty.make(i, Default.ucd());
public static void generateVerticalSlice(int startEnum, int endEnum, int headerChoice, String directory, String file) throws IOException { Default.setUCD(); String newFile = directory + file + getFileSuffix(true); PrintWriter output = Utility.openPrintWriter(newFile, Utility.LATIN1_UNIX); String[] batName = {""}; String mostRecent = generateBat(directory, file, getFileSuffix(true), batName); doHeader(file + getFileSuffix(false), output, headerChoice); int last = -1; for (int i = startEnum; i < endEnum; ++i) { UCDProperty up = UnifiedBinaryProperty.make(i, Default.ucd); if (up == null) continue; if (up.skipInDerivedListing()) continue; /* if (i == DECOMPOSITION_TYPE || i == NUMERIC_TYPE || i == (BINARY_PROPERTIES | Non_break) || i == (BINARY_PROPERTIES | CaseFoldTurkishI) || i == (HANGUL_SYLLABLE_TYPE | NA) || i == (JOINING_TYPE | JT_U) || i == (JOINING_GROUP | NO_SHAPING) ) continue; // skip zero case */ /*if (skipSpecial == SKIP_SPECIAL && i >= (BINARY_PROPERTIES | CompositionExclusion) && i < (AGE + NEXT_ENUM)) continue; */ if ((last & 0xFF00) != (i & 0xFF00) && (i <= BINARY_PROPERTIES || i >= SCRIPT)) { output.println(); output.println(HORIZONTAL_LINE); output.println("# " + up.getHeader()); output.println(HORIZONTAL_LINE); output.println(); System.out.println(); System.out.println(up.getHeader()); last = i; } else { output.println(HORIZONTAL_LINE); output.println(); } System.out.print("."); if (DEBUG) System.out.println(i); new MyPropertyLister(Default.ucd, i, output).print(); output.flush(); } if (endEnum == LIMIT_ENUM) { output.println(); output.println(HORIZONTAL_LINE); output.println("# Numeric Values (from UnicodeData.txt, field 6/7/8)"); output.println(HORIZONTAL_LINE); output.println(); System.out.println(); System.out.println("@NUMERIC VALUES"); Set numericValueSet = new TreeSet(); for (int i = 0; i < 0x10FFFF; ++i) { double nv = Default.ucd.getNumericValue(i); if (Double.isNaN(nv)) continue; numericValueSet.add(new Double(nv)); } Iterator it = numericValueSet.iterator(); while(it.hasNext()) { new MyFloatLister(Default.ucd, ((Double)it.next()).doubleValue(), output).print(); output.println(); System.out.print("."); } output.flush(); } output.close(); //System.out.println("HERE"); Utility.renameIdentical(mostRecent, Utility.getOutputName(newFile), batName[0]); System.out.println(); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/d1ef79fafdbbeaaf4dcbaa9d3c534754c217d955/GenerateData.java/buggy/tools/unicodetools/com/ibm/text/UCD/GenerateData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2103, 15704, 5959, 12, 474, 787, 3572, 16, 509, 679, 3572, 16, 5411, 509, 1446, 10538, 16, 514, 1867, 16, 514, 585, 13, 1216, 1860, 288, 3639, 2989, 18, 542, 57, 10160, 5621, 3639, 514, 20592, 273, 1867, 397, 585, 397, 6034, 5791, 12, 3767, 1769, 3639, 14071, 876, 273, 13134, 18, 3190, 5108, 2289, 12, 2704, 812, 16, 13134, 18, 20095, 21, 67, 10377, 60, 1769, 3639, 514, 8526, 27464, 461, 273, 288, 3660, 20451, 3639, 514, 4486, 17076, 273, 2103, 38, 270, 12, 5149, 16, 585, 16, 6034, 5791, 12, 3767, 3631, 27464, 461, 1769, 7734, 741, 1864, 12, 768, 397, 6034, 5791, 12, 5743, 3631, 876, 16, 1446, 10538, 1769, 3639, 509, 1142, 273, 300, 21, 31, 3639, 364, 261, 474, 277, 273, 787, 3572, 31, 277, 411, 679, 3572, 31, 965, 77, 13, 288, 5411, 587, 10160, 1396, 731, 273, 1351, 939, 5905, 1396, 18, 6540, 12, 77, 16, 2989, 18, 89, 4315, 10663, 5411, 309, 261, 416, 422, 446, 13, 1324, 31, 5411, 309, 261, 416, 18, 7457, 382, 21007, 19081, 10756, 1324, 31, 13491, 1748, 5411, 309, 261, 77, 422, 2030, 4208, 15258, 67, 2399, 747, 277, 422, 31288, 67, 2399, 7734, 747, 277, 422, 261, 16813, 67, 17421, 571, 3858, 67, 8820, 13, 7734, 747, 277, 422, 261, 16813, 67, 17421, 571, 12605, 15592, 56, 20628, 1468, 45, 13, 7734, 747, 277, 422, 261, 22126, 67, 7474, 11998, 67, 2399, 571, 28182, 13, 7734, 747, 277, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2103, 15704, 5959, 12, 474, 787, 3572, 16, 509, 679, 3572, 16, 5411, 509, 1446, 10538, 16, 514, 1867, 16, 514, 585, 13, 1216, 1860, 288, 3639, 2989, 18, 542, 57, 10160, 5621, 3639, 514, 20592, 273, 1867, 397, 585, 397, 6034, 5791, 12, 3767, 1769, 3639, 14071, 876, 273, 13134, 18, 3190, 5108, 2289, 12, 2704, 812, 16, 13134, 18, 20095, 21, 67, 10377, 60, 1769, 3639, 514, 8526, 27464, 461, 273, 288, 3660, 20451, 3639, 514, 4486, 17076, 273, 2103, 38, 270, 12, 5149, 16, 585, 16, 6034, 5791, 12, 3767, 3631, 27464, 461, 1769, 7734, 741, 1864, 12, 768, 397, 6034, 5791, 12, 5743, 3631, 876, 16, 1446, 10538, 1769, 3639, 509, 2 ]
assertNotNull("Second generated certificate is null", crl);
assertNotNull("Second generated CRL is null", crl);
public void testEngineGenerateCRL() { X509CertFactoryImpl certFactory = new X509CertFactoryImpl(); CRL crl; // DER encoded crt generation testing ByteArrayInputStream bais = new ByteArrayInputStream( CertFactoryTestData.getCRLEncoding()); try { crl = certFactory.engineGenerateCRL(bais); assertNotNull("First generated certificate is null", crl); crl = certFactory.engineGenerateCRL(bais); assertNotNull("Second generated certificate is null", crl); } catch (CRLException e) { e.printStackTrace(); fail("Unexpected CRLException: " + e.getMessage()); } try { certFactory.engineGenerateCRL(bais); fail("Expected CRLException was not thrown."); } catch (CRLException e) { } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/0678f9f6d7203547829010d9918a41bfa0487c22/X509CertFactoryImplTest.java/buggy/modules/security/src/test/java/common/org/apache/harmony/security/provider/cert/X509CertFactoryImplTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 4410, 4625, 29524, 1435, 288, 3639, 1139, 5995, 5461, 1733, 2828, 3320, 1733, 273, 394, 1139, 5995, 5461, 1733, 2828, 5621, 3639, 26526, 18789, 31, 7734, 368, 21801, 3749, 30677, 9377, 7769, 3639, 16180, 9846, 291, 273, 2398, 394, 16180, 12, 10792, 11921, 1733, 4709, 751, 18, 588, 29524, 4705, 10663, 3639, 775, 288, 5411, 18789, 273, 3320, 1733, 18, 8944, 4625, 29524, 12, 12124, 291, 1769, 5411, 25395, 2932, 3759, 4374, 4944, 353, 446, 3113, 18789, 1769, 5411, 18789, 273, 3320, 1733, 18, 8944, 4625, 29524, 12, 12124, 291, 1769, 5411, 25395, 2932, 8211, 4374, 26526, 353, 446, 3113, 18789, 1769, 3639, 289, 1044, 261, 29524, 503, 425, 13, 288, 5411, 425, 18, 1188, 6332, 5621, 5411, 2321, 2932, 7762, 26526, 503, 30, 315, 397, 425, 18, 24906, 10663, 3639, 289, 7734, 775, 288, 5411, 3320, 1733, 18, 8944, 4625, 29524, 12, 12124, 291, 1769, 5411, 2321, 2932, 6861, 26526, 503, 1703, 486, 6718, 1199, 1769, 3639, 289, 1044, 261, 29524, 503, 425, 13, 288, 3639, 289, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 918, 1842, 4410, 4625, 29524, 1435, 288, 3639, 1139, 5995, 5461, 1733, 2828, 3320, 1733, 273, 394, 1139, 5995, 5461, 1733, 2828, 5621, 3639, 26526, 18789, 31, 7734, 368, 21801, 3749, 30677, 9377, 7769, 3639, 16180, 9846, 291, 273, 2398, 394, 16180, 12, 10792, 11921, 1733, 4709, 751, 18, 588, 29524, 4705, 10663, 3639, 775, 288, 5411, 18789, 273, 3320, 1733, 18, 8944, 4625, 29524, 12, 12124, 291, 1769, 5411, 25395, 2932, 3759, 4374, 4944, 353, 446, 3113, 18789, 1769, 5411, 18789, 273, 3320, 1733, 18, 8944, 4625, 29524, 12, 12124, 291, 1769, 5411, 25395, 2932, 8211, 4374, 26526, 353, 446, 3113, 18789, 1769, 3639, 289, 1044, 261, 29524, 503, 425, 13, 288, 5411, 425, 18, 1188, 2 ]
return super.typeCheck(tc);
X10New_c result = (X10New_c) super.typeCheck(tc); result = result.adjustCI(tc); return result;
public Node typeCheck(TypeChecker tc) throws SemanticException { X10New_c n = this; X10NodeFactory xnf = (X10NodeFactory) tc.nodeFactory(); X10TypeSystem xts = (X10TypeSystem) tc.typeSystem(); TypeNode oType = n.objectType(); String opName = null; if (n.body != null && n.qualifier == null && oType instanceof CanonicalTypeNode) { ClassType type = oType.type().toClass(); ClassType outer = null; if (type.isNested() && (outer = type.container().toClass()) != null && xts.isX10Array(outer)) { opName = type.name(); } } if (opName != null) { // Special array operations Position nPos = oType.position(); if (opName.equals("pointwiseOp")) { List members = n.body.members(); MethodDecl apply = n.findMethod1Arg("apply", members); MethodInstance mi = apply.methodInstance(); TypeNode appResultType = apply.returnType(); List formals = apply.formals(); assert (!formals.isEmpty()); List l1 = TypedList.copy(formals, X10Formal.class, false); X10Formal firstArg = (X10Formal) formals.get(0); Position pos = firstArg.position(); LocalInstance li = firstArg.localInstance(); li = li.flags(Flags.FINAL).type(mi.returnType()).name("_"); l1.add(((X10Formal) xnf.Formal(pos, Flags.FINAL, appResultType, "_").localInstance(li)).localInstances(X10Formal_c.NO_LOCALS)); ReferenceType tOperatorPointwise = xts.OperatorPointwise(); List l2 = TypedList.copy(mi.formalTypes(), Type.class, false); l2.add(mi.returnType()); mi = mi.container(tOperatorPointwise).formalTypes(l2); MethodDecl decl = apply.formals(l1).methodInstance(mi); // new ClassOrInterfaceType ( ArgumentListopt ) ClassBodyopt List classDecl = new TypedList(new LinkedList(), MethodDecl.class, false); for (int i = 0; i < members.size(); i++) { Object m = members.get(i); if (m != apply) classDecl.add(m); else classDecl.add(decl); } CanonicalTypeNode t = xnf.CanonicalTypeNode(nPos, tOperatorPointwise); ParsedClassType anon = n.anonType(); // FIXME: this is probably breaking some assumptions in the typesystem anon.superType(tOperatorPointwise); return n.objectType(t).body(n.body().members(classDecl)).typeCheckOverride(null, tc); } else if (opName.equals("binaryOp")) { TypeNode t = xnf.CanonicalTypeNode(nPos, xts.OperatorBinary()); return n.objectType(t).typeCheckOverride(null, tc); } else if (opName.equals("unaryOp")) { TypeNode t = xnf.CanonicalTypeNode(nPos, xts.OperatorUnary()); return n.objectType(t).typeCheckOverride(null, tc); } } return super.typeCheck(tc); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/f8e1720cd66996a6339b992bf154aa0d019240a3/X10New_c.java/buggy/x10.compiler/src/polyglot/ext/x10/ast/X10New_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2029, 618, 1564, 12, 559, 8847, 1715, 13, 1216, 24747, 503, 288, 202, 202, 60, 2163, 1908, 67, 71, 290, 273, 333, 31, 202, 202, 60, 2163, 907, 1733, 619, 82, 74, 273, 261, 60, 2163, 907, 1733, 13, 1715, 18, 2159, 1733, 5621, 202, 202, 60, 2163, 559, 3163, 619, 3428, 273, 261, 60, 2163, 559, 3163, 13, 1715, 18, 723, 3163, 5621, 202, 202, 559, 907, 320, 559, 273, 290, 18, 1612, 559, 5621, 202, 202, 780, 1061, 461, 273, 446, 31, 202, 202, 430, 261, 82, 18, 3432, 480, 446, 597, 290, 18, 28157, 422, 446, 597, 320, 559, 1276, 19413, 559, 907, 13, 288, 1082, 202, 18328, 618, 273, 320, 559, 18, 723, 7675, 869, 797, 5621, 1082, 202, 18328, 6390, 273, 446, 31, 1082, 202, 430, 261, 723, 18, 291, 8649, 1435, 597, 261, 14068, 273, 618, 18, 3782, 7675, 869, 797, 10756, 480, 446, 597, 619, 3428, 18, 291, 60, 2163, 1076, 12, 14068, 3719, 288, 9506, 202, 556, 461, 273, 618, 18, 529, 5621, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 556, 461, 480, 446, 13, 288, 1082, 202, 759, 13409, 526, 5295, 1082, 202, 2555, 290, 1616, 273, 320, 559, 18, 3276, 5621, 1082, 202, 430, 261, 556, 461, 18, 14963, 2932, 1153, 2460, 3817, 6, 3719, 1082, 202, 95, 9506, 202, 682, 4833, 273, 290, 18, 3432, 18, 7640, 5621, 9506, 202, 1305, 3456, 2230, 273, 290, 18, 4720, 1305, 21, 4117, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2029, 618, 1564, 12, 559, 8847, 1715, 13, 1216, 24747, 503, 288, 202, 202, 60, 2163, 1908, 67, 71, 290, 273, 333, 31, 202, 202, 60, 2163, 907, 1733, 619, 82, 74, 273, 261, 60, 2163, 907, 1733, 13, 1715, 18, 2159, 1733, 5621, 202, 202, 60, 2163, 559, 3163, 619, 3428, 273, 261, 60, 2163, 559, 3163, 13, 1715, 18, 723, 3163, 5621, 202, 202, 559, 907, 320, 559, 273, 290, 18, 1612, 559, 5621, 202, 202, 780, 1061, 461, 273, 446, 31, 202, 202, 430, 261, 82, 18, 3432, 480, 446, 597, 290, 18, 28157, 422, 446, 597, 320, 559, 1276, 19413, 559, 907, 13, 288, 1082, 202, 18328, 618, 273, 320, 559, 18, 2 ]
if ( compareDates(date, fEnumeration[count]) == EQUAL ) {
if ( compareDates(date, fEnumeration[count], false) == EQUAL ) {
protected void validateDate (int[] date, String content) throws InvalidDatatypeValueException{ if ( this.fBaseValidator != null ) {//validate against parent type if any if ( (fFacetsDefined & DatatypeValidator.FACET_PATTERN ) != 0 ) { if ( fRegex == null || fRegex.matches( content) == false ) throw new InvalidDatatypeValueException("Value'"+content+ "' does not match regular expression facet " + fRegex.getPattern() ); } //validate against base type ((DateTimeValidator)this.fBaseValidator).validateDate( date, content); if ( (fFacetsDefined & DatatypeValidator.FACET_ENUMERATION ) != 0 ) { int count=0; boolean valid = false; while ( count < fEnumSize ) { if ( compareDates(date, fEnumeration[count]) == EQUAL ) { valid = true; break; } count++; } if ( !valid ) { throw new InvalidDatatypeValueException("Value'"+content+ "' does not match enumeration values" ); } } // REVISIT: output values for facets in error message short c; if ( fMinInclusive != null ) { c = compareDates(date, fMinInclusive); if ( c == LESS_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than minInclusive: " +dateToString(fMinInclusive) ); } } if ( fMinExclusive != null ) { if ( compareDates(date, fMinExclusive) != GREATER_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is less than or equal to minExclusive: " +dateToString(fMinExclusive)); } } if ( fMaxInclusive != null ) { c = compareDates(date, fMaxInclusive ); if ( c == GREATER_THAN || c == INDETERMINATE ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than maxInclusive: " +dateToString(fMaxInclusive) ); } } if ( fMaxExclusive != null ) { if ( compareDates(date, fMaxExclusive ) != LESS_THAN ) { throw new InvalidDatatypeValueException("Value '"+content+ "' is greater than or equal to maxExlusive: " +dateToString(fMaxExclusive) ); } } } else { return; } }
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/f515eacdd7ba17e3601eb920f65eec089bf3b251/DateTimeValidator.java/clean/src/org/apache/xerces/validators/datatype/DateTimeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1954, 1626, 261, 474, 8526, 1509, 16, 514, 913, 13, 1216, 1962, 20228, 9738, 95, 3639, 309, 261, 333, 18, 74, 2171, 5126, 480, 446, 262, 288, 759, 5662, 5314, 982, 618, 309, 1281, 5411, 309, 261, 261, 74, 6645, 2413, 8116, 473, 21168, 5126, 18, 11300, 56, 67, 10831, 262, 480, 374, 262, 288, 7734, 309, 261, 284, 6628, 422, 446, 747, 284, 6628, 18, 8436, 12, 913, 13, 422, 629, 262, 10792, 604, 394, 1962, 20228, 9738, 2932, 620, 4970, 15, 1745, 15, 4766, 18701, 2491, 1552, 486, 845, 6736, 2652, 11082, 315, 397, 284, 6628, 18, 588, 3234, 1435, 11272, 5411, 289, 5411, 368, 5662, 5314, 1026, 618, 5411, 14015, 5096, 5126, 13, 2211, 18, 74, 2171, 5126, 2934, 5662, 1626, 12, 1509, 16, 913, 1769, 5411, 309, 261, 261, 74, 6645, 2413, 8116, 473, 21168, 5126, 18, 11300, 56, 67, 16509, 654, 2689, 262, 480, 374, 262, 288, 7734, 509, 1056, 33, 20, 31, 7734, 1250, 923, 273, 629, 31, 7734, 1323, 261, 1056, 411, 284, 3572, 1225, 262, 288, 10792, 309, 261, 3400, 15578, 12, 712, 16, 284, 21847, 63, 1883, 6487, 629, 13, 422, 18231, 262, 288, 13491, 923, 273, 638, 31, 13491, 898, 31, 10792, 289, 10792, 1056, 9904, 31, 7734, 289, 7734, 309, 261, 401, 877, 262, 288, 10792, 604, 394, 1962, 20228, 9738, 2932, 620, 4970, 15, 1745, 15, 4766, 18701, 2491, 1552, 486, 845, 16836, 924, 6, 11272, 7734, 289, 5411, 289, 5411, 368, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1954, 1626, 261, 474, 8526, 1509, 16, 514, 913, 13, 1216, 1962, 20228, 9738, 95, 3639, 309, 261, 333, 18, 74, 2171, 5126, 480, 446, 262, 288, 759, 5662, 5314, 982, 618, 309, 1281, 5411, 309, 261, 261, 74, 6645, 2413, 8116, 473, 21168, 5126, 18, 11300, 56, 67, 10831, 262, 480, 374, 262, 288, 7734, 309, 261, 284, 6628, 422, 446, 747, 284, 6628, 18, 8436, 12, 913, 13, 422, 629, 262, 10792, 604, 394, 1962, 20228, 9738, 2932, 620, 4970, 15, 1745, 15, 4766, 18701, 2491, 1552, 486, 845, 6736, 2652, 11082, 315, 397, 284, 6628, 18, 588, 3234, 1435, 11272, 5411, 289, 5411, 368, 5662, 5314, 1026, 618, 5411, 14015, 5096, 5126, 13, 2 ]
LinkedHashMap attlist = (LinkedHashMap) doctype.attlists.get(elementName); if (attlist == null) { attlist = new LinkedHashMap(); doctype.attlists.put(elementName, attlist); } if (attlist.containsKey(name)) { return; }
private void readDefault(String elementName, String name, String type, String enumeration) throws IOException, XMLStreamException { int valueType = ATTRIBUTE_DEFAULT_SPECIFIED; int flags = LIT_ATTRIBUTE; String value = null, defaultType = null; boolean saved = expandPE; if (!"CDATA".equals(type)) flags |= LIT_NORMALIZE; expandPE = false; if (tryRead('#')) { if (tryRead("FIXED")) { defaultType = "#FIXED"; valueType = ATTRIBUTE_DEFAULT_FIXED; requireWhitespace(); value = readLiteral(flags); } else if (tryRead("REQUIRED")) { defaultType = "#REQUIRED"; valueType = ATTRIBUTE_DEFAULT_REQUIRED; } else if (tryRead("IMPLIED")) { defaultType = "#IMPLIED"; valueType = ATTRIBUTE_DEFAULT_IMPLIED; } else error("illegal keyword for attribute default value"); } else value = readLiteral(flags); expandPE = saved; /*if ("ENUMERATION".equals(type)) type = enumer; else if ("NOTATION".equals(type)) type = "NOTATION " + enumer;*/ // Register attribute def LinkedHashMap attlist = (LinkedHashMap) doctype.attlists.get(elementName); if (attlist == null) { attlist = new LinkedHashMap(); doctype.attlists.put(elementName, attlist); } if (attlist.containsKey(name)) { return; } AttributeDecl attribute = new AttributeDecl(type, value, valueType, enumeration); attlist.put(name, attribute); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/d04bf782436cf12e5688a7b0f991513dc042ba74/XMLParser.java/buggy/gnu/xml/stream/XMLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 855, 1868, 12, 780, 14453, 16, 514, 508, 16, 21821, 514, 618, 16, 514, 16836, 13, 565, 1216, 1860, 16, 21526, 225, 288, 565, 509, 13692, 273, 15941, 67, 5280, 67, 13847, 13519, 31, 565, 509, 2943, 273, 511, 1285, 67, 11616, 31, 565, 514, 460, 273, 446, 16, 805, 559, 273, 446, 31, 565, 1250, 5198, 273, 4542, 1423, 31, 3639, 309, 261, 4442, 18375, 9654, 14963, 12, 723, 3719, 1377, 2943, 5626, 511, 1285, 67, 15480, 15641, 31, 565, 4542, 1423, 273, 629, 31, 565, 309, 261, 698, 1994, 2668, 10038, 3719, 1377, 288, 3639, 309, 261, 698, 1994, 2932, 30406, 6, 3719, 1850, 288, 5411, 805, 559, 273, 6619, 30406, 14432, 5411, 13692, 273, 15941, 67, 5280, 67, 30406, 31, 5411, 2583, 9431, 5621, 5411, 460, 273, 855, 6177, 12, 7133, 1769, 1850, 289, 3639, 469, 309, 261, 698, 1994, 2932, 14977, 6, 3719, 1850, 288, 5411, 805, 559, 273, 6619, 14977, 14432, 5411, 13692, 273, 15941, 67, 5280, 67, 14977, 31, 1850, 289, 3639, 469, 309, 261, 698, 1994, 2932, 9883, 2053, 2056, 6, 3719, 1850, 288, 5411, 805, 559, 273, 6619, 9883, 2053, 2056, 14432, 5411, 13692, 273, 15941, 67, 5280, 67, 9883, 2053, 2056, 31, 1850, 289, 3639, 469, 1850, 555, 2932, 31751, 4932, 364, 1566, 805, 460, 8863, 1377, 289, 565, 469, 1377, 460, 273, 855, 6177, 12, 7133, 1769, 565, 4542, 1423, 273, 5198, 31, 565, 1748, 430, 7566, 16509, 654, 2689, 9654, 14963, 12, 723, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 1868, 12, 780, 14453, 16, 514, 508, 16, 21821, 514, 618, 16, 514, 16836, 13, 565, 1216, 1860, 16, 21526, 225, 288, 565, 509, 13692, 273, 15941, 67, 5280, 67, 13847, 13519, 31, 565, 509, 2943, 273, 511, 1285, 67, 11616, 31, 565, 514, 460, 273, 446, 16, 805, 559, 273, 446, 31, 565, 1250, 5198, 273, 4542, 1423, 31, 3639, 309, 261, 4442, 18375, 9654, 14963, 12, 723, 3719, 1377, 2943, 5626, 511, 1285, 67, 15480, 15641, 31, 565, 4542, 1423, 273, 629, 31, 565, 309, 261, 698, 1994, 2668, 10038, 3719, 1377, 288, 3639, 309, 261, 698, 1994, 2932, 30406, 6, 3719, 1850, 288, 5411, 805, 559, 273, 6619, 30406, 14432, 5411, 13692, 2 ]
process.getRequestsManager().myInvalidRequestors.remove(breakpoint); process.getRequestsManager().deleteRequest(breakpoint);
public void action(DebugProcessImpl process) { process.getRequestsManager().myInvalidRequestors.remove(breakpoint); process.getRequestsManager().deleteRequest(breakpoint); breakpoint.createRequest(process); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/b560e9e99a52f886dbe82c42baf7d7d07264fa73/RequestManagerImpl.java/clean/debugger/impl/com/intellij/debugger/engine/requests/RequestManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1301, 12, 2829, 2227, 2828, 1207, 13, 225, 288, 3639, 1207, 18, 588, 6421, 1318, 7675, 4811, 1941, 691, 1383, 18, 4479, 12, 8820, 1153, 1769, 3639, 1207, 18, 588, 6421, 1318, 7675, 3733, 691, 12, 8820, 1153, 1769, 3639, 18820, 18, 2640, 691, 12, 2567, 1769, 1377, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1301, 12, 2829, 2227, 2828, 1207, 13, 225, 288, 3639, 1207, 18, 588, 6421, 1318, 7675, 4811, 1941, 691, 1383, 18, 4479, 12, 8820, 1153, 1769, 3639, 1207, 18, 588, 6421, 1318, 7675, 3733, 691, 12, 8820, 1153, 1769, 3639, 18820, 18, 2640, 691, 12, 2567, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
StyleHandle style1Handle = style1.handle( design ); Iterator highlightHandles = style1Handle.highlightRulesIterator( );
Iterator highlightHandles = style1.highlightRulesIterator( );
public void testParse( ) throws SemanticException { StyleElement myStyle = design.findStyle( "My Style" ); //$NON-NLS-1$ assertNotNull( myStyle ); fontHandle = myStyle.getHandle( design ).getFontProperty( ); // tests with the font name as CSS-compatible string. assertEquals( DesignChoiceConstants.FONT_FAMILY_CURSIVE, fontHandle .getStringValue( ) ); //$NON-NLS-1$ // tests with the font as a display string. ThreadResources.setLocale( TEST_LOCALE ); //$NON-NLS-1$ assertEquals( "\u8fde\u4f53", fontHandle.getDisplayValue( ) ); //$NON-NLS-1$ assertEquals( DesignChoiceConstants.FONT_FAMILY_CURSIVE, fontHandle .getStringValue( ) ); ThreadResources.setLocale( ULocale.ENGLISH ); assertEquals( "Cursive", fontHandle //$NON-NLS-1$ .getDisplayValue( ) ); // tests with the font entry at a given position, should be null. Style style1 = (Style) design.findStyle( "Style1" ); //$NON-NLS-1$ assertNotNull( style1 ); fontHandle = style1.getHandle( design ).getFontProperty( ); // tests with the font entry at a given position. assertEquals( "Time New Roman, Arial", fontHandle.getStringValue( ) ); //$NON-NLS-1$ String[] names = fontHandle.getFontFamilies( ); assertEquals( "Time New Roman", names[0] ); //$NON-NLS-1$ assertEquals( "Arial", names[1] ); //$NON-NLS-1$ // tests sets/gets CSS constant names. fontHandle.setValue( DesignChoiceConstants.FONT_FAMILY_SANS_SERIF ); assertEquals( DesignChoiceConstants.FONT_FAMILY_SANS_SERIF, fontHandle .getStringValue( ) ); // read a font handle from a structure like highlight. StyleHandle style1Handle = style1.handle( design ); Iterator highlightHandles = style1Handle.highlightRulesIterator( ); assertNotNull( highlightHandles ); HighlightRuleHandle highlightHandle = (HighlightRuleHandle) highlightHandles .next( ); assertNotNull( highlightHandle ); // no font family has been defined for style1, the value should be null. FontHandle fontHandle = highlightHandle.getFontFamilyHandle( ); assertNotNull( fontHandle ); assertNull( fontHandle.getStringValue( ) ); //$NON-NLS-1$ assertNull( fontHandle.getFontFamilies( ) ); //$NON-NLS-1$ Style style2 = (Style) design.findStyle( "Style2" ); //$NON-NLS-1$ assertNotNull( style2 ); // font handle with a default value. fontHandle = null; fontHandle = style2.getHandle( design ).getFontProperty( ); assertNotNull( fontHandle ); // tests with the font entry at a given position. names = fontHandle.getFontFamilies( ); assertEquals( 1, names.length ); assertEquals( "serif", names[0] ); //$NON-NLS-1$ // tests with the font weight. StyleHandle style2Handle = style2.handle( design ); assertNotNull( style2Handle ); assertEquals( DesignChoiceConstants.FONT_WEIGHT_LIGHTER, style2Handle .getFontWeight( ) ); style2Handle.setFontWeight( DesignChoiceConstants.FONT_WEIGHT_100 ); assertEquals( DesignChoiceConstants.FONT_WEIGHT_100, style2Handle .getFontWeight( ) ); try { style2Handle.setFontWeight( "450" ); //$NON-NLS-1$ fail( ); } catch ( PropertyValueException e ) { assertEquals( e.getErrorCode( ), PropertyValueException.DESIGN_EXCEPTION_CHOICE_NOT_FOUND ); } // read a font handle from a structure like highlight. highlightHandles = style2Handle.highlightRulesIterator( ); assertNotNull( highlightHandles ); highlightHandle = (HighlightRuleHandle) highlightHandles.next( ); assertNotNull( highlightHandle ); fontHandle = highlightHandle.getFontFamilyHandle( ); assertEquals( "Arial", fontHandle.getStringValue( ) ); //$NON-NLS-1$ assertEquals( "Arial", fontHandle.getDisplayValue( ) ); //$NON-NLS-1$ // no second highlight rule, must be null. highlightHandle = (HighlightRuleHandle) highlightHandles.next( ); assertNull( highlightHandle ); // finds a design element that do not support font family property. OdaDataSource dataSource = (OdaDataSource) design .findDataSource( "myDataSource" ); //$NON-NLS-1$ assertNotNull( dataSource ); // font handle must be null. fontHandle = dataSource.getHandle( design ).getFontProperty( ); assertNull( fontHandle ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/de4e32d64d24337e8801521456bb895f21408aa9/FontHandleTest.java/clean/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/FontHandleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3201, 12, 262, 1216, 24747, 503, 202, 95, 202, 202, 2885, 1046, 3399, 2885, 273, 8281, 18, 4720, 2885, 12, 315, 12062, 9767, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 3399, 2885, 11272, 202, 202, 5776, 3259, 273, 3399, 2885, 18, 588, 3259, 12, 8281, 262, 18, 588, 5711, 1396, 12, 11272, 202, 202, 759, 225, 7434, 598, 326, 3512, 508, 487, 6765, 17, 10943, 533, 18, 202, 202, 11231, 8867, 12, 29703, 10538, 2918, 18, 25221, 67, 25002, 25554, 67, 7509, 24870, 16, 3512, 3259, 9506, 202, 18, 588, 19733, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 7434, 598, 326, 3512, 487, 279, 2562, 533, 18, 202, 202, 3830, 3805, 18, 542, 3916, 12, 22130, 67, 25368, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 3196, 202, 11231, 8867, 12, 1548, 89, 28, 74, 323, 64, 89, 24, 74, 8643, 3113, 3512, 3259, 18, 588, 4236, 620, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 8867, 12, 29703, 10538, 2918, 18, 25221, 67, 25002, 25554, 67, 7509, 24870, 16, 3512, 3259, 9506, 202, 18, 588, 19733, 12, 262, 11272, 202, 202, 3830, 3805, 18, 542, 3916, 12, 29145, 18, 16324, 13462, 11272, 202, 202, 11231, 8867, 12, 315, 2408, 18376, 3113, 3512, 3259, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 18, 588, 4236, 620, 12, 262, 11272, 202, 202, 759, 225, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3201, 12, 262, 1216, 24747, 503, 202, 95, 202, 202, 2885, 1046, 3399, 2885, 273, 8281, 18, 4720, 2885, 12, 315, 12062, 9767, 6, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 11231, 5962, 12, 3399, 2885, 11272, 202, 202, 5776, 3259, 273, 3399, 2885, 18, 588, 3259, 12, 8281, 262, 18, 588, 5711, 1396, 12, 11272, 202, 202, 759, 225, 7434, 598, 326, 3512, 508, 487, 6765, 17, 10943, 533, 18, 202, 202, 11231, 8867, 12, 29703, 10538, 2918, 18, 25221, 67, 25002, 25554, 67, 7509, 24870, 16, 3512, 3259, 9506, 202, 18, 588, 19733, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 759, 7434, 598, 326, 2 ]
public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer();
public quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { quickfix.field.EncodedIssuer value = new quickfix.field.EncodedIssuer();
public org.quickfix.field.EncodedIssuer getEncodedIssuer() throws FieldNotFound { org.quickfix.field.EncodedIssuer value = new org.quickfix.field.EncodedIssuer(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralResponse.java/clean/src/java/src/quickfix/fix44/CollateralResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 28799, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 28799, 16667, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
throws XMLDBException { XQueryService service = getXQueryService(collection); Source source = new StringSource(xquery); return service.execute(source); }
throws XMLDBException { XQueryService service = getXQueryService(collection); Source source = new StringSource(xquery); return service.execute(source); }
public static ResourceSet xquery(Collection collection, String xquery) throws XMLDBException { XQueryService service = getXQueryService(collection); Source source = new StringSource(xquery); return service.execute(source); }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ddb39e0c7d3412864c22f67055cf8d1183ff3519/DBUtils.java/clean/src/org/exist/xmldb/test/concurrent/DBUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 2591, 694, 619, 2271, 12, 2532, 1849, 16, 514, 619, 2271, 13, 202, 15069, 26014, 503, 202, 95, 202, 202, 60, 1138, 1179, 1156, 273, 6538, 1138, 1179, 12, 5548, 1769, 202, 202, 1830, 1084, 273, 394, 514, 1830, 12, 92, 2271, 1769, 202, 202, 2463, 1156, 18, 8837, 12, 3168, 1769, 202, 97, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 225, 202, 482, 760, 2591, 694, 619, 2271, 12, 2532, 1849, 16, 514, 619, 2271, 13, 202, 15069, 26014, 503, 202, 95, 202, 202, 60, 1138, 1179, 1156, 273, 6538, 1138, 1179, 12, 5548, 1769, 202, 202, 1830, 1084, 273, 394, 514, 1830, 12, 92, 2271, 1769, 202, 202, 2463, 1156, 18, 8837, 12, 3168, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
buffer.append('{'); buffer.append(argumentNumbers[i]); buffer.append('}'); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); continue; } Format format = formats[i]; if (format == null || arg == null) { if (arg instanceof Number) {
buffer.append('{'); buffer.append(argumentNumbers[i]); buffer.append('}'); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); continue; } Format format = formats[i]; if (format == null || arg == null) { if (arg instanceof Number) {
private StringBuffer formatImpl(Object[] objects, StringBuffer buffer, FieldPosition position, Vector<FieldContainer> fields) { FieldPosition passedField = new FieldPosition(0); for (int i = 0; i <= maxOffset; i++) { buffer.append(strings[i]); int begin = buffer.length(); Object arg; if (objects != null && argumentNumbers[i] < objects.length) { arg = objects[argumentNumbers[i]]; } else { buffer.append('{'); buffer.append(argumentNumbers[i]); buffer.append('}'); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); continue; } Format format = formats[i]; if (format == null || arg == null) { if (arg instanceof Number) { format = NumberFormat.getInstance(); } else if (arg instanceof Date) { format = DateFormat.getInstance(); } else { buffer.append(arg); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); continue; } } if (format instanceof ChoiceFormat) { String result = format.format(arg); MessageFormat mf = new MessageFormat(result); mf.setLocale(locale); mf.format(objects, buffer, passedField); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); handleformat(format, arg, begin, fields); } else { format.format(arg, buffer, passedField); handleArgumentField(begin, buffer.length(), argumentNumbers[i], position, fields); handleformat(format, arg, begin, fields); } } if (maxOffset + 1 < strings.length) { buffer.append(strings[maxOffset + 1]); } return buffer; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/019def355790934e1681619028e65dda09efed65/MessageFormat.java/clean/modules/text/src/main/java/java/text/MessageFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 6674, 740, 2828, 12, 921, 8526, 2184, 16, 6674, 1613, 16, 1082, 202, 974, 2555, 1754, 16, 5589, 32, 974, 2170, 34, 1466, 13, 288, 202, 202, 974, 2555, 2275, 974, 273, 394, 2286, 2555, 12, 20, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 1648, 943, 2335, 31, 277, 27245, 288, 1082, 202, 4106, 18, 6923, 12, 10219, 63, 77, 19226, 1082, 202, 474, 2376, 273, 1613, 18, 2469, 5621, 1082, 202, 921, 1501, 31, 1082, 202, 430, 261, 6911, 480, 446, 597, 1237, 10072, 63, 77, 65, 411, 2184, 18, 2469, 13, 288, 7734, 1501, 273, 2184, 63, 3446, 10072, 63, 77, 13563, 31, 5411, 289, 469, 288, 9506, 202, 4106, 18, 6923, 2668, 95, 8284, 9506, 202, 4106, 18, 6923, 12, 3446, 10072, 63, 77, 19226, 9506, 202, 4106, 18, 6923, 2668, 1713, 1769, 9506, 202, 4110, 1379, 974, 12, 10086, 16, 1613, 18, 2469, 9334, 1237, 10072, 63, 77, 6487, 25083, 202, 3276, 16, 1466, 1769, 9506, 202, 17143, 31, 1082, 202, 97, 1082, 202, 1630, 740, 273, 6449, 63, 77, 15533, 1082, 202, 430, 261, 2139, 422, 446, 747, 1501, 422, 446, 13, 288, 9506, 202, 430, 261, 3175, 1276, 3588, 13, 288, 10792, 740, 273, 29587, 18, 588, 1442, 5621, 7734, 289, 469, 309, 261, 3175, 1276, 2167, 13, 288, 10792, 740, 273, 18371, 18, 588, 1442, 5621, 7734, 289, 469, 288, 6862, 202, 4106, 18, 6923, 12, 3175, 1769, 6862, 202, 4110, 1379, 974, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6674, 740, 2828, 12, 921, 8526, 2184, 16, 6674, 1613, 16, 1082, 202, 974, 2555, 1754, 16, 5589, 32, 974, 2170, 34, 1466, 13, 288, 202, 202, 974, 2555, 2275, 974, 273, 394, 2286, 2555, 12, 20, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 1648, 943, 2335, 31, 277, 27245, 288, 1082, 202, 4106, 18, 6923, 12, 10219, 63, 77, 19226, 1082, 202, 474, 2376, 273, 1613, 18, 2469, 5621, 1082, 202, 921, 1501, 31, 1082, 202, 430, 261, 6911, 480, 446, 597, 1237, 10072, 63, 77, 65, 411, 2184, 18, 2469, 13, 288, 7734, 1501, 273, 2184, 63, 3446, 10072, 63, 77, 13563, 31, 5411, 289, 469, 288, 9506, 202, 4106, 2 ]
dX += dSeparatorThickness;
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = getDeviceScale( ); Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; /* --- Start bound computing --- */ // TODO Refactoring: create function double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // validate legend size, restrict within the bounds. // TODO this is requried due to the 1/3 size constraints policy in // layoutManager, // should use better solution. if ( sz.getWidth( ) > bo.getWidth( ) ) { sz.setWidth( bo.getWidth( ) ); } if ( sz.getHeight( ) > bo.getHeight( ) ) { sz.setHeight( bo.getHeight( ) ); } // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { int iAnchor = lg.getAnchor( ).getValue( ); // swap west/east if ( isRightToLeft( ) ) { if ( iAnchor == Anchor.EAST ) { iAnchor = Anchor.WEST; } else if ( iAnchor == Anchor.NORTH_EAST ) { iAnchor = Anchor.NORTH_WEST; } else if ( iAnchor == Anchor.SOUTH_EAST ) { iAnchor = Anchor.SOUTH_WEST; } else if ( iAnchor == Anchor.WEST ) { iAnchor = Anchor.EAST; } else if ( iAnchor == Anchor.NORTH_WEST ) { iAnchor = Anchor.NORTH_EAST; } else if ( iAnchor == Anchor.SOUTH_WEST ) { iAnchor = Anchor.SOUTH_EAST; } } switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : case Anchor.SOUTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : case Anchor.NORTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else { // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND // 'INSIDE' PLOT dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); } // get cached legend info. final LegendLayoutHints lilh = rtc.getLegendLayoutHints( ); // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; final boolean bRenderLegendTitle = lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ); int iTitlePos = Position.ABOVE; if ( bRenderLegendTitle ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); if ( lilh != null ) { // use cached value Size titleSize = lilh.getTitleSize( ); lgTitleWidth = titleSize.getWidth( ); lgTitleHeight = titleSize.getHeight( ); } else { BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); } iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); /* --- End of bounds computing --- */ final double dBaseX = dX; final double dBaseY = dY; final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = LineAttributesImpl.copyInstance( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE LineAttributes liSep = lg.getSeparator( ) == null ? lia : lg.getSeparator( ); final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); final double maxWrappingSize = lg.getWrappingSize( ) * dScale; final double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; List al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); // Calculate if minSlice applicable. String sMinSliceLabel = null; boolean bMinSliceApplied = false; if ( lilh != null ) { // use cached value. sMinSliceLabel = lilh.getMinSliceText( ); bMinSliceApplied = lilh.isMinSliceApplied( ); } else { boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; Map columnCache = searchMaxColumnWidth( liha ); for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dY += insCA.getTop( ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; double dFullWidth = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } // Render legend title if defined. if ( bRenderLegendTitle ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( iTitlePos ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/bdbe857d641e2e27600409e7bb20f1950ed1536b/BaseRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, 18, 291, 6207, 12, 262, 262, 368, 14565, 12596, 30310, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 5902, 1768, 12, 277, 683, 16, 15266, 16, 13348, 1830, 18, 2640, 16812, 12, 15266, 262, 11272, 202, 202, 6385, 1599, 291, 1601, 2081, 9280, 273, 19512, 12, 262, 18, 588, 4236, 2081, 12, 11272, 202, 202, 6385, 1645, 302, 5587, 273, 19512, 5587, 12, 11272, 202, 202, 5694, 800, 273, 15266, 18, 588, 5694, 12, 262, 18, 20665, 1442, 12, 302, 5587, 11272, 202, 202, 1225, 11262, 273, 446, 31, 202, 202, 20308, 9948, 3603, 2489, 20303, 9948, 1195, 202, 202, 759, 2660, 868, 3493, 6053, 30, 752, 445, 202, 202, 9056, 302, 60, 16, 302, 61, 31, 202, 202, 430, 261, 15266, 18, 588, 2555, 12, 262, 480, 11010, 18, 706, 26498, 67, 23225, 262, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 24575, 273, 15266, 18, 588, 16028, 1225, 12, 9280, 16, 5003, 16, 436, 5111, 11272, 1082, 202, 97, 1082, 202, 14683, 261, 1185, 431, 262, 1082, 202, 95, 9506, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 25083, 202, 7984, 503, 18, 25230, 1360, 16, 25083, 202, 338, 11272, 1082, 202, 97, 1082, 202, 24575, 18, 5864, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, 18, 291, 6207, 12, 262, 262, 368, 14565, 12596, 30310, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 5902, 1768, 12, 277, 683, 16, 15266, 16, 13348, 1830, 18, 2640, 16812, 12, 15266, 262, 11272, 202, 202, 6385, 1599, 291, 1601, 2081, 9280, 273, 19512, 12, 262, 18, 588, 4236, 2081, 12, 11272, 202, 202, 6385, 1645, 302, 5587, 273, 19512, 5587, 12, 11272, 202, 202, 5694, 800, 273, 15266, 18, 588, 5694, 12, 262, 18, 20665, 1442, 12, 302, 2 ]
+ "[\"" + ( (ParameterHandle) model ).getName( ) + "\"]";
+ "[\"" + ( (ParameterHandle) model ).getQualifiedName( ) + "\"]";
public static String getExpression( Object model ) { if ( model instanceof ParameterHandle ) { return IReportElementConstants.PARAMETER_PREFIX + "[\"" + ( (ParameterHandle) model ).getName( ) + "\"]"; //$NON-NLS-1$ //$NON-NLS-2$ } if ( model instanceof DataSetItemModel ) { String colName = ( (DataSetItemModel) model ).getAlias( ); if ( colName == null || colName.trim( ).length( ) == 0 ) { colName = ( (DataSetItemModel) model ).getName( ); } return getColumnExpression( colName ); } return null; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/54a65dd73bba1effaa68099dfb54509007fcdc8b/DEUtil.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/util/DEUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 16183, 12, 1033, 938, 262, 202, 95, 202, 202, 430, 261, 938, 1276, 5498, 3259, 262, 202, 202, 95, 1082, 202, 2463, 467, 4820, 1046, 2918, 18, 9819, 67, 6307, 6862, 202, 15, 5158, 8530, 397, 261, 261, 1662, 3259, 13, 938, 262, 18, 588, 12345, 12, 262, 397, 7023, 4279, 31, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 97, 202, 202, 430, 261, 938, 1276, 14065, 1180, 1488, 262, 202, 202, 95, 1082, 202, 780, 18655, 273, 261, 261, 13676, 1180, 1488, 13, 938, 262, 18, 588, 2936, 12, 11272, 1082, 202, 430, 261, 18655, 422, 446, 747, 18655, 18, 5290, 12, 262, 18, 2469, 12, 262, 422, 374, 262, 1082, 202, 95, 9506, 202, 1293, 461, 273, 261, 261, 13676, 1180, 1488, 13, 938, 262, 18, 17994, 12, 11272, 1082, 202, 97, 1082, 202, 2463, 6716, 2300, 12, 18655, 11272, 202, 202, 97, 202, 202, 2463, 446, 31, 202, 97, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 16183, 12, 1033, 938, 262, 202, 95, 202, 202, 430, 261, 938, 1276, 5498, 3259, 262, 202, 202, 95, 1082, 202, 2463, 467, 4820, 1046, 2918, 18, 9819, 67, 6307, 6862, 202, 15, 5158, 8530, 397, 261, 261, 1662, 3259, 13, 938, 262, 18, 588, 12345, 12, 262, 397, 7023, 4279, 31, 4329, 3993, 17, 5106, 17, 21, 8, 4329, 3993, 17, 5106, 17, 22, 8, 202, 202, 97, 202, 202, 430, 261, 938, 1276, 14065, 1180, 1488, 262, 202, 202, 95, 1082, 202, 780, 18655, 273, 261, 261, 13676, 1180, 1488, 13, 938, 262, 18, 588, 2936, 12, 11272, 1082, 202, 430, 261, 18655, 422, 446, 747, 18655, 18, 5290, 12, 262, 18, 2 ]
allFileContent = static_changeSQLServerTimestampType( allFileContent );
commands = changeSQLSpecificDateTimeDataType( commands );
private void executeCommandsFromFile( int databaseServer, String fileName ) throws Exception { Connection conn = getConnectionPool( databaseServer ); File sqlScriptingFile = new File( FILE_PATH + fileName ); String allFileContent = static_readFile( sqlScriptingFile ); if( databaseServer == SQL_SERVER ) { allFileContent = static_changeSQLServerTimestampType( allFileContent ); } String[] result = static_getAllCommands( allFileContent ); String[] dropCommands = result; executeCommands( conn, dropCommands ); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/eee5f812aa4dcd453253b5f6f14669525b2936bc/DatabaseAcessor.java/clean/server/src/imcode/server/db/DatabaseAcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1836, 9127, 13087, 12, 509, 2063, 2081, 16, 514, 3968, 262, 1216, 1185, 288, 3639, 4050, 1487, 273, 6742, 2864, 12, 2063, 2081, 11272, 3639, 1387, 1847, 3651, 310, 812, 273, 394, 1387, 12, 7527, 67, 4211, 397, 3968, 11272, 3639, 514, 777, 25391, 273, 760, 67, 896, 812, 12, 1847, 3651, 310, 812, 11272, 3639, 309, 12, 2063, 2081, 422, 3063, 67, 4370, 262, 288, 5411, 4364, 273, 2549, 3997, 9969, 5096, 6273, 12, 4364, 11272, 3639, 289, 3639, 514, 8526, 563, 273, 760, 67, 588, 1595, 9127, 12, 777, 25391, 11272, 3639, 514, 8526, 3640, 9127, 273, 563, 31, 3639, 1836, 9127, 12, 1487, 16, 3640, 9127, 11272, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 3238, 918, 1836, 9127, 13087, 12, 509, 2063, 2081, 16, 514, 3968, 262, 1216, 1185, 288, 3639, 4050, 1487, 273, 6742, 2864, 12, 2063, 2081, 11272, 3639, 1387, 1847, 3651, 310, 812, 273, 394, 1387, 12, 7527, 67, 4211, 397, 3968, 11272, 3639, 514, 777, 25391, 273, 760, 67, 896, 812, 12, 1847, 3651, 310, 812, 11272, 3639, 309, 12, 2063, 2081, 422, 3063, 67, 4370, 262, 288, 5411, 4364, 273, 2549, 3997, 9969, 5096, 6273, 12, 4364, 11272, 3639, 289, 3639, 514, 8526, 563, 273, 760, 67, 588, 1595, 9127, 12, 777, 25391, 11272, 3639, 514, 8526, 3640, 9127, 273, 563, 31, 3639, 1836, 9127, 12, 1487, 16, 3640, 9127, 11272, 565, 289, 2, -100, -100, -100, -100 ]
} ok = evaluateCommandResult(finished,currentOutput); commandPostExec(finished,currentOutput); mCurrentSubCommand = mCommandNone; return(ok);
} ok = evaluateCommandResult(finished, currentOutput); commandPostExec(finished, currentOutput); mCurrentSubCommand = mCommandNone; return (ok);
private boolean waitForCommandToFinish() { char[] buf = new char[1024]; int count; int finished; StringBuffer debugOutput = new StringBuffer(); String currentOutput; boolean ok; if( isTerminated(mCurrentCommandDest) ) return(false); System.out.println("---Waiting for Command ("+mCurrentCommand+"--"+mCurrentSubCommand+") to finish----------------------------"); while(true) { count = -1; try{ count = mDebugOut.read(buf); }catch (IOException e) { abortSession(); throw new RuntimeException("Terminating Debug Session due to IO-Error !");} if(count > 0) debugOutput.append(buf,0,count); currentOutput = debugOutput.toString(); //System.out.println("\nCurrent DEBUGOUTPUT:\n"+currentOutput+"\n"); if( hasSessionTerminated(currentOutput) ) { finished = mSessionTerminated; break;} else if(hasCommandTerminated(currentOutput)) { finished = mCommandFinished; break;} else if( count < 0) { finished = mSessionTerminated; break;} } if( finished == mSessionTerminated) { abortSession(); return(false); } System.out.println("!!!!!!!!!!!!!!!!!!Command ("+mCurrentCommand+"--"+mCurrentSubCommand+") finished!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); if ( isStepCommand(mCurrentCommand) && ! isSubCommand() ) { IP_Position endIP = getCurrent_IP_Position(); while( (finished!=mSessionTerminated) && mStartIP.equals(endIP)) { startSubCommand(mCurrentCommand | mCommandModifierSkipEvaluateCommandResult,null,false); endIP = getCurrent_IP_Position(); } currentOutput = debugOutput.toString(); } if ( isRunCommand(mCurrentCommand) && (mCurrentCommand != mCommandStepInto) && ! isSubCommand() ) { while( (finished!=mSessionTerminated) && ! isBreakPointReached() && !isRunCommand(mCurrentCommand)) { insertPendingBreakpoints(); startSubCommand(mCurrentCommand | mCommandModifierSkipEvaluateCommandResult,null,false); } currentOutput = debugOutput.toString(); } ok = evaluateCommandResult(finished,currentOutput); commandPostExec(finished,currentOutput); mCurrentSubCommand = mCommandNone; return(ok); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4179c9f6d0a36bc8b8ca5cdef30d4178930114cd/PerlDB.java/buggy/org.epic.debug/src/org/epic/debug/PerlDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 10712, 2189, 774, 11641, 1435, 202, 95, 202, 202, 3001, 8526, 1681, 273, 394, 1149, 63, 2163, 3247, 15533, 202, 202, 474, 1056, 31, 202, 202, 474, 6708, 31, 202, 202, 780, 1892, 1198, 1447, 273, 394, 6674, 5621, 202, 202, 780, 783, 1447, 31, 202, 202, 6494, 1529, 31, 202, 202, 430, 12, 353, 21888, 12, 81, 3935, 2189, 9378, 13, 262, 1082, 202, 2463, 12, 5743, 1769, 6862, 202, 3163, 18, 659, 18, 8222, 2932, 6062, 15946, 364, 3498, 7566, 15, 81, 3935, 2189, 9078, 413, 6, 15, 81, 3935, 1676, 2189, 15, 7923, 358, 4076, 1271, 7620, 8863, 9506, 202, 17523, 12, 3767, 13, 202, 202, 95, 1082, 202, 1883, 273, 300, 21, 31, 6862, 202, 698, 95, 6862, 1082, 202, 1883, 273, 312, 2829, 1182, 18, 896, 12, 4385, 1769, 1082, 202, 97, 14683, 261, 14106, 425, 13, 9506, 202, 95, 6263, 2157, 5621, 604, 394, 3235, 2932, 27506, 1776, 4015, 3877, 6541, 358, 1665, 17, 668, 401, 8863, 97, 9506, 202, 430, 12, 1883, 405, 374, 13, 1198, 1447, 18, 6923, 12, 4385, 16, 20, 16, 1883, 1769, 9506, 202, 2972, 1447, 273, 1198, 1447, 18, 10492, 5621, 6862, 1082, 202, 759, 3163, 18, 659, 18, 8222, 31458, 82, 3935, 6369, 15527, 5581, 82, 6, 15, 2972, 1447, 9078, 64, 82, 8863, 1082, 202, 430, 12, 711, 2157, 21888, 12, 2972, 1447, 13, 262, 9506, 202, 95, 6708, 273, 312, 2157, 21888, 31, 898, 31, 97, 1082, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 10712, 2189, 774, 11641, 1435, 202, 95, 202, 202, 3001, 8526, 1681, 273, 394, 1149, 63, 2163, 3247, 15533, 202, 202, 474, 1056, 31, 202, 202, 474, 6708, 31, 202, 202, 780, 1892, 1198, 1447, 273, 394, 6674, 5621, 202, 202, 780, 783, 1447, 31, 202, 202, 6494, 1529, 31, 202, 202, 430, 12, 353, 21888, 12, 81, 3935, 2189, 9378, 13, 262, 1082, 202, 2463, 12, 5743, 1769, 6862, 202, 3163, 18, 659, 18, 8222, 2932, 6062, 15946, 364, 3498, 7566, 15, 81, 3935, 2189, 9078, 413, 6, 15, 81, 3935, 1676, 2189, 15, 7923, 358, 4076, 1271, 7620, 8863, 9506, 202, 17523, 12, 3767, 13, 202, 202, 95, 1082, 202, 1883, 273, 300, 2 ]
this( parentShell ); this.errorList = list; this.level = level;
super( parentShell );
public CssErrDialog( Shell parentShell , List list, int level) { this( parentShell ); this.errorList = list; this.level = level; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6f5ee0811cf7eef3b71737863003811c024cb934/CssErrDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/CssErrDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19127, 2524, 6353, 12, 19433, 982, 13220, 269, 987, 666, 16, 509, 1801, 13, 202, 95, 202, 202, 2211, 12, 982, 13220, 11272, 9506, 202, 2211, 18, 1636, 682, 273, 666, 31, 202, 202, 2211, 18, 2815, 273, 1801, 31, 202, 202, 97, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19127, 2524, 6353, 12, 19433, 982, 13220, 269, 987, 666, 16, 509, 1801, 13, 202, 95, 202, 202, 2211, 12, 982, 13220, 11272, 9506, 202, 2211, 18, 1636, 682, 273, 666, 31, 202, 202, 2211, 18, 2815, 273, 1801, 31, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Log.log(Log.DEBUG,VFSFile.class,"findCompletion(" + path + "," + complete + "," + dirsOnly + ")");
for(int i = start; i < end; i++) { VFSFile file = files[i]; String matchAgainst = (MiscUtilities.isAbsolutePath(str) ? file.getPath() : file.getName());
public static String findCompletion(String path, String complete, VFSBrowser browser, boolean dirsOnly) { Log.log(Log.DEBUG,VFSFile.class,"findCompletion(" + path + "," + complete + "," + dirsOnly + ")"); if(complete.equals("~")) return System.getProperty("user.home"); else if(complete.equals("-")) return browser.getView().getBuffer().getDirectory(); if(MiscUtilities.isAbsolutePath(complete)) { if(MiscUtilities.isURL(complete)) return complete; else path = "roots:"; } VFS vfs = VFSManager.getVFSForPath(path); if((vfs.getCapabilities() & VFS.LOW_LATENCY_CAP) == 0) return null; Object session = vfs.createVFSSession(path,browser); if(session == null) return null; try { VFSFile[] files = vfs._listFiles(session,path,browser); int index = findCompletion(files,0,files.length,complete,dirsOnly); if(index != -1) return files[index].path; } catch(IOException e) { VFSManager.error(e,path,browser); } finally { try { vfs._endVFSSession(session,browser); } catch(IOException e) { VFSManager.error(e,path,browser); } } return null; } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/34d18dab440fe873cdfa28f8c99c04546e378016/VFSFile.java/buggy/org/gjt/sp/jedit/io/VFSFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 1104, 11238, 12, 780, 589, 16, 514, 3912, 16, 202, 202, 58, 4931, 9132, 4748, 16, 1250, 7717, 3386, 13, 202, 95, 202, 202, 1343, 18, 1330, 12, 1343, 18, 9394, 16, 58, 4931, 812, 18, 1106, 10837, 4720, 11238, 2932, 397, 589, 397, 5753, 397, 3912, 1082, 202, 15, 5753, 397, 7717, 3386, 397, 7310, 1769, 202, 202, 430, 12, 6226, 18, 14963, 2932, 98, 6, 3719, 1082, 202, 2463, 2332, 18, 588, 1396, 2932, 1355, 18, 8712, 8863, 202, 202, 12107, 309, 12, 6226, 18, 14963, 2932, 10951, 3719, 1082, 202, 2463, 4748, 18, 588, 1767, 7675, 588, 1892, 7675, 588, 2853, 5621, 202, 202, 430, 12, 11729, 71, 11864, 18, 291, 10368, 743, 12, 6226, 3719, 202, 202, 95, 1082, 202, 430, 12, 11729, 71, 11864, 18, 291, 1785, 12, 6226, 3719, 9506, 202, 2463, 3912, 31, 1082, 202, 12107, 9506, 202, 803, 273, 315, 22078, 2773, 31, 202, 202, 97, 202, 202, 58, 4931, 20682, 273, 23567, 1318, 18, 588, 58, 4931, 25589, 12, 803, 1769, 202, 202, 430, 12443, 90, 2556, 18, 588, 14012, 1435, 473, 23567, 18, 4130, 67, 12190, 26325, 67, 17296, 13, 422, 374, 13, 1082, 202, 2463, 446, 31, 202, 202, 921, 1339, 273, 20682, 18, 2640, 58, 42, 1260, 893, 12, 803, 16, 11213, 1769, 202, 202, 430, 12, 3184, 422, 446, 13, 1082, 202, 2463, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 58, 4931, 812, 8526, 1390, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 514, 1104, 11238, 12, 780, 589, 16, 514, 3912, 16, 202, 202, 58, 4931, 9132, 4748, 16, 1250, 7717, 3386, 13, 202, 95, 202, 202, 1343, 18, 1330, 12, 1343, 18, 9394, 16, 58, 4931, 812, 18, 1106, 10837, 4720, 11238, 2932, 397, 589, 397, 5753, 397, 3912, 1082, 202, 15, 5753, 397, 7717, 3386, 397, 7310, 1769, 202, 202, 430, 12, 6226, 18, 14963, 2932, 98, 6, 3719, 1082, 202, 2463, 2332, 18, 588, 1396, 2932, 1355, 18, 8712, 8863, 202, 202, 12107, 309, 12, 6226, 18, 14963, 2932, 10951, 3719, 1082, 202, 2463, 4748, 18, 588, 1767, 7675, 588, 1892, 7675, 588, 2853, 5621, 202, 202, 430, 12, 11729, 71, 11864, 18, 291, 2 ]
static public GrendelToolBar MergeToolBars(GrendelToolBar aBar1, GrendelToolBar aBar2) { GrendelToolBar res = new GrendelToolBar(); res.setLayout(new ToolBarLayout()); Component barArray1[] = aBar1.getComponents(); Component barArray2[] = aBar2.getComponents(); int count1 = aBar1.getComponentCount(); int count2 = aBar2.getComponentCount(); int i = 0, j = 0, k, l; if (DEBUG) { System.out.println("count1 = " + count1 + "; count2 = " + count2); } while (i < count1) { JButton button1 = (JButton) barArray1[i]; if (j < count2) { JButton button2 = (JButton) barArray2[j]; if (button1.getActionCommand().equals(button2.getActionCommand())) { res.add(button1); i++; j++; } else { boolean merge = false; for (k = j; k < count2; k++) { button2 = (JButton) barArray2[k]; if (button1.getActionCommand().equals(button2.getActionCommand())) { merge = true; while (j < k) { JButton button3 = (JButton) barArray2[j]; res.add(button3); j++; } break; } } if (merge) { res.add(button1); j++; } else { res.add(button1); } i++; } } else { res.add(button1); i++; } } while (j < count2) { JButton button2 = null; if (barArray2[j] != null) { button2 = (JButton) barArray2[j]; } if (button2 != null) { res.add(button2); } j++; } return res; }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/Util.java/clean/grendel/sources/grendel/ui/Util.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 1071, 611, 1187, 3771, 6364, 5190, 8964, 6364, 5190, 87, 12, 43, 1187, 3771, 6364, 5190, 279, 5190, 21, 16, 611, 1187, 3771, 6364, 5190, 279, 5190, 22, 13, 288, 565, 611, 1187, 3771, 6364, 5190, 400, 273, 394, 611, 1187, 3771, 6364, 5190, 5621, 565, 400, 18, 542, 3744, 12, 2704, 13288, 5190, 3744, 10663, 3639, 5435, 4653, 1076, 21, 8526, 273, 279, 5190, 21, 18, 588, 7171, 5621, 565, 5435, 4653, 1076, 22, 8526, 273, 279, 5190, 22, 18, 588, 7171, 5621, 565, 509, 1056, 21, 273, 279, 5190, 21, 18, 588, 1841, 1380, 5621, 565, 509, 1056, 22, 273, 279, 5190, 22, 18, 588, 1841, 1380, 5621, 565, 509, 277, 273, 374, 16, 525, 273, 374, 16, 417, 16, 328, 31, 565, 309, 261, 9394, 13, 288, 1377, 2332, 18, 659, 18, 8222, 2932, 1883, 21, 273, 315, 397, 1056, 21, 397, 13636, 1056, 22, 273, 315, 397, 1056, 22, 1769, 565, 289, 565, 1323, 261, 77, 411, 1056, 21, 13, 288, 1377, 28804, 3568, 21, 273, 261, 46, 3616, 13, 4653, 1076, 21, 63, 77, 15533, 1377, 309, 261, 78, 411, 1056, 22, 13, 288, 3639, 28804, 3568, 22, 273, 261, 46, 3616, 13, 4653, 1076, 22, 63, 78, 15533, 3639, 309, 261, 5391, 21, 18, 588, 1803, 2189, 7675, 14963, 12, 5391, 22, 18, 588, 1803, 2189, 1435, 3719, 288, 1850, 400, 18, 1289, 12, 5391, 21, 1769, 1850, 277, 9904, 31, 1850, 525, 9904, 31, 4202, 289, 469, 288, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 1071, 611, 1187, 3771, 6364, 5190, 8964, 6364, 5190, 87, 12, 43, 1187, 3771, 6364, 5190, 279, 5190, 21, 16, 611, 1187, 3771, 6364, 5190, 279, 5190, 22, 13, 288, 565, 611, 1187, 3771, 6364, 5190, 400, 273, 394, 611, 1187, 3771, 6364, 5190, 5621, 565, 400, 18, 542, 3744, 12, 2704, 13288, 5190, 3744, 10663, 3639, 5435, 4653, 1076, 21, 8526, 273, 279, 5190, 21, 18, 588, 7171, 5621, 565, 5435, 4653, 1076, 22, 8526, 273, 279, 5190, 22, 18, 588, 7171, 5621, 565, 509, 1056, 21, 273, 279, 5190, 21, 18, 588, 1841, 1380, 5621, 565, 509, 1056, 22, 273, 279, 5190, 22, 18, 588, 1841, 1380, 5621, 565, 509, 277, 273, 374, 16, 525, 2 ]
_project.delete(false/*deleteContent*/, true/*force*/, null/*monitor*/);
public static void delete (IProject _project, CommandLine _commandLine) throws Exception { ProjectUtils.assertExists(_project); for (Iterator ii = managers.keySet().iterator(); ii.hasNext();){ String nature = (String)ii.next(); if(_project.hasNature(nature)){ ProjectManager manager = ProjectManagement.getProjectManager(nature); manager.delete(_project, _commandLine); } } _project.delete(false/*deleteContent*/, true/*force*/, null/*monitor*/); }
46034 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46034/7267561a7ad5fca5691decf4db0acae38d7ba750/ProjectManagement.java/buggy/src/java/org/eclim/project/ProjectManagement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 1430, 261, 45, 4109, 389, 4406, 16, 15893, 389, 3076, 1670, 13, 565, 1216, 1185, 225, 288, 565, 5420, 1989, 18, 11231, 4002, 24899, 4406, 1769, 565, 364, 261, 3198, 6072, 273, 21103, 18, 856, 694, 7675, 9838, 5621, 6072, 18, 5332, 2134, 5621, 15329, 1377, 514, 28700, 273, 261, 780, 13, 2835, 18, 4285, 5621, 1377, 309, 24899, 4406, 18, 5332, 50, 1231, 12, 82, 1231, 3719, 95, 3639, 5420, 1318, 3301, 273, 5420, 10998, 18, 588, 4109, 1318, 12, 82, 1231, 1769, 3639, 3301, 18, 3733, 24899, 4406, 16, 389, 3076, 1670, 1769, 1377, 289, 565, 289, 377, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 282, 1071, 760, 918, 1430, 261, 45, 4109, 389, 4406, 16, 15893, 389, 3076, 1670, 13, 565, 1216, 1185, 225, 288, 565, 5420, 1989, 18, 11231, 4002, 24899, 4406, 1769, 565, 364, 261, 3198, 6072, 273, 21103, 18, 856, 694, 7675, 9838, 5621, 6072, 18, 5332, 2134, 5621, 15329, 1377, 514, 28700, 273, 261, 780, 13, 2835, 18, 4285, 5621, 1377, 309, 24899, 4406, 18, 5332, 50, 1231, 12, 82, 1231, 3719, 95, 3639, 5420, 1318, 3301, 273, 5420, 10998, 18, 588, 4109, 1318, 12, 82, 1231, 1769, 3639, 3301, 18, 3733, 24899, 4406, 16, 389, 3076, 1670, 1769, 1377, 289, 565, 289, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return obj == null ? null : obj.toString();
String result = null; if (obj != null) { if (!(obj instanceof Date)) { throw new ConversionException("Expected object of type java.sql.Date, but instead received " + obj.getClass().getName()); } result = obj.toString(); } return result;
public String convertToString(Object obj, int sqlTypeCode) throws ConversionException { return obj == null ? null : obj.toString(); }
1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/42e00e0db032c26feccf274f7a7f399c554872aa/DateConverter.java/buggy/src/java/org/apache/ddlutils/io/converters/DateConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1765, 5808, 12, 921, 1081, 16, 509, 1847, 15460, 13, 1216, 16401, 503, 565, 288, 3639, 514, 563, 273, 446, 31, 225, 309, 261, 2603, 480, 446, 13, 288, 309, 16051, 12, 2603, 1276, 2167, 3719, 288, 604, 394, 16401, 503, 2932, 6861, 733, 434, 618, 2252, 18, 4669, 18, 1626, 16, 1496, 3560, 5079, 315, 397, 1081, 18, 588, 797, 7675, 17994, 10663, 289, 563, 273, 1081, 18, 10492, 5621, 289, 327, 563, 31, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 1765, 5808, 12, 921, 1081, 16, 509, 1847, 15460, 13, 1216, 16401, 503, 565, 288, 3639, 514, 563, 273, 446, 31, 225, 309, 261, 2603, 480, 446, 13, 288, 309, 16051, 12, 2603, 1276, 2167, 3719, 288, 604, 394, 16401, 503, 2932, 6861, 733, 434, 618, 2252, 18, 4669, 18, 1626, 16, 1496, 3560, 5079, 315, 397, 1081, 18, 588, 797, 7675, 17994, 10663, 289, 563, 273, 1081, 18, 10492, 5621, 289, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public static void fill(Address dst, byte pattern, int cnt) {
public static void fill(Address dst, byte pattern, Extent cnt) {
public static void fill(Address dst, byte pattern, int cnt) { VM_SysCall.sysFill(dst, pattern, cnt); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/511bde1d92a455acafb864be1f3383b0a2d5c0e0/VM_Memory.java/buggy/rvm/src/vm/runtime/VM_Memory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 3636, 12, 1887, 3046, 16, 1160, 1936, 16, 6419, 319, 7599, 13, 288, 565, 8251, 67, 12712, 1477, 18, 9499, 8026, 12, 11057, 16, 1936, 16, 7599, 1769, 225, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 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, 282, 1071, 760, 918, 3636, 12, 1887, 3046, 16, 1160, 1936, 16, 6419, 319, 7599, 13, 288, 565, 8251, 67, 12712, 1477, 18, 9499, 8026, 12, 11057, 16, 1936, 16, 7599, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct();
public quickfix.field.LegProduct getLegProduct() throws FieldNotFound { quickfix.field.LegProduct value = new quickfix.field.LegProduct();
public org.quickfix.field.LegProduct getLegProduct() throws FieldNotFound { org.quickfix.field.LegProduct value = new org.quickfix.field.LegProduct(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Quote.java/buggy/src/java/src/quickfix/fix44/Quote.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 336, 8329, 4133, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4133, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
/*switch(style_recherche.getSelectedIndex()){
switch(style_recherche.getSelectedIndex()){
public void actionPerformed(ActionEvent e) { Object source = e.getSource(); int ligneSelect = table.getSelectedRow(); if(ligneSelect != -1){ //On cherche la ligne rellement slectionne (au cas o un tri ait t lanc) ligneActive = sorter.modelIndex(ligneSelect); // Action lie au bouton de modification d'un utilisateur if(source==ajout_exp){ // On rcupre les donnes de la ligne du tableau Vector cVect = (Vector) modeleTab.getRow(ligneActive); Personne p = new Personne(cVect); fenetre1.modifier_info_personne(p,1); } // Suppression d'un utilisateur else if(source==ajout_dest){ Vector cVect = (Vector) modeleTab.getRow(ligneActive); Personne p = new Personne(cVect); fenetre1.modifier_info_personne(p,2); } } if (source == rechercher) { //AccesBDDPersonne recherche = new AccesBDDPersonne(); //table.removeAll(); System.out.println(sorter.getRowCount()); for(int i=0 ;i <sorter.getRowCount();i++) { modeleTab.removeRow(sorter.getRowCount()- i -1); modeleTab.fireTableDataChanged(); System.out.println(i); table.updateUI(); } /*switch(style_recherche.getSelectedIndex()){ case 0: try{ //On rcupre les utilisateurs de la base de donnes et on les affiche Vector listePersonnes = tablePersonnes.lister(); for(int i=0;i<listePersonnes.size();i++){ donnees.addElement(((Personne)listePersonnes.get(i)).toVector()); } } catch(SQLException e1){ System.out.println(e1.getMessage()); } break; case 1: try{ //On rcupre les utilisateurs de la base de donnes et on les affiche Vector listePersonnes = tablePersonnes.rechercher(tablePersonnes.NOM,donnees_recherche.getText()); for(int i=0;i<listePersonnes.size();i++){ //donnees.addElement(((Personne)listePersonnes.get(i)).toVector()); ajouterPers((Personne)listePersonnes.get(i)); } } catch(SQLException e2){ System.out.println(e2.getMessage()); } break; case 2: break; case 3: break; }*/ } if(source==fermer){ dispose(); } }
56849 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56849/36a3012e609444f70280bbeb22c89b9fd8271fae/Entree_select_personne.java/clean/trunk/ihm/entree/Entree_select_personne.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26100, 12, 1803, 1133, 425, 13, 202, 95, 202, 202, 921, 1084, 273, 425, 18, 588, 1830, 5621, 202, 202, 474, 328, 724, 73, 3391, 273, 1014, 18, 588, 7416, 1999, 5621, 9506, 202, 430, 12, 80, 724, 73, 3391, 480, 300, 21, 15329, 6862, 1082, 202, 759, 1398, 462, 264, 18706, 7125, 328, 724, 73, 1279, 806, 272, 942, 4644, 261, 8377, 8697, 320, 640, 6882, 279, 305, 268, 328, 19292, 13, 9506, 202, 80, 724, 73, 3896, 273, 19867, 18, 2284, 1016, 12, 80, 724, 73, 3391, 1769, 6862, 9506, 202, 759, 4382, 328, 1385, 20309, 31095, 265, 443, 11544, 302, 11, 318, 1709, 24954, 9506, 202, 430, 12, 3168, 631, 4365, 659, 67, 2749, 15329, 6862, 6862, 202, 759, 2755, 4519, 416, 266, 18022, 2727, 23712, 443, 7125, 328, 724, 73, 9978, 1014, 8377, 6862, 202, 5018, 276, 58, 386, 273, 261, 5018, 13, 938, 73, 5661, 18, 588, 1999, 12, 80, 724, 73, 3896, 1769, 6862, 202, 8346, 4644, 293, 273, 394, 11573, 4644, 12, 71, 58, 386, 1769, 6862, 25083, 202, 74, 31034, 266, 21, 18, 20597, 67, 1376, 67, 12479, 4644, 12, 84, 16, 21, 1769, 6862, 6862, 202, 97, 9506, 202, 759, 3425, 1337, 302, 11, 318, 1709, 24954, 9506, 202, 12107, 309, 12, 3168, 631, 4365, 659, 67, 10488, 15329, 6862, 25083, 202, 5018, 276, 58, 386, 273, 261, 5018, 13, 938, 73, 5661, 18, 588, 1999, 12, 80, 724, 73, 3896, 1769, 6862, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 202, 95, 202, 202, 921, 1084, 273, 425, 18, 588, 1830, 5621, 202, 202, 474, 328, 724, 73, 3391, 273, 1014, 18, 588, 7416, 1999, 5621, 9506, 202, 430, 12, 80, 724, 73, 3391, 480, 300, 21, 15329, 6862, 1082, 202, 759, 1398, 462, 264, 18706, 7125, 328, 724, 73, 1279, 806, 272, 942, 4644, 261, 8377, 8697, 320, 640, 6882, 279, 305, 268, 328, 19292, 13, 9506, 202, 80, 724, 73, 3896, 273, 19867, 18, 2284, 1016, 12, 80, 724, 73, 3391, 1769, 6862, 9506, 202, 759, 4382, 328, 1385, 20309, 31095, 265, 443, 11544, 302, 11, 318, 1709, 24954, 9506, 202, 430, 12, 3168, 631, 4365, 659, 2 ]
/*} catch (Exception excptn) { excptn.printStackTrace(getErrorStream());*/ } finally {
} finally {
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // Check_SafeStr(fname); } // volatile ID last_func; // ruby_errinfo = Qnil; /* ensure */ RubyVarmap.push(ruby); ruby.pushClass(); RubyModule wrapper = ruby.getWrapper(); ruby.setCRef(ruby.getTopCRef()); if (!wrap) { ruby.secure(4); /* should alter global state */ ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby.setWrapper(null); } else { /* load in anonymous module as toplevel */ ruby.setWrapper(RubyModule.newModule(ruby)); ruby.setRubyClass(ruby.getWrapper()); self = ruby.getRubyTopSelf().rbClone(); self.extendObject(ruby.getRubyClass()); ruby.getCRef().push(ruby.getWrapper()); } ruby.getRubyFrame().push(); ruby.getRubyFrame().setLastFunc(null); ruby.getRubyFrame().setLastClass(null); ruby.getRubyFrame().setSelf(self); ruby.getRubyFrame().setCbase(new CRefNode(ruby.getRubyClass(), null)); ruby.getScope().push(); /* default visibility is private at loading toplevel */ ruby.setActMethodScope(Constants.SCOPE_PRIVATE); String last_func = ruby.getRubyFrame().getLastFunc(); try { // RubyId last_func = ruby.getRubyFrame().getLastFunc(); // DEFER_INTS; ruby.setInEval(ruby.getInEval() + 1); ruby.getRubyParser().compileString(scriptName.getValue(), source, 0); // --- ruby.setInEval(ruby.getInEval() - 1); self.evalNode(ruby.getParserHelper().getEvalTree()); /*} catch (Exception excptn) { excptn.printStackTrace(getErrorStream());*/ } finally { ruby.getRubyFrame().setLastFunc(last_func); /*if (ruby.getRubyScope().getFlags() == SCOPE_ALLOCA && ruby.getRubyClass() == ruby.getClasses().getObjectClass()) { if (ruby_scope->local_tbl) free(ruby_scope->local_tbl); }*/ ruby.setCRef(savedCRef); ruby.getScope().pop(); ruby.getRubyFrame().pop(); ruby.popClass(); RubyVarmap.pop(ruby); ruby.setWrapper(wrapper); } /*if (ruby_nerrs > 0) { ruby_nerrs = 0; rb_exc_raise(ruby_errinfo); }*/ }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/8140cac1b7c2375c549787852e38fa6c52b199df/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1262, 3651, 12, 54, 10340, 780, 31008, 16, 19817, 780, 1084, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 385, 1957, 907, 5198, 39, 1957, 273, 22155, 18, 588, 39, 1957, 5621, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 309, 261, 4113, 597, 22155, 18, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 3639, 368, 31548, 1599, 1142, 67, 644, 31, 3639, 368, 22155, 67, 370, 1376, 273, 2238, 20154, 31, 1748, 3387, 1195, 3639, 19817, 1537, 1458, 18, 6206, 12, 27768, 1769, 3639, 22155, 18, 6206, 797, 5621, 3639, 19817, 3120, 4053, 273, 22155, 18, 588, 3611, 5621, 3639, 22155, 18, 542, 39, 1957, 12, 27768, 18, 588, 3401, 39, 1957, 10663, 3639, 309, 16051, 4113, 13, 288, 5411, 22155, 18, 8869, 12, 24, 1769, 1748, 1410, 10182, 2552, 919, 1195, 5411, 22155, 18, 542, 54, 10340, 797, 12, 27768, 18, 588, 4818, 7675, 588, 921, 797, 10663, 5411, 22155, 18, 542, 3611, 12, 2011, 1769, 3639, 289, 469, 288, 5411, 1748, 1262, 316, 13236, 1605, 487, 28999, 1195, 5411, 22155, 18, 542, 3611, 12, 54, 10340, 3120, 18, 2704, 3120, 12, 27768, 10019, 5411, 22155, 18, 542, 54, 10340, 797, 12, 27768, 18, 588, 3611, 10663, 5411, 365, 273, 22155, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 3651, 12, 54, 10340, 780, 31008, 16, 19817, 780, 1084, 16, 1250, 2193, 13, 288, 3639, 19817, 921, 365, 273, 22155, 18, 588, 54, 10340, 3401, 10084, 5621, 3639, 385, 1957, 907, 5198, 39, 1957, 273, 22155, 18, 588, 39, 1957, 5621, 3639, 368, 399, 4566, 67, 3373, 1448, 1268, 31, 3639, 309, 261, 4113, 597, 22155, 18, 588, 9890, 2355, 1435, 1545, 1059, 13, 288, 5411, 368, 2073, 67, 559, 12, 12749, 16, 399, 67, 5804, 1769, 3639, 289, 469, 288, 5411, 368, 2073, 67, 9890, 1585, 12, 12749, 1769, 3639, 289, 3639, 368, 31548, 1599, 1142, 67, 644, 31, 3639, 368, 22155, 67, 370, 1376, 273, 2238, 20154, 31, 1748, 3387, 1195, 3639, 2 ]
.getActiveBindingsFor("command2"));
.getActiveBindingsFor(binding2.getParameterizedCommand()));
public final void testRemoveBindings() throws NotDefinedException { // GENERAL SET-UP final Context context = contextManager.getContext("na"); context.define("name", "description", null); final Scheme scheme = bindingManager.getScheme("na"); scheme.define("name", "description", null); bindingManager.setActiveScheme(scheme); final Set activeContextIds = new HashSet(); activeContextIds.add("na"); contextManager.setActiveContextIds(activeContextIds); // ADD SOME BINDINGS final Binding binding1 = new TestBinding("command1", "na", "na", null, null, Binding.SYSTEM); bindingManager.addBinding(binding1); final Binding binding2 = new TestBinding("command2", "na", "na", "zh", null, Binding.SYSTEM); bindingManager.addBinding(binding2); final Binding binding3 = new TestBinding("command3", "na", "na", null, "gtk", Binding.SYSTEM); bindingManager.addBinding(binding3); final Binding binding4 = new TestBinding("command4", "na", "na", null, "gtk", Binding.USER); bindingManager.addBinding(binding4); final Binding binding5 = new TestBinding("command5", "na", "na", "zh", "gtk", Binding.USER); bindingManager.addBinding(binding5); assertNotNull("There should be three active bindings", bindingManager .getActiveBindingsFor("command1")); assertNotNull("There should be three active bindings", bindingManager .getActiveBindingsFor("command2")); assertNotNull("There should be three active bindings", bindingManager .getActiveBindingsFor("command4")); // REMOVE SOME BINDINGS bindingManager.removeBindings(TestBinding.TRIGGER_SEQUENCE, "na", "na", "zh", "gtk", null, Binding.USER); assertEquals("There should be four bindings left", 4, bindingManager .getBindings().length); assertNotNull("There should be four active bindings", bindingManager .getActiveBindingsFor("command1")); assertNotNull("There should be four active bindings", bindingManager .getActiveBindingsFor("command2")); assertNotNull("There should be four active bindings", bindingManager .getActiveBindingsFor("command3")); assertNotNull("There should be four active bindings", bindingManager .getActiveBindingsFor("command4")); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e61bf96d546738a5dfebc5feb8c2bcbe110e4371/BindingManagerTest.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/keys/BindingManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1842, 3288, 10497, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 759, 13679, 1013, 7855, 17, 3079, 202, 202, 6385, 1772, 819, 273, 819, 1318, 18, 29120, 2932, 6582, 8863, 202, 202, 2472, 18, 11255, 2932, 529, 3113, 315, 3384, 3113, 446, 1769, 202, 202, 6385, 10714, 4355, 273, 5085, 1318, 18, 588, 9321, 2932, 6582, 8863, 202, 202, 9068, 18, 11255, 2932, 529, 3113, 315, 3384, 3113, 446, 1769, 202, 202, 7374, 1318, 18, 542, 3896, 9321, 12, 9068, 1769, 202, 202, 6385, 1000, 2695, 1042, 2673, 273, 394, 6847, 5621, 202, 202, 3535, 1042, 2673, 18, 1289, 2932, 6582, 8863, 202, 202, 2472, 1318, 18, 542, 3896, 1042, 2673, 12, 3535, 1042, 2673, 1769, 202, 202, 759, 11689, 7460, 958, 605, 2356, 1360, 55, 202, 202, 6385, 15689, 5085, 21, 273, 394, 7766, 5250, 2932, 3076, 21, 3113, 315, 6582, 3113, 315, 6582, 3113, 446, 16, 9506, 202, 2011, 16, 15689, 18, 14318, 1769, 202, 202, 7374, 1318, 18, 1289, 5250, 12, 7374, 21, 1769, 202, 202, 6385, 15689, 5085, 22, 273, 394, 7766, 5250, 2932, 3076, 22, 3113, 315, 6582, 3113, 315, 6582, 3113, 315, 23121, 3113, 9506, 202, 2011, 16, 15689, 18, 14318, 1769, 202, 202, 7374, 1318, 18, 1289, 5250, 12, 7374, 22, 1769, 202, 202, 6385, 15689, 5085, 23, 273, 394, 7766, 5250, 2932, 3076, 23, 3113, 315, 6582, 3113, 315, 6582, 3113, 446, 16, 9506, 202, 6, 4521, 79, 3113, 15689, 18, 14318, 1769, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 3288, 10497, 1435, 1216, 2288, 8116, 503, 288, 202, 202, 759, 13679, 1013, 7855, 17, 3079, 202, 202, 6385, 1772, 819, 273, 819, 1318, 18, 29120, 2932, 6582, 8863, 202, 202, 2472, 18, 11255, 2932, 529, 3113, 315, 3384, 3113, 446, 1769, 202, 202, 6385, 10714, 4355, 273, 5085, 1318, 18, 588, 9321, 2932, 6582, 8863, 202, 202, 9068, 18, 11255, 2932, 529, 3113, 315, 3384, 3113, 446, 1769, 202, 202, 7374, 1318, 18, 542, 3896, 9321, 12, 9068, 1769, 202, 202, 6385, 1000, 2695, 1042, 2673, 273, 394, 6847, 5621, 202, 202, 3535, 1042, 2673, 18, 1289, 2932, 6582, 8863, 202, 202, 2472, 1318, 18, 542, 3896, 1042, 2673, 12, 3535, 1042, 2 ]
generateClassCodeForVersions("Message", new String[] {XSLPARAM_SERIAL_UID}, new String[] {SERIAL_UID_STR});
generateClassCodeForVersions("Message", new String[] { XSLPARAM_SERIAL_UID }, new String[] { SERIAL_UID_STR });
private void generateMessageBaseClasses() throws TransformerConfigurationException, FileNotFoundException, ParserConfigurationException, SAXException, IOException, TransformerFactoryConfigurationError, TransformerException { generateClassCodeForVersions("Message", new String[] {XSLPARAM_SERIAL_UID}, new String[] {SERIAL_UID_STR}); }
6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/70625fa143b22c1f66c3e1b614fcb0ebd9bc964f/JavaCodeGenerator.java/clean/src/quickfix/codegen/JavaCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1079, 2171, 4818, 1435, 1216, 11519, 10737, 16, 5411, 13707, 16, 6783, 10737, 16, 14366, 16, 1860, 16, 5411, 11519, 1733, 1750, 668, 16, 21684, 288, 3639, 2103, 797, 1085, 1290, 5940, 2932, 1079, 3113, 394, 514, 8526, 288, 17243, 8388, 67, 2123, 6365, 67, 3060, 19879, 394, 514, 8526, 288, 7758, 6365, 67, 3060, 67, 3902, 15549, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 3238, 918, 2103, 1079, 2171, 4818, 1435, 1216, 11519, 10737, 16, 5411, 13707, 16, 6783, 10737, 16, 14366, 16, 1860, 16, 5411, 11519, 1733, 1750, 668, 16, 21684, 288, 3639, 2103, 797, 1085, 1290, 5940, 2932, 1079, 3113, 394, 514, 8526, 288, 17243, 8388, 67, 2123, 6365, 67, 3060, 19879, 394, 514, 8526, 288, 7758, 6365, 67, 3060, 67, 3902, 15549, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void checkNodeDir(File directory, Integer nodeId, InetAddress primary, int interval, Date date, Map thresholdMap, Events events) throws IllegalArgumentException {
private void checkNodeDir(File directory, Integer nodeId, InetAddress primary, int interval, int range, Date date, Map thresholdMap, Events events) throws IllegalArgumentException {
private void checkNodeDir(File directory, Integer nodeId, InetAddress primary, int interval, Date date, Map thresholdMap, Events events) throws IllegalArgumentException { Category log = ThreadCategory.getInstance(getClass()); // Sanity Check if (directory == null || nodeId == null || primary == null || date == null || thresholdMap == null || events == null) { throw new IllegalArgumentException("Null parameters not permitted."); } if (log.isDebugEnabled()) log.debug("checkNodeDir: threshold checking node dir: " + directory.getAbsolutePath()); // Iterate over directory contents and threshold // check any RRD files which represent datasources // in the threshold maps. // File[] files = directory.listFiles(RrdFileConstants.RRD_FILENAME_FILTER); if (files == null) return; for (int i = 0; i < files.length; i++) { // File name has format: <datsource><extension> // Must strip off extension portion. String filename = files[i].getName(); String datasource = filename.substring(0, filename.indexOf(RrdUtils.get_extension())); // Lookup the ThresholdEntity object corresponding // to this datasource. // ThresholdEntity threshold = (ThresholdEntity) thresholdMap.get(datasource); if (threshold != null) { // Use RRD JNI interface to "fetch" value of the // datasource from the RRD file // Double dsValue = null; try { dsValue = RrdUtils.fetchLastValue(files[i].getAbsolutePath(), interval); } catch (NumberFormatException nfe) { log.warn("Unable to convert retrieved value for datasource '" + datasource + "' to a double, skipping evaluation."); } catch (RrdException e) { log.error("An error occurred retriving the last value for datasource '" + datasource + "'", e); } if (dsValue != null && !dsValue.isNaN()) { // Evaluate the threshold // // ThresholdEntity.evaluate() returns an integer value // which indicates which threshold values were // triggered and require an event to be generated (if any). // int result = threshold.evaluate(dsValue.doubleValue()); if (result != ThresholdEntity.NONE_TRIGGERED) { if (result == ThresholdEntity.HIGH_AND_LOW_TRIGGERED || result == ThresholdEntity.HIGH_TRIGGERED) { events.addEvent(createEvent(nodeId, primary, null, dsValue.doubleValue(), threshold.getHighThreshold(), EventConstants.HIGH_THRESHOLD_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_TRIGGERED || result == ThresholdEntity.LOW_TRIGGERED) { events.addEvent(createEvent(nodeId, primary, null, dsValue.doubleValue(), threshold.getLowThreshold(), EventConstants.LOW_THRESHOLD_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_REARMED || result == ThresholdEntity.HIGH_REARMED) { events.addEvent(createEvent(nodeId, primary, null, dsValue.doubleValue(), threshold.getHighThreshold(), EventConstants.HIGH_THRESHOLD_REARM_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_REARMED || result == ThresholdEntity.LOW_REARMED) { events.addEvent(createEvent(nodeId, primary, null, dsValue.doubleValue(), threshold.getLowThreshold(), EventConstants.LOW_THRESHOLD_REARM_EVENT_UEI, date)); } } } } } }
25465 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25465/07a7353dcb047b34d91730d300899c5e7d3ddc6e/JMXThresholder.java/clean/src/services/org/opennms/netmgt/threshd/JMXThresholder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 866, 907, 1621, 12, 812, 1867, 16, 2144, 11507, 16, 14218, 3354, 16, 509, 3673, 16, 509, 1048, 16, 225, 2167, 1509, 16, 1635, 5573, 863, 16, 9043, 2641, 13, 1216, 2754, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 368, 23123, 2073, 3639, 309, 261, 5149, 422, 446, 747, 11507, 422, 446, 747, 3354, 422, 446, 747, 1509, 422, 446, 747, 5573, 863, 422, 446, 747, 2641, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 2041, 1472, 486, 15498, 1199, 1769, 3639, 289, 3639, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 5411, 613, 18, 4148, 2932, 1893, 907, 1621, 30, 5573, 6728, 756, 1577, 30, 315, 397, 1867, 18, 588, 10368, 743, 10663, 3639, 368, 11436, 1879, 1867, 2939, 471, 5573, 3639, 368, 866, 1281, 534, 20403, 1390, 1492, 2406, 5386, 1418, 3639, 368, 316, 326, 5573, 7565, 18, 3639, 368, 3639, 1387, 8526, 1390, 273, 1867, 18, 1098, 2697, 12, 54, 13623, 812, 2918, 18, 17950, 40, 67, 16080, 67, 11126, 1769, 3639, 309, 261, 2354, 422, 446, 13, 5411, 327, 31, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 288, 5411, 368, 1387, 508, 711, 740, 30, 411, 72, 2323, 552, 4438, 6447, 34, 5411, 368, 6753, 2569, 3397, 2710, 14769, 18, 5411, 514, 1544, 273, 1390, 63, 77, 8009, 17994, 5621, 5411, 514, 9181, 273, 1544, 18, 28023, 12, 20, 16, 1544, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 907, 1621, 12, 812, 1867, 16, 2144, 11507, 16, 14218, 3354, 16, 509, 3673, 16, 509, 1048, 16, 225, 2167, 1509, 16, 1635, 5573, 863, 16, 9043, 2641, 13, 1216, 2754, 288, 3639, 9856, 613, 273, 4884, 4457, 18, 588, 1442, 12, 588, 797, 10663, 3639, 368, 23123, 2073, 3639, 309, 261, 5149, 422, 446, 747, 11507, 422, 446, 747, 3354, 422, 446, 747, 1509, 422, 446, 747, 5573, 863, 422, 446, 747, 2641, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 2041, 1472, 486, 15498, 1199, 1769, 3639, 289, 3639, 309, 261, 1330, 18, 291, 2829, 1526, 10756, 5411, 613, 18, 4148, 2932, 1893, 907, 1621, 30, 5573, 6728, 756, 1577, 30, 315, 2 ]
priorityButtonGroup.add(lowPriorityButton);
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; priorityButtonGroup = new javax.swing.ButtonGroup(); consoleSplitter = new javax.swing.JSplitPane(); viewPanel = new javax.swing.JPanel(); emptyPanel = new javax.swing.JPanel(); 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(); jarFileListScrollPane = new javax.swing.JScrollPane(); jarFileList = new javax.swing.JList(); sourceDirListScrollPane = new javax.swing.JScrollPane(); sourceDirList = new javax.swing.JList(); classpathEntryLabel = new javax.swing.JLabel(); classpathEntryListLabel = new javax.swing.JLabel(); classpathEntryTextField = new javax.swing.JTextField(); browseClasspathEntryButton = new javax.swing.JButton(); addClasspathEntryButton = new javax.swing.JButton(); removeClasspathEntryButton = new javax.swing.JButton(); classpathEntryListScrollPane = new javax.swing.JScrollPane(); classpathEntryList = new javax.swing.JList(); jSeparator5 = new javax.swing.JSeparator(); sourceUpButton = new javax.swing.JButton(); sourceDownButton = new javax.swing.JButton(); classpathUpButton = new javax.swing.JButton(); classpathDownButton = new javax.swing.JButton(); bugTreePanel = new javax.swing.JPanel(); bugTreeBugDetailsSplitter = new javax.swing.JSplitPane(); groupByTabbedPane = new javax.swing.JTabbedPane(); byClassScrollPane = new javax.swing.JScrollPane(); byClassBugTree = new javax.swing.JTree(); byPackageScrollPane = new javax.swing.JScrollPane(); byPackageBugTree = new javax.swing.JTree(); byBugTypeScrollPane = new javax.swing.JScrollPane(); byBugTypeBugTree = new javax.swing.JTree(); bySummary = new javax.swing.JScrollPane(); bugSummaryEditorPane = new javax.swing.JEditorPane(); bugDetailsTabbedPane = new javax.swing.JTabbedPane(); bugDescriptionScrollPane = new javax.swing.JScrollPane(); bugDescriptionEditorPane = new javax.swing.JEditorPane(); sourceTextAreaScrollPane = new javax.swing.JScrollPane(); sourceTextArea = new javax.swing.JTextArea(); annotationTextAreaScrollPane = new javax.swing.JScrollPane(); annotationTextArea = new javax.swing.JTextArea(); consoleScrollPane = new javax.swing.JScrollPane(); consoleMessageArea = new javax.swing.JTextArea(); urlLabel = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); logoLabel = new javax.swing.JLabel(); growBoxSpacer = new javax.swing.JLabel(); theMenuBar = new javax.swing.JMenuBar(); fileMenu = new javax.swing.JMenu(); newProjectItem = new javax.swing.JMenuItem(); openProjectItem = new javax.swing.JMenuItem(); recentProjectsMenu = new javax.swing.JMenu(); jSeparator9 = new javax.swing.JSeparator(); closeProjectItem = new javax.swing.JMenuItem(); saveProjectItem = new javax.swing.JMenuItem(); saveProjectAsItem = new javax.swing.JMenuItem(); reloadProjectItem = new javax.swing.JMenuItem(); jSeparator3 = new javax.swing.JSeparator(); loadBugsItem = new javax.swing.JMenuItem(); saveBugsItem = new javax.swing.JMenuItem(); jSeparator6 = new javax.swing.JSeparator(); exitItem = new javax.swing.JMenuItem(); editMenu = new javax.swing.JMenu(); cutItem = new javax.swing.JMenuItem(); copyItem = new javax.swing.JMenuItem(); pasteItem = new javax.swing.JMenuItem(); jSeparator10 = new javax.swing.JSeparator(); selectAllItem = new javax.swing.JMenuItem(); viewMenu = new javax.swing.JMenu(); viewConsoleItem = new javax.swing.JCheckBoxMenuItem(); viewBugDetailsItem = new javax.swing.JCheckBoxMenuItem(); fullDescriptionsItem = new javax.swing.JCheckBoxMenuItem(); jSeparator7 = new javax.swing.JSeparator(); filterWarningsMenu = new javax.swing.JMenu(); expPriorityButton = new javax.swing.JRadioButtonMenuItem(); lowPriorityButton = new javax.swing.JRadioButtonMenuItem(); mediumPriorityButton = new javax.swing.JRadioButtonMenuItem(); highPriorityButton = new javax.swing.JRadioButtonMenuItem(); jSeparator11 = new javax.swing.JSeparator(); jSeparator8 = new javax.swing.JSeparator(); viewProjectItem = new javax.swing.JRadioButtonMenuItem(); viewBugsItem = new javax.swing.JRadioButtonMenuItem(); settingsMenu = new javax.swing.JMenu(); configureDetectorsItem = new javax.swing.JMenuItem(); helpMenu = new javax.swing.JMenu(); aboutItem = new javax.swing.JMenuItem(); getContentPane().setLayout(new java.awt.GridBagLayout()); addWindowListener(new java.awt.event.WindowAdapter() { public void windowClosing(java.awt.event.WindowEvent evt) { exitForm(evt); } }); consoleSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); consoleSplitter.setResizeWeight(1.0); consoleSplitter.setOneTouchExpandable(true); consoleSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { consoleSplitterPropertyChange(evt); } }); viewPanel.setLayout(new java.awt.CardLayout()); viewPanel.add(emptyPanel, "EmptyPanel"); viewPanel.add(reportPanel, "ReportPanel"); editProjectPanel.setLayout(new java.awt.GridBagLayout()); jarFileLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileLabel.setText("Archive or directory:"); jarFileLabel.setText(L10N.getLocalString("dlg.jarfile_lbl", "Archive or Directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileLabel, gridBagConstraints); jarNameTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jarNameTextFieldActionPerformed(evt); } }); jarNameTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(jarNameTextField, gridBagConstraints); addJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); addJarButton.setText("Add"); addJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); addJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); addJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); addJarButton.setText(L10N.getLocalString("dlg.add_btn", "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 = 2; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addJarButton, gridBagConstraints); jarFileListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); jarFileListLabel.setText("Archives/directories:"); jarFileListLabel.setText(L10N.getLocalString("dlg.jarlist_lbl", "Archives/Directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListLabel, gridBagConstraints); sourceDirLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirLabel.setText("Source directory:"); sourceDirLabel.setText(L10N.getLocalString("dlg.srcfile_lbl", "Source directory:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirLabel, gridBagConstraints); srcDirTextField.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { srcDirTextFieldActionPerformed(evt); } }); srcDirTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 8; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.weightx = 1.0; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(srcDirTextField, gridBagConstraints); addSourceDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); addSourceDirButton.setText("Add"); addSourceDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); addSourceDirButton.setText(L10N.getLocalString("dlg.add_btn", "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 = 8; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(addSourceDirButton, gridBagConstraints); sourceDirListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDirListLabel.setText("Source directories:"); sourceDirListLabel.setText(L10N.getLocalString("dlg.srclist_lbl", "Source directories:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListLabel, gridBagConstraints); removeJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeJarButton.setText("Remove"); removeJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeJarButton.setText(L10N.getLocalString("dlg.remove_btn", "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 = 3; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeJarButton, gridBagConstraints); removeSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeSrcDirButton.setText("Remove"); removeSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeSrcDirButton.setText(L10N.getLocalString("dlg.remove_btn", "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 = 9; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(removeSrcDirButton, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator1, gridBagConstraints); browseJarButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseJarButton.setText("Browse"); browseJarButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseJarButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseJarButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseJarButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); 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 = 2; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(browseJarButton, gridBagConstraints); browseSrcDirButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseSrcDirButton.setText("Browse"); browseSrcDirButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseSrcDirButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); 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 = 8; 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); editProjectLabel.setText(L10N.getLocalString("dlg.project_lbl", "Project")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; editProjectPanel.add(editProjectLabel, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 7; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator2, gridBagConstraints); findBugsButton.setMnemonic('B'); 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 = 21; 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 = 14; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3); editProjectPanel.add(jSeparator4, gridBagConstraints); jarFileListScrollPane.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)); disableEditKeyBindings(jarFileList); jarFileList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); jarFileListScrollPane.setViewportView(jarFileList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 3; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.4; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(jarFileListScrollPane, gridBagConstraints); sourceDirListScrollPane.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)); disableEditKeyBindings(sourceDirList); sourceDirList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); sourceDirListScrollPane.setViewportView(sourceDirList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 9; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(sourceDirListScrollPane, gridBagConstraints); classpathEntryLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryLabel.setText("Classpath entry:"); classpathEntryLabel.setText(L10N.getLocalString("dlg.classpathfile_lbl", "Classpath entry:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryLabel, gridBagConstraints); classpathEntryListLabel.setFont(new java.awt.Font("Dialog", 0, 12)); classpathEntryListLabel.setText("Classpath entries:"); classpathEntryListLabel.setText(L10N.getLocalString("dlg.classpathlist_lbl", "Classpath entries:")); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 3); editProjectPanel.add(classpathEntryListLabel, gridBagConstraints); classpathEntryTextField.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 15; gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(classpathEntryTextField, gridBagConstraints); browseClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); browseClasspathEntryButton.setText("Browse"); browseClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); browseClasspathEntryButton.setText(L10N.getLocalString("dlg.browse_btn", "Browse")); browseClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { browseClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 2; gridBagConstraints.gridy = 15; editProjectPanel.add(browseClasspathEntryButton, gridBagConstraints); addClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); addClasspathEntryButton.setText("Add"); addClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); addClasspathEntryButton.setText(L10N.getLocalString("dlg.add_btn", "Add")); addClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 15; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(addClasspathEntryButton, gridBagConstraints); removeClasspathEntryButton.setFont(new java.awt.Font("Dialog", 0, 12)); removeClasspathEntryButton.setText("Remove"); removeClasspathEntryButton.setMaximumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setMinimumSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setPreferredSize(new java.awt.Dimension(90, 25)); removeClasspathEntryButton.setText(L10N.getLocalString("dlg.remove_btn", "Remove")); removeClasspathEntryButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { removeClasspathEntryButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 16; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 0); editProjectPanel.add(removeClasspathEntryButton, gridBagConstraints); classpathEntryListScrollPane.setPreferredSize(new java.awt.Dimension(259, 1)); classpathEntryList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED)); classpathEntryList.setFont(new java.awt.Font("Dialog", 0, 12)); disableEditKeyBindings(classpathEntryList); classpathEntryList.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); classpathEntryListScrollPane.setViewportView(classpathEntryList); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 16; gridBagConstraints.gridwidth = 2; gridBagConstraints.gridheight = 3; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weighty = 0.1; gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3); editProjectPanel.add(classpathEntryListScrollPane, gridBagConstraints); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 20; gridBagConstraints.gridwidth = 4; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.insets = new java.awt.Insets(3, 0, 3, 0); editProjectPanel.add(jSeparator5, gridBagConstraints); sourceUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceUpButton.setText("Up"); sourceUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); sourceUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 10; gridBagConstraints.weighty = 0.2; editProjectPanel.add(sourceUpButton, gridBagConstraints); sourceDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); sourceDownButton.setText("Down"); sourceDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); sourceDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); sourceDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); sourceDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { sourceDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridy = 11; editProjectPanel.add(sourceDownButton, gridBagConstraints); classpathUpButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathUpButton.setText("Up"); classpathUpButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathUpButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathUpButton.setText(L10N.getLocalString("dlg.up_btn", "Up")); classpathUpButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathUpButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 17; gridBagConstraints.weighty = 0.2; editProjectPanel.add(classpathUpButton, gridBagConstraints); classpathDownButton.setFont(new java.awt.Font("Dialog", 0, 12)); classpathDownButton.setText("Down"); classpathDownButton.setMaximumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setMinimumSize(new java.awt.Dimension(90, 25)); classpathDownButton.setPreferredSize(new java.awt.Dimension(90, 25)); classpathDownButton.setText(L10N.getLocalString("dlg.down_btn", "Down")); classpathDownButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { classpathDownButtonActionPerformed(evt); } }); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 3; gridBagConstraints.gridy = 18; editProjectPanel.add(classpathDownButton, gridBagConstraints); viewPanel.add(editProjectPanel, "EditProjectPanel"); bugTreePanel.setLayout(new java.awt.GridBagLayout()); bugTreeBugDetailsSplitter.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT); bugTreeBugDetailsSplitter.setResizeWeight(1.0); bugTreeBugDetailsSplitter.setOneTouchExpandable(true); bugTreeBugDetailsSplitter.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { bugTreeBugDetailsSplitterPropertyChange(evt); } }); byClassBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byClassScrollPane.setViewportView(byClassBugTree); groupByTabbedPane.addTab("By Class", byClassScrollPane); byPackageBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byPackageScrollPane.setViewportView(byPackageBugTree); groupByTabbedPane.addTab("By Package", byPackageScrollPane); byBugTypeBugTree.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); byBugTypeScrollPane.setViewportView(byBugTypeBugTree); groupByTabbedPane.addTab("By Bug Type", byBugTypeScrollPane); bugSummaryEditorPane.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); bySummary.setViewportView(bugSummaryEditorPane); groupByTabbedPane.addTab("Summary", bySummary); bugTreeBugDetailsSplitter.setTopComponent(groupByTabbedPane); bugDescriptionEditorPane.setEditable(false); bugDescriptionEditorPane.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); bugDescriptionScrollPane.setViewportView(bugDescriptionEditorPane); bugDetailsTabbedPane.addTab("Details", bugDescriptionScrollPane); sourceTextAreaScrollPane.setMinimumSize(new java.awt.Dimension(22, 180)); sourceTextAreaScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); sourceTextArea.setEditable(false); sourceTextArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); sourceTextArea.setEnabled(false); sourceTextArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); sourceTextAreaScrollPane.setViewportView(sourceTextArea); bugDetailsTabbedPane.addTab("Source code", sourceTextAreaScrollPane); annotationTextArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); annotationTextAreaScrollPane.setViewportView(annotationTextArea); bugDetailsTabbedPane.addTab("Annotations", annotationTextAreaScrollPane); bugTreeBugDetailsSplitter.setBottomComponent(bugDetailsTabbedPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; bugTreePanel.add(bugTreeBugDetailsSplitter, gridBagConstraints); viewPanel.add(bugTreePanel, "BugTree"); consoleSplitter.setTopComponent(viewPanel); { equalizeControls( new JComponent[] { addJarButton, addSourceDirButton, addClasspathEntryButton, removeJarButton, removeSrcDirButton, removeClasspathEntryButton, browseJarButton, browseSrcDirButton, browseClasspathEntryButton, sourceUpButton, sourceDownButton, classpathUpButton, classpathDownButton }); groupByTabbedPane.setTitleAt(0, L10N.getLocalString( "dlg.byclass_tab", "By Class")); groupByTabbedPane.setTitleAt(1, L10N.getLocalString( "dlg.bypackage_tab", "By Package")); groupByTabbedPane.setTitleAt(2, L10N.getLocalString( "dlg.bybugtype_tab", "By Bug Type")); groupByTabbedPane.setTitleAt(3, L10N.getLocalString( "dlg.summary_tab", "Summary")); bugDetailsTabbedPane.setTitleAt(0, L10N.getLocalString( "dlg.details_tab", "Details")); bugDetailsTabbedPane.setTitleAt(1, L10N.getLocalString( "dlg.sourcecode_tab", "Source Code")); bugDetailsTabbedPane.setTitleAt(2, L10N.getLocalString( "dlg.annotations_tab", "Annotations")); } consoleScrollPane.setMinimumSize(new java.awt.Dimension(22, 100)); consoleScrollPane.setPreferredSize(new java.awt.Dimension(0, 100)); consoleMessageArea.setBackground(new java.awt.Color(204, 204, 204)); consoleMessageArea.setEditable(false); consoleMessageArea.setFont(new java.awt.Font("Lucida Sans Typewriter", 0, 12)); consoleMessageArea.setMinimumSize(new java.awt.Dimension(0, 0)); consoleMessageArea.setAutoscrolls(false); consoleMessageArea.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { focusGainedHandler(evt); } }); consoleScrollPane.setViewportView(consoleMessageArea); consoleSplitter.setBottomComponent(consoleScrollPane); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 0; gridBagConstraints.gridwidth = 2; gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; gridBagConstraints.weightx = 1.0; gridBagConstraints.weighty = 1.0; getContentPane().add(consoleSplitter, gridBagConstraints); urlLabel.setFont(new java.awt.Font("Dialog", 0, 12)); urlLabel.setText("FindBugs - http://findbugs.sourceforge.net/"); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 0); getContentPane().add(urlLabel, gridBagConstraints); jPanel1.setLayout(new javax.swing.BoxLayout(jPanel1, javax.swing.BoxLayout.X_AXIS)); jPanel1.add(logoLabel); growBoxSpacer.setMaximumSize(new java.awt.Dimension(16, 16)); jPanel1.add(growBoxSpacer); gridBagConstraints = new java.awt.GridBagConstraints(); gridBagConstraints.gridx = 1; gridBagConstraints.gridy = 1; gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHEAST; gridBagConstraints.insets = new java.awt.Insets(2, 0, 2, 2); getContentPane().add(jPanel1, gridBagConstraints); theMenuBar.setFont(new java.awt.Font("Dialog", 0, 12)); fileMenu.setText("File"); fileMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(fileMenu, "menu.file_menu", "&File", true); fileMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { fileMenuMenuSelected(evt); } }); newProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); newProjectItem.setText("New Project"); localiseButton(newProjectItem, "menu.new_item", "&New Project", true); 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..."); localiseButton(openProjectItem, "menu.open_item", "&Open Project", true); openProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { openProjectItemActionPerformed(evt); } }); fileMenu.add(openProjectItem); recentProjectsMenu.setText("Recent Projects"); recentProjectsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(recentProjectsMenu, "menu.recent_menu", "R&ecent Projects", true); rebuildRecentProjectsMenu(); fileMenu.add(recentProjectsMenu); fileMenu.add(jSeparator9); closeProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); closeProjectItem.setText("Close Project"); localiseButton(closeProjectItem, "menu.close_item", "&Close", true); closeProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { closeProjectItemActionPerformed(evt); } }); fileMenu.add(closeProjectItem); saveProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectItem.setText("Save Project"); localiseButton(saveProjectItem, "menu.save_item", "&Save Project", true); saveProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectItemActionPerformed(evt); } }); fileMenu.add(saveProjectItem); saveProjectAsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveProjectAsItem.setText("Save Project As..."); localiseButton(saveProjectAsItem, "menu.saveas_item", "Save Project &As...", true); saveProjectAsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveProjectAsItemActionPerformed(evt); } }); fileMenu.add(saveProjectAsItem); reloadProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); reloadProjectItem.setText("Reload Project"); localiseButton(reloadProjectItem, "menu.reload_item", "&Reload Project", true); reloadProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { reloadProjectItemActionPerformed(evt); } }); fileMenu.add(reloadProjectItem); fileMenu.add(jSeparator3); loadBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); loadBugsItem.setText("Load Bugs..."); localiseButton(loadBugsItem, "menu.loadbugs_item", "&Load Bugs...", true); loadBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { loadBugsItemActionPerformed(evt); } }); fileMenu.add(loadBugsItem); saveBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); saveBugsItem.setText("Save Bugs"); localiseButton(saveBugsItem, "menu.savebugs_item", "Save &Bugs...", true); saveBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { saveBugsItemActionPerformed(evt); } }); fileMenu.add(saveBugsItem); fileMenu.add(jSeparator6); exitItem.setFont(new java.awt.Font("Dialog", 0, 12)); exitItem.setText("Exit"); localiseButton(exitItem, "menu.exit_item", "E&xit", true); exitItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitItemActionPerformed(evt); } }); fileMenu.add(exitItem); theMenuBar.add(fileMenu); editMenu.setText("Edit"); editMenu.setFont(new java.awt.Font("Dialog", 0, 12)); editMenu.setEnabled(false); localiseButton(editMenu, "menu.edit_menu", "&Edit", true); cutItem.setFont(new java.awt.Font("Dialog", 0, 12)); cutItem.setText("Cut"); localiseButton(cutItem, "menu.cut_item", "Cut", true); cutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cutActionPerformed(evt); } }); editMenu.add(cutItem); copyItem.setFont(new java.awt.Font("Dialog", 0, 12)); copyItem.setText("Copy"); localiseButton(copyItem, "menu.copy_item", "Copy", true); copyItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { copyActionPerformed(evt); } }); editMenu.add(copyItem); pasteItem.setFont(new java.awt.Font("Dialog", 0, 12)); pasteItem.setText("Paste"); localiseButton(pasteItem, "menu.paste_item", "Paste", true); pasteItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { pasteActionPerformed(evt); } }); editMenu.add(pasteItem); editMenu.add(jSeparator10); selectAllItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK)); selectAllItem.setFont(new java.awt.Font("Dialog", 0, 12)); selectAllItem.setText("Select All"); localiseButton(selectAllItem, "menu.selectall_item", "Select &All", true); selectAllItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { selectAllActionPerformed(evt); } }); editMenu.add(selectAllItem); theMenuBar.add(editMenu); viewMenu.setText("View"); viewMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(viewMenu, "menu.view_menu", "&View", true); viewMenu.addMenuListener(new javax.swing.event.MenuListener() { public void menuCanceled(javax.swing.event.MenuEvent evt) { } public void menuDeselected(javax.swing.event.MenuEvent evt) { } public void menuSelected(javax.swing.event.MenuEvent evt) { viewMenuMenuSelected(evt); } }); viewConsoleItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewConsoleItem.setText("Console"); localiseButton(viewConsoleItem, "menu.console_item", "&Console", true); viewConsoleItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewConsoleItemActionPerformed(evt); } }); viewMenu.add(viewConsoleItem); viewBugDetailsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugDetailsItem.setSelected(true); viewBugDetailsItem.setText("Bug Details"); localiseButton(viewBugDetailsItem, "menu.bugdetails_item", "Bug &Details", true); viewBugDetailsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugDetailsItemActionPerformed(evt); } }); viewMenu.add(viewBugDetailsItem); fullDescriptionsItem.setFont(new java.awt.Font("Dialog", 0, 12)); fullDescriptionsItem.setSelected(true); fullDescriptionsItem.setText("Full Descriptions"); localiseButton(fullDescriptionsItem, "menu.fulldescriptions_item", "&Full Descriptions", true); fullDescriptionsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { fullDescriptionsItemActionPerformed(evt); } }); viewMenu.add(fullDescriptionsItem); viewMenu.add(jSeparator7); filterWarningsMenu.setText("Filter Warnings"); filterWarningsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(filterWarningsMenu, "menu.filterwarnings_menu", "Filter &Warnings", true); priorityButtonGroup.add(expPriorityButton); expPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); expPriorityButton.setText("Experimental Priority"); localiseButton(expPriorityButton, "menu.exppriority_item", "&Experimental Priority", true); expPriorityButton.setSelected(getPriorityThreshold() == Detector.EXP_PRIORITY); expPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { expPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(expPriorityButton); priorityButtonGroup.add(lowPriorityButton); lowPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); lowPriorityButton.setText("Low Priority"); localiseButton(lowPriorityButton, "menu.lowpriority_item", "&Low Priority", true); lowPriorityButton.setSelected(getPriorityThreshold() == Detector.LOW_PRIORITY); lowPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { lowPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(lowPriorityButton); priorityButtonGroup.add(mediumPriorityButton); mediumPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); mediumPriorityButton.setText("Medium Priority"); localiseButton(mediumPriorityButton, "menu.mediumpriority_item", "&Medium Priority", true); mediumPriorityButton.setSelected(getPriorityThreshold() == Detector.NORMAL_PRIORITY); mediumPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { mediumPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(mediumPriorityButton); priorityButtonGroup.add(highPriorityButton); highPriorityButton.setFont(new java.awt.Font("Dialog", 0, 12)); highPriorityButton.setText("High Priority"); localiseButton(highPriorityButton, "menu.highpriority_item", "&High Priority", true); highPriorityButton.setSelected(getPriorityThreshold() == Detector.HIGH_PRIORITY); highPriorityButton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { highPriorityButtonActionPerformed(evt); } }); filterWarningsMenu.add(highPriorityButton); filterWarningsMenu.add(jSeparator11); viewMenu.add(filterWarningsMenu); ButtonGroup bg = new ButtonGroup(); bg.add(expPriorityButton); bg.add(lowPriorityButton); bg.add(mediumPriorityButton); bg.add(highPriorityButton); viewMenu.add(jSeparator8); viewProjectItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewProjectItem.setText("View Project Details"); viewProjectItem.setEnabled(false); localiseButton(viewProjectItem, "menu.viewprojectdetails_item", "View Project Details", true); viewProjectItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewProjectItemActionPerformed(evt); } }); viewMenu.add(viewProjectItem); viewBugsItem.setFont(new java.awt.Font("Dialog", 0, 12)); viewBugsItem.setText("View Bugs"); viewBugsItem.setEnabled(false); localiseButton(viewBugsItem, "menu.viewbugs_item", "View Bugs", true); viewBugsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { viewBugsItemActionPerformed(evt); } }); viewMenu.add(viewBugsItem); theMenuBar.add(viewMenu); settingsMenu.setText("Settings"); settingsMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(settingsMenu, "menu.settings_menu", "&Settings", true); configureDetectorsItem.setFont(new java.awt.Font("Dialog", 0, 12)); configureDetectorsItem.setText("Configure Detectors..."); localiseButton(configureDetectorsItem, "menu.configure_item", "&Configure detectors", true); configureDetectorsItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { configureDetectorsItemActionPerformed(evt); } }); settingsMenu.add(configureDetectorsItem); theMenuBar.add(settingsMenu); helpMenu.setText("Help"); helpMenu.setFont(new java.awt.Font("Dialog", 0, 12)); localiseButton(helpMenu, "menu.help_menu", "&Help", true); aboutItem.setFont(new java.awt.Font("Dialog", 0, 12)); aboutItem.setText("About..."); localiseButton(aboutItem, "menu.about_item", "&About", true); aboutItem.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { aboutItemActionPerformed(evt); } }); helpMenu.add(aboutItem); theMenuBar.add(helpMenu); setJMenuBar(theMenuBar); pack(); }//GEN-END:initComponents
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/b5b66f340641a18e96bc54721f8a36111ce5632d/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, 4394, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 5521, 8485, 5621, 3639, 1476, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1008, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 2605, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3874, 4109, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 22588, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 7334, 461, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 527, 10813, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 22588, 682, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 26844, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 30585, 16157, 273, 394, 6863, 18, 5328, 310, 18, 46, 16157, 5621, 3639, 527, 1830, 1621, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 26844, 682, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 1206, 10813, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 1206, 7740, 1621, 3616, 273, 394, 6863, 18, 5328, 310, 18, 46, 3616, 5621, 3639, 525, 6581, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4394, 3616, 1114, 273, 394, 6863, 18, 5328, 310, 18, 3616, 1114, 5621, 3639, 2983, 26738, 273, 394, 6863, 18, 5328, 310, 18, 46, 5521, 8485, 5621, 3639, 1476, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 1008, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 2605, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 3874, 4109, 5537, 273, 394, 6863, 18, 5328, 310, 18, 46, 5537, 5621, 3639, 22588, 2224, 273, 394, 6863, 18, 5328, 310, 18, 46, 2224, 5621, 3639, 2 ]
NodeAddress localAddress = grid.getLocalAddress();
public void onMembershipChange(Set joined, Set left) { NodeAddress localAddress = grid.getLocalAddress(); membershipMutex.acquire(); try { log.info("--- NODE " + localAddress + " MEMBERSHIP CHANGE #" + numberOfMembershipChanges + " ---"); for (Iterator iterator = joined.iterator(); iterator.hasNext();) { NodeAddress address = (NodeAddress) iterator.next(); if (nodeExists(address)) { log.info("Node list already contains " + address); } else { // Don't make up a new status for the local node. If the // address is mine, then use my own status. NodeStatus node = (address.equals(localAddress)) ? grid.getLocalStatus() : new NodeStatusImpl(address); putNode(address, node, null); log.info("Node " + node + " added."); } } // for for (Iterator iterator = left.iterator(); iterator.hasNext();) { NodeAddress address = (NodeAddress) iterator.next(); if (nodeExists(address)) { removeNode(address); } else { log.info("Address " + address + " not found."); } } // for numberOfMembershipChanges++; membershipChanged.signal(); // Signal on the condition that the membership has changed. } finally { releaseMutex(); } }
11642 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11642/ac35cc7c8079dc9df5d317718b24447b42881ccc/Membership.java/buggy/trunk/jegrid/src/org/jegrid/impl/Membership.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 603, 13447, 3043, 12, 694, 12114, 16, 1000, 2002, 13, 565, 288, 9079, 12459, 11433, 18, 1077, 1039, 5621, 3639, 775, 3639, 288, 5411, 613, 18, 1376, 2932, 6062, 11922, 315, 397, 1191, 1887, 397, 315, 18990, 6271, 20101, 26267, 31526, 397, 7922, 13447, 7173, 397, 315, 9948, 8863, 5411, 364, 261, 3198, 2775, 273, 12114, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 5411, 288, 7734, 2029, 1887, 1758, 273, 261, 907, 1887, 13, 2775, 18, 4285, 5621, 7734, 309, 261, 2159, 4002, 12, 2867, 3719, 7734, 288, 10792, 613, 18, 1376, 2932, 907, 666, 1818, 1914, 315, 397, 1758, 1769, 7734, 289, 7734, 469, 7734, 288, 10792, 368, 7615, 1404, 1221, 731, 279, 394, 1267, 364, 326, 1191, 756, 18, 225, 971, 326, 10792, 368, 1758, 353, 312, 558, 16, 1508, 999, 3399, 4953, 1267, 18, 10792, 2029, 1482, 756, 273, 261, 2867, 18, 14963, 12, 3729, 1887, 3719, 692, 18701, 3068, 18, 588, 2042, 1482, 1435, 294, 18701, 394, 2029, 1482, 2828, 12, 2867, 1769, 10792, 1378, 907, 12, 2867, 16, 756, 16, 446, 1769, 10792, 613, 18, 1376, 2932, 907, 315, 397, 756, 397, 315, 3096, 1199, 1769, 7734, 289, 5411, 289, 368, 364, 5411, 364, 261, 3198, 2775, 273, 2002, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 5411, 288, 7734, 2029, 1887, 1758, 273, 261, 907, 1887, 13, 2775, 18, 4285, 5621, 7734, 309, 261, 2159, 4002, 12, 2867, 3719, 7734, 288, 10792, 1206, 907, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 603, 13447, 3043, 12, 694, 12114, 16, 1000, 2002, 13, 565, 288, 9079, 12459, 11433, 18, 1077, 1039, 5621, 3639, 775, 3639, 288, 5411, 613, 18, 1376, 2932, 6062, 11922, 315, 397, 1191, 1887, 397, 315, 18990, 6271, 20101, 26267, 31526, 397, 7922, 13447, 7173, 397, 315, 9948, 8863, 5411, 364, 261, 3198, 2775, 273, 12114, 18, 9838, 5621, 2775, 18, 5332, 2134, 5621, 13, 5411, 288, 7734, 2029, 1887, 1758, 273, 261, 907, 1887, 13, 2775, 18, 4285, 5621, 7734, 309, 261, 2159, 4002, 12, 2867, 3719, 7734, 288, 10792, 613, 18, 1376, 2932, 907, 666, 1818, 1914, 315, 397, 1758, 1769, 7734, 289, 7734, 469, 7734, 288, 10792, 368, 7615, 1404, 1221, 731, 279, 2 ]
public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } });
public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } });
public String isValid(final Object value) { if (value instanceof String) { final EObject element = getParserElement(); final IParser parser = getParser(); try { IParserEditStatus valid = (IParserEditStatus) getEditingDomain() .runExclusive(new RunnableWithResult.Impl() { public void run() { setResult(parser.isValidEditString(new EObjectAdapter(element), (String) value)); } }); return valid.getCode() == ParserEditStatus.EDITABLE ? null : valid.getMessage(); } catch (InterruptedException ie) { ie.printStackTrace(); } } // shouldn't get here return null; }
56962 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56962/816096641504ba96db7bef449fe01a4b67ff0d37/CallOperationActionNameEditPart.java/buggy/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/CallOperationActionNameEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 514, 4908, 12, 6385, 1033, 460, 13, 288, 9506, 202, 430, 261, 1132, 1276, 514, 13, 288, 6862, 202, 6385, 8091, 930, 273, 20804, 1046, 5621, 6862, 202, 6385, 467, 2678, 2082, 273, 20804, 5621, 6862, 202, 698, 288, 25083, 202, 45, 2678, 4666, 1482, 923, 273, 261, 45, 2678, 4666, 1482, 13, 21221, 310, 3748, 1435, 6862, 9506, 202, 18, 2681, 17075, 12, 2704, 10254, 1190, 1253, 18, 2828, 1435, 288, 6862, 6862, 202, 482, 918, 1086, 1435, 288, 6862, 25083, 202, 542, 1253, 12, 4288, 18, 26810, 4666, 780, 12, 2704, 8091, 4216, 12, 2956, 3631, 261, 780, 13, 460, 10019, 6862, 6862, 202, 97, 6862, 9506, 202, 22938, 25083, 202, 2463, 923, 18, 588, 1085, 1435, 422, 6783, 4666, 1482, 18, 10776, 2782, 692, 446, 294, 923, 18, 24906, 5621, 6862, 202, 97, 1044, 261, 24485, 503, 9228, 13, 288, 25083, 202, 1385, 18, 1188, 6332, 5621, 6862, 202, 97, 9506, 202, 97, 9506, 202, 759, 12044, 1404, 336, 2674, 9506, 202, 2463, 446, 31, 1082, 202, 97, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 1875, 202, 482, 514, 4908, 12, 6385, 1033, 460, 13, 288, 9506, 202, 430, 261, 1132, 1276, 514, 13, 288, 6862, 202, 6385, 8091, 930, 273, 20804, 1046, 5621, 6862, 202, 6385, 467, 2678, 2082, 273, 20804, 5621, 6862, 202, 698, 288, 25083, 202, 45, 2678, 4666, 1482, 923, 273, 261, 45, 2678, 4666, 1482, 13, 21221, 310, 3748, 1435, 6862, 9506, 202, 18, 2681, 17075, 12, 2704, 10254, 1190, 1253, 18, 2828, 1435, 288, 6862, 6862, 202, 482, 918, 1086, 1435, 288, 6862, 25083, 202, 542, 1253, 12, 4288, 18, 26810, 4666, 780, 12, 2704, 8091, 4216, 12, 2956, 3631, 261, 780, 13, 460, 10019, 6862, 6862, 202, 97, 6862, 9506, 202, 22938, 25083, 202, 2463, 923, 18, 2 ]
public XMLMenuBuilder(Class ref, UIAction[] actionList) { button_group = new Hashtable(); actions = new Hashtable(); this.ref = ref; if (actionList != null) { for (int i = 0; i < actionList.length; i++) { actions.put(actionList[i].getName(), actionList[i]); } }
public XMLMenuBuilder(Event[] aListener) { mListener = aListener; mIDs = new HashMap<String, JComponent>();
public XMLMenuBuilder(Class ref, UIAction[] actionList) { button_group = new Hashtable(); actions = new Hashtable(); this.ref = ref; if (actionList != null) { for (int i = 0; i < actionList.length; i++) { actions.put(actionList[i].getName(), actionList[i]); } } }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/3cd6e9d81112e3ab17a910eaef36b9e56b2a8b6a/XMLMenuBuilder.java/buggy/grendel/sources/grendel/ui/XMLMenuBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3167, 4599, 1263, 12, 797, 1278, 16, 6484, 1803, 8526, 1301, 682, 13, 288, 565, 3568, 67, 1655, 273, 394, 18559, 5621, 565, 4209, 273, 394, 18559, 5621, 565, 333, 18, 1734, 273, 1278, 31, 565, 309, 261, 1128, 682, 480, 446, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1301, 682, 18, 2469, 31, 277, 27245, 288, 202, 4905, 18, 458, 12, 1128, 682, 63, 77, 8009, 17994, 9334, 1301, 682, 63, 77, 19226, 1377, 289, 565, 289, 225, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3167, 4599, 1263, 12, 797, 1278, 16, 6484, 1803, 8526, 1301, 682, 13, 288, 565, 3568, 67, 1655, 273, 394, 18559, 5621, 565, 4209, 273, 394, 18559, 5621, 565, 333, 18, 1734, 273, 1278, 31, 565, 309, 261, 1128, 682, 480, 446, 13, 288, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1301, 682, 18, 2469, 31, 277, 27245, 288, 202, 4905, 18, 458, 12, 1128, 682, 63, 77, 8009, 17994, 9334, 1301, 682, 63, 77, 19226, 1377, 289, 565, 289, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return taskId;
list.add(taskId);
public synchronized String pollForTaskWithClosedJob(String taskTracker) { TreeSet taskIds = (TreeSet) trackerToTaskMap.get(taskTracker); if (taskIds != null) { for (Iterator it = taskIds.iterator(); it.hasNext(); ) { String taskId = (String) it.next(); TaskInProgress tip = (TaskInProgress) taskidToTIPMap.get(taskId); if (tip.shouldCloseForClosedJob(taskId)) { // // This is how the JobTracker ends a task at the TaskTracker. // It may be successfully completed, or may be killed in // mid-execution. // return taskId; } } } return null; }
55137 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55137/60d3b572473ce256966117ae094b5eb605c3fb4a/JobTracker.java/buggy/src/java/org/apache/hadoop/mapred/JobTracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 514, 7672, 1290, 2174, 1190, 7395, 2278, 12, 780, 1562, 8135, 13, 288, 3639, 19461, 1562, 2673, 273, 261, 2471, 694, 13, 9745, 774, 2174, 863, 18, 588, 12, 4146, 8135, 1769, 3639, 309, 261, 4146, 2673, 480, 446, 13, 288, 5411, 364, 261, 3198, 518, 273, 1562, 2673, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 7734, 514, 15321, 273, 261, 780, 13, 518, 18, 4285, 5621, 7734, 3837, 13434, 9529, 273, 261, 2174, 13434, 13, 29035, 774, 56, 2579, 863, 18, 588, 12, 4146, 548, 1769, 7734, 309, 261, 14587, 18, 13139, 4605, 1290, 7395, 2278, 12, 4146, 548, 3719, 288, 10792, 368, 5397, 368, 1220, 353, 3661, 326, 3956, 8135, 3930, 279, 1562, 622, 326, 3837, 8135, 18, 10792, 368, 2597, 2026, 506, 4985, 5951, 16, 578, 2026, 506, 24859, 316, 10792, 368, 7501, 17, 16414, 18, 10792, 368, 10792, 666, 18, 1289, 12, 4146, 548, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 446, 31, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 514, 7672, 1290, 2174, 1190, 7395, 2278, 12, 780, 1562, 8135, 13, 288, 3639, 19461, 1562, 2673, 273, 261, 2471, 694, 13, 9745, 774, 2174, 863, 18, 588, 12, 4146, 8135, 1769, 3639, 309, 261, 4146, 2673, 480, 446, 13, 288, 5411, 364, 261, 3198, 518, 273, 1562, 2673, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 288, 7734, 514, 15321, 273, 261, 780, 13, 518, 18, 4285, 5621, 7734, 3837, 13434, 9529, 273, 261, 2174, 13434, 13, 29035, 774, 56, 2579, 863, 18, 588, 12, 4146, 548, 1769, 7734, 309, 261, 14587, 18, 13139, 4605, 1290, 7395, 2278, 12, 4146, 548, 3719, 288, 10792, 368, 5397, 368, 1220, 353, 3661, 326, 3956, 8135, 3930, 2 ]
i = trailingIdx; if (optInTimePeriod > 1) { while (i < startIdx) periodTotal += inReal[i++]; } outIdx = 0; do { periodTotal += inReal[i++]; tempReal = periodTotal; periodTotal -= inReal[trailingIdx++]; outReal[outIdx++] = tempReal / optInTimePeriod; } while (i <= endIdx);
TA_RetCode INT_SMA(int startIdx, int endIdx, double inReal[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { double periodTotal, tempReal; int i, outIdx, trailingIdx, lookbackTotal; lookbackTotal = (optInTimePeriod - 1); if (startIdx < lookbackTotal) startIdx = lookbackTotal; if (startIdx > endIdx) { outBegIdx.value = 0; outNbElement.value = 0; return TA_RetCode.TA_SUCCESS; } periodTotal = 0; trailingIdx = startIdx - lookbackTotal; i = trailingIdx; if (optInTimePeriod > 1) { while (i < startIdx) periodTotal += inReal[i++]; } outIdx = 0; do { periodTotal += inReal[i++]; tempReal = periodTotal; periodTotal -= inReal[trailingIdx++]; outReal[outIdx++] = tempReal / optInTimePeriod; } while (i <= endIdx); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode.TA_SUCCESS; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 9833, 67, 7055, 1085, 6137, 67, 55, 5535, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 26540, 16, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1082, 202, 9056, 29205, 63, 5717, 288, 202, 202, 9056, 3879, 5269, 16, 31497, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 7341, 4223, 16, 2324, 823, 5269, 31, 202, 202, 7330, 823, 5269, 273, 261, 3838, 382, 26540, 300, 404, 1769, 202, 202, 430, 261, 1937, 4223, 411, 2324, 823, 5269, 13, 1082, 202, 1937, 4223, 273, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 405, 679, 4223, 13, 288, 1082, 202, 659, 24059, 4223, 18, 1132, 273, 374, 31, 1082, 202, 659, 22816, 1046, 18, 1132, 273, 374, 31, 1082, 202, 2463, 399, 37, 67, 7055, 1085, 18, 9833, 67, 12778, 31, 202, 202, 97, 202, 202, 6908, 5269, 273, 374, 31, 202, 202, 26453, 4223, 273, 27108, 300, 2324, 823, 5269, 31, 202, 202, 77, 273, 7341, 4223, 31, 202, 202, 430, 261, 3838, 382, 26540, 405, 404, 13, 288, 1082, 202, 17523, 261, 77, 411, 27108, 13, 9506, 202, 6908, 5269, 1011, 316, 6955, 63, 77, 9904, 15533, 202, 202, 97, 202, 202, 659, 4223, 273, 374, 31, 202, 202, 2896, 288, 1082, 202, 6908, 5269, 1011, 316, 6955, 63, 77, 9904, 15533, 1082, 202, 5814, 6955, 273, 3879, 5269, 31, 1082, 202, 6908, 5269, 3947, 316, 6955, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9833, 67, 7055, 1085, 6137, 67, 55, 5535, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 26540, 16, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1082, 202, 9056, 29205, 63, 5717, 288, 202, 202, 9056, 3879, 5269, 16, 31497, 31, 202, 202, 474, 277, 16, 596, 4223, 16, 7341, 4223, 16, 2324, 823, 5269, 31, 202, 202, 7330, 823, 5269, 273, 261, 3838, 382, 26540, 300, 404, 1769, 202, 202, 430, 261, 1937, 4223, 411, 2324, 823, 5269, 13, 1082, 202, 1937, 4223, 273, 2324, 823, 5269, 31, 202, 202, 430, 261, 1937, 4223, 405, 679, 4223, 13, 288, 1082, 202, 659, 2 ]
JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " " + (String)toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE);
JOptionPane.showMessageDialog( parent, LangTool.getString("em.confirmationMessage") + " " + (String) toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE);
private void sendIt (Frame parent, SendEMail sem) { if (parent == null) parent = new JFrame(); try { if (sem.send()) { JOptionPane.showMessageDialog(parent, LangTool.getString("em.confirmationMessage") + " " + (String)toAddress.getSelectedItem(), LangTool.getString("em.titleConfirmation"), JOptionPane.INFORMATION_MESSAGE); if (session != null) { config.setProperty("emailTo", getToTokens(config.getStringProperty("emailTo"), toAddress)); config.saveSessionProps(); setToCombo(config.getStringProperty("emailTo"),toAddress); } } } catch (IOException ioe) { System.out.println(ioe.getMessage()); } catch (Exception ex) { System.out.println(ex.getMessage()); } }
1179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1179/587af9e9ad98a6fc095602838327da784630b619/SendEMailDialog.java/clean/tn5250j/src/org/tn5250j/mailtools/SendEMailDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 7193, 261, 3219, 982, 16, 2479, 3375, 671, 6111, 13, 288, 1377, 309, 261, 2938, 422, 446, 13, 540, 982, 273, 394, 804, 3219, 5621, 1377, 775, 288, 540, 309, 261, 12000, 18, 4661, 10756, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 2938, 16, 4766, 2398, 13346, 6364, 18, 588, 780, 2932, 351, 18, 22275, 1079, 7923, 397, 4766, 2398, 315, 315, 397, 261, 780, 13, 869, 1887, 18, 588, 7416, 1180, 9334, 4766, 2398, 13346, 6364, 18, 588, 780, 2932, 351, 18, 2649, 17597, 6, 3631, 4766, 2398, 804, 1895, 8485, 18, 706, 23805, 67, 8723, 1769, 5411, 309, 261, 3184, 480, 446, 13, 288, 9079, 642, 18, 542, 1396, 2932, 3652, 774, 3113, 5397, 19478, 5157, 12, 1425, 18, 588, 780, 1396, 2932, 3652, 774, 6, 3631, 4766, 565, 358, 1887, 10019, 9079, 642, 18, 5688, 2157, 5047, 5621, 9079, 19892, 16156, 12, 1425, 18, 588, 780, 1396, 2932, 3652, 774, 6, 3631, 869, 1887, 1769, 5411, 289, 540, 289, 1377, 289, 1377, 1044, 261, 14106, 10847, 13, 288, 540, 2332, 18, 659, 18, 8222, 12, 1594, 73, 18, 24906, 10663, 1377, 289, 1377, 1044, 261, 503, 431, 13, 288, 540, 2332, 18, 659, 18, 8222, 12, 338, 18, 24906, 10663, 1377, 289, 282, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 918, 1366, 7193, 261, 3219, 982, 16, 2479, 3375, 671, 6111, 13, 288, 1377, 309, 261, 2938, 422, 446, 13, 540, 982, 273, 394, 804, 3219, 5621, 1377, 775, 288, 540, 309, 261, 12000, 18, 4661, 10756, 288, 5411, 804, 1895, 8485, 18, 4500, 1079, 6353, 12, 2938, 16, 4766, 2398, 13346, 6364, 18, 588, 780, 2932, 351, 18, 22275, 1079, 7923, 397, 4766, 2398, 315, 315, 397, 261, 780, 13, 869, 1887, 18, 588, 7416, 1180, 9334, 4766, 2398, 13346, 6364, 18, 588, 780, 2932, 351, 18, 2649, 17597, 6, 3631, 4766, 2398, 804, 1895, 8485, 18, 706, 23805, 67, 8723, 1769, 5411, 309, 261, 3184, 480, 446, 13, 288, 9079, 642, 18, 542, 1396, 2932, 2 ]
String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind(WorkbenchMessages.ErrorClosingOneArg, e.getMessage() ); }
String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind( WorkbenchMessages.ErrorClosingOneArg, e .getMessage()); }
public void handleException(Throwable e) { String message; if (e.getMessage() == null) { message = WorkbenchMessages.ErrorClosingNoArg; } else { message = NLS.bind(WorkbenchMessages.ErrorClosingOneArg, e.getMessage() ); } if (!MessageDialog.openQuestion(null, WorkbenchMessages.Error, message)) { isClosing = false; } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9337b828e86179850647141c34d497be28275ed2/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 20879, 12, 15155, 425, 13, 288, 10792, 514, 883, 31, 10792, 309, 261, 73, 18, 24906, 1435, 422, 446, 13, 288, 13491, 883, 273, 4147, 22144, 5058, 18, 668, 15745, 2279, 4117, 31, 10792, 289, 469, 288, 13491, 883, 273, 29117, 18, 4376, 12, 2421, 22144, 5058, 18, 668, 15745, 3335, 4117, 16, 225, 425, 18, 24906, 1435, 11272, 5397, 289, 10792, 309, 16051, 1079, 6353, 18, 3190, 11665, 12, 2011, 16, 4147, 22144, 5058, 18, 668, 16, 883, 3719, 288, 13491, 353, 15745, 273, 629, 31, 10792, 289, 7734, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 20879, 12, 15155, 425, 13, 288, 10792, 514, 883, 31, 10792, 309, 261, 73, 18, 24906, 1435, 422, 446, 13, 288, 13491, 883, 273, 4147, 22144, 5058, 18, 668, 15745, 2279, 4117, 31, 10792, 289, 469, 288, 13491, 883, 273, 29117, 18, 4376, 12, 2421, 22144, 5058, 18, 668, 15745, 3335, 4117, 16, 225, 425, 18, 24906, 1435, 11272, 5397, 289, 10792, 309, 16051, 1079, 6353, 18, 3190, 11665, 12, 2011, 16, 4147, 22144, 5058, 18, 668, 16, 883, 3719, 288, 13491, 353, 15745, 273, 629, 31, 10792, 289, 7734, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
FindPath.find(n1,n2);
public static void detectConstraints( streamit.scheduler2.iriter.Iterator topStreamIter, SIRPortal portals[]) { if (ClusterBackend.debugPrint) System.out.println("Number of portals is: "+portals.length); for (int t = 0; t < portals.length; t++) { SIRPortalSender senders[] = portals[t].getSenders(); SIRStream receivers[] = portals[t].getReceivers(); HashSet visited_senders = new HashSet(); int min_latency = 0; boolean any_latency_found = false; if (ClusterBackend.debugPrint) System.out.println("\n Portal: "+portals[t]); for (int i = 0; i < senders.length; i++) { SIRStream sender = senders[i].getStream(); if (!visited_senders.contains(sender)) { if (ClusterBackend.debugPrint) System.out.print(" sender: ("+sender+")"); try { int id = NodeEnumerator.getSIROperatorId(sender); if (ClusterBackend.debugPrint) System.out.print(" ID:"+id); } catch (Exception ex) { } if (ClusterBackend.debugPrint) System.out.println(); visited_senders.add(sender); for (int y = i; y < senders.length; y++) { if (senders[y].getStream().equals(sender)) { int this_max = 0; SIRLatency latency = senders[y].getLatency(); // we are interested in the least of the // upper bounds. in each case we will send // the message with as large latency // as possible. this_max = MaxLatency(latency); if (ClusterBackend.debugPrint) System.out.println(" detect Latency: "+ this_max); if (!any_latency_found) { min_latency = this_max; any_latency_found = true; } if (this_max < min_latency) { min_latency = this_max; } } } if (ClusterBackend.debugPrint) System.out.println(" minimum Latency: " + min_latency); } } for (int i = 0; i < receivers.length; i++) { SIRStream receiver = receivers[i]; try { int id = NodeEnumerator.getSIROperatorId(receiver); if (ClusterBackend.debugPrint) System.out.println(" receiver: (" + receiver + ") ID:" + id); } catch (Exception ex) { if (ClusterBackend.debugPrint) System.out.println(" receiver: (" + receiver + ") ID: NOT FOUND"); } } if (ClusterBackend.debugPrint) System.out.println(); Iterator senders_i = visited_senders.iterator(); while (senders_i.hasNext()) { SIRStream sender = (SIRStream)senders_i.next(); HashSet constraints = new HashSet(); boolean upstream = false; for (int i2 = 0; i2 < receivers.length; i2++) { SIRStream receiver = receivers[i2]; if (ClusterBackend.debugPrint) System.out.println(" sender: " + sender + " receiver: " + receiver); SIRFilter f1 = (SIRFilter)sender; SIRFilter f2 = (SIRFilter)receiver; int n1 = NodeEnumerator.getSIROperatorId(f1); int n2 = NodeEnumerator.getSIROperatorId(f2); FindPath.find(n1,n2); streamit.scheduler2.constrained.Scheduler cscheduler2 = streamit.scheduler2.constrained.Scheduler. create(topStreamIter); streamit.scheduler2.iriter.Iterator iter1 = IterFactory.createFactory().createIter(f1); streamit.scheduler2.iriter.Iterator iter2 = IterFactory.createFactory().createIter(f2); streamit.scheduler2.SDEPData sdep2; try { sdep2 = cscheduler2.computeSDEP(iter1, iter2); // message is being sent downstream Vector v = new Vector(); v.add(f1); v.add(f2); messageDirectionDownstream.put(v, new Boolean(true)); if (ClusterBackend.debugPrint) System.out.println("sender: "+f1+" receiver: "+f2); upstream = false; } catch (streamit.scheduler2.constrained. NoPathException ex) { try { sdep2 = cscheduler2.computeSDEP(iter2, iter1); Vector v = new Vector(); v.add(f1); v.add(f2); messageDirectionDownstream.put(v, new Boolean(false)); if (ClusterBackend.debugPrint) System.out.println("sender: "+f1+" receiver: "+f2); // message is being sent upstream upstream = true; } catch (streamit.scheduler2.constrained. NoPathException ex2) { // no path between source and dest has been found AssertedClass.ASSERT(cscheduler2, false, "no path found between source and destination of message"); // never executed continue; } } if (ClusterBackend.debugPrint) { System.out.println(" Upstream Init Phases: " + sdep2.getNumSrcInitPhases()); System.out.println(" Downstr. Init Phases: " + sdep2.getNumDstInitPhases()); System.out.println(" Upstream Steady Phases: " + sdep2.getNumSrcSteadyPhases()); System.out.println(" Downstr. Steady Phases: " + sdep2.getNumDstSteadyPhases()); } int upstreamSteady = sdep2.getNumSrcSteadyPhases(); int downstreamSteady = sdep2.getNumDstSteadyPhases(); for (int t2 = 0; t2 < 20; t2++) { int phase = sdep2.getSrcPhase4DstPhase(t2); int phaserev = sdep2.getDstPhase4SrcPhase(t2); if (ClusterBackend.debugPrint) System.out.println(" sdep ["+t2+"] = "+phase+ " reverse_sdep["+t2+"] = "+phaserev); } // take care of negative latency downstream messages if (min_latency < 0 && !upstream) { int last_dep; int iter; // add receiver to set of restricted filters restrictedExecutionFilters.add(receiver); for (iter = 1;; iter++) { last_dep = sdep2.getDstPhase4SrcPhase(iter); if (last_dep > 1) break; } if (ClusterBackend.debugPrint) System.out.println("iter: " + iter + " last_dep: " + last_dep); int init = (iter-1)-min_latency-1; LatencyConstraint constraint = new LatencyConstraint(init, upstreamSteady, downstreamSteady, (SIRFilter)receiver); // add constraint to the senders // list of constraints constraints.add(constraint); last_dep = 0; for (int inc = 0; inc < upstreamSteady; inc++) { int current = sdep2.getDstPhase4SrcPhase(iter+inc)-1; if (current > last_dep) { if (ClusterBackend.debugPrint) System.out.println("Can exec "+current +" at source iteration nr. " +(init+inc) +" array:"+current); constraint.setDependencyData(inc, current); last_dep = current; } else { if (ClusterBackend.debugPrint) System.out.println("Can not advance dest. at source iteration nr. " +(init+inc)+" array:0"); constraint.setDependencyData(inc, 0); } } constraint.output(); } // take care of upstream messages if (upstream && any_latency_found && min_latency < 0) { AssertedClass.ASSERT(topStreamIter, false, "Error: an upstream message is being sent with a negative latency."); } if (upstream && any_latency_found && min_latency > 0) { int init_credit; int iter = 1; // add receiver to set of restricted filters restrictedExecutionFilters.add(receiver); init_credit = sdep2.getSrcPhase4DstPhase(1 + min_latency) - 1; //setInitCredit((SIRFilter)receiver, init_credit); if (ClusterBackend.debugPrint) System.out.println("Init credit: "+init_credit); if (init_credit < sdep2.getSrcPhase4DstPhase(iter)) { // a deadlock if (ClusterBackend.debugPrint) System.out.println("WARNING === possible deadlock ==="); } LatencyConstraint constraint = new LatencyConstraint(init_credit, downstreamSteady, upstreamSteady, (SIRFilter)receiver); constraints.add(constraint); int credit_sent = init_credit; for (int offset = 0; offset < downstreamSteady; offset++) { int credit = sdep2.getSrcPhase4DstPhase(offset + 2 + min_latency)- 1; if (credit > credit_sent) { constraint.setDependencyData(offset, credit); if (ClusterBackend.debugPrint) System.out.println("At end of iter: " +(offset+1) +" can send credit: " +credit); } else { constraint.setDependencyData(offset, 0); if (ClusterBackend.debugPrint) System.out.println("At end of iter: " +(offset+1) +" no additional credit."); } credit_sent = credit; } constraint.output(); } // for loop closes if (ClusterBackend.debugPrint) System.out.println(); } outgoingLatencyConstraints.put(sender, constraints); } if (ClusterBackend.debugPrint) System.out.println(); } }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/335c42ea8dfd5044ffb020dba7d3f90249d99479/LatencyConstraints.java/buggy/streams/src/at/dms/kjc/cluster/LatencyConstraints.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 5966, 4878, 12, 29159, 1407, 305, 18, 19972, 22, 18, 481, 2165, 18, 3198, 1760, 1228, 2360, 16, 29159, 5705, 54, 24395, 1756, 1031, 63, 5717, 288, 3639, 309, 261, 3629, 7172, 18, 4148, 5108, 13, 5411, 2332, 18, 659, 18, 8222, 2932, 1854, 434, 1756, 1031, 353, 30, 13773, 655, 1031, 18, 2469, 1769, 3639, 364, 261, 474, 268, 273, 374, 31, 268, 411, 1756, 1031, 18, 2469, 31, 268, 27245, 288, 10792, 5705, 54, 24395, 12021, 1366, 414, 8526, 273, 1756, 1031, 63, 88, 8009, 588, 3826, 414, 5621, 5411, 5705, 54, 1228, 22686, 8526, 273, 1756, 1031, 63, 88, 8009, 588, 4779, 6760, 5621, 5411, 6847, 9711, 67, 4661, 414, 273, 394, 6847, 5621, 10792, 509, 1131, 67, 4801, 2075, 273, 374, 31, 10792, 1250, 1281, 67, 4801, 2075, 67, 7015, 273, 629, 31, 5411, 309, 261, 3629, 7172, 18, 4148, 5108, 13, 7734, 2332, 18, 659, 18, 8222, 31458, 82, 565, 25478, 30, 13773, 655, 1031, 63, 88, 19226, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1366, 414, 18, 2469, 31, 277, 27245, 288, 7734, 5705, 54, 1228, 5793, 273, 1366, 414, 63, 77, 8009, 588, 1228, 5621, 7734, 309, 16051, 30129, 67, 4661, 414, 18, 12298, 12, 15330, 3719, 288, 10792, 309, 261, 3629, 7172, 18, 4148, 5108, 13, 13491, 2332, 18, 659, 18, 1188, 2932, 3639, 5793, 30, 7566, 15, 15330, 9078, 2225, 1769, 4766, 3639, 775, 288, 13491, 509, 612, 273, 2029, 3572, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 5966, 4878, 12, 29159, 1407, 305, 18, 19972, 22, 18, 481, 2165, 18, 3198, 1760, 1228, 2360, 16, 29159, 5705, 54, 24395, 1756, 1031, 63, 5717, 288, 3639, 309, 261, 3629, 7172, 18, 4148, 5108, 13, 5411, 2332, 18, 659, 18, 8222, 2932, 1854, 434, 1756, 1031, 353, 30, 13773, 655, 1031, 18, 2469, 1769, 3639, 364, 261, 474, 268, 273, 374, 31, 268, 411, 1756, 1031, 18, 2469, 31, 268, 27245, 288, 10792, 5705, 54, 24395, 12021, 1366, 414, 8526, 273, 1756, 1031, 63, 88, 8009, 588, 3826, 414, 5621, 5411, 5705, 54, 1228, 22686, 8526, 273, 1756, 1031, 63, 88, 8009, 588, 4779, 6760, 5621, 5411, 6847, 9711, 67, 4661, 414, 273, 394, 2 ]
return post;
return _post;
public PostTable getPostTable() { return post; }
2880 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2880/9cc444f1c307250e98a52c5068737946a157f4af/OTFont.java/buggy/src/net/java/dev/typecast/ot/OTFont.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5616, 1388, 14150, 1388, 1435, 288, 3639, 327, 389, 2767, 31, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5616, 1388, 14150, 1388, 1435, 288, 3639, 327, 389, 2767, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return new TableLayoutInfo(columnWidthResolver.resolve( tableWidth, parentMaxWidth - marginWidth ));
return new TableLayoutInfo( handleColummVisibity( columnWidthResolver.resolve( tableWidth, parentMaxWidth - marginWidth ) ) );
private TableLayoutInfo resolveTableLayoutInfo(TableArea area) { assert(parent!=null); int avaWidth = parent.getMaxAvaWidth( ) - parent.getCurrentIP( ); int parentMaxWidth = parent.getMaxAvaWidth( ); IStyle style = area.getStyle( ); validateBoxProperty( style ); int marginWidth = getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_LEFT ) ) + getDimensionValue( style .getProperty( StyleConstants.STYLE_MARGIN_RIGHT ) ); int specifiedWidth = getDimensionValue( tableContent.getWidth( ), parentMaxWidth ); if(specifiedWidth + marginWidth > parentMaxWidth) { specifiedWidth = 0; } boolean isInline = PropertyUtil.isInlineElement( content ); if ( specifiedWidth == 0 ) { if(isInline) { if ( avaWidth - marginWidth > parentMaxWidth / 4 ) { tableWidth = avaWidth - marginWidth; } else { tableWidth = parentMaxWidth - marginWidth; } } else { tableWidth = avaWidth - marginWidth; } return new TableLayoutInfo(columnWidthResolver.resolve( tableWidth, tableWidth )); } else { if ( !isInline ) { tableWidth = Math.min( specifiedWidth, avaWidth - marginWidth ); return new TableLayoutInfo(columnWidthResolver.resolve( tableWidth, avaWidth - marginWidth )); } else { tableWidth = Math.min( specifiedWidth, parentMaxWidth - marginWidth ); return new TableLayoutInfo(columnWidthResolver.resolve( tableWidth, parentMaxWidth - marginWidth )); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/7ed22fff465f0a50978a06defbc3569031f205c8/PDFTableLM.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/pdf/PDFTableLM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3555, 3744, 966, 2245, 1388, 3744, 966, 12, 1388, 5484, 5091, 13, 202, 95, 202, 202, 11231, 12, 2938, 5, 33, 2011, 1769, 202, 202, 474, 1712, 69, 2384, 273, 982, 18, 588, 2747, 3769, 69, 2384, 12, 262, 300, 982, 18, 588, 3935, 2579, 12, 11272, 202, 202, 474, 982, 2747, 2384, 273, 982, 18, 588, 2747, 3769, 69, 2384, 12, 11272, 202, 202, 45, 2885, 2154, 273, 5091, 18, 588, 2885, 12, 11272, 202, 202, 5662, 3514, 1396, 12, 2154, 11272, 202, 202, 474, 7333, 2384, 273, 20283, 620, 12, 2154, 9506, 202, 18, 588, 1396, 12, 9767, 2918, 18, 15066, 67, 19772, 7702, 67, 10066, 262, 262, 9506, 202, 15, 20283, 620, 12, 2154, 25083, 202, 18, 588, 1396, 12, 9767, 2918, 18, 15066, 67, 19772, 7702, 67, 11847, 262, 11272, 202, 202, 474, 1269, 2384, 273, 20283, 620, 12, 1014, 1350, 18, 588, 2384, 12, 262, 16, 982, 2747, 2384, 11272, 202, 202, 430, 12, 13827, 2384, 397, 7333, 2384, 405, 982, 2747, 2384, 13, 202, 202, 95, 1082, 202, 13827, 2384, 273, 374, 31, 202, 202, 97, 4697, 202, 6494, 8048, 1369, 273, 4276, 1304, 18, 291, 10870, 1046, 12, 913, 11272, 202, 202, 430, 261, 1269, 2384, 422, 374, 262, 202, 202, 95, 1082, 202, 430, 12, 291, 10870, 13, 1082, 202, 95, 9506, 202, 430, 261, 1712, 69, 2384, 300, 7333, 2384, 405, 982, 2747, 2384, 342, 1059, 262, 9506, 202, 95, 6862, 202, 2121, 2384, 273, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3744, 966, 2245, 1388, 3744, 966, 12, 1388, 5484, 5091, 13, 202, 95, 202, 202, 11231, 12, 2938, 5, 33, 2011, 1769, 202, 202, 474, 1712, 69, 2384, 273, 982, 18, 588, 2747, 3769, 69, 2384, 12, 262, 300, 982, 18, 588, 3935, 2579, 12, 11272, 202, 202, 474, 982, 2747, 2384, 273, 982, 18, 588, 2747, 3769, 69, 2384, 12, 11272, 202, 202, 45, 2885, 2154, 273, 5091, 18, 588, 2885, 12, 11272, 202, 202, 5662, 3514, 1396, 12, 2154, 11272, 202, 202, 474, 7333, 2384, 273, 20283, 620, 12, 2154, 9506, 202, 18, 588, 1396, 12, 9767, 2918, 18, 15066, 67, 19772, 7702, 67, 10066, 262, 262, 9506, 202, 15, 20283, 620, 12, 2 ]
return network.equals(maskIP(org.xbill.DNS.Address.getByName(name), netmask));
return network.equals(maskIP(org.apache.james.dnsserver.DNSServer.getByName(name), netmask));
public boolean contains(final String name) throws java.net.UnknownHostException { return network.equals(maskIP(org.xbill.DNS.Address.getByName(name), netmask)); }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/60fbef73abe9e5c3005cec33f4db92649bd28f64/NetMatcher.java/clean/branches/branch_2_1_fcs/src/java/org/apache/james/util/NetMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1914, 12, 6385, 514, 508, 13, 1216, 2252, 18, 2758, 18, 4874, 29776, 565, 288, 3639, 327, 2483, 18, 14963, 12, 4455, 2579, 12, 3341, 18, 19211, 18, 78, 753, 18, 14926, 3567, 18, 11602, 2081, 18, 588, 5911, 12, 529, 3631, 24172, 10019, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1914, 12, 6385, 514, 508, 13, 1216, 2252, 18, 2758, 18, 4874, 29776, 565, 288, 3639, 327, 2483, 18, 14963, 12, 4455, 2579, 12, 3341, 18, 19211, 18, 78, 753, 18, 14926, 3567, 18, 11602, 2081, 18, 588, 5911, 12, 529, 3631, 24172, 10019, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else { if (checked) {
} else { if ( checked ) {
private void handleCheckStateChanged(IPluginModelBase model, boolean checked) { if (model.getUnderlyingResource() == null) { if (checked) { fNumExternalChecked += 1; } else { fNumExternalChecked -= 1; } } else { if (checked) { fNumWorkspaceChecked += 1; } else { fNumWorkspaceChecked -= 1; } } adjustGroupState(); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9fa0c0ee6086d66a8596c81c9364b34027ca1e98/ReportAdvancedLauncherTab.java/buggy/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launching/ReportAdvancedLauncherTab.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 1564, 1119, 5033, 12, 45, 3773, 1488, 2171, 938, 16, 1250, 5950, 13, 288, 202, 202, 430, 261, 2284, 18, 588, 14655, 6291, 1420, 1435, 422, 446, 13, 288, 1082, 202, 430, 261, 4532, 13, 288, 9506, 202, 74, 2578, 6841, 11454, 1011, 404, 31, 1082, 202, 97, 469, 288, 9506, 202, 74, 2578, 6841, 11454, 3947, 404, 31, 1082, 202, 97, 202, 202, 97, 469, 288, 1082, 202, 430, 261, 4532, 13, 288, 9506, 202, 74, 2578, 8241, 11454, 1011, 404, 31, 1082, 202, 97, 469, 288, 9506, 202, 74, 2578, 8241, 11454, 3947, 404, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 13362, 1114, 1119, 5621, 202, 97, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 3238, 918, 1640, 1564, 1119, 5033, 12, 45, 3773, 1488, 2171, 938, 16, 1250, 5950, 13, 288, 202, 202, 430, 261, 2284, 18, 588, 14655, 6291, 1420, 1435, 422, 446, 13, 288, 1082, 202, 430, 261, 4532, 13, 288, 9506, 202, 74, 2578, 6841, 11454, 1011, 404, 31, 1082, 202, 97, 469, 288, 9506, 202, 74, 2578, 6841, 11454, 3947, 404, 31, 1082, 202, 97, 202, 202, 97, 469, 288, 1082, 202, 430, 261, 4532, 13, 288, 9506, 202, 74, 2578, 8241, 11454, 1011, 404, 31, 1082, 202, 97, 469, 288, 9506, 202, 74, 2578, 8241, 11454, 3947, 404, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 13362, 1114, 1119, 5621, 202, 97, 2, -100, -100, -100, -100 ]
defaultLocation = buildURL(new File(System.getProperty(PROP_USER_HOME), "user").getAbsolutePath(), true);
defaultLocation = buildURL(new File(FrameworkProperties.getProperty(PROP_USER_HOME), "user").getAbsolutePath(), true);
public static void initializeLocations() { // do install location initialization first since others may depend on it // assumes that the property is already set installLocation = buildLocation(PROP_INSTALL_AREA, null, null, true); Location temp = buildLocation(PROP_USER_AREA_DEFAULT, null, "", false); //$NON-NLS-1$ URL defaultLocation = temp == null ? null : temp.getURL(); if (defaultLocation == null) defaultLocation = buildURL(new File(System.getProperty(PROP_USER_HOME), "user").getAbsolutePath(), true); //$NON-NLS-1$ userLocation = buildLocation(PROP_USER_AREA, defaultLocation, "", false); //$NON-NLS-1$ temp = buildLocation(PROP_INSTANCE_AREA_DEFAULT, null, "", false); //$NON-NLS-1$ defaultLocation = temp == null ? null : temp.getURL(); if (defaultLocation == null) defaultLocation = buildURL(new File(System.getProperty(PROP_USER_DIR), "workspace").getAbsolutePath(), true); //$NON-NLS-1$ instanceLocation = buildLocation(PROP_INSTANCE_AREA, defaultLocation, "", false); //$NON-NLS-1$ mungeConfigurationLocation(); // compute a default but it is very unlikely to be used since main will have computed everything temp = buildLocation(PROP_CONFIG_AREA_DEFAULT, null, "", false); //$NON-NLS-1$ defaultLocation = temp == null ? null : temp.getURL(); if (defaultLocation == null) defaultLocation = buildURL(computeDefaultConfigurationLocation(), true); configurationLocation = buildLocation(PROP_CONFIG_AREA, defaultLocation, "", false); //$NON-NLS-1$ // get the parent location based on the system property. This will have been set on the // way in either by the caller/user or by main. There will be no parent location if we are not // cascaded. URL parentLocation = computeSharedConfigurationLocation(); if (parentLocation != null && !parentLocation.equals(configurationLocation.getURL())) { Location parent = new BasicLocation(null, parentLocation, true); ((BasicLocation) configurationLocation).setParent(parent); } initializeDerivedConfigurationLocations(); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/795e339493dd76d146d62fd4fd2526e831c650bd/LocationManager.java/buggy/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/LocationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 4046, 10985, 1435, 288, 202, 202, 759, 741, 3799, 2117, 10313, 1122, 3241, 10654, 2026, 2447, 603, 518, 202, 202, 759, 13041, 716, 326, 1272, 353, 1818, 444, 202, 202, 5425, 2735, 273, 1361, 2735, 12, 15811, 67, 28865, 67, 20933, 16, 446, 16, 446, 16, 638, 1769, 25083, 202, 2735, 1906, 273, 1361, 2735, 12, 15811, 67, 4714, 67, 20933, 67, 5280, 16, 446, 16, 23453, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1785, 805, 2735, 273, 1906, 422, 446, 692, 446, 294, 1906, 18, 588, 1785, 5621, 202, 202, 430, 261, 1886, 2735, 422, 446, 13, 1082, 202, 1886, 2735, 273, 1361, 1785, 12, 2704, 1387, 12, 13701, 2297, 18, 588, 1396, 12, 15811, 67, 4714, 67, 14209, 3631, 315, 1355, 20387, 588, 10368, 743, 9334, 638, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1355, 2735, 273, 1361, 2735, 12, 15811, 67, 4714, 67, 20933, 16, 805, 2735, 16, 23453, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 5814, 273, 1361, 2735, 12, 15811, 67, 13341, 67, 20933, 67, 5280, 16, 446, 16, 23453, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1886, 2735, 273, 1906, 422, 446, 692, 446, 294, 1906, 18, 588, 1785, 5621, 202, 202, 430, 261, 1886, 2735, 422, 446, 13, 1082, 202, 1886, 2735, 273, 1361, 1785, 12, 2704, 1387, 12, 3163, 18, 588, 1396, 12, 15811, 67, 4714, 67, 4537, 3631, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 4046, 10985, 1435, 288, 202, 202, 759, 741, 3799, 2117, 10313, 1122, 3241, 10654, 2026, 2447, 603, 518, 202, 202, 759, 13041, 716, 326, 1272, 353, 1818, 444, 202, 202, 5425, 2735, 273, 1361, 2735, 12, 15811, 67, 28865, 67, 20933, 16, 446, 16, 446, 16, 638, 1769, 25083, 202, 2735, 1906, 273, 1361, 2735, 12, 15811, 67, 4714, 67, 20933, 67, 5280, 16, 446, 16, 23453, 629, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1785, 805, 2735, 273, 1906, 422, 446, 692, 446, 294, 1906, 18, 588, 1785, 5621, 202, 202, 430, 261, 1886, 2735, 422, 446, 13, 1082, 202, 1886, 2735, 273, 1361, 1785, 12, 2704, 1387, 12, 13701, 2 ]
return errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace");
IRubyObject backtrace = errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); if (!(backtrace instanceof RubyArray)) { backtrace = runtime.getNil(); } return backtrace;
public IRubyObject get() { IRubyObject errorInfo = runtime.getGlobalVariables().get("$!"); return errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/fe628a940467ceda783730ea34173dec3d365fa4/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 336, 1435, 288, 5411, 15908, 10340, 921, 23280, 273, 3099, 18, 588, 5160, 6158, 7675, 588, 2932, 8, 4442, 1769, 5411, 15908, 10340, 921, 13902, 273, 23280, 18, 291, 12616, 1435, 692, 3099, 18, 588, 12616, 1435, 294, 23280, 18, 1991, 1305, 12, 1636, 966, 18, 588, 5576, 7675, 588, 3935, 1042, 9334, 315, 18728, 8863, 225, 309, 16051, 12, 18728, 1276, 19817, 1076, 3719, 288, 13902, 273, 3099, 18, 588, 12616, 5621, 289, 327, 13902, 31, 3639, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 15908, 10340, 921, 336, 1435, 288, 5411, 15908, 10340, 921, 23280, 273, 3099, 18, 588, 5160, 6158, 7675, 588, 2932, 8, 4442, 1769, 5411, 15908, 10340, 921, 13902, 273, 23280, 18, 291, 12616, 1435, 692, 3099, 18, 588, 12616, 1435, 294, 23280, 18, 1991, 1305, 12, 1636, 966, 18, 588, 5576, 7675, 588, 3935, 1042, 9334, 315, 18728, 8863, 225, 309, 16051, 12, 18728, 1276, 19817, 1076, 3719, 288, 13902, 273, 3099, 18, 588, 12616, 5621, 289, 327, 13902, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
RubyString.newString(runtime, marshaled));
runtime.newString(marshaled));
private IRubyObject userUnmarshal() throws IOException { String className = unmarshalObject().asSymbol(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getModule(className); IRubyObject result = classInstance.callMethod( "_load", RubyString.newString(runtime, marshaled)); registerLinkTarget(result); return result; }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/870e1da9b41bfdbae259e1fc5f18fc8b76686998/UnmarshalStream.java/clean/src/org/jruby/runtime/marshal/UnmarshalStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 15908, 10340, 921, 729, 9593, 1435, 1216, 1860, 288, 3639, 514, 2658, 273, 11401, 921, 7675, 345, 5335, 5621, 3639, 514, 27957, 273, 11401, 780, 5621, 3639, 19817, 3120, 667, 1442, 273, 3099, 18, 588, 3120, 12, 12434, 1769, 3639, 15908, 10340, 921, 563, 273, 667, 1442, 18, 1991, 1305, 12, 5411, 4192, 945, 3113, 5411, 3099, 18, 2704, 780, 12, 3108, 329, 10019, 3639, 1744, 2098, 2326, 12, 2088, 1769, 3639, 327, 563, 31, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 3238, 15908, 10340, 921, 729, 9593, 1435, 1216, 1860, 288, 3639, 514, 2658, 273, 11401, 921, 7675, 345, 5335, 5621, 3639, 514, 27957, 273, 11401, 780, 5621, 3639, 19817, 3120, 667, 1442, 273, 3099, 18, 588, 3120, 12, 12434, 1769, 3639, 15908, 10340, 921, 563, 273, 667, 1442, 18, 1991, 1305, 12, 5411, 4192, 945, 3113, 5411, 3099, 18, 2704, 780, 12, 3108, 329, 10019, 3639, 1744, 2098, 2326, 12, 2088, 1769, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
List children = new ArrayList(); children.add(EcoreElementTypes.EEnum_2007); return children;
List types = new ArrayList(); types.add(EcoreElementTypes.EEnum_2007); return types;
public List getTypesForPopupBar(IAdaptable host) { Object editPart = host.getAdapter(IGraphicalEditPart.class); if (editPart instanceof EClassEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAttribute_2001); children.add(EcoreElementTypes.EOperation_2002); children.add(EcoreElementTypes.EAnnotation_2003); return children; } if (editPart instanceof EPackage2EditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EClass_2004); children.add(EcoreElementTypes.EPackage_2005); children.add(EcoreElementTypes.EDataType_2006); children.add(EcoreElementTypes.EEnum_2007); children.add(EcoreElementTypes.EAnnotation_2008); return children; } if (editPart instanceof EAnnotation3EditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EStringToStringMapEntry_2009); return children; } if (editPart instanceof EDataType2EditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAnnotation_2010); return children; } if (editPart instanceof EEnum2EditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EEnumLiteral_2011); children.add(EcoreElementTypes.EAnnotation_2012); return children; } if (editPart instanceof EClass_attributesEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAttribute_2001); return children; } if (editPart instanceof EClass_operationsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EOperation_2002); return children; } if (editPart instanceof EClass_classannotationsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAnnotation_2003); return children; } if (editPart instanceof EPackage_classesEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EClass_2004); return children; } if (editPart instanceof EPackage_packagesEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EPackage_2005); return children; } if (editPart instanceof EPackage_datatypesEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EDataType_2006); return children; } if (editPart instanceof EPackage_enumsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EEnum_2007); return children; } if (editPart instanceof EPackage_packageannotationsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAnnotation_2008); return children; } if (editPart instanceof EAnnotation_detailsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EStringToStringMapEntry_2009); return children; } if (editPart instanceof EDataType_datatypeannotationsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAnnotation_2010); return children; } if (editPart instanceof EEnum_literalsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EEnumLiteral_2011); return children; } if (editPart instanceof EEnum_enumannotationsEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EAnnotation_2012); return children; } if (editPart instanceof EPackageEditPart) { List children = new ArrayList(); children.add(EcoreElementTypes.EClass_1001); children.add(EcoreElementTypes.EPackage_1002); children.add(EcoreElementTypes.EAnnotation_1003); children.add(EcoreElementTypes.EDataType_1004); children.add(EcoreElementTypes.EEnum_1005); return children; } return Collections.EMPTY_LIST; }
7409 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7409/79c7b0fc69c2bf26895f5be319f9bd8a536a6311/EcoreModelingAssistantProvider.java/clean/examples/org.eclipse.gmf.ecore.editor/src/org/eclipse/gmf/ecore/edit/providers/EcoreModelingAssistantProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 20780, 1290, 13770, 5190, 12, 45, 13716, 429, 1479, 13, 288, 202, 202, 921, 3874, 1988, 273, 1479, 18, 588, 4216, 12, 3047, 1483, 1706, 4666, 1988, 18, 1106, 1769, 202, 202, 430, 261, 4619, 1988, 1276, 8233, 4666, 1988, 13, 288, 1082, 202, 682, 2325, 273, 394, 2407, 5621, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 1499, 67, 6976, 21, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 2988, 67, 6976, 22, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 3257, 67, 6976, 23, 1769, 1082, 202, 2463, 2325, 31, 202, 202, 97, 202, 202, 430, 261, 4619, 1988, 1276, 10682, 22, 4666, 1988, 13, 288, 1082, 202, 682, 2325, 273, 394, 2407, 5621, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 5720, 67, 6976, 24, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 2261, 67, 6976, 25, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 6273, 67, 6976, 26, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 14420, 67, 6976, 27, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 3257, 67, 6976, 28, 1769, 1082, 202, 2463, 2325, 31, 202, 202, 97, 202, 202, 430, 261, 4619, 1988, 1276, 512, 3257, 23, 4666, 1988, 13, 288, 1082, 202, 682, 2325, 273, 394, 2407, 5621, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 20780, 1290, 13770, 5190, 12, 45, 13716, 429, 1479, 13, 288, 202, 202, 921, 3874, 1988, 273, 1479, 18, 588, 4216, 12, 3047, 1483, 1706, 4666, 1988, 18, 1106, 1769, 202, 202, 430, 261, 4619, 1988, 1276, 8233, 4666, 1988, 13, 288, 1082, 202, 682, 2325, 273, 394, 2407, 5621, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 1499, 67, 6976, 21, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 2988, 67, 6976, 22, 1769, 1082, 202, 5906, 18, 1289, 12, 41, 3644, 1046, 2016, 18, 41, 3257, 67, 6976, 23, 1769, 1082, 202, 2463, 2325, 31, 202, 202, 97, 202, 202, 430, 261, 4619, 1988, 2 ]
setErrorMessage("You must select a recipient before you may send this message.");
setErrorMessage(getResourceBundleString(SELECT_MSG_RECIPIENT));
public String processPvtMsgSaveDraft() { LOG.debug("processPvtMsgSaveDraft()"); if(!hasValue(getComposeSubject())) { setErrorMessage("You must enter a subject before you may send this message."); return null ; }// if(!hasValue(getComposeBody()) )// {// setErrorMessage("Please enter message body for this compose message.");// return null ;// } if(getSelectedComposeToList().size()<1) { setErrorMessage("You must select a recipient before you may send this message."); return null ; } PrivateMessage dMsg=constructMessage() ; dMsg.setDraft(Boolean.TRUE); if((SET_AS_YES).equals(getComposeSendAsPvtMsg())) { prtMsgManager.sendPrivateMessage(dMsg, getRecipients(), false); } //reset contents resetComposeContents(); if(getMsgNavMode().equals("")) { return "main" ; // if navigation is from main page } else { return "pvtMsg"; } }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/31f059d4c004601241a992d38669d08dc47f709b/PrivateMessagesTool.java/buggy/msgcntr/messageforums-app/src/java/org/sakaiproject/tool/messageforums/PrivateMessagesTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 1207, 27615, 3332, 4755, 12714, 1435, 288, 565, 2018, 18, 4148, 2932, 2567, 27615, 3332, 4755, 12714, 1435, 8863, 565, 309, 12, 5, 5332, 620, 12, 588, 22375, 6638, 1435, 3719, 565, 288, 1377, 9967, 1079, 2932, 6225, 1297, 6103, 279, 3221, 1865, 1846, 2026, 1366, 333, 883, 1199, 1769, 1377, 327, 446, 274, 565, 289, 759, 565, 309, 12, 5, 5332, 620, 12, 588, 22375, 2250, 10756, 262, 759, 565, 288, 759, 1377, 9967, 1079, 2932, 8496, 6103, 883, 1417, 364, 333, 11458, 883, 1199, 1769, 759, 1377, 327, 446, 274, 759, 565, 289, 565, 309, 12, 588, 7416, 22375, 25772, 7675, 1467, 1435, 32, 21, 13, 565, 288, 1377, 9967, 1079, 12, 588, 18731, 780, 12, 4803, 67, 11210, 67, 862, 7266, 1102, 2222, 10019, 1377, 327, 446, 274, 565, 289, 3639, 8726, 1079, 302, 3332, 33, 10062, 1079, 1435, 274, 565, 302, 3332, 18, 542, 12714, 12, 5507, 18, 18724, 1769, 3639, 309, 12443, 4043, 67, 3033, 67, 29081, 2934, 14963, 12, 588, 22375, 3826, 1463, 27615, 3332, 1435, 3719, 565, 288, 1377, 20976, 3332, 1318, 18, 4661, 6014, 1079, 12, 72, 3332, 16, 5561, 15079, 9334, 629, 1769, 377, 289, 565, 368, 6208, 2939, 565, 2715, 22375, 6323, 5621, 3639, 309, 12, 588, 3332, 12599, 2309, 7675, 14963, 2932, 6, 3719, 565, 288, 1377, 327, 315, 5254, 6, 274, 368, 309, 10394, 353, 628, 2774, 1363, 565, 289, 565, 469, 565, 288, 1377, 327, 315, 84, 11734, 3332, 14432, 565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1207, 27615, 3332, 4755, 12714, 1435, 288, 565, 2018, 18, 4148, 2932, 2567, 27615, 3332, 4755, 12714, 1435, 8863, 565, 309, 12, 5, 5332, 620, 12, 588, 22375, 6638, 1435, 3719, 565, 288, 1377, 9967, 1079, 2932, 6225, 1297, 6103, 279, 3221, 1865, 1846, 2026, 1366, 333, 883, 1199, 1769, 1377, 327, 446, 274, 565, 289, 759, 565, 309, 12, 5, 5332, 620, 12, 588, 22375, 2250, 10756, 262, 759, 565, 288, 759, 1377, 9967, 1079, 2932, 8496, 6103, 883, 1417, 364, 333, 11458, 883, 1199, 1769, 759, 1377, 327, 446, 274, 759, 565, 289, 565, 309, 12, 588, 7416, 22375, 25772, 7675, 1467, 1435, 32, 21, 13, 565, 288, 1377, 9967, 1079, 12, 588, 18731, 2 ]
public void testMessageWithParameters() throws Exception { String value; CmsMessages messages = new CmsMessages(CmsWorkplaceMessages.DEFAULT_WORKPLACE_MESSAGE_BUNDLE, Locale.ENGLISH); value = messages.key("editor.xmlcontent.validation.error"); assertEquals("Invalid value \"{0}\" according to rule {1}", value); value = messages.key("editor.xmlcontent.validation.error", new Object[]{"'value'", "'rule'"}); assertEquals("Invalid value \"'value'\" according to rule 'rule'", value); value = messages.key("editor.xmlcontent.validation.warning"); assertEquals("Bad value \"{0}\" according to rule {1}", value); value = messages.key("editor.xmlcontent.validation.warning", new Object[]{"some value", "the rule"}); assertEquals("Bad value \"some value\" according to rule the rule", value); }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/6f754ad872cb162fb0d29d167cdd6d159d8112a0/TestCmsMessages.java/buggy/test/org/opencms/i18n/TestCmsMessages.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1079, 1190, 2402, 1435, 1216, 1185, 288, 7734, 514, 460, 31, 7734, 2149, 5058, 2743, 273, 394, 2149, 5058, 12, 4747, 16514, 5058, 18, 5280, 67, 10566, 12134, 67, 8723, 67, 30245, 16, 6458, 18, 16324, 13462, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 1636, 8863, 3639, 1815, 8867, 2932, 1941, 460, 1239, 95, 20, 16276, 4888, 358, 1720, 288, 21, 1532, 16, 460, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 1636, 3113, 394, 1033, 63, 7073, 5187, 1132, 11, 3113, 2491, 5345, 4970, 22938, 3639, 1815, 8867, 2932, 1941, 460, 1239, 11, 1132, 11, 2412, 4888, 358, 1720, 296, 5345, 11, 3113, 460, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 8551, 8863, 3639, 1815, 8867, 2932, 6434, 460, 1239, 95, 20, 16276, 4888, 358, 1720, 288, 21, 1532, 16, 460, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 8551, 3113, 394, 1033, 63, 7073, 6, 19068, 460, 3113, 315, 5787, 1720, 6, 22938, 3639, 1815, 8867, 2932, 6434, 460, 1239, 19068, 460, 2412, 4888, 358, 1720, 326, 1720, 3113, 460, 1769, 565, 289, 377, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 918, 1842, 1079, 1190, 2402, 1435, 1216, 1185, 288, 7734, 514, 460, 31, 7734, 2149, 5058, 2743, 273, 394, 2149, 5058, 12, 4747, 16514, 5058, 18, 5280, 67, 10566, 12134, 67, 8723, 67, 30245, 16, 6458, 18, 16324, 13462, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 1636, 8863, 3639, 1815, 8867, 2932, 1941, 460, 1239, 95, 20, 16276, 4888, 358, 1720, 288, 21, 1532, 16, 460, 1769, 7734, 460, 273, 2743, 18, 856, 2932, 9177, 18, 2902, 1745, 18, 8685, 18, 1636, 3113, 394, 1033, 63, 7073, 5187, 1132, 11, 3113, 2491, 5345, 4970, 22938, 3639, 1815, 8867, 2932, 1941, 460, 1239, 11, 1132, 11, 2412, 4888, 358, 1720, 2 ]
synchronized (this)
if (running)
public void connect() { synchronized (this) { if (running) { return; } log.info("Connecting..."); doConnect(); running = true; notify(); log.info(getAddress() + " connected."); } }
51249 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51249/6924fde902f731f10cf6a2276f5da659c7278d64/JGroupsBus.java/buggy/jegrid/src/org/jegrid/jgroups/JGroupsBus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3077, 1435, 565, 288, 3639, 309, 261, 8704, 13, 3639, 288, 5411, 309, 261, 8704, 13, 5411, 288, 7734, 327, 31, 5411, 289, 5411, 613, 18, 1376, 2932, 30049, 7070, 1769, 5411, 741, 5215, 5621, 5411, 3549, 273, 638, 31, 5411, 5066, 5621, 5411, 613, 18, 1376, 12, 588, 1887, 1435, 397, 315, 5840, 1199, 1769, 3639, 289, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 918, 3077, 1435, 565, 288, 3639, 309, 261, 8704, 13, 3639, 288, 5411, 309, 261, 8704, 13, 5411, 288, 7734, 327, 31, 5411, 289, 5411, 613, 18, 1376, 2932, 30049, 7070, 1769, 5411, 741, 5215, 5621, 5411, 3549, 273, 638, 31, 5411, 5066, 5621, 5411, 613, 18, 1376, 12, 588, 1887, 1435, 397, 315, 5840, 1199, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (CLabel.this.text != null) { char mnemonic = findMnemonic(CLabel.this.text); if (mnemonic != '\0') { e.result = "Alt+"+mnemonic; }
char mnemonic = findMnemonic(CLabel.this.text); if (mnemonic != '\0') { e.result = "Alt+"+mnemonic;
private void initAccessible() { Accessible accessible = getAccessible(); accessible.addAccessibleListener(new AccessibleAdapter() { public void getName(AccessibleEvent e) { e.result = getText(); } public void getHelp(AccessibleEvent e) { e.result = getToolTipText(); } public void getKeyboardShortcut(AccessibleEvent e) { if (CLabel.this.text != null) { char mnemonic = findMnemonic(CLabel.this.text); if (mnemonic != '\0') { e.result = "Alt+"+mnemonic; //$NON-NLS-1$ } } } }); accessible.addAccessibleControlListener(new AccessibleControlAdapter() { public void getChildAtPoint(AccessibleControlEvent e) { Point pt = toControl(new Point(e.x, e.y)); e.childID = (getBounds().contains(pt)) ? ACC.CHILDID_SELF : ACC.CHILDID_NONE; } public void getLocation(AccessibleControlEvent e) { Rectangle location = getBounds(); Point pt = toDisplay(new Point(location.x, location.y)); e.x = pt.x; e.y = pt.y; e.width = location.width; e.height = location.height; } public void getChildCount(AccessibleControlEvent e) { e.detail = 0; } public void getRole(AccessibleControlEvent e) { e.detail = ACC.ROLE_LABEL; } public void getState(AccessibleControlEvent e) { e.detail = ACC.STATE_READONLY; } public void getValue(AccessibleControlEvent e) { e.result = getText(); } });}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/e181b6e9188cddf2a587544c0109556e814864e2/CLabel.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CLabel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 1208, 10451, 1435, 288, 202, 10451, 12718, 273, 336, 10451, 5621, 202, 26037, 18, 1289, 10451, 2223, 12, 2704, 5016, 1523, 4216, 1435, 288, 202, 202, 482, 918, 1723, 12, 10451, 1133, 425, 13, 288, 1082, 202, 73, 18, 2088, 273, 6701, 5621, 202, 202, 97, 9506, 202, 482, 918, 336, 6696, 12, 10451, 1133, 425, 13, 288, 1082, 202, 73, 18, 2088, 273, 336, 29250, 1528, 5621, 202, 202, 97, 9506, 202, 482, 918, 3579, 3752, 15576, 12, 10451, 1133, 425, 13, 288, 1082, 202, 430, 261, 39, 2224, 18, 2211, 18, 955, 480, 446, 13, 288, 9506, 202, 3001, 12883, 20918, 273, 1104, 29668, 20918, 12, 39, 2224, 18, 2211, 18, 955, 1769, 6862, 202, 430, 261, 13607, 20918, 480, 2337, 20, 6134, 288, 6862, 202, 73, 18, 2088, 273, 315, 10655, 9078, 15, 13607, 20918, 31, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 202, 22938, 1082, 202, 26037, 18, 1289, 10451, 3367, 2223, 12, 2704, 5016, 1523, 3367, 4216, 1435, 288, 202, 202, 482, 918, 8154, 861, 2148, 12, 10451, 3367, 1133, 425, 13, 288, 1082, 202, 2148, 5818, 273, 358, 3367, 12, 2704, 4686, 12, 73, 18, 92, 16, 425, 18, 93, 10019, 1082, 202, 73, 18, 3624, 734, 273, 261, 588, 5694, 7675, 12298, 12, 337, 3719, 692, 18816, 18, 27043, 734, 67, 26280, 294, 18816, 18, 27043, 734, 67, 9826, 31, 202, 202, 97, 9506, 202, 482, 918, 13312, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 10451, 1435, 288, 202, 10451, 12718, 273, 336, 10451, 5621, 202, 26037, 18, 1289, 10451, 2223, 12, 2704, 5016, 1523, 4216, 1435, 288, 202, 202, 482, 918, 1723, 12, 10451, 1133, 425, 13, 288, 1082, 202, 73, 18, 2088, 273, 6701, 5621, 202, 202, 97, 9506, 202, 482, 918, 336, 6696, 12, 10451, 1133, 425, 13, 288, 1082, 202, 73, 18, 2088, 273, 336, 29250, 1528, 5621, 202, 202, 97, 9506, 202, 482, 918, 3579, 3752, 15576, 12, 10451, 1133, 425, 13, 288, 1082, 202, 430, 261, 39, 2224, 18, 2211, 18, 955, 480, 446, 13, 288, 9506, 202, 3001, 12883, 20918, 273, 1104, 29668, 20918, 12, 39, 2224, 18, 2211, 18, 955, 1769, 6862, 202, 2 ]
btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup );
Button btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup );
private void createButtonGroup( Composite parent ) { Composite cmp = new Composite( parent, SWT.NONE ); { cmp.setLayout( new GridLayout( 5, false ) ); GridData gridData = new GridData( GridData.FILL_HORIZONTAL ); gridData.horizontalSpan = 2; gridData.grabExcessVerticalSpace = true; gridData.verticalAlignment = SWT.END; cmp.setLayoutData( gridData ); } ITaskPopupSheet popup = new AxisScaleSheet( Messages.getString( "AxisYSheetImpl.Label.Scale" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ) ); btnScale = createToggleButton( cmp, popup.getTitle( ), popup ); btnScale.addSelectionListener( this ); popup = new AxisTextSheet( Messages.getString( "AxisYSheetImpl.Label.TextFormat" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ), getAxisAngleType( ) ); btnAxisTitle = createToggleButton( cmp, popup.getTitle( ), popup ); btnAxisTitle.addSelectionListener( this ); popup = new AxisGridLinesSheet( Messages.getString( "AxisYSheetImpl.Label.Gridlines" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ), getAxisAngleType( ) ); btnGridlines = createToggleButton( cmp, popup.getTitle( ), popup ); btnGridlines.addSelectionListener( this ); // Marker is not supported for 3D popup = new AxisMarkersSheet( Messages.getString( "AxisYSheetImpl.Label.Markers" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ) ); btnMarkers = createToggleButton( cmp, popup.getTitle( ), popup ); btnMarkers.addSelectionListener( this ); btnMarkers.setEnabled( !ChartUIUtil.is3DType( getChart( ) ) ); // Interactivity popup = new InteractivitySheet( Messages.getString( "SeriesYSheetImpl.Label.Interactivity" ), //$NON-NLS-1$ getContext( ), getAxisForProcessing( ).getTriggers( ), false, true ); btnInteractivity = createToggleButton( cmp, popup.getTitle( ), popup ); btnInteractivity.addSelectionListener( this ); btnInteractivity.setEnabled( getChart( ).getInteractivity( ).isEnable( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/b7743b34e1d4aa062c44ee59a8b7377b982d9960/AbstractAxisSubtask.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/axis/AbstractAxisSubtask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 3616, 1114, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9411, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 9625, 18, 542, 3744, 12, 394, 7145, 3744, 12, 1381, 16, 629, 262, 11272, 1082, 202, 6313, 751, 3068, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 1082, 202, 5222, 751, 18, 18396, 6952, 273, 576, 31, 1082, 202, 5222, 751, 18, 2752, 70, 424, 614, 15704, 3819, 273, 638, 31, 1082, 202, 5222, 751, 18, 17824, 11535, 273, 348, 8588, 18, 4415, 31, 1082, 202, 9625, 18, 542, 3744, 751, 12, 3068, 751, 11272, 202, 202, 97, 202, 202, 1285, 835, 13770, 8229, 10431, 273, 394, 15509, 5587, 8229, 12, 4838, 18, 588, 780, 12, 315, 6558, 61, 8229, 2828, 18, 2224, 18, 5587, 6, 262, 16, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 29120, 12, 262, 16, 9506, 202, 588, 6558, 1290, 7798, 12, 262, 11272, 202, 202, 11898, 5587, 273, 752, 17986, 3616, 12, 9411, 16, 10431, 18, 588, 4247, 12, 262, 16, 10431, 11272, 202, 202, 11898, 5587, 18, 1289, 6233, 2223, 12, 333, 11272, 202, 202, 16086, 273, 394, 15509, 1528, 8229, 12, 4838, 18, 588, 780, 12, 315, 6558, 61, 8229, 2828, 18, 2224, 18, 1528, 1630, 6, 262, 16, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 29120, 12, 262, 16, 9506, 202, 588, 6558, 1290, 7798, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 3616, 1114, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9411, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 95, 1082, 202, 9625, 18, 542, 3744, 12, 394, 7145, 3744, 12, 1381, 16, 629, 262, 11272, 1082, 202, 6313, 751, 3068, 751, 273, 394, 7145, 751, 12, 7145, 751, 18, 29818, 67, 44, 20344, 11272, 1082, 202, 5222, 751, 18, 18396, 6952, 273, 576, 31, 1082, 202, 5222, 751, 18, 2752, 70, 424, 614, 15704, 3819, 273, 638, 31, 1082, 202, 5222, 751, 18, 17824, 11535, 273, 348, 8588, 18, 4415, 31, 1082, 202, 9625, 18, 542, 3744, 751, 12, 3068, 751, 11272, 202, 202, 97, 202, 202, 2 ]
asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; spillOffsetVM+=BYTES_IN_STACKSLOT;
asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetAIX - BYTES_IN_ADDRESS, FP);
private static void storeParametersForAIX(VM_Assembler asm, int frameSize, VM_Method method, VM_Class klass) { int nextAIXArgReg, nextAIXArgFloatReg, nextVMArgReg, nextVMArgFloatReg; // offset to the spill area in the callee (AIX frame): // skip past the 2 arguments to be added in front: JNIenv and class or object pointer int spillOffsetAIX = NATIVE_FRAME_HEADER_SIZE + 2*BYTES_IN_STACKSLOT; // offset to the spill area in the caller (RVM frame), relative to the callee's FP int spillOffsetVM = frameSize + STACKFRAME_HEADER_SIZE; VM_TypeReference[] types = method.getParameterTypes(); // does NOT include implicit this or class ptr int numArguments = types.length; // number of arguments for this method // Set up the Reference table for GC // PR <- JREFS array base asm.emitLAddr(PROCESSOR_REGISTER, VM_Entrypoints.JNIRefsField.getOffset(), S0); // TI <- JREFS current top asm.emitLInt(KLUDGE_TI_REG, VM_Entrypoints.JNIRefsTopField.getOffset(), S0); // JREFS offset for current TOP asm.emitADD(KLUDGE_TI_REG, PROCESSOR_REGISTER, KLUDGE_TI_REG); // convert into address // TODO - count number of refs // TODO - emit overflow check for JNIRefs array // start a new JNIRefs frame on each transition from Java to native C // push current SavedFP ptr onto top of JNIRefs stack (use available S1 reg as a temp) // and make current TOP the new savedFP // asm.emitLInt (S1, VM_Entrypoints.JNIRefsSavedFPField.getOffset(), S0); asm.emitSTWU (S1, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // push prev frame ptr onto JNIRefs array asm.emitSUBFC(S1, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset for new TOP asm.emitSTW (S1, VM_Entrypoints.JNIRefsSavedFPField.getOffset(), S0); // save new TOP as new frame ptr in JNIEnv // for static methods: caller has placed args in r3,r4,... // for non-static methods:"this" ptr is in r3, and args start in r4,r5,... // // for static methods: for nonstatic methods: // Java caller AIX callee Java caller AIX callee // ----------- ---------- ----------- ---------- // spill = arg11 -> new spill spill = arg11 -> new spill // spill = arg10 -> new spill spill = arg10 -> new spill // spill = arg9 -> new spill // spill = arg9 -> new spill // spill = arg8 -> new spill spill = arg8 -> new spill // R10 = arg7 -> new spill spill = arg7 -> new spill // R9 = arg6 -> new spill R10 = arg6 -> new spill // // R8 = arg5 -> R10 R9 = arg5 -> R10 // R7 = arg4 -> R9 R8 = arg4 -> R9 // R6 = arg3 -> R8 R7 = arg3 -> R8 // R5 = arg2 -> R7 R6 = arg2 -> R7 // R4 = arg1 -> R6 R5 = arg1 -> R6 // R3 = arg0 -> R5 R4 = arg0 -> R5 // R4 = class R3 = this -> R4 // R3 = JNIenv R3 = JNIenv // nextAIXArgFloatReg = FIRST_OS_PARAMETER_FPR; nextVMArgFloatReg = FIRST_VOLATILE_FPR; nextAIXArgReg = FIRST_OS_PARAMETER_GPR + 2; // 1st reg = JNIEnv, 2nd reg = class if (method.isStatic()) { nextVMArgReg = FIRST_VOLATILE_GPR; } else { nextVMArgReg = FIRST_VOLATILE_GPR+1; // 1st reg = this, to be processed separately } // The loop below assumes the following relationship: if (VM.VerifyAssertions) VM._assert(FIRST_OS_PARAMETER_FPR==FIRST_VOLATILE_FPR); if (VM.VerifyAssertions) VM._assert(LAST_OS_PARAMETER_FPR<=LAST_VOLATILE_FPR); if (VM.VerifyAssertions) VM._assert(FIRST_OS_PARAMETER_GPR==FIRST_VOLATILE_GPR); if (VM.VerifyAssertions) VM._assert(LAST_OS_PARAMETER_GPR<=LAST_VOLATILE_GPR); // create one VM_Assembler object for each argument // This is needed for the following reason: // -2 new arguments are added in front for native methods, so the normal arguments // need to be shifted down in addition to being moved // -to avoid overwriting each other, the arguments must be copied in reverse order // -the analysis for mapping however must be done in forward order // -the moving/mapping for each argument may involve a sequence of 1-3 instructions // which must be kept in the normal order // To solve this problem, the instructions for each argument is generated in its // own VM_Assembler in the forward pass, then in the reverse pass, each VM_Assembler // emist the instruction sequence and copies it into the main VM_Assembler VM_Assembler[] asmForArgs = new VM_Assembler[numArguments]; for (int arg = 0; arg < numArguments; arg++) { boolean mustSaveFloatToSpill; asmForArgs[arg] = new VM_Assembler(0); VM_Assembler asmArg = asmForArgs[arg]; // For 32-bit float arguments // if (types[arg].isFloatType()) { // Side effect of float arguments on the GPR's // (1a) reserve one GPR for each float if it is available if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR) { nextAIXArgReg++; mustSaveFloatToSpill = false; } else { // (1b) if GPR has spilled, store the float argument in the callee spill area // regardless of whether the FPR has spilled or not mustSaveFloatToSpill = true; } // Check if the args need to be moved // (2a) leave those in FPR[1:13] as is unless the GPR has spilled if (nextVMArgFloatReg<=LAST_OS_PARAMETER_FPR) { if (mustSaveFloatToSpill) { asmArg.emitSTFS(nextVMArgFloatReg, spillOffsetAIX, FP); } spillOffsetAIX+=BYTES_IN_STACKSLOT; nextAIXArgFloatReg++; nextVMArgFloatReg++; } else if (nextVMArgFloatReg<=LAST_VOLATILE_FPR) { // (2b) run out of FPR in AIX, but still have 2 more FPR in VM, // so FPR[14:15] goes to the callee spill area asmArg.emitSTFS(nextVMArgFloatReg, spillOffsetAIX, FP); nextVMArgFloatReg++; spillOffsetAIX+=BYTES_IN_STACKSLOT; } else { // (2c) run out of FPR in VM, now get the remaining args from the caller spill area // and move them into the callee spill area spillOffsetVM+=BYTES_IN_STACKSLOT; asmArg.emitLFS(FIRST_SCRATCH_FPR, spillOffsetVM - BYTES_IN_FLOAT, FP); //Kris Venstermans: Attention, different calling convention !! asmArg.emitSTFS(FIRST_SCRATCH_FPR, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; } } else if (types[arg].isDoubleType()) { // For 64-bit float arguments if (VM.BuildFor64Addr) { // Side effect of float arguments on the GPR's // (1a) reserve one GPR for double if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR) { nextAIXArgReg++; mustSaveFloatToSpill = false; } else { // (1b) if GPR has spilled, store the float argument in the callee spill area // regardless of whether the FPR has spilled or not mustSaveFloatToSpill = true; } } else { // Side effect of float arguments on the GPR's // (1a) reserve two GPR's for double if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR-1) { nextAIXArgReg+=2; mustSaveFloatToSpill = false; } else { // if only one GPR is left, reserve it anyway although it won't be used if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR) nextAIXArgReg++; mustSaveFloatToSpill = true; } } // Check if the args need to be moved // (2a) leave those in FPR[1:13] as is unless the GPR has spilled if (nextVMArgFloatReg<=LAST_OS_PARAMETER_FPR) { if (mustSaveFloatToSpill) { asmArg.emitSTFD(nextVMArgFloatReg, spillOffsetAIX, FP); } spillOffsetAIX+=BYTES_IN_DOUBLE; //Kris Venstermans: equals 2 slots on 32-bit platforms and 1 slot on 64-bit platform nextAIXArgFloatReg++; nextVMArgFloatReg++; } else if (nextVMArgFloatReg<=LAST_VOLATILE_FPR) { // (2b) run out of FPR in AIX, but still have 2 more FPR in VM, // so FPR[14:15] goes to the callee spill area asmArg.emitSTFD(nextVMArgFloatReg, spillOffsetAIX, FP); nextVMArgFloatReg++; spillOffsetAIX+=BYTES_IN_DOUBLE; } else { // (2c) run out of FPR in VM, now get the remaining args from the caller spill area // and move them into the callee spill area asmArg.emitLFD(FIRST_SCRATCH_FPR, spillOffsetVM , FP); asmArg.emitSTFD(FIRST_SCRATCH_FPR, spillOffsetAIX, FP); spillOffsetAIX+= BYTES_IN_DOUBLE; spillOffsetVM+=BYTES_IN_DOUBLE; } } else if (VM.BuildFor32Addr && types[arg].isLongType()) { // For 64-bit int arguments on 32-bit platforms // // (1a) fit in AIX register, move the pair if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR-1) { asmArg.emitMR(nextAIXArgReg+1, nextVMArgReg+1); // move lo-word first asmArg.emitMR(nextAIXArgReg, nextVMArgReg); // so it doesn't overwritten nextAIXArgReg+=2; nextVMArgReg+=2; spillOffsetAIX+=2*BYTES_IN_STACKSLOT; } else if (nextAIXArgReg==LAST_OS_PARAMETER_GPR && nextVMArgReg<=LAST_VOLATILE_GPR-1) { // (1b) fit in VM register but straddle across AIX register/spill spillOffsetAIX+=BYTES_IN_STACKSLOT; asmArg.emitSTW(nextVMArgReg+1, spillOffsetAIX, FP); // move lo-word first spillOffsetAIX+=BYTES_IN_STACKSLOT; // so it doesn't overwritten asmArg.emitMR(nextAIXArgReg, nextVMArgReg); nextAIXArgReg+=2; nextVMArgReg+=2; } else if (nextAIXArgReg>LAST_OS_PARAMETER_GPR && nextVMArgReg<=LAST_VOLATILE_GPR-1) { // (1c) fit in VM register, spill in AIX without straddling register/spill asmArg.emitSTW(nextVMArgReg++, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; asmArg.emitSTW(nextVMArgReg++, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; } else if (nextVMArgReg==LAST_VOLATILE_GPR) { // (1d) split across VM/spill, spill in AIX asmArg.emitSTW(nextVMArgReg++, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; asmArg.emitLWZ(REGISTER_ZERO, spillOffsetVM , FP); asmArg.emitSTW(REGISTER_ZERO, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; spillOffsetVM+=BYTES_IN_STACKSLOT; } else { // (1e) spill both in VM and AIX asmArg.emitLFD(FIRST_SCRATCH_FPR, spillOffsetVM, FP); asmArg.emitSTFD(FIRST_SCRATCH_FPR, spillOffsetAIX, FP); spillOffsetAIX+=2*BYTES_IN_STACKSLOT; spillOffsetVM+=2*BYTES_IN_STACKSLOT; } } else if (types[arg].isReferenceType() ) { // For reference type, replace with handlers before passing to AIX // // (1a) fit in AIX register, move the register if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR) { asmArg.emitSTAddrU(nextVMArgReg++, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(nextAIXArgReg++, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes of jref spillOffsetAIX+=BYTES_IN_STACKSLOT; } else if (nextVMArgReg<=LAST_VOLATILE_GPR) { // (1b) spill AIX register, but still fit in VM register asmArg.emitSTAddrU(nextVMArgReg++, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(REGISTER_ZERO, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset in bytes for jref asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetAIX, FP); // spill into AIX frame spillOffsetAIX+=BYTES_IN_STACKSLOT; } else { // (1c) spill VM register asmArg.emitLAddr(REGISTER_ZERO, spillOffsetVM , FP); // retrieve arg from VM spill area asmArg.emitSTAddrU(REGISTER_ZERO, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append ref to end of JNIRefs array asmArg.emitSUBFC(REGISTER_ZERO, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset in bytes for jref asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetAIX, FP); // spill into AIX frame spillOffsetAIX+=BYTES_IN_STACKSLOT; spillOffsetVM+=BYTES_IN_STACKSLOT; } } else { // For all other types: int, short, char, byte, boolean ( and long on 64-bit platform) // (1a) fit in AIX register, move the register if (nextAIXArgReg<=LAST_OS_PARAMETER_GPR) { asmArg.emitMR(nextAIXArgReg++, nextVMArgReg++); spillOffsetAIX+=BYTES_IN_STACKSLOT; } // (1b) spill AIX register, but still fit in VM register else if (nextVMArgReg<=LAST_VOLATILE_GPR) { asmArg.emitSTAddr(nextVMArgReg++, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; } else { // (1c) spill VM register asmArg.emitLAddr(REGISTER_ZERO,spillOffsetVM, FP); // retrieve arg from VM spill area asmArg.emitSTAddr(REGISTER_ZERO, spillOffsetAIX, FP); spillOffsetAIX+=BYTES_IN_STACKSLOT; spillOffsetVM+=BYTES_IN_STACKSLOT; } } } // Append the code sequences for parameter mapping // to the current machine code in reverse order // so that the move does not overwrite the parameters for (int arg = numArguments-1; arg >= 0; arg--) { VM_MachineCode codeForArg = asmForArgs[arg].makeMachineCode(); asm.appendInstructions(codeForArg.getInstructions()); } // Now add the 2 new JNI parameters: JNI environment and Class or "this" object // if static method, append ref for class, else append ref for "this" // and pass offset in JNIRefs array in r4 (as second arg to called native code) if (method.isStatic()) { klass.getClassForType(); // ensure the Java class object is created // JTOC saved above in JNIEnv is still valid, used by following emitLWZtoc asm.emitLAddrToc( 4, klass.getTibOffset() ); // r4 <- class TIB ptr from jtoc asm.emitLAddr( 4, 0, 4 ); // r4 <- first TIB entry == -> class object asm.emitLAddr( 4, VM_Entrypoints.classForTypeField.getOffset(), 4 ); // r4 <- java Class for this VM_Class asm.emitSTAddrU ( 4, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append class ptr to end of JNIRefs array asm.emitSUBFC( 4, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes } else { asm.emitSTAddrU ( 3, BYTES_IN_ADDRESS, KLUDGE_TI_REG); // append this ptr to end of JNIRefs array asm.emitSUBFC( 4, PROCESSOR_REGISTER, KLUDGE_TI_REG); // pass offset in bytes } // store the new JNIRefs array TOP back into JNIEnv asm.emitSUBFC(KLUDGE_TI_REG, PROCESSOR_REGISTER, KLUDGE_TI_REG); // compute offset for the current TOP asm.emitSTW(KLUDGE_TI_REG, VM_Entrypoints.JNIRefsTopField.getOffset(), S0); }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/67d25b2c1438934ab57dab085ea0bc42cb3a1a43/VM_JNICompiler.java/clean/rvm/src/vm/arch/powerPC/jni/VM_JNICompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 1707, 2402, 1290, 37, 12507, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 9944, 565, 509, 2623, 1225, 16, 9944, 565, 8251, 67, 1305, 707, 16, 8251, 67, 797, 7352, 13, 288, 565, 509, 1024, 37, 12507, 4117, 1617, 16, 1024, 37, 12507, 4117, 4723, 1617, 16, 1024, 7397, 4117, 1617, 16, 1024, 7397, 4117, 4723, 1617, 31, 540, 368, 1384, 358, 326, 1694, 737, 5091, 316, 326, 14425, 261, 37, 12507, 2623, 4672, 565, 368, 2488, 8854, 326, 576, 1775, 358, 506, 3096, 316, 6641, 30, 225, 804, 50, 45, 3074, 471, 667, 578, 733, 4407, 565, 509, 1694, 737, 2335, 37, 12507, 273, 423, 12992, 67, 15072, 67, 7557, 67, 4574, 397, 576, 14, 13718, 67, 706, 67, 21971, 55, 1502, 56, 31, 565, 368, 1384, 358, 326, 1694, 737, 5091, 316, 326, 4894, 261, 54, 7397, 2623, 3631, 3632, 358, 326, 14425, 1807, 28740, 565, 509, 1694, 737, 2335, 7397, 273, 2623, 1225, 397, 11464, 15072, 67, 7557, 67, 4574, 31, 565, 8251, 67, 7534, 8526, 1953, 273, 707, 18, 588, 1662, 2016, 5621, 282, 368, 1552, 4269, 2341, 10592, 333, 578, 667, 6571, 565, 509, 818, 4628, 273, 1953, 18, 2469, 31, 7734, 368, 1300, 434, 1775, 364, 333, 707, 3639, 368, 1000, 731, 326, 6268, 1014, 364, 15085, 565, 368, 11770, 3290, 804, 862, 4931, 526, 1026, 565, 20415, 18, 18356, 48, 3178, 12, 16560, 916, 67, 27511, 16, 8251, 67, 1622, 4139, 18, 46, 50, 45, 9837, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 1707, 2402, 1290, 37, 12507, 12, 7397, 67, 1463, 5747, 749, 20415, 16, 9944, 565, 509, 2623, 1225, 16, 9944, 565, 8251, 67, 1305, 707, 16, 8251, 67, 797, 7352, 13, 288, 565, 509, 1024, 37, 12507, 4117, 1617, 16, 1024, 37, 12507, 4117, 4723, 1617, 16, 1024, 7397, 4117, 1617, 16, 1024, 7397, 4117, 4723, 1617, 31, 540, 368, 1384, 358, 326, 1694, 737, 5091, 316, 326, 14425, 261, 37, 12507, 2623, 4672, 565, 368, 2488, 8854, 326, 576, 1775, 358, 506, 3096, 316, 6641, 30, 225, 804, 50, 45, 3074, 471, 667, 578, 733, 4407, 565, 509, 1694, 737, 2335, 37, 12507, 273, 423, 12992, 67, 15072, 67, 7557, 67, 4574, 397, 576, 2 ]
handlePaint(event);
handleTraverse(event);
public void handleEvent(Event event) { handlePaint(event); }
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/8862e9074b4e4a9560de676a5074c8c48df6bb4d/StyledText.java/clean/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 1082, 202, 4110, 12699, 12, 2575, 1769, 202, 202, 97, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 3196, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 1082, 202, 4110, 12699, 12, 2575, 1769, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
catch(javax.swing.text.BadLocationException ble) { tooltip = null; /* just don't give a tool tip */ } finally { doc.releaseReadLock(); } setText(node.getUserObject().toString()); renderer = this;
public Component getTreeCellRendererComponent(JTree tree, Object value, boolean isSelected, boolean isExpanded, boolean leaf, int row, boolean hasFocus) { Component renderer = super.getTreeCellRendererComponent(tree, value, isSelected, isExpanded, leaf, row, hasFocus); if (renderer instanceof JComponent) { ((JComponent) renderer).setOpaque(false); } _setColors(renderer); // set tooltip String tooltip = null; if (leaf) { DefaultMutableTreeNode node = (DefaultMutableTreeNode)value; if (node.getUserObject() instanceof RegionTreeUserObj) { @SuppressWarnings("unchecked") R r = ((RegionTreeUserObj<R>)(node.getUserObject())).region(); OpenDefinitionsDocument doc = r.getDocument(); doc.acquireReadLock(); try { int lnr = doc.getLineOfOffset(r.getStartOffset())+1; int startOffset = doc.getOffset(lnr-3); if (startOffset<0) { startOffset = 0; } int endOffset = doc.getOffset(lnr+3); if (endOffset<0) { endOffset = doc.getLength()-1; } // convert to HTML (i.e. < to &lt; and > to &gt; and newlines to <br>) String s = doc.getText(startOffset, endOffset-startOffset); // this highlights the actual region in red int rStart = r.getStartOffset()-startOffset; if (rStart<0) { rStart = 0; } int rEnd = r.getEndOffset()-startOffset; if (rEnd>s.length()) { rEnd = s.length(); } if ((rStart<=s.length()) && (rEnd>=rStart)) { String t1 = StringOps.encodeHTML(s.substring(0,rStart)); String t2 = StringOps.encodeHTML(s.substring(rStart,rEnd)); String t3 = StringOps.encodeHTML(s.substring(rEnd)); s = t1 + "<font color=#ff0000>" + t2 + "</font>" + t3; } else { s = StringOps.encodeHTML(s); } tooltip = "<html><pre>"+s+"</pre></html>"; } catch(javax.swing.text.BadLocationException ble) { tooltip = null; /* just don't give a tool tip */ } finally { doc.releaseReadLock(); } setText(node.getUserObject().toString()); renderer = this; } } setToolTipText(tooltip); return renderer; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/b25e1764d5b4aa3e174628947c02047c67664960/RegionsTreePanel.java/buggy/drjava/src/edu/rice/cs/drjava/ui/RegionsTreePanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 1250, 20956, 16, 1250, 353, 17957, 16, 4766, 10792, 1250, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 13, 288, 1377, 5435, 5690, 273, 2240, 18, 588, 2471, 4020, 6747, 1841, 12, 3413, 16, 460, 16, 20956, 16, 353, 17957, 16, 7839, 16, 1027, 16, 711, 9233, 1769, 5411, 309, 261, 14374, 1276, 29058, 13, 288, 14015, 46, 1841, 13, 5690, 2934, 542, 3817, 14886, 12, 5743, 1769, 289, 5411, 389, 542, 12570, 12, 14374, 1769, 5411, 368, 444, 11915, 1377, 514, 11915, 273, 446, 31, 1377, 309, 261, 12070, 13, 288, 3639, 2989, 19536, 12513, 756, 273, 261, 1868, 19536, 12513, 13, 1132, 31, 3639, 309, 261, 2159, 18, 588, 1299, 921, 1435, 1276, 9164, 2471, 1299, 2675, 13, 288, 1850, 632, 29282, 4312, 2932, 5847, 7923, 534, 436, 273, 14015, 5165, 2471, 1299, 2675, 32, 54, 34, 21433, 2159, 18, 588, 1299, 921, 10756, 2934, 6858, 5621, 10792, 3502, 7130, 2519, 997, 273, 436, 18, 588, 2519, 5621, 1850, 997, 18, 1077, 1039, 1994, 2531, 5621, 1850, 775, 288, 5411, 509, 7211, 86, 273, 997, 18, 588, 1670, 951, 2335, 12, 86, 18, 588, 1685, 2335, 10756, 15, 21, 31, 5411, 509, 18245, 273, 997, 18, 588, 2335, 12, 2370, 86, 17, 23, 1769, 5411, 309, 261, 1937, 2335, 32, 20, 13, 288, 18245, 273, 374, 31, 289, 5411, 509, 25507, 273, 997, 18, 588, 2335, 12, 2370, 86, 15, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5435, 15867, 4020, 6747, 1841, 12, 46, 2471, 2151, 16, 1033, 460, 16, 1250, 20956, 16, 1250, 353, 17957, 16, 4766, 10792, 1250, 7839, 16, 509, 1027, 16, 1250, 711, 9233, 13, 288, 1377, 5435, 5690, 273, 2240, 18, 588, 2471, 4020, 6747, 1841, 12, 3413, 16, 460, 16, 20956, 16, 353, 17957, 16, 7839, 16, 1027, 16, 711, 9233, 1769, 5411, 309, 261, 14374, 1276, 29058, 13, 288, 14015, 46, 1841, 13, 5690, 2934, 542, 3817, 14886, 12, 5743, 1769, 289, 5411, 389, 542, 12570, 12, 14374, 1769, 5411, 368, 444, 11915, 1377, 514, 11915, 273, 446, 31, 1377, 309, 261, 12070, 13, 288, 3639, 2989, 19536, 12513, 756, 273, 261, 1868, 19536, 12513, 13, 1132, 2 ]
public ListWindow (ListModule ownerModule) { super(ownerModule, true); equals = new MesquiteBoolean(defaultEquals); greaterThan = new MesquiteBoolean(defaultGT); lessThan = new MesquiteBoolean(defaultLT); withinExistingSelection = new MesquiteBoolean(defaultWithinSelection); setWindowSize(windowWidth, windowHeight); ownerModule.setModuleWindow(this); owner = ownerModule; int numItems = owner.getNumberOfRows(); table = new ListTable (numItems, 0, windowWidth, windowHeight, 130, this, ownerModule); setCurrentObject(owner.getMainObject()); collator = Collator.getInstance(); String selectExplanation = "Select items in table. If a single cell in the table is touched, and that cell is editable, then you will be given a little box in which you can edit the "; selectExplanation += "contents of the cell. By holding down shift while clicking, the selection will be extended from the first to the last touched cell. "; selectExplanation += " A block of cells can be selected either by using shift-click to extend a previous selection, or by clicking on a cell and dragging with the mouse button still down"; selectExplanation += " Discontinous selections are allowed, and can be obtained by a \"meta\"-click (right mouse button click, or command-click on a MacOS system). "; arrowTool = new TableTool(this, "arrow", MesquiteModule.getRootImageDirectoryPath(),"arrow.gif", 4,2,"Select", selectExplanation, null, null, null); arrowTool.setIsArrowTool(true); addTool(arrowTool); setCurrentTool(arrowTool); ibeamTool = new TableTool(this, "ibeam", MesquiteModule.getRootImageDirectoryPath(),"ibeam.gif", 7,7,"Edit", "This tool can be used to edit elements in the table.", MesquiteModule.makeCommand("editCell", (Commandable)table) , null, null); ibeamTool.setWorksOnRowNames(true); ibeamTool.setWorksOnMatrixPanel(false); addTool(ibeamTool); String wandExplanation = "Select rows in table according to whether they have the same value as the cell touched in that column. "; wandExplanation += "By holding down shift while clicking, the selection will be added to the previous selection. "; wandTool = new TableTool(this, "wand", MesquiteModule.getRootImageDirectoryPath(),"wand.gif", 4,4,"Select rows with same", wandExplanation, MesquiteModule.makeCommand("wandTouch", this) , null, null); wandTool.setOptionsCommand(MesquiteModule.makeCommand("wandOptions", this)); addTool(wandTool); if (owner.rowsMovable()){ String sortExplanation = "Sorts items (that is, rows) in table from lowest to highest values in the column touched. "; sortExplanation += "By holding down option while clicking, items will be sorted from highest to lowest. "; sortTool = new TableTool(this, "sort", MesquiteModule.getRootImageDirectoryPath(),"sort.gif", 4,4,"Sort rows", sortExplanation, MesquiteModule.makeCommand("sortTouch", this) , null, null); sortTool.setOptionImageFileName("revSort.gif", 8, 13); sortTool.setWorksOnRowNames(true); addTool(sortTool); } table.setColumnWidthsUniform(100); table.setUserAdjust(MesquiteTable.RESIZE, MesquiteTable.RESIZE); addToWindow(table); table.setVisible(true); table.setLocation(0,0); MesquiteMenuSpec acm = ownerModule.addAuxiliaryMenu("Columns"); MesquiteMenuItemSpec mss = ownerModule.addModuleMenuItems(acm, ownerModule.makeCommand("newAssistant", this), owner.getAssistantClass()); mss.setCompatibilityCheck(ownerModule.getAddColumnCompatibility()); if (columnsRemovable()){ ownerModule.addMenuItem(acm, "-", null); ownerModule.addMenuItem(acm, "Hide Selected Columns", ownerModule.makeCommand("deleteSelectedColumns", this)); } /*MesquiteSubmenuSpec mss = ownerModule.addSubmenu(null, "Show Column", ownerModule.makeCommand("newAssistant", this),owner.getAssistantClass()); mss.setCompatibilityCheck(ownerModule.getAddColumnCompatibility()); if (columnsRemovable()) ownerModule.addMenuItem( "Hide Selected Columns", ownerModule.makeCommand("deleteSelectedColumns", this)); */ if (owner.rowsAddable()) ownerModule.addMenuItem( "Add " + owner.getItemTypeNamePlural() + "...", ownerModule.makeCommand("addRows", this)); if (owner.rowsDeletable()) { ownerModule.addMenuItem( "Delete Selected " + owner.getItemTypeNamePlural(), deleteCommand = ownerModule.makeCommand("deleteSelectedRows", this)); MesquiteWindow.addKeyListener(this, this); } if (owner.rowsMovable()) { MesquiteMenuItemSpec mm = ownerModule.addMenuItem( "Move Selected " + owner.getItemTypeNamePlural() + " To...", ownerModule.makeCommand("moveSelectedTo", this)); mm.setShortcut(KeyEvent.VK_M); } setShowExplanation(true); setShowAnnotation(true); table.requestFocus(); MesquiteWindow.addKeyListener(this, table); resetTitle();
public ListWindow () {
public ListWindow (ListModule ownerModule) { super(ownerModule, true); //INFOBAR equals = new MesquiteBoolean(defaultEquals); greaterThan = new MesquiteBoolean(defaultGT); lessThan = new MesquiteBoolean(defaultLT); withinExistingSelection = new MesquiteBoolean(defaultWithinSelection); setWindowSize(windowWidth, windowHeight); ownerModule.setModuleWindow(this); owner = ownerModule; int numItems = owner.getNumberOfRows(); table = new ListTable (numItems, 0, windowWidth, windowHeight, 130, this, ownerModule); setCurrentObject(owner.getMainObject()); collator = Collator.getInstance(); //TODO: note: strangely enough, the commands of the arrow tools are not used, since it uses default behavior of table String selectExplanation = "Select items in table. If a single cell in the table is touched, and that cell is editable, then you will be given a little box in which you can edit the "; selectExplanation += "contents of the cell. By holding down shift while clicking, the selection will be extended from the first to the last touched cell. "; selectExplanation += " A block of cells can be selected either by using shift-click to extend a previous selection, or by clicking on a cell and dragging with the mouse button still down"; selectExplanation += " Discontinous selections are allowed, and can be obtained by a \"meta\"-click (right mouse button click, or command-click on a MacOS system). "; arrowTool = new TableTool(this, "arrow", MesquiteModule.getRootImageDirectoryPath(),"arrow.gif", 4,2,"Select", selectExplanation, null, null, null); //MesquiteModule.makeCommand("arrowTouchCell", this) , MesquiteModule.makeCommand("arrowDragCell", this), MesquiteModule.makeCommand("arrowDropCell", this)); arrowTool.setIsArrowTool(true); addTool(arrowTool); setCurrentTool(arrowTool); ibeamTool = new TableTool(this, "ibeam", MesquiteModule.getRootImageDirectoryPath(),"ibeam.gif", 7,7,"Edit", "This tool can be used to edit elements in the table.", MesquiteModule.makeCommand("editCell", (Commandable)table) , null, null); ibeamTool.setWorksOnRowNames(true); ibeamTool.setWorksOnMatrixPanel(false); addTool(ibeamTool); String wandExplanation = "Select rows in table according to whether they have the same value as the cell touched in that column. "; wandExplanation += "By holding down shift while clicking, the selection will be added to the previous selection. "; wandTool = new TableTool(this, "wand", MesquiteModule.getRootImageDirectoryPath(),"wand.gif", 4,4,"Select rows with same", wandExplanation, MesquiteModule.makeCommand("wandTouch", this) , null, null); wandTool.setOptionsCommand(MesquiteModule.makeCommand("wandOptions", this)); addTool(wandTool); if (owner.rowsMovable()){ String sortExplanation = "Sorts items (that is, rows) in table from lowest to highest values in the column touched. "; sortExplanation += "By holding down option while clicking, items will be sorted from highest to lowest. "; sortTool = new TableTool(this, "sort", MesquiteModule.getRootImageDirectoryPath(),"sort.gif", 4,4,"Sort rows", sortExplanation, MesquiteModule.makeCommand("sortTouch", this) , null, null); sortTool.setOptionImageFileName("revSort.gif", 8, 13); sortTool.setWorksOnRowNames(true); addTool(sortTool); } //System.out.println("number of chars " + numItems); table.setColumnWidthsUniform(100); table.setUserAdjust(MesquiteTable.RESIZE, MesquiteTable.RESIZE); addToWindow(table); table.setVisible(true); table.setLocation(0,0); MesquiteMenuSpec acm = ownerModule.addAuxiliaryMenu("Columns"); MesquiteMenuItemSpec mss = ownerModule.addModuleMenuItems(acm, ownerModule.makeCommand("newAssistant", this), owner.getAssistantClass()); mss.setCompatibilityCheck(ownerModule.getAddColumnCompatibility()); if (columnsRemovable()){ ownerModule.addMenuItem(acm, "-", null); ownerModule.addMenuItem(acm, "Hide Selected Columns", ownerModule.makeCommand("deleteSelectedColumns", this)); } /*MesquiteSubmenuSpec mss = ownerModule.addSubmenu(null, "Show Column", ownerModule.makeCommand("newAssistant", this),owner.getAssistantClass()); mss.setCompatibilityCheck(ownerModule.getAddColumnCompatibility()); if (columnsRemovable()) ownerModule.addMenuItem( "Hide Selected Columns", ownerModule.makeCommand("deleteSelectedColumns", this)); */ //ownerModule.addMenuItem( "-", null); if (owner.rowsAddable()) ownerModule.addMenuItem( "Add " + owner.getItemTypeNamePlural() + "...", ownerModule.makeCommand("addRows", this)); if (owner.rowsDeletable()) { ownerModule.addMenuItem( "Delete Selected " + owner.getItemTypeNamePlural(), deleteCommand = ownerModule.makeCommand("deleteSelectedRows", this)); MesquiteWindow.addKeyListener(this, this); } if (owner.rowsMovable()) { MesquiteMenuItemSpec mm = ownerModule.addMenuItem( "Move Selected " + owner.getItemTypeNamePlural() + " To...", ownerModule.makeCommand("moveSelectedTo", this)); mm.setShortcut(KeyEvent.VK_M); } setShowExplanation(true); setShowAnnotation(true); table.requestFocus(); MesquiteWindow.addKeyListener(this, table); resetTitle(); }
56479 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56479/3ecea059b3577db56657224c5cecbccd44eb8f38/ListWindow.java/buggy/Source/mesquite/lists/lib/ListWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 987, 3829, 261, 682, 3120, 3410, 3120, 13, 288, 202, 202, 9565, 12, 8443, 3120, 16, 638, 1769, 368, 5923, 21908, 202, 202, 14963, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 8867, 1769, 202, 202, 11556, 2045, 9516, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 16506, 1769, 202, 202, 2656, 9516, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 12050, 1769, 202, 202, 25850, 9895, 6233, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 18949, 6233, 1769, 202, 202, 542, 3829, 1225, 12, 5668, 2384, 16, 2742, 2686, 1769, 202, 202, 8443, 3120, 18, 542, 3120, 3829, 12, 2211, 1769, 202, 202, 8443, 273, 3410, 3120, 31, 202, 202, 474, 818, 3126, 273, 3410, 18, 588, 9226, 4300, 5621, 202, 202, 2121, 273, 394, 987, 1388, 261, 2107, 3126, 16, 374, 16, 2742, 2384, 16, 2742, 2686, 16, 404, 5082, 16, 333, 16, 3410, 3120, 1769, 202, 202, 542, 3935, 921, 12, 8443, 18, 588, 6376, 921, 10663, 202, 202, 12910, 639, 273, 17596, 639, 18, 588, 1442, 5621, 9506, 202, 759, 6241, 30, 225, 4721, 30, 609, 539, 2357, 7304, 16, 326, 4364, 434, 326, 12274, 8513, 854, 486, 1399, 16, 3241, 518, 4692, 805, 6885, 434, 1014, 202, 202, 780, 2027, 424, 15854, 273, 315, 3391, 1516, 316, 1014, 18, 225, 971, 279, 2202, 2484, 316, 326, 1014, 353, 358, 19370, 16, 471, 716, 2484, 353, 13754, 16, 1508, 1846, 903, 506, 864, 279, 12720, 3919, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 3829, 261, 682, 3120, 3410, 3120, 13, 288, 202, 202, 9565, 12, 8443, 3120, 16, 638, 1769, 368, 5923, 21908, 202, 202, 14963, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 8867, 1769, 202, 202, 11556, 2045, 9516, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 16506, 1769, 202, 202, 2656, 9516, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 12050, 1769, 202, 202, 25850, 9895, 6233, 273, 394, 490, 281, 372, 1137, 5507, 12, 1886, 18949, 6233, 1769, 202, 202, 542, 3829, 1225, 12, 5668, 2384, 16, 2742, 2686, 1769, 202, 202, 8443, 3120, 18, 542, 3120, 3829, 12, 2211, 1769, 202, 202, 8443, 273, 3410, 3120, 31, 202, 202, 474, 2 ]
if (player.getName() != client.getPlayerName())
if (!player.getName().equals(client.getPlayerName()))
private void setupActions() { undoLastSplitAction = new AbstractAction(undoLastSplit) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // peek at the undo stack so we know where to align String hexLabel = (String)Client.topUndoStack(); player.undoLastSplit(); alignLegions(hexLabel); highlightTallLegions(player); repaint(); } }; undoAllSplitsAction = new AbstractAction(undoAllSplits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // peek at the undo stack so we know where to align player.undoAllSplits(); alignAllLegions(); highlightTallLegions(player); repaint(); } }; doneWithSplitsAction = new AbstractAction(doneWithSplits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // Initial legions must be split. if (game.getTurnNumber() == 1 && player.getNumLegions() == 1) { JOptionPane.showMessageDialog(masterFrame, "Must split."); } else { game.advancePhase(); } } }; undoLastMoveAction = new AbstractAction(undoLastMove) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoLastMove(); highlightUnmovedLegions(); } }; undoAllMovesAction = new AbstractAction(undoAllMoves) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoAllMoves(); highlightUnmovedLegions(); } }; takeMulliganAction = new AbstractAction(takeMulligan) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.takeMulligan(); // Reroll movement die. Remove Take Mulligan option // if applicable. game.setupPhase(); } }; doneWithMovesAction = new AbstractAction(doneWithMoves) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // If any legion has a legal non-teleport move, then the // player must move at least one legion. if (player.legionsMoved() == 0 && player.countMobileLegions() > 0) { highlightUnmovedLegions(); JOptionPane.showMessageDialog(masterFrame, "At least one legion must move."); } else { // If legions share a hex and have a legal non-teleport // move, force one of them to take it. if (player.splitLegionHasForcedMove()) { highlightUnmovedLegions(); JOptionPane.showMessageDialog(masterFrame, "Split legions must be separated."); } // Otherwise, recombine all split legions still in the // same hex, and move on to the next phase. else { player.undoAllSplits(); game.advancePhase(); } } } }; doneWithEngagementsAction = new AbstractAction(doneWithEngagements) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } // Advance only if there are no unresolved engagements. if (highlightEngagements() == 0) { game.advancePhase(); } else { JOptionPane.showMessageDialog(masterFrame, "Must Resolve Engagements."); } } }; undoLastRecruitAction = new AbstractAction(undoLastRecruit) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoLastRecruit(); highlightPossibleRecruits(); } }; undoAllRecruitsAction = new AbstractAction(undoAllRecruits) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.undoAllRecruits(); highlightPossibleRecruits(); } }; doneWithTurnAction = new AbstractAction(doneWithTurn) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } player.commitMoves(); // Mulligans are only allowed on turn 1. player.setMulligansLeft(0); game.advancePhase(); } }; // TODO Let inactive players withdraw from the game. withdrawFromGameAction = new AbstractAction(withdrawFromGame) { public void actionPerformed(ActionEvent e) { Player player = game.getActivePlayer(); if (player.getName() != client.getPlayerName()) { return; } String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to withdraw from the game?", "Confirm Withdrawal?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { player.die(null, true); game.advancePhase(); } } }; viewRecruitInfoAction = new AbstractAction(viewRecruitInfo) { public void actionPerformed(ActionEvent e) { GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { new ShowMasterHex(masterFrame, game, hex, lastPoint); // Work around a Windows JDK 1.3 bug. hex.repaint(); } } }; viewBattleMapAction = new AbstractAction(viewBattleMap) { public void actionPerformed(ActionEvent e) { GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { new ShowBattleMap(masterFrame, hex.getLabel()); // Work around a Windows JDK 1.3 bug. hex.repaint(); } } }; newGameAction = new AbstractAction(newGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to start a new game?", "New Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { game.newGame(); } } }; loadGameAction = new AbstractAction(loadGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to load another game?", "Load Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { JFileChooser chooser = new JFileChooser(Game.saveDirname); chooser.setFileFilter(new SaveGameFilter()); int returnVal = chooser.showOpenDialog(masterFrame); if (returnVal == JFileChooser.APPROVE_OPTION) { game.loadGame(chooser.getSelectedFile().getName()); } } } }; saveGameAction = new AbstractAction(saveGame) { public void actionPerformed(ActionEvent e) { // XXX Offer the ability to re-use a save filename, // rather than always making a new one? game.saveGame(); } }; saveGameAsAction = new AbstractAction(saveGameAs) { // XXX Need a confirmation dialog on overwrite? public void actionPerformed(ActionEvent e) { JFileChooser chooser = new JFileChooser(Game.saveDirname); chooser.setFileFilter(new SaveGameFilter()); int returnVal = chooser.showSaveDialog(masterFrame); if (returnVal == JFileChooser.APPROVE_OPTION) { String dirname = chooser.getCurrentDirectory().getName(); String basename = chooser.getSelectedFile().getName(); StringBuffer path = new StringBuffer(); path.append(dirname); path.append(File.separator); path.append(basename); // Add default savegame extension. if (!path.toString().endsWith(Game.saveExtension)) { path.append(Game.saveExtension); } game.saveGame(path.toString()); } } }; saveOptionsAction = new AbstractAction(saveOptions) { public void actionPerformed(ActionEvent e) { client.saveOptions(); } }; quitGameAction = new AbstractAction(quitGame) { public void actionPerformed(ActionEvent e) { String [] options = new String[2]; options[0] = "Yes"; options[1] = "No"; int answer = JOptionPane.showOptionDialog(masterFrame, "Are you sure you with to quit?", "Quit Game?", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]); if (answer == JOptionPane.YES_OPTION) { game.dispose(); } } }; changeScaleAction = new AbstractAction(changeScale) { public void actionPerformed(ActionEvent e) { final int oldScale = Scale.get(); final int newScale = PickScale.pickScale(masterFrame, oldScale); if (newScale != oldScale && newScale != -1) { Scale.set(newScale); client.rescaleAllWindows(); } } }; }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/5e69df65648ef05d9048794b8368383e131bba86/MasterBoard.java/clean/Colossus/MasterBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3875, 6100, 1435, 565, 288, 3639, 15436, 3024, 5521, 1803, 273, 394, 4115, 1803, 12, 31226, 3024, 5521, 13, 3639, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 19185, 7291, 273, 7920, 18, 588, 3896, 12148, 5621, 7734, 309, 16051, 14872, 18, 17994, 7675, 14963, 12, 2625, 18, 588, 12148, 461, 1435, 3719, 7734, 288, 10792, 327, 31, 7734, 289, 7734, 368, 8032, 622, 326, 15436, 2110, 1427, 732, 5055, 1625, 358, 5689, 7734, 514, 3827, 2224, 273, 261, 780, 13, 1227, 18, 3669, 31224, 2624, 5621, 7734, 7291, 18, 31226, 3024, 5521, 5621, 7734, 5689, 8329, 1115, 12, 7118, 2224, 1769, 7734, 8839, 56, 454, 8329, 1115, 12, 14872, 1769, 7734, 24962, 5621, 5411, 289, 3639, 289, 31, 3639, 15436, 1595, 16582, 1803, 273, 394, 4115, 1803, 12, 31226, 1595, 16582, 13, 3639, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 19185, 7291, 273, 7920, 18, 588, 3896, 12148, 5621, 7734, 309, 16051, 14872, 18, 17994, 7675, 14963, 12, 2625, 18, 588, 12148, 461, 1435, 3719, 7734, 288, 10792, 327, 31, 7734, 289, 7734, 368, 8032, 622, 326, 15436, 2110, 1427, 732, 5055, 1625, 358, 5689, 7734, 7291, 18, 31226, 1595, 16582, 5621, 7734, 5689, 1595, 8329, 1115, 5621, 7734, 8839, 56, 454, 8329, 1115, 12, 14872, 1769, 7734, 24962, 5621, 5411, 289, 3639, 289, 31, 3639, 2731, 1190, 16582, 1803, 273, 394, 4115, 1803, 12, 8734, 1190, 16582, 13, 3639, 288, 5411, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3875, 6100, 1435, 565, 288, 3639, 15436, 3024, 5521, 1803, 273, 394, 4115, 1803, 12, 31226, 3024, 5521, 13, 3639, 288, 5411, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 19185, 7291, 273, 7920, 18, 588, 3896, 12148, 5621, 7734, 309, 16051, 14872, 18, 17994, 7675, 14963, 12, 2625, 18, 588, 12148, 461, 1435, 3719, 7734, 288, 10792, 327, 31, 7734, 289, 7734, 368, 8032, 622, 326, 15436, 2110, 1427, 732, 5055, 1625, 358, 5689, 7734, 514, 3827, 2224, 273, 261, 780, 13, 1227, 18, 3669, 31224, 2624, 5621, 7734, 7291, 18, 31226, 3024, 5521, 5621, 7734, 5689, 8329, 1115, 12, 7118, 2224, 1769, 7734, 8839, 56, 454, 8329, 1115, 12, 14872, 1769, 2 ]
Object value = argumentsProperty; if (value != null) {
Object value = defaultGet("arguments"); if (value != NOT_FOUND) {
private Object getArguments() { // <Function name>.arguments is deprecated, so we use a slow // way of getting it that doesn't add to the invocation cost. // TODO: add warning, error based on version Object value = argumentsProperty; if (value != null) { // Should after changing <Function name>.arguments its // activation still be available during Function call? // This code assumes it should not: argumentsProperty != null // means assigned or delete arguments return (value == UniqueTag.NULL_VALUE) ? null : value; } Context cx = Context.getContext(); NativeCall activation = ScriptRuntime.findFunctionActivation(cx, this); return (activation == null) ? null : activation.get("arguments", activation); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/993454366a57fd32ee051c61ff3a0658292d84f2/BaseFunction.java/buggy/js/rhino/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 17839, 1435, 565, 288, 1377, 368, 411, 2083, 508, 18652, 7099, 353, 6849, 16, 1427, 732, 999, 279, 11816, 1377, 368, 4031, 434, 8742, 518, 716, 3302, 1404, 527, 358, 326, 9495, 6991, 18, 1377, 368, 2660, 30, 527, 3436, 16, 555, 2511, 603, 1177, 1377, 1033, 460, 273, 1775, 1396, 31, 1377, 309, 261, 1132, 480, 446, 13, 288, 1850, 368, 9363, 1839, 12770, 411, 2083, 508, 18652, 7099, 2097, 1850, 368, 10027, 4859, 506, 2319, 4982, 4284, 745, 35, 1850, 368, 1220, 981, 13041, 518, 1410, 486, 30, 1775, 1396, 480, 446, 1850, 368, 4696, 6958, 578, 1430, 1775, 1850, 327, 261, 1132, 422, 14584, 1805, 18, 8560, 67, 4051, 13, 692, 446, 294, 460, 31, 1377, 289, 1377, 1772, 9494, 273, 1772, 18, 29120, 5621, 1377, 16717, 1477, 10027, 273, 7739, 5576, 18, 4720, 2083, 14857, 12, 71, 92, 16, 333, 1769, 1377, 327, 261, 16908, 422, 446, 13, 2398, 692, 446, 2398, 294, 10027, 18, 588, 2932, 7099, 3113, 10027, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 17839, 1435, 565, 288, 1377, 368, 411, 2083, 508, 18652, 7099, 353, 6849, 16, 1427, 732, 999, 279, 11816, 1377, 368, 4031, 434, 8742, 518, 716, 3302, 1404, 527, 358, 326, 9495, 6991, 18, 1377, 368, 2660, 30, 527, 3436, 16, 555, 2511, 603, 1177, 1377, 1033, 460, 273, 1775, 1396, 31, 1377, 309, 261, 1132, 480, 446, 13, 288, 1850, 368, 9363, 1839, 12770, 411, 2083, 508, 18652, 7099, 2097, 1850, 368, 10027, 4859, 506, 2319, 4982, 4284, 745, 35, 1850, 368, 1220, 981, 13041, 518, 1410, 486, 30, 1775, 1396, 480, 446, 1850, 368, 4696, 6958, 578, 1430, 1775, 1850, 327, 261, 1132, 422, 14584, 1805, 18, 8560, 67, 4051, 13, 692, 446, 294, 2 ]
String name = f.argNames[slot]; activation.put(name, activation, value);
String name = state.fnOrScript.argNames[slot]; Scriptable scope = state.scope; scope.put(name, scope, value);
private static void activationPut(NativeFunction f, Scriptable activation, int slot, Object value) { String name = f.argNames[slot]; activation.put(name, activation, value); }
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/199b043221701f9744538a048390c041bd370c5f/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 10027, 6426, 12, 9220, 2083, 284, 16, 4766, 1377, 22780, 10027, 16, 509, 4694, 16, 4766, 1377, 1033, 460, 13, 565, 288, 3639, 514, 508, 273, 284, 18, 3175, 1557, 63, 14194, 15533, 3639, 10027, 18, 458, 12, 529, 16, 10027, 16, 460, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 10027, 6426, 12, 9220, 2083, 284, 16, 4766, 1377, 22780, 10027, 16, 509, 4694, 16, 4766, 1377, 1033, 460, 13, 565, 288, 3639, 514, 508, 273, 284, 18, 3175, 1557, 63, 14194, 15533, 3639, 10027, 18, 458, 12, 529, 16, 10027, 16, 460, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
this.historyImpl = historyImpl; }
this.historyImpl = historyImpl; }
protected HistoryReaderImpl(HistoryImpl historyImpl) { this.historyImpl = historyImpl; }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/dd511f0f97892bf31dc2a7a1989480bf6b6b5308/HistoryReaderImpl.java/buggy/src/net/java/sip/communicator/impl/history/HistoryReaderImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 16058, 2514, 2828, 12, 5623, 2828, 4927, 2828, 13, 288, 202, 202, 2211, 18, 8189, 2828, 273, 4927, 2828, 31, 202, 97, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 225, 202, 1117, 16058, 2514, 2828, 12, 5623, 2828, 4927, 2828, 13, 288, 202, 202, 2211, 18, 8189, 2828, 273, 4927, 2828, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(deleted == 0 || dontCheck) break;
if((deleted == 0) || dontCheck) break;
private void maybeShrink(boolean dontCheck) throws DatabaseException, IOException { Transaction t = null; try { // long's are not atomic. long maxBlocks; long curBlocks; synchronized(this) { maxBlocks = maxChkBlocks; curBlocks = chkBlocksInStore; if(maxBlocks >= curBlocks) return; } System.err.println("Shrinking store: "+curBlocks+" -> "+maxBlocks); Logger.error(this, "Shrinking store: "+curBlocks+" -> "+maxBlocks); while(true) { t = environment.beginTransaction(null,null); long deleted = 0; for(long i=curBlocks-1;i>=maxBlocks;i--) { // Delete the block with this blocknum. Long blockNo = new Long(i); DatabaseEntry blockNumEntry = new DatabaseEntry(); longTupleBinding.objectToEntry(blockNo, blockNumEntry); OperationStatus result = chkDB_blockNum.delete(t, blockNumEntry); if(result.equals(OperationStatus.SUCCESS)) deleted++; synchronized(this) { maxBlocks = maxChkBlocks; curBlocks = chkBlocksInStore; if(maxBlocks >= curBlocks) return; } } t.commit(); System.err.println("Deleted "+deleted+" keys"); t = null; if(deleted == 0 || dontCheck) break; else { System.err.println("Checking..."); synchronized(this) { maxBlocks = maxChkBlocks; curBlocks = chkBlocksInStore; if(maxBlocks >= curBlocks) return; } } } chkStore.setLength(maxChkBlocks * (dataBlockSize + headerBlockSize)); chkBlocksInStore = maxChkBlocks; System.err.println("Successfully shrunk store to "+chkBlocksInStore); } finally { if(t != null) t.abort(); } }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6944, 28747, 12, 6494, 14046, 1564, 13, 1216, 27215, 16, 1860, 288, 202, 202, 3342, 268, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 759, 1525, 1807, 854, 486, 7960, 18, 1082, 202, 5748, 943, 6450, 31, 1082, 202, 5748, 662, 6450, 31, 1082, 202, 22043, 12, 2211, 13, 288, 9506, 202, 1896, 6450, 273, 943, 782, 79, 6450, 31, 9506, 202, 1397, 6450, 273, 15000, 6450, 382, 2257, 31, 9506, 202, 430, 12, 1896, 6450, 1545, 662, 6450, 13, 6862, 202, 2463, 31, 1082, 202, 97, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 28747, 310, 1707, 30, 13773, 1397, 6450, 9078, 317, 13773, 1896, 6450, 1769, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 28747, 310, 1707, 30, 13773, 1397, 6450, 9078, 317, 13773, 1896, 6450, 1769, 1082, 202, 17523, 12, 3767, 13, 288, 9506, 202, 88, 273, 3330, 18, 10086, 3342, 12, 2011, 16, 2011, 1769, 9506, 202, 5748, 4282, 273, 374, 31, 9506, 202, 1884, 12, 5748, 277, 33, 1397, 6450, 17, 21, 31, 77, 34, 33, 1896, 6450, 31, 77, 413, 13, 288, 6862, 202, 759, 2504, 326, 1203, 598, 333, 1203, 2107, 18, 6862, 25083, 202, 3708, 1203, 2279, 273, 394, 3407, 12, 77, 1769, 6862, 202, 4254, 1622, 1203, 2578, 1622, 273, 394, 5130, 1622, 5621, 6862, 202, 5748, 9038, 5250, 18, 1612, 774, 1622, 12, 2629, 2279, 16, 1203, 2578, 1622, 1769, 6862, 25083, 202, 2988, 1482, 563, 273, 9944, 202, 27038, 2290, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6944, 28747, 12, 6494, 14046, 1564, 13, 1216, 27215, 16, 1860, 288, 202, 202, 3342, 268, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 759, 1525, 1807, 854, 486, 7960, 18, 1082, 202, 5748, 943, 6450, 31, 1082, 202, 5748, 662, 6450, 31, 1082, 202, 22043, 12, 2211, 13, 288, 9506, 202, 1896, 6450, 273, 943, 782, 79, 6450, 31, 9506, 202, 1397, 6450, 273, 15000, 6450, 382, 2257, 31, 9506, 202, 430, 12, 1896, 6450, 1545, 662, 6450, 13, 6862, 202, 2463, 31, 1082, 202, 97, 1082, 202, 3163, 18, 370, 18, 8222, 2932, 28747, 310, 1707, 30, 13773, 1397, 6450, 9078, 317, 13773, 1896, 6450, 1769, 1082, 202, 3328, 18, 1636, 12, 2 ]
return MOVE_REDUCED;
return DefUseEffect.MOVE_REDUCED;
private static byte intOr(OPT_Instruction s) { if (CF_INT) { canonicalizeCommutativeOperator(s); OPT_Operand op1 = Binary.getVal1(s); OPT_Operand op2 = Binary.getVal2(s); if (op1.similar(op2)) { // THE SAME OPERAND: x | x == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return op1.isConstant() ? MOVE_FOLDED : MOVE_REDUCED; } if (op2.isIntConstant()) { int val2 = op2.asIntConstant().value; if (op1.isIntConstant()) { // BOTH CONSTANTS: FOLD int val1 = op1.asIntConstant().value; Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(val1 | val2)); return MOVE_FOLDED; } else { // ONLY OP2 IS CONSTANT: ATTEMPT TO APPLY AXIOMS if (val2 == -1) { // x | -1 == x | 0xffffffff == 0xffffffff == -1 Move.mutate(s, INT_MOVE, Binary.getClearResult(s), IC(-1)); return MOVE_FOLDED; } if (val2 == 0) { // x | 0 == x Move.mutate(s, INT_MOVE, Binary.getClearResult(s), Binary.getClearVal1(s)); return MOVE_REDUCED; } } } } return UNCHANGED; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/eb4369b6f8fdd0cd15c56bc3cbfa8673171db226/OPT_Simplifier.java/clean/rvm/src/com/ibm/jikesrvm/opt/OPT_Simplifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 1160, 509, 1162, 12, 15620, 67, 11983, 272, 13, 288, 282, 309, 261, 8955, 67, 3217, 13, 288, 1377, 25839, 799, 10735, 1535, 5592, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, 21, 273, 7896, 18, 588, 3053, 21, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, 22, 273, 7896, 18, 588, 3053, 22, 12, 87, 1769, 1377, 309, 261, 556, 21, 18, 22985, 12, 556, 22, 3719, 288, 3639, 368, 12786, 348, 1642, 17205, 4307, 30, 619, 571, 619, 422, 619, 3639, 9933, 18, 10735, 340, 12, 87, 16, 6137, 67, 16537, 16, 7896, 18, 588, 9094, 1253, 12, 87, 3631, 5397, 7896, 18, 588, 9094, 3053, 21, 12, 87, 10019, 3639, 327, 1061, 21, 18, 291, 6902, 1435, 692, 16070, 3412, 67, 42, 1741, 7660, 294, 16070, 3412, 67, 5879, 57, 23552, 31, 1377, 289, 1377, 309, 261, 556, 22, 18, 291, 1702, 6902, 10756, 288, 3639, 509, 1244, 22, 273, 1061, 22, 18, 345, 1702, 6902, 7675, 1132, 31, 3639, 309, 261, 556, 21, 18, 291, 1702, 6902, 10756, 288, 1850, 368, 29370, 24023, 55, 30, 478, 11846, 1850, 509, 1244, 21, 273, 1061, 21, 18, 345, 1702, 6902, 7675, 1132, 31, 1850, 9933, 18, 10735, 340, 12, 87, 16, 6137, 67, 16537, 16, 7896, 18, 588, 9094, 1253, 12, 87, 3631, 15604, 26899, 12, 1125, 21, 571, 1244, 22, 10019, 1850, 327, 16070, 3412, 67, 42, 1741, 7660, 31, 3639, 289, 469, 288, 1850, 368, 20747, 7247, 22, 4437, 24023, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 509, 1162, 12, 15620, 67, 11983, 272, 13, 288, 282, 309, 261, 8955, 67, 3217, 13, 288, 1377, 25839, 799, 10735, 1535, 5592, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, 21, 273, 7896, 18, 588, 3053, 21, 12, 87, 1769, 1377, 16456, 67, 10265, 1061, 22, 273, 7896, 18, 588, 3053, 22, 12, 87, 1769, 1377, 309, 261, 556, 21, 18, 22985, 12, 556, 22, 3719, 288, 3639, 368, 12786, 348, 1642, 17205, 4307, 30, 619, 571, 619, 422, 619, 3639, 9933, 18, 10735, 340, 12, 87, 16, 6137, 67, 16537, 16, 7896, 18, 588, 9094, 1253, 12, 87, 3631, 5397, 7896, 18, 588, 9094, 3053, 21, 12, 87, 10019, 3639, 327, 1061, 21, 2 ]
ContentHandler contentHandler = (ContentHandler) contentHandlers[i];
ContentHandler contentHandler = contentHandlers[i];
public void endPrefixMapping(String prefix) throws SAXException { for (int i = 0; i < contentHandlers.length; i++) { ContentHandler contentHandler = (ContentHandler) contentHandlers[i]; contentHandler.endPrefixMapping(prefix); } }
51410 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51410/d8c5174f7bb62208ddf12b8a1e2b8283bbea61a6/TeeContentHandler.java/buggy/src/java/org/orbeon/oxf/xml/TeeContentHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 2244, 3233, 12, 780, 1633, 13, 1216, 14366, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 913, 6919, 18, 2469, 31, 277, 27245, 288, 5411, 3697, 1503, 913, 1503, 273, 913, 6919, 63, 77, 15533, 5411, 913, 1503, 18, 409, 2244, 3233, 12, 3239, 1769, 3639, 289, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 679, 2244, 3233, 12, 780, 1633, 13, 1216, 14366, 288, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 913, 6919, 18, 2469, 31, 277, 27245, 288, 5411, 3697, 1503, 913, 1503, 273, 913, 6919, 63, 77, 15533, 5411, 913, 1503, 18, 409, 2244, 3233, 12, 3239, 1769, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Node exn = createNewLocal(new Node(Token.VOID));
Node exn = createNewLocal(new Node(Token.EMPTY));
public Object createTryCatchFinally(Object tryblock, Object catchblocks, Object finallyblock, int lineno) { Node trynode = (Node)tryblock; boolean hasFinally = false; Node finallyNode = null; if (finallyblock != null) { finallyNode = (Node)finallyblock; hasFinally = (finallyNode.getType() != Token.BLOCK || finallyNode.hasChildren()); } // short circuit if (trynode.getType() == Token.BLOCK && !trynode.hasChildren() && !hasFinally) { return trynode; } Node catchNodes = (Node)catchblocks; boolean hasCatch = catchNodes.hasChildren(); // short circuit if (!hasFinally && !hasCatch) { // bc finally might be an empty block... return trynode; } Node pn = new Node(Token.TRY, trynode, lineno); Node finallyTarget = null; if (hasFinally) { // make a TARGET for the finally that the tcf node knows about finallyTarget = new Node(Token.TARGET); pn.putProp(Node.FINALLY_PROP, finallyTarget); // add jsr finally to the try block Node jsrFinally = new Node(Token.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); } Node endTarget = new Node(Token.TARGET); Node GOTOToEnd = new Node(Token.GOTO); GOTOToEnd.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTOToEnd); if (hasCatch) { /* * Given try { throw 3; } catch (e: e instanceof Object) { print("object"); } catch (e2) { print(e2); } rewrite as try { throw 3; } catch (x) { o = newScope(); o.e = x; with (o) { if (e instanceof Object) { print("object"); } } o2 = newScope(); o2.e2 = x; with (o2) { if (true) { print(e2); } } } */ // make a TARGET for the catch that the tcf node knows about Node catchTarget = new Node(Token.TARGET); pn.putProp(Node.TARGET_PROP, catchTarget); // mark it pn.addChildToBack(catchTarget); // get the exception object and store it in a temp Node exn = createNewLocal(new Node(Token.VOID)); pn.addChildToBack(new Node(Token.POP, exn)); Node endCatch = new Node(Token.TARGET); // add [jsr finally?] goto end to each catch block // expects catchNode children to be (cond block) pairs. Node cb = catchNodes.getFirstChild(); while (cb != null) { Node catchStmt = new Node(Token.BLOCK); int catchLineNo = cb.getLineno(); Node name = cb.getFirstChild(); Node cond = name.getNext(); Node catchBlock = cond.getNext(); cb.removeChild(name); cb.removeChild(cond); cb.removeChild(catchBlock); Node newScope = createNewLocal(new Node(Token.NEWSCOPE)); Node initScope = new Node(Token.SETPROP, newScope, Node.newString( name.getString()), createUseLocal(exn)); catchStmt.addChildToBack(new Node(Token.POP, initScope)); catchBlock.addChildToBack(new Node(Token.LEAVEWITH)); Node GOTOToEndCatch = new Node(Token.GOTO); GOTOToEndCatch.putProp(Node.TARGET_PROP, endCatch); catchBlock.addChildToBack(GOTOToEndCatch); Node ifStmt = (Node) createIf(cond, catchBlock, null, catchLineNo); // Try..catch produces "with" code in order to limit // the scope of the exception object. // OPT: We should be able to figure out the correct // scoping at compile-time and avoid the // runtime overhead. Node withStmt = (Node) createWith(createUseLocal(newScope), ifStmt, catchLineNo); catchStmt.addChildToBack(withStmt); pn.addChildToBack(catchStmt); // move to next cb cb = cb.getNext(); } // Generate code to rethrow if no catch clause was executed Node rethrow = new Node(Token.THROW, createUseLocal(exn)); pn.addChildToBack(rethrow); pn.addChildToBack(endCatch); // add a JSR finally if needed if (hasFinally) { Node jsrFinally = new Node(Token.JSR); jsrFinally.putProp(Node.TARGET_PROP, finallyTarget); pn.addChildToBack(jsrFinally); Node GOTO = new Node(Token.GOTO); GOTO.putProp(Node.TARGET_PROP, endTarget); pn.addChildToBack(GOTO); } } if (hasFinally) { pn.addChildToBack(finallyTarget); Node returnTemp = createNewLocal(new Node(Token.VOID)); Node popAndMake = new Node(Token.POP, returnTemp); pn.addChildToBack(popAndMake); pn.addChildToBack(finallyNode); Node ret = createUseLocal(returnTemp); // add the magic prop that makes it output a RET ret.putProp(Node.TARGET_PROP, Boolean.TRUE); pn.addChildToBack(ret); } pn.addChildToBack(endTarget); return pn; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/5bb0de51f4eb37ef1f776e50a739fa69b125b9db/IRFactory.java/buggy/src/org/mozilla/javascript/IRFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 752, 7833, 14842, 29987, 12, 921, 775, 2629, 16, 1033, 1044, 7996, 16, 4766, 3639, 1033, 3095, 2629, 16, 509, 7586, 13, 565, 288, 3639, 2029, 775, 2159, 273, 261, 907, 13, 698, 2629, 31, 3639, 1250, 711, 29987, 273, 629, 31, 3639, 2029, 3095, 907, 273, 446, 31, 3639, 309, 261, 23417, 2629, 480, 446, 13, 288, 5411, 3095, 907, 273, 261, 907, 13, 23417, 2629, 31, 5411, 711, 29987, 273, 261, 23417, 907, 18, 588, 559, 1435, 480, 3155, 18, 11403, 12900, 747, 3095, 907, 18, 5332, 4212, 10663, 3639, 289, 3639, 368, 3025, 12937, 3639, 309, 261, 698, 2159, 18, 588, 559, 1435, 422, 3155, 18, 11403, 597, 401, 698, 2159, 18, 5332, 4212, 1435, 5411, 597, 401, 5332, 29987, 13, 3639, 288, 5411, 327, 775, 2159, 31, 3639, 289, 3639, 2029, 1044, 3205, 273, 261, 907, 13, 14683, 7996, 31, 3639, 1250, 711, 14842, 273, 1044, 3205, 18, 5332, 4212, 5621, 3639, 368, 3025, 12937, 3639, 309, 16051, 5332, 29987, 597, 401, 5332, 14842, 13, 225, 288, 5411, 368, 6533, 3095, 4825, 506, 392, 1008, 1203, 2777, 5411, 327, 775, 2159, 31, 3639, 289, 3639, 2029, 11059, 273, 394, 2029, 12, 1345, 18, 17805, 16, 775, 2159, 16, 7586, 1769, 3639, 2029, 3095, 2326, 273, 446, 31, 3639, 309, 261, 5332, 29987, 13, 288, 5411, 368, 1221, 279, 16964, 364, 326, 3095, 716, 326, 1715, 74, 756, 21739, 2973, 5411, 3095, 2326, 273, 394, 2029, 12, 1345, 18, 16374, 1769, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 7833, 14842, 29987, 12, 921, 775, 2629, 16, 1033, 1044, 7996, 16, 4766, 3639, 1033, 3095, 2629, 16, 509, 7586, 13, 565, 288, 3639, 2029, 775, 2159, 273, 261, 907, 13, 698, 2629, 31, 3639, 1250, 711, 29987, 273, 629, 31, 3639, 2029, 3095, 907, 273, 446, 31, 3639, 309, 261, 23417, 2629, 480, 446, 13, 288, 5411, 3095, 907, 273, 261, 907, 13, 23417, 2629, 31, 5411, 711, 29987, 273, 261, 23417, 907, 18, 588, 559, 1435, 480, 3155, 18, 11403, 12900, 747, 3095, 907, 18, 5332, 4212, 10663, 3639, 289, 3639, 368, 3025, 12937, 3639, 309, 261, 698, 2159, 18, 588, 559, 1435, 422, 3155, 18, 11403, 597, 401, 698, 2159, 18, 5332, 2 ]
debug(">findUser("+username+")");
debug(">findUser(" + username + ")");
public UserAdminData findUser(Admin admin, String username) throws FinderException, AuthorizationDeniedException { debug(">findUser("+username+")"); UserDataPK pk = new UserDataPK(username); UserDataLocal data; try { data = home.findByPrimaryKey(pk); } catch (ObjectNotFoundException oe) { return null; } if(!authorizedToCA(admin, data.getCAId())){ throw new AuthorizationDeniedException("Administrator not authorized to view user with given CA."); } if(getGlobalConfiguration(admin).getEnableEndEntityProfileLimitations()){ // Check if administrator is authorized to view user. if(!authorizedToEndEntityProfile(admin, data.getEndEntityProfileId(), AvailableAccessRules.VIEW_RIGHTS)) throw new AuthorizationDeniedException("Administrator not authorized to view user."); } UserAdminData ret = new UserAdminData(data.getUsername(), data.getSubjectDN(), data.getCAId(), data.getSubjectAltName() ,data.getSubjectEmail(), data.getStatus() , data.getType(), data.getEndEntityProfileId(), data.getCertificateProfileId() , new java.util.Date(data.getTimeCreated()), new java.util.Date(data.getTimeModified()) , data.getTokenType(), data.getHardTokenIssuerId()); ret.setPassword(data.getClearPassword()); debug("<findUser("+username+")"); return ret; } // findUser
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/ccb0ad29d39a3f815cc97cd37d04cf533c4593c3/LocalUserAdminSessionBean.java/buggy/src/java/se/anatom/ejbca/ra/LocalUserAdminSessionBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2177, 4446, 751, 1104, 1299, 12, 4446, 3981, 16, 514, 2718, 13, 1216, 19307, 503, 16, 10234, 15877, 288, 3639, 1198, 2932, 34, 4720, 1299, 2932, 397, 2718, 397, 7310, 1769, 3639, 31109, 8784, 2365, 273, 394, 31109, 8784, 12, 5053, 1769, 3639, 31109, 2042, 501, 31, 3639, 775, 288, 5411, 501, 273, 6382, 18, 4720, 858, 11575, 12, 5465, 1769, 3639, 289, 1044, 261, 921, 3990, 320, 73, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 12, 5, 8434, 774, 3587, 12, 3666, 16, 501, 18, 588, 3587, 548, 1435, 3719, 95, 1850, 604, 394, 10234, 15877, 2932, 4446, 14207, 486, 10799, 358, 1476, 729, 598, 864, 6425, 1199, 1769, 3639, 289, 3639, 309, 12, 588, 5160, 1750, 12, 3666, 2934, 588, 8317, 1638, 1943, 4029, 3039, 1012, 10756, 95, 1850, 368, 2073, 309, 22330, 353, 10799, 358, 1476, 729, 18, 1850, 309, 12, 5, 8434, 774, 1638, 1943, 4029, 12, 3666, 16, 501, 18, 588, 1638, 1943, 4029, 548, 9334, 15633, 1862, 4478, 18, 12145, 67, 11847, 55, 3719, 5411, 604, 394, 10234, 15877, 2932, 4446, 14207, 486, 10799, 358, 1476, 729, 1199, 1769, 3639, 289, 3639, 2177, 4446, 751, 325, 273, 394, 2177, 4446, 751, 12, 892, 18, 588, 8575, 9334, 501, 18, 588, 6638, 8609, 9334, 501, 18, 588, 3587, 548, 9334, 501, 18, 588, 6638, 10655, 461, 1435, 269, 892, 18, 588, 6638, 4134, 9334, 501, 18, 588, 1482, 1435, 4766, 3639, 269, 501, 18, 588, 559, 9334, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2177, 4446, 751, 1104, 1299, 12, 4446, 3981, 16, 514, 2718, 13, 1216, 19307, 503, 16, 10234, 15877, 288, 3639, 1198, 2932, 34, 4720, 1299, 2932, 397, 2718, 397, 7310, 1769, 3639, 31109, 8784, 2365, 273, 394, 31109, 8784, 12, 5053, 1769, 3639, 31109, 2042, 501, 31, 3639, 775, 288, 5411, 501, 273, 6382, 18, 4720, 858, 11575, 12, 5465, 1769, 3639, 289, 1044, 261, 921, 3990, 320, 73, 13, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 12, 5, 8434, 774, 3587, 12, 3666, 16, 501, 18, 588, 3587, 548, 1435, 3719, 95, 1850, 604, 394, 10234, 15877, 2932, 4446, 14207, 486, 10799, 358, 1476, 729, 598, 864, 6425, 1199, 1769, 3639, 289, 3639, 309, 2 ]
finishVisit(query);
finishVisit( query );
public void visitImageItem(ImageItemDesign image) { BaseQueryDefinition query = prepareVisit(image); handleAction(image.getAction()); if (image.getImageSource() == ImageItemDesign.IMAGE_EXPRESSION) { addExpression(image.getImageExpression()); addExpression(image.getImageFormat()); } finishVisit(query); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/457851dcc056d96f2ec05106ceba68d3c8f9162c/ReportQueryBuilder.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 2040, 1180, 12, 2040, 1180, 15478, 1316, 13, 288, 1082, 202, 2171, 1138, 1852, 843, 273, 2911, 10432, 12, 2730, 1769, 1082, 202, 4110, 1803, 12, 2730, 18, 588, 1803, 10663, 1082, 202, 430, 261, 2730, 18, 588, 2040, 1830, 1435, 422, 3421, 1180, 15478, 18, 13603, 67, 19111, 13, 288, 9506, 202, 1289, 2300, 12, 2730, 18, 588, 2040, 2300, 10663, 9506, 202, 1289, 2300, 12, 2730, 18, 588, 2040, 1630, 10663, 1082, 202, 97, 1082, 202, 13749, 10432, 12, 2271, 1769, 202, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 3757, 2040, 1180, 12, 2040, 1180, 15478, 1316, 13, 288, 1082, 202, 2171, 1138, 1852, 843, 273, 2911, 10432, 12, 2730, 1769, 1082, 202, 4110, 1803, 12, 2730, 18, 588, 1803, 10663, 1082, 202, 430, 261, 2730, 18, 588, 2040, 1830, 1435, 422, 3421, 1180, 15478, 18, 13603, 67, 19111, 13, 288, 9506, 202, 1289, 2300, 12, 2730, 18, 588, 2040, 2300, 10663, 9506, 202, 1289, 2300, 12, 2730, 18, 588, 2040, 1630, 10663, 1082, 202, 97, 1082, 202, 13749, 10432, 12, 2271, 1769, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
re = new NativeRegExp(scope, src, opt);
re = new NativeRegExp(cx, scope, src, opt);
private static Object matchOrReplace(Context cx, Scriptable thisObj, Object[] args, Function funObj, GlobData data) throws JavaScriptException { NativeRegExp re; String str = ScriptRuntime.toString(thisObj); data.str = str; RegExpImpl reImpl = RegExpImpl.getRegExpImpl(cx); if (args[0] instanceof NativeRegExp) { re = (NativeRegExp) args[0]; } else { String src = ScriptRuntime.toString(args[0]); String opt; if (data.optarg < args.length) { args[0] = src; opt = ScriptRuntime.toString(args[data.optarg]); } else { opt = null; } Scriptable scope = ScriptableObject.getTopLevelScope(funObj); re = new NativeRegExp(scope, src, opt); } data.regexp = re; data.global = (re.getFlags() & NativeRegExp.GLOB) != 0; int[] indexp = { 0 }; Object result = null; if (data.mode == GlobData.GLOB_SEARCH) { result = re.executeRegExp(funObj, str, indexp, true); if (result != null && result.equals(Boolean.TRUE)) result = new Integer(reImpl.leftContext.length); else result = new Integer(-1); } else if (data.global) { re.setLastIndex(0); for (int count = 0; indexp[0] <= str.length(); count++) { result = re.executeRegExp(funObj, str, indexp, true); if (result == null || !result.equals(Boolean.TRUE)) break; data.doGlobal(funObj, count); if (reImpl.lastMatch.length == 0) { if (indexp[0] == str.length()) break; indexp[0]++; } } } else { result = re.executeRegExp(funObj, str, indexp, data.mode == GlobData.GLOB_REPLACE); } return result; }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/86ebd6188686efee74353b64c7fb3a9a3b999f11/RegExpImpl.java/clean/js/rhino/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 16717, 13673, 283, 31, 3639, 514, 609, 273, 7739, 5576, 18, 10492, 12, 2211, 2675, 1769, 3639, 501, 18, 701, 273, 609, 31, 3639, 10679, 2828, 283, 2828, 273, 10679, 2828, 18, 588, 13673, 2828, 12, 71, 92, 1769, 3639, 309, 261, 1968, 63, 20, 65, 1276, 16717, 13673, 13, 288, 5411, 283, 273, 261, 9220, 13673, 13, 833, 63, 20, 15533, 3639, 289, 469, 288, 5411, 514, 1705, 273, 7739, 5576, 18, 10492, 12, 1968, 63, 20, 19226, 5411, 514, 2153, 31, 5411, 309, 261, 892, 18, 3838, 3175, 411, 833, 18, 2469, 13, 288, 7734, 833, 63, 20, 65, 273, 1705, 31, 7734, 2153, 273, 7739, 5576, 18, 10492, 12, 1968, 63, 892, 18, 3838, 3175, 19226, 5411, 289, 469, 288, 7734, 2153, 273, 446, 31, 5411, 289, 5411, 22780, 2146, 273, 22780, 921, 18, 588, 27046, 3876, 12, 12125, 2675, 1769, 5411, 283, 273, 394, 16717, 13673, 12, 71, 92, 16, 2146, 16, 1705, 16, 2153, 1769, 3639, 289, 3639, 501, 18, 17745, 273, 283, 31, 3639, 501, 18, 6347, 273, 261, 266, 18, 588, 5094, 1435, 473, 16717, 13673, 18, 43, 6038, 13, 480, 374, 31, 3639, 509, 8526, 770, 84, 273, 288, 374, 289, 31, 3639, 1033, 563, 273, 446, 31, 3639, 309, 261, 892, 18, 3188, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 845, 1162, 5729, 12, 1042, 9494, 16, 22780, 15261, 16, 29159, 1033, 8526, 833, 16, 4284, 9831, 2675, 16, 29159, 18901, 751, 501, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 16717, 13673, 283, 31, 3639, 514, 609, 273, 7739, 5576, 18, 10492, 12, 2211, 2675, 1769, 3639, 501, 18, 701, 273, 609, 31, 3639, 10679, 2828, 283, 2828, 273, 10679, 2828, 18, 588, 13673, 2828, 12, 71, 92, 1769, 3639, 309, 261, 1968, 63, 20, 65, 1276, 16717, 13673, 13, 288, 5411, 283, 273, 261, 9220, 13673, 13, 833, 63, 20, 15533, 3639, 289, 469, 288, 5411, 514, 1705, 273, 7739, 5576, 18, 10492, 12, 1968, 63, 20, 19226, 5411, 514, 2153, 31, 5411, 2 ]
public boolean deleteTeacher(ITeacher teacher) throws RemoteException, FlexiException { try { //A mettre dans le reallyDeleteTecher// for(Iterator<IBusy> it = teacher.getLstBusy().iterator(); it.hasNext(); )// {// IBusy b = it.next();// if(b instanceof ILesson)// {// ILesson l = (ILesson) b;// l.removeResource(teacher);// LessonStorage.save(l);// }// } TeacherStorage.delete(teacher); } catch (HibernateException e) { throw new FlexiException(FlexiLanguage.getInstance().getText("teacherDeletion"),e); //$NON-NLS-1$ } manager.fireDataChanged(ITeacher.class, new DataEvent(teacher, "", DataEvent.TYPE_PROPERTY_REMOVED)); //$NON-NLS-1$ return true; }
13357 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13357/88394371c35f4389a1cd4ba2e6c30c902f533ddc/DataManagerImpl.java/clean/current/src/fr/umlv/ir3/flexitime/server/core/DataManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 1430, 56, 13798, 264, 12, 1285, 13798, 264, 6489, 27779, 13, 1216, 18361, 16, 25361, 77, 503, 565, 288, 3639, 775, 3639, 288, 2398, 368, 37, 5100, 27427, 26224, 884, 8654, 2613, 56, 8987, 264, 759, 2398, 364, 12, 3198, 32, 45, 29289, 34, 518, 273, 6489, 27779, 18, 588, 28134, 29289, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 759, 2398, 288, 759, 1171, 467, 29289, 324, 273, 518, 18, 4285, 5621, 759, 1171, 309, 12, 70, 1276, 467, 15313, 265, 13, 759, 1171, 288, 759, 5397, 467, 15313, 265, 328, 273, 261, 2627, 403, 265, 13, 324, 31, 759, 5397, 328, 18, 4479, 1420, 12, 736, 27779, 1769, 759, 5397, 17304, 265, 3245, 18, 5688, 12, 80, 1769, 759, 1171, 289, 759, 2398, 289, 12900, 399, 13798, 264, 3245, 18, 3733, 12, 736, 27779, 1769, 3639, 289, 3639, 1044, 261, 44, 24360, 503, 425, 13, 3639, 288, 2398, 604, 394, 25361, 77, 503, 12, 19667, 77, 3779, 18, 588, 1442, 7675, 588, 1528, 2932, 736, 27779, 13064, 6, 3631, 73, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 289, 3639, 3301, 18, 12179, 751, 5033, 12, 1285, 13798, 264, 18, 1106, 16, 394, 1910, 1133, 12, 736, 27779, 16, 1171, 23453, 1910, 1133, 18, 2399, 67, 9900, 67, 11122, 12135, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 327, 638, 31, 565, 289, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 1250, 1430, 56, 13798, 264, 12, 1285, 13798, 264, 6489, 27779, 13, 1216, 18361, 16, 25361, 77, 503, 565, 288, 3639, 775, 3639, 288, 2398, 368, 37, 5100, 27427, 26224, 884, 8654, 2613, 56, 8987, 264, 759, 2398, 364, 12, 3198, 32, 45, 29289, 34, 518, 273, 6489, 27779, 18, 588, 28134, 29289, 7675, 9838, 5621, 518, 18, 5332, 2134, 5621, 262, 759, 2398, 288, 759, 1171, 467, 29289, 324, 273, 518, 18, 4285, 5621, 759, 1171, 309, 12, 70, 1276, 467, 15313, 265, 13, 759, 1171, 288, 759, 5397, 467, 15313, 265, 328, 273, 261, 2627, 403, 265, 13, 324, 31, 759, 5397, 328, 18, 4479, 1420, 12, 736, 27779, 1769, 759, 5397, 17304, 265, 3245, 2 ]
public boolean isSet(org.quickfix.field.MiscFeeAmt field)
public boolean isSet(quickfix.field.MiscFeeAmt field)
public boolean isSet(org.quickfix.field.MiscFeeAmt field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralRequest.java/clean/src/java/src/quickfix/fix44/CollateralRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 11729, 71, 14667, 31787, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 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, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 11729, 71, 14667, 31787, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode());
args = ArgsUtil.setupArgs(runtime, threadContext, this, iVisited.getArgsNode());
public void visitCallNode(CallNode iVisited) { Block tmpBlock = ArgsUtil.beginCallArgs(threadContext); IRubyObject receiver = null; IRubyObject[] args = null; try { receiver = eval(iVisited.getReceiverNode()); args = ArgsUtil.setupArgs(threadContext, this, iVisited.getArgsNode()); } finally { ArgsUtil.endCallArgs(threadContext, tmpBlock); } Asserts.notNull(receiver.getMetaClass(), receiver.getClass().getName()); result = receiver.getMetaClass().call(receiver, iVisited.getName(), args, CallType.NORMAL); }
48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/f5c9a1ebd775712f2dc086acfce1a14a123ec632/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 3914, 1853, 1768, 273, 6634, 1304, 18, 10086, 1477, 2615, 12, 5930, 1042, 1769, 3639, 15908, 10340, 921, 5971, 273, 446, 31, 3639, 15908, 10340, 921, 8526, 833, 273, 446, 31, 3639, 775, 288, 5411, 5971, 273, 5302, 12, 77, 30019, 18, 588, 12952, 907, 10663, 5411, 833, 273, 6634, 1304, 18, 8401, 2615, 12, 9448, 16, 2650, 1042, 16, 333, 16, 277, 30019, 18, 588, 2615, 907, 10663, 3639, 289, 3095, 288, 5411, 6634, 1304, 18, 409, 1477, 2615, 12, 5930, 1042, 16, 1853, 1768, 1769, 3639, 289, 3639, 5452, 87, 18, 902, 2041, 12, 24454, 18, 588, 2781, 797, 9334, 5971, 18, 588, 797, 7675, 17994, 10663, 7734, 563, 273, 5971, 18, 588, 2781, 797, 7675, 1991, 12, 24454, 16, 277, 30019, 18, 17994, 9334, 833, 16, 3049, 559, 18, 15480, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 3914, 1853, 1768, 273, 6634, 1304, 18, 10086, 1477, 2615, 12, 5930, 1042, 1769, 3639, 15908, 10340, 921, 5971, 273, 446, 31, 3639, 15908, 10340, 921, 8526, 833, 273, 446, 31, 3639, 775, 288, 5411, 5971, 273, 5302, 12, 77, 30019, 18, 588, 12952, 907, 10663, 5411, 833, 273, 6634, 1304, 18, 8401, 2615, 12, 9448, 16, 2650, 1042, 16, 333, 16, 277, 30019, 18, 588, 2615, 907, 10663, 3639, 289, 3095, 288, 5411, 6634, 1304, 18, 409, 1477, 2615, 12, 5930, 1042, 16, 1853, 1768, 1769, 3639, 289, 3639, 5452, 87, 18, 902, 2041, 12, 24454, 18, 588, 2781, 797, 9334, 5971, 18, 588, 2 ]
public static String replace(String base, String delim, String[] str) { final int len = base.length(); final StringBuffer result = new StringBuffer(); for (int i = 0; i < len; i++) { final char ch = base.charAt(i); final int k = delim.indexOf(ch); if (k >= 0) { result.append(str[k]); } else { result.append(ch); } } return result.toString();
public static String replace(String base, char ch, String str) { return (base.indexOf(ch) < 0) ? base : replace(base, String.valueOf(ch), new String[] { str });
public static String replace(String base, String delim, String[] str) { final int len = base.length(); final StringBuffer result = new StringBuffer(); for (int i = 0; i < len; i++) { final char ch = base.charAt(i); final int k = delim.indexOf(ch); if (k >= 0) { result.append(str[k]); } else { result.append(ch); } } return result.toString(); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/053675ac48d814d19fdf07b2ec8f90d39d4513a1/BasisLibrary.java/buggy/src/org/apache/xalan/xsltc/runtime/BasisLibrary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1453, 12, 780, 1026, 16, 514, 10508, 16, 514, 8526, 609, 13, 288, 202, 6385, 509, 562, 273, 1026, 18, 2469, 5621, 202, 6385, 6674, 563, 273, 394, 6674, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 562, 31, 277, 27245, 288, 202, 565, 727, 1149, 462, 273, 1026, 18, 3001, 861, 12, 77, 1769, 202, 565, 727, 509, 417, 273, 10508, 18, 31806, 12, 343, 1769, 202, 565, 309, 261, 79, 1545, 374, 13, 288, 202, 202, 2088, 18, 6923, 12, 701, 63, 79, 19226, 202, 565, 289, 202, 565, 469, 288, 202, 202, 2088, 18, 6923, 12, 343, 1769, 202, 565, 289, 202, 97, 202, 2463, 563, 18, 10492, 5621, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 1453, 12, 780, 1026, 16, 514, 10508, 16, 514, 8526, 609, 13, 288, 202, 6385, 509, 562, 273, 1026, 18, 2469, 5621, 202, 6385, 6674, 563, 273, 394, 6674, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 562, 31, 277, 27245, 288, 202, 565, 727, 1149, 462, 273, 1026, 18, 3001, 861, 12, 77, 1769, 202, 565, 727, 509, 417, 273, 10508, 18, 31806, 12, 343, 1769, 202, 565, 309, 261, 79, 1545, 374, 13, 288, 202, 202, 2088, 18, 6923, 12, 701, 63, 79, 19226, 202, 565, 289, 202, 565, 469, 288, 202, 202, 2088, 18, 6923, 12, 343, 1769, 202, 565, 289, 202, 97, 202, 2463, 563, 18, 10492, 5621, 2 ]
long fileOff = ((Long) offsets.get(no / (bmpBitsPerPixel / 8))).longValue();
int c = (isRGB(id) && separated) ? 3 : 1; long fileOff = ((Long) offsets.get(no / c)).longValue();
public byte[] openBytes(String id, int no) throws FormatException, IOException { if (!id.equals(currentId)) initFile(id); if (no < 0 || no >= getImageCount(id)) { throw new FormatException("Invalid image number: " + no); } byteData = new byte[dwWidth * bmpHeight]; long fileOff = ((Long) offsets.get(no / (bmpBitsPerPixel / 8))).longValue(); in.seek(fileOff); int len = bmpScanLineSize; int pad = bmpScanLineSize - dwWidth*(bmpBitsPerPixel / 8); rawData = new byte[bmpActualSize]; int rawOffset = 0; int offset = (bmpHeight - 1) * dwWidth; for (int i=bmpHeight - 1; i>=0; i--) { int n = in.read(rawData, rawOffset, len); if (n < len) { whine("Scan line " + i + " ended prematurely."); } unpack(rawData, rawOffset, byteData, offset, dwWidth); rawOffset += (len - pad); offset -= dwWidth; } // reverse scanline ordering byte[] temp = rawData; rawData = new byte[temp.length]; int off = (bmpHeight - 1) * dwWidth * (bmpBitsPerPixel / 8); int newOff = 0; int length = dwWidth * (bmpBitsPerPixel / 8); for (int q=0; q<bmpHeight; q++) { if (bmpBitsPerPixel == 8) { System.arraycopy(temp, off, rawData, newOff, length); } else { // reverse bytes in groups of 3 for (int p=0; p<dwWidth; p++) { rawData[newOff + p*3] = temp[off + p*3 + 2]; rawData[newOff + p*3 + 1] = temp[off + p*3 + 1]; rawData[newOff + p*3 + 2] = temp[off + p*3]; } } off -= length; newOff += length; } if (separated) { byte[] rtn = new byte[rawData.length / 3]; int j = 0; for (int i=(no%3); i<rawData.length; i+=3) { rtn[j] = rawData[i]; j++; } return rtn; } else { return rawData; } }
55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/e5dda0b0f353a61e34611f22a94abdac3b911b7b/AVIReader.java/clean/loci/formats/AVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1160, 8526, 1696, 2160, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, 309, 261, 2135, 411, 374, 747, 1158, 1545, 10567, 1380, 12, 350, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 1316, 1300, 30, 315, 397, 1158, 1769, 565, 289, 565, 1160, 751, 273, 394, 1160, 63, 22512, 2384, 380, 324, 1291, 2686, 15533, 565, 1525, 585, 7210, 273, 14015, 3708, 13, 8738, 18, 588, 12, 2135, 342, 1377, 261, 70, 1291, 6495, 2173, 9037, 342, 1725, 3719, 2934, 5748, 620, 5621, 565, 316, 18, 16508, 12, 768, 7210, 1769, 565, 509, 562, 273, 324, 1291, 7972, 1670, 1225, 31, 565, 509, 4627, 273, 324, 1291, 7972, 1670, 1225, 300, 12394, 2384, 21556, 70, 1291, 6495, 2173, 9037, 342, 1725, 1769, 565, 16503, 273, 394, 1160, 63, 70, 1291, 11266, 1225, 15533, 565, 509, 1831, 2335, 273, 374, 31, 565, 509, 1384, 273, 261, 70, 1291, 2686, 300, 404, 13, 380, 12394, 2384, 31, 565, 364, 261, 474, 277, 33, 70, 1291, 2686, 300, 404, 31, 277, 34, 33, 20, 31, 277, 413, 13, 288, 1377, 509, 290, 273, 316, 18, 896, 12, 1899, 751, 16, 1831, 2335, 16, 562, 1769, 1377, 309, 261, 82, 411, 562, 13, 288, 3639, 600, 558, 2932, 7972, 980, 315, 397, 277, 397, 315, 16926, 23020, 1231, 715, 1199, 1769, 1377, 289, 1377, 6167, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1160, 8526, 1696, 2160, 12, 780, 612, 16, 509, 1158, 13, 565, 1216, 4077, 503, 16, 1860, 225, 288, 565, 309, 16051, 350, 18, 14963, 12, 2972, 548, 3719, 1208, 812, 12, 350, 1769, 565, 309, 261, 2135, 411, 374, 747, 1158, 1545, 10567, 1380, 12, 350, 3719, 288, 1377, 604, 394, 4077, 503, 2932, 1941, 1316, 1300, 30, 315, 397, 1158, 1769, 565, 289, 565, 1160, 751, 273, 394, 1160, 63, 22512, 2384, 380, 324, 1291, 2686, 15533, 565, 1525, 585, 7210, 273, 14015, 3708, 13, 8738, 18, 588, 12, 2135, 342, 1377, 261, 70, 1291, 6495, 2173, 9037, 342, 1725, 3719, 2934, 5748, 620, 5621, 565, 316, 18, 16508, 12, 768, 7210, 1769, 565, 509, 2 ]
target = game.getEntity(dest);
violation = Compute.stackingViolation(game, entity.getId(), dest);
private void doEntityFallsInto(Entity entity, Coords src, Coords dest, PilotingRollData roll) { final Hex srcHex = game.board.getHex(src); final Hex destHex = game.board.getHex(dest); final int fallElevation = Math.abs(destHex.floor() - srcHex.floor()); int direction = src.direction(dest); // check entity in target hex Entity target = game.getEntity(dest); // check if we can fall in that hex if (target != null && !target.equals(entity) && !Compute.isValidDisplacement(game, target.getId(), src, dest)) { // if target can't be displaced, fall in source hex. // NOTE: source hex should never contain a non-displacable entity Coords temp = dest; dest = src; src = temp; target = game.getEntity(dest); } // falling mech falls phaseReport.append(entity.getDisplayName() + " falls " + fallElevation + " level(s) into hex " + dest.getBoardNum() + ".\n"); // if hex was empty, deal damage and we're done if (target == null || target.equals(entity)) { doEntityFall(entity, dest, fallElevation, roll); return; } // hmmm... somebody there... problems. if (fallElevation >= 2) { // accidental death from above } else { // damage as normal doEntityFall(entity, dest, fallElevation, roll); // target gets displaced doEntityDisplacement(target, dest, dest.translated(direction), new PilotingRollData(target.getId(), 0, "domino effect")); } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/5c811f2bbe340325973104367c7360814d4cafdb/Server.java/buggy/megamek/src/megamek/server/Server.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 1943, 42, 454, 87, 5952, 12, 1943, 1522, 16, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 453, 330, 17128, 24194, 751, 5824, 13, 288, 3639, 727, 15734, 1705, 7037, 273, 7920, 18, 3752, 18, 588, 7037, 12, 4816, 1769, 3639, 727, 15734, 1570, 7037, 273, 7920, 18, 3752, 18, 588, 7037, 12, 10488, 1769, 3639, 727, 509, 4159, 17274, 7112, 273, 2361, 18, 5113, 12, 10488, 7037, 18, 74, 5807, 1435, 300, 1705, 7037, 18, 74, 5807, 10663, 3639, 509, 4068, 273, 1705, 18, 9855, 12, 10488, 1769, 3639, 368, 866, 1522, 316, 1018, 3827, 3639, 3887, 17893, 273, 8155, 18, 3772, 310, 11683, 12, 13957, 16, 1522, 18, 26321, 9334, 1570, 1769, 3639, 368, 866, 309, 732, 848, 4159, 316, 716, 3827, 3639, 309, 261, 3299, 480, 446, 597, 401, 3299, 18, 14963, 12, 1096, 13, 3639, 597, 401, 7018, 18, 26810, 1669, 15917, 12, 13957, 16, 1018, 18, 26321, 9334, 1705, 16, 1570, 3719, 288, 5411, 368, 309, 1018, 848, 1404, 506, 1015, 28238, 16, 4159, 316, 1084, 3827, 18, 5411, 368, 5219, 30, 1084, 3827, 1410, 5903, 912, 279, 1661, 17, 2251, 30538, 429, 1522, 5411, 10320, 87, 1906, 273, 1570, 31, 5411, 1570, 273, 1705, 31, 5411, 1705, 273, 1906, 31, 5411, 17893, 273, 8155, 18, 3772, 310, 11683, 12, 13957, 16, 1522, 18, 26321, 9334, 1570, 1769, 3639, 289, 7734, 368, 31678, 1791, 343, 21714, 3639, 6855, 4820, 18, 6923, 12, 1096, 18, 588, 20524, 1435, 397, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 741, 1943, 42, 454, 87, 5952, 12, 1943, 1522, 16, 10320, 87, 1705, 16, 10320, 87, 1570, 16, 453, 330, 17128, 24194, 751, 5824, 13, 288, 3639, 727, 15734, 1705, 7037, 273, 7920, 18, 3752, 18, 588, 7037, 12, 4816, 1769, 3639, 727, 15734, 1570, 7037, 273, 7920, 18, 3752, 18, 588, 7037, 12, 10488, 1769, 3639, 727, 509, 4159, 17274, 7112, 273, 2361, 18, 5113, 12, 10488, 7037, 18, 74, 5807, 1435, 300, 1705, 7037, 18, 74, 5807, 10663, 3639, 509, 4068, 273, 1705, 18, 9855, 12, 10488, 1769, 3639, 368, 866, 1522, 316, 1018, 3827, 3639, 3887, 17893, 273, 8155, 18, 3772, 310, 11683, 12, 13957, 16, 1522, 18, 26321, 9334, 1570, 1769, 3639, 2 ]
final Object alignTypeMembersOnColumnsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS);
final Object alignTypeMembersOnColumnsOption = settings.get(DefaultCodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS);
public void set(Map settings) { final Object alignmentForArgumentsInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ALLOCATION_EXPRESSION); if (alignmentForArgumentsInAllocationExpressionOption != null) { try { this.alignment_for_arguments_in_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInAllocationExpressionOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_ENUM_CONSTANT); if (alignmentForArgumentsInEnumConstantOption != null) { try { this.alignment_for_arguments_in_enum_constant = Integer.parseInt((String) alignmentForArgumentsInEnumConstantOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInExplicitConstructorCallOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_EXPLICIT_CONSTRUCTOR_CALL); if (alignmentForArgumentsInExplicitConstructorCallOption != null) { try { this.alignment_for_arguments_in_explicit_constructor_call = Integer.parseInt((String) alignmentForArgumentsInExplicitConstructorCallOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_METHOD_INVOCATION); if (alignmentForArgumentsInMethodInvocationOption != null) { try { this.alignment_for_arguments_in_method_invocation = Integer.parseInt((String) alignmentForArgumentsInMethodInvocationOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_method_invocation = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForArgumentsInQualifiedAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ARGUMENTS_IN_QUALIFIED_ALLOCATION_EXPRESSION); if (alignmentForArgumentsInQualifiedAllocationExpressionOption != null) { try { this.alignment_for_arguments_in_qualified_allocation_expression = Integer.parseInt((String) alignmentForArgumentsInQualifiedAllocationExpressionOption); } catch (NumberFormatException e) { this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_arguments_in_qualified_allocation_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForAssignmentOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ASSIGNMENT); if (alignmentForAssignmentOption != null) { try { this.alignment_for_assignment = Integer.parseInt((String) alignmentForAssignmentOption); } catch (NumberFormatException e) { this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; } catch (ClassCastException e) { this.alignment_for_assignment = Alignment.M_ONE_PER_LINE_SPLIT; } } final Object alignmentForBinaryExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_BINARY_EXPRESSION); if (alignmentForBinaryExpressionOption != null) { try { this.alignment_for_binary_expression = Integer.parseInt((String) alignmentForBinaryExpressionOption); } catch (NumberFormatException e) { this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_binary_expression = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForCompactIfOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_COMPACT_IF); if (alignmentForCompactIfOption != null) { try { this.alignment_for_compact_if = Integer.parseInt((String) alignmentForCompactIfOption); } catch (NumberFormatException e) { this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; } catch (ClassCastException e) { this.alignment_for_compact_if = Alignment.M_ONE_PER_LINE_SPLIT | Alignment.M_INDENT_BY_ONE; } } final Object alignmentForConditionalExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_CONDITIONAL_EXPRESSION); if (alignmentForConditionalExpressionOption != null) { try { this.alignment_for_conditional_expression = Integer.parseInt((String) alignmentForConditionalExpressionOption); } catch (NumberFormatException e) { this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; } catch (ClassCastException e) { this.alignment_for_conditional_expression = Alignment.M_ONE_PER_LINE_SPLIT; } } final Object alignmentForEnumConstantsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_ENUM_CONSTANTS); if (alignmentForEnumConstantsOption != null) { try { this.alignment_for_enum_constants = Integer.parseInt((String) alignmentForEnumConstantsOption); } catch (NumberFormatException e) { this.alignment_for_enum_constants = Alignment.NONE; } catch (ClassCastException e) { this.alignment_for_enum_constants = Alignment.NONE; } } final Object alignmentForExpressionsInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_EXPRESSIONS_IN_ARRAY_INITIALIZER); if (alignmentForExpressionsInArrayInitializerOption != null) { try { this.alignment_for_expressions_in_array_initializer = Integer.parseInt((String) alignmentForExpressionsInArrayInitializerOption); } catch (NumberFormatException e) { this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_expressions_in_array_initializer = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForMultipleFieldsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_MULTIPLE_FIELDS); if (alignmentForMultipleFieldsOption != null) { try { this.alignment_for_multiple_fields = Integer.parseInt((String) alignmentForMultipleFieldsOption); } catch (NumberFormatException e) { this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_multiple_fields = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForParametersInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_CONSTRUCTOR_DECLARATION); if (alignmentForParametersInConstructorDeclarationOption != null) { try { this.alignment_for_parameters_in_constructor_declaration = Integer.parseInt((String) alignmentForParametersInConstructorDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } catch (ClassCastException e) { this.alignment_for_parameters_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForParametersInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_PARAMETERS_IN_METHOD_DECLARATION); if (alignmentForParametersInMethodDeclarationOption != null) { try { this.alignment_for_parameters_in_method_declaration = Integer.parseInt((String) alignmentForParametersInMethodDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_parameters_in_method_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForSelectorInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SELECTOR_IN_METHOD_INVOCATION); if (alignmentForSelectorInMethodInvocationOption != null) { try { this.alignment_for_selector_in_method_invocation = Integer.parseInt((String) alignmentForSelectorInMethodInvocationOption); } catch (NumberFormatException e) { this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_selector_in_method_invocation = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForSuperclassInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERCLASS_IN_TYPE_DECLARATION); if (alignmentForSuperclassInTypeDeclarationOption != null) { try { this.alignment_for_superclass_in_type_declaration = Integer.parseInt((String) alignmentForSuperclassInTypeDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superclass_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForSuperinterfacesInEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_ENUM_DECLARATION); if (alignmentForSuperinterfacesInEnumDeclarationOption != null) { try { this.alignment_for_superinterfaces_in_enum_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInEnumDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superinterfaces_in_enum_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForSuperinterfacesInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_SUPERINTERFACES_IN_TYPE_DECLARATION); if (alignmentForSuperinterfacesInTypeDeclarationOption != null) { try { this.alignment_for_superinterfaces_in_type_declaration = Integer.parseInt((String) alignmentForSuperinterfacesInTypeDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } catch(ClassCastException e) { this.alignment_for_superinterfaces_in_type_declaration = Alignment.M_NEXT_SHIFTED_SPLIT; } } final Object alignmentForThrowsClauseInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_CONSTRUCTOR_DECLARATION); if (alignmentForThrowsClauseInConstructorDeclarationOption != null) { try { this.alignment_for_throws_clause_in_constructor_declaration = Integer.parseInt((String) alignmentForThrowsClauseInConstructorDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_throws_clause_in_constructor_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignmentForThrowsClauseInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGNMENT_FOR_THROWS_CLAUSE_IN_METHOD_DECLARATION); if (alignmentForThrowsClauseInMethodDeclarationOption != null) { try { this.alignment_for_throws_clause_in_method_declaration = Integer.parseInt((String) alignmentForThrowsClauseInMethodDeclarationOption); } catch (NumberFormatException e) { this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; } catch(ClassCastException e) { this.alignment_for_throws_clause_in_method_declaration = Alignment.M_COMPACT_SPLIT; } } final Object alignTypeMembersOnColumnsOption = settings.get(CodeFormatterConstants.FORMATTER_ALIGN_TYPE_MEMBERS_ON_COLUMNS); if (alignTypeMembersOnColumnsOption != null) { this.align_type_members_on_columns = CodeFormatterConstants.TRUE.equals(alignTypeMembersOnColumnsOption); } final Object bracePositionForArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ARRAY_INITIALIZER); if (bracePositionForArrayInitializerOption != null) { try { this.brace_position_for_array_initializer = (String) bracePositionForArrayInitializerOption; } catch(ClassCastException e) { this.brace_position_for_array_initializer = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForBlockOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK); if (bracePositionForBlockOption != null) { try { this.brace_position_for_block = (String) bracePositionForBlockOption; } catch(ClassCastException e) { this.brace_position_for_block = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForBlockInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_BLOCK_IN_CASE); if (bracePositionForBlockInCaseOption != null) { try { this.brace_position_for_block_in_case = (String) bracePositionForBlockInCaseOption; } catch(ClassCastException e) { this.brace_position_for_block_in_case = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_CONSTRUCTOR_DECLARATION); if (bracePositionForConstructorDeclarationOption != null) { try { this.brace_position_for_constructor_declaration = (String) bracePositionForConstructorDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_constructor_declaration = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_CONSTANT); if (bracePositionForEnumConstantOption != null) { try { this.brace_position_for_enum_constant = (String) bracePositionForEnumConstantOption; } catch(ClassCastException e) { this.brace_position_for_enum_constant = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_ENUM_DECLARATION); if (bracePositionForEnumDeclarationOption != null) { try { this.brace_position_for_enum_declaration = (String) bracePositionForEnumDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_enum_declaration = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_METHOD_DECLARATION); if (bracePositionForMethodDeclarationOption != null) { try { this.brace_position_for_method_declaration = (String) bracePositionForMethodDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_method_declaration = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_SWITCH); if (bracePositionForSwitchOption != null) { try { this.brace_position_for_switch = (String) bracePositionForSwitchOption; } catch(ClassCastException e) { this.brace_position_for_switch = CodeFormatterConstants.END_OF_LINE; } } final Object bracePositionForTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BRACE_POSITION_FOR_TYPE_DECLARATION); if (bracePositionForTypeDeclarationOption != null) { try { this.brace_position_for_type_declaration = (String) bracePositionForTypeDeclarationOption; } catch(ClassCastException e) { this.brace_position_for_type_declaration = CodeFormatterConstants.END_OF_LINE; } } final Object continuationIndentationOption = settings.get(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION); if (continuationIndentationOption != null) { try { this.continuation_indentation = Integer.parseInt((String) continuationIndentationOption); } catch (NumberFormatException e) { this.continuation_indentation = 2; } catch(ClassCastException e) { this.continuation_indentation = 2; } } final Object continuationIndentationForArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_CONTINUATION_INDENTATION_FOR_ARRAY_INITIALIZER); if (continuationIndentationForArrayInitializerOption != null) { try { this.continuation_indentation_for_array_initializer = Integer.parseInt((String) continuationIndentationForArrayInitializerOption); } catch (NumberFormatException e) { this.continuation_indentation_for_array_initializer = 2; } catch(ClassCastException e) { this.continuation_indentation_for_array_initializer = 2; } }// final Object blankLinesAfterImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_IMPORTS);// if (blankLinesAfterImportsOption != null) {// try {// this.blank_lines_after_imports = Integer.parseInt((String) blankLinesAfterImportsOption);// } catch (NumberFormatException e) {// this.blank_lines_after_imports = 0;// } catch(ClassCastException e) {// this.blank_lines_after_imports = 0;// }// }// final Object blankLinesAfterPackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AFTER_PACKAGE);// if (blankLinesAfterPackageOption != null) {// try {// this.blank_lines_after_package = Integer.parseInt((String) blankLinesAfterPackageOption);// } catch (NumberFormatException e) {// this.blank_lines_after_package = 0;// } catch(ClassCastException e) {// this.blank_lines_after_package = 0;// }// }// final Object blankLinesBeforeFieldOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIELD);// if (blankLinesBeforeFieldOption != null) {// try {// this.blank_lines_before_field = Integer.parseInt((String) blankLinesBeforeFieldOption);// } catch (NumberFormatException e) {// this.blank_lines_before_field = 0;// } catch(ClassCastException e) {// this.blank_lines_before_field = 0;// }// }// final Object blankLinesBeforeFirstClassBodyDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_FIRST_CLASS_BODY_DECLARATION);// if (blankLinesBeforeFirstClassBodyDeclarationOption != null) {// try {// this.blank_lines_before_first_class_body_declaration = Integer.parseInt((String) blankLinesBeforeFirstClassBodyDeclarationOption);// } catch (NumberFormatException e) {// this.blank_lines_before_first_class_body_declaration = 0;// } catch(ClassCastException e) {// this.blank_lines_before_first_class_body_declaration = 0;// }// }// final Object blankLinesBeforeImportsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_IMPORTS);// if (blankLinesBeforeImportsOption != null) {// try {// this.blank_lines_before_imports = Integer.parseInt((String) blankLinesBeforeImportsOption);// } catch (NumberFormatException e) {// this.blank_lines_before_imports = 0;// } catch(ClassCastException e) {// this.blank_lines_before_imports = 0;// }// }// final Object blankLinesBeforeMemberTypeOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_MEMBER_TYPE);// if (blankLinesBeforeMemberTypeOption != null) {// try {// this.blank_lines_before_member_type = Integer.parseInt((String) blankLinesBeforeMemberTypeOption);// } catch (NumberFormatException e) {// this.blank_lines_before_member_type = 0;// } catch(ClassCastException e) {// this.blank_lines_before_member_type = 0;// }// }// final Object blankLinesBeforeMethodOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_METHOD);// if (blankLinesBeforeMethodOption != null) {// try {// this.blank_lines_before_method = Integer.parseInt((String) blankLinesBeforeMethodOption);// } catch (NumberFormatException e) {// this.blank_lines_before_method = 0;// } catch(ClassCastException e) {// this.blank_lines_before_method = 0;// }// }// final Object blankLinesBeforeNewChunkOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_NEW_CHUNK);// if (blankLinesBeforeNewChunkOption != null) {// try {// this.blank_lines_before_new_chunk = Integer.parseInt((String) blankLinesBeforeNewChunkOption);// } catch (NumberFormatException e) {// this.blank_lines_before_new_chunk = 0;// } catch(ClassCastException e) {// this.blank_lines_before_new_chunk = 0;// }// }// final Object blankLinesBeforePackageOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BEFORE_PACKAGE);// if (blankLinesBeforePackageOption != null) {// try {// this.blank_lines_before_package = Integer.parseInt((String) blankLinesBeforePackageOption);// } catch (NumberFormatException e) {// this.blank_lines_before_package = 0;// } catch(ClassCastException e) {// this.blank_lines_before_package = 0;// }// }// final Object blankLinesBetweenTypeDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_BETWEEN_TYPE_DECLARATIONS);// if (blankLinesBetweenTypeDeclarationsOption != null) {// try {// this.blank_lines_between_type_declarations = Integer.parseInt((String) blankLinesBetweenTypeDeclarationsOption);// } catch (NumberFormatException e) {// this.blank_lines_between_type_declarations = 0;// } catch(ClassCastException e) {// this.blank_lines_between_type_declarations = 0;// }// }// final Object blankLinesAtBeginningOfMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_BLANK_LINES_AT_BEGINNING_OF_METHOD_BODY);// if (blankLinesAtBeginningOfMethodBodyOption != null) {// try {// this.blank_lines_at_beginning_of_method_body = Integer.parseInt((String) blankLinesAtBeginningOfMethodBodyOption);// } catch (NumberFormatException e) {// this.blank_lines_at_beginning_of_method_body = 0;// } catch(ClassCastException e) {// this.blank_lines_at_beginning_of_method_body = 0;// }// }// final Object commentClearBlankLinesOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_CLEAR_BLANK_LINES);// if (commentClearBlankLinesOption != null) {// this.comment_clear_blank_lines = CodeFormatterConstants.TRUE.equals(commentClearBlankLinesOption);// }// final Object commentFormatOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT);// if (commentFormatOption != null) {// this.comment_format = CodeFormatterConstants.TRUE.equals(commentFormatOption);// }// final Object commentFormatHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HEADER);// if (commentFormatHeaderOption != null) {// this.comment_format_header = CodeFormatterConstants.TRUE.equals(commentFormatHeaderOption);// }// final Object commentFormatHtmlOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_HTML);// if (commentFormatHtmlOption != null) {// this.comment_format_html = CodeFormatterConstants.TRUE.equals(commentFormatHtmlOption);// }// final Object commentFormatSourceOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_FORMAT_SOURCE);// if (commentFormatSourceOption != null) {// this.comment_format_source = CodeFormatterConstants.TRUE.equals(commentFormatSourceOption);// }// final Object commentLineLengthOption = settings.get(CodeFormatterConstants.FORMATTER_COMMENT_LINE_LENGTH);// if (commentLineLengthOption != null) {// try {// this.comment_line_length = Integer.parseInt((String) commentLineLengthOption);// } catch (NumberFormatException e) {// this.comment_line_length = 80;// } catch(ClassCastException e) {// this.comment_line_length = 80;// }// } final Object indentStatementsCompareToBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BLOCK); if (indentStatementsCompareToBlockOption != null) { this.indent_statements_compare_to_block = CodeFormatterConstants.TRUE.equals(indentStatementsCompareToBlockOption); } final Object indentStatementsCompareToBodyOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_STATEMENTS_COMPARE_TO_BODY); if (indentStatementsCompareToBodyOption != null) { this.indent_statements_compare_to_body = CodeFormatterConstants.TRUE.equals(indentStatementsCompareToBodyOption); } final Object indentBodyDeclarationsCompareToEnumConstantHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_CONSTANT_HEADER); if (indentBodyDeclarationsCompareToEnumConstantHeaderOption != null) { this.indent_body_declarations_compare_to_enum_constant_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumConstantHeaderOption); } final Object indentBodyDeclarationsCompareToEnumDeclarationHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_ENUM_DECLARATION_HEADER); if (indentBodyDeclarationsCompareToEnumDeclarationHeaderOption != null) { this.indent_body_declarations_compare_to_enum_declaration_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToEnumDeclarationHeaderOption); } final Object indentBodyDeclarationsCompareToTypeHeaderOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BODY_DECLARATIONS_COMPARE_TO_TYPE_HEADER); if (indentBodyDeclarationsCompareToTypeHeaderOption != null) { this.indent_body_declarations_compare_to_type_header = CodeFormatterConstants.TRUE.equals(indentBodyDeclarationsCompareToTypeHeaderOption); } final Object indentBreaksCompareToCasesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_BREAKS_COMPARE_TO_CASES); if (indentBreaksCompareToCasesOption != null) { this.indent_breaks_compare_to_cases = CodeFormatterConstants.TRUE.equals(indentBreaksCompareToCasesOption); } final Object indentEmptyLinesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_EMPTY_LINES); if (indentEmptyLinesOption != null) { this.indent_empty_lines = CodeFormatterConstants.TRUE.equals(indentEmptyLinesOption); } final Object indentSwitchstatementsCompareToCasesOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_CASES); if (indentSwitchstatementsCompareToCasesOption != null) { this.indent_switchstatements_compare_to_cases = CodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToCasesOption); } final Object indentSwitchstatementsCompareToSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INDENT_SWITCHSTATEMENTS_COMPARE_TO_SWITCH); if (indentSwitchstatementsCompareToSwitchOption != null) { this.indent_switchstatements_compare_to_switch = CodeFormatterConstants.TRUE.equals(indentSwitchstatementsCompareToSwitchOption); } final Object indentationSizeOption = settings.get(CodeFormatterConstants.FORMATTER_INDENTATION_SIZE); if (indentationSizeOption != null) { try { this.indentation_size = Integer.parseInt((String) indentationSizeOption); } catch (NumberFormatException e) { this.indentation_size = 4; } catch(ClassCastException e) { this.indentation_size = 4; } }// final Object insertNewLineAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertNewLineAfterOpeningBraceInArrayInitializerOption != null) {// this.insert_new_line_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineAfterOpeningBraceInArrayInitializerOption);// }// final Object insertNewLineAtEndOfFileIfMissingOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_AT_END_OF_FILE_IF_MISSING);// if (insertNewLineAtEndOfFileIfMissingOption != null) {// this.insert_new_line_at_end_of_file_if_missing = CCorePlugin.INSERT.equals(insertNewLineAtEndOfFileIfMissingOption);// }// final Object insertNewLineBeforeCatchInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CATCH_IN_TRY_STATEMENT);// if (insertNewLineBeforeCatchInTryStatementOption != null) {// this.insert_new_line_before_catch_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeCatchInTryStatementOption);// }// final Object insertNewLineBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER);// if (insertNewLineBeforeClosingBraceInArrayInitializerOption != null) {// this.insert_new_line_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertNewLineBeforeClosingBraceInArrayInitializerOption);// }// final Object insertNewLineBeforeElseInIfStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_ELSE_IN_IF_STATEMENT);// if (insertNewLineBeforeElseInIfStatementOption != null) {// this.insert_new_line_before_else_in_if_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeElseInIfStatementOption);// }// final Object insertNewLineBeforeFinallyInTryStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_FINALLY_IN_TRY_STATEMENT);// if (insertNewLineBeforeFinallyInTryStatementOption != null) {// this.insert_new_line_before_finally_in_try_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeFinallyInTryStatementOption);// }// final Object insertNewLineBeforeWhileInDoStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_BEFORE_WHILE_IN_DO_STATEMENT);// if (insertNewLineBeforeWhileInDoStatementOption != null) {// this.insert_new_line_before_while_in_do_statement = CCorePlugin.INSERT.equals(insertNewLineBeforeWhileInDoStatementOption);// }// final Object insertNewLineInEmptyBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_BLOCK);// if (insertNewLineInEmptyBlockOption != null) {// this.insert_new_line_in_empty_block = CCorePlugin.INSERT.equals(insertNewLineInEmptyBlockOption);// }// final Object insertNewLineInEmptyEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_CONSTANT);// if (insertNewLineInEmptyEnumConstantOption != null) {// this.insert_new_line_in_empty_enum_constant = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumConstantOption);// }// final Object insertNewLineInEmptyEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_ENUM_DECLARATION);// if (insertNewLineInEmptyEnumDeclarationOption != null) {// this.insert_new_line_in_empty_enum_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyEnumDeclarationOption);// }// final Object insertNewLineInEmptyMethodBodyOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_METHOD_BODY);// if (insertNewLineInEmptyMethodBodyOption != null) {// this.insert_new_line_in_empty_method_body = CCorePlugin.INSERT.equals(insertNewLineInEmptyMethodBodyOption);// }// final Object insertNewLineInEmptyTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_NEW_LINE_IN_EMPTY_TYPE_DECLARATION);// if (insertNewLineInEmptyTypeDeclarationOption != null) {// this.insert_new_line_in_empty_type_declaration = CCorePlugin.INSERT.equals(insertNewLineInEmptyTypeDeclarationOption);// }// final Object insertSpaceAfterAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_AND_IN_TYPE_PARAMETER);// if (insertSpaceAfterAndInWildcardOption != null) {// this.insert_space_after_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceAfterAndInWildcardOption);// }// final Object insertSpaceAfterAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ASSIGNMENT_OPERATOR);// if (insertSpaceAfterAssignmentOperatorOption != null) {// this.insert_space_after_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceAfterAssignmentOperatorOption);// }// final Object insertSpaceAfterBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_BINARY_OPERATOR);// if (insertSpaceAfterBinaryOperatorOption != null) {// this.insert_space_after_binary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterBinaryOperatorOption);// }// final Object insertSpaceAfterClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterClosingAngleBracketInTypeArgumentsOption != null) {// this.insert_space_after_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceAfterClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceAfterClosingAngleBracketInTypeParametersOption != null) {// this.insert_space_after_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterClosingAngleBracketInTypeParametersOption);// }// final Object insertSpaceAfterClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_PAREN_IN_CAST);// if (insertSpaceAfterClosingParenInCastOption != null) {// this.insert_space_after_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterClosingParenInCastOption);// }// final Object insertSpaceAfterClosingBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_CLOSING_BRACE_IN_BLOCK);// if (insertSpaceAfterClosingBraceInBlockOption != null) {// this.insert_space_after_closing_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceAfterClosingBraceInBlockOption);// }// final Object insertSpaceAfterColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_ASSERT);// if (insertSpaceAfterColonInAssertOption != null) {// this.insert_space_after_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceAfterColonInAssertOption);// }// final Object insertSpaceAfterColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CASE);// if (insertSpaceAfterColonInCaseOption != null) {// this.insert_space_after_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceAfterColonInCaseOption);// }// final Object insertSpaceAfterColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_CONDITIONAL);// if (insertSpaceAfterColonInConditionalOption != null) {// this.insert_space_after_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterColonInConditionalOption);// }// final Object insertSpaceAfterColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_FOR);// if (insertSpaceAfterColonInForOption != null) {// this.insert_space_after_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterColonInForOption);// }// final Object insertSpaceAfterColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COLON_IN_LABELED_STATEMENT);// if (insertSpaceAfterColonInLabeledStatementOption != null) {// this.insert_space_after_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceAfterColonInLabeledStatementOption);// }// final Object insertSpaceAfterCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ALLOCATION_EXPRESSION);// if (insertSpaceAfterCommaInAllocationExpressionOption != null) {// this.insert_space_after_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInAllocationExpressionOption);// }// final Object insertSpaceAfterCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ARRAY_INITIALIZER);// if (insertSpaceAfterCommaInArrayInitializerOption != null) {// this.insert_space_after_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInArrayInitializerOption);// }// final Object insertSpaceAfterCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS);// if (insertSpaceAfterCommaInConstructorDeclarationParametersOption != null) {// this.insert_space_after_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationParametersOption);// }// final Object insertSpaceAfterCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS);// if (insertSpaceAfterCommaInConstructorDeclarationThrowsOption != null) {// this.insert_space_after_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInConstructorDeclarationThrowsOption);// }// final Object insertSpaceAfterCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_CONSTANT_ARGUMENTS);// if (insertSpaceAfterCommaInEnumConstantArgumentsOption != null) {// this.insert_space_after_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumConstantArgumentsOption);// }// final Object insertSpaceAfterCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_ENUM_DECLARATIONS);// if (insertSpaceAfterCommaInEnumDeclarationsOption != null) {// this.insert_space_after_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInEnumDeclarationsOption);// }// final Object insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS);// if (insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption != null) {// this.insert_space_after_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInExplicitConstructorCallArgumentsOption);// }// final Object insertSpaceAfterCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INCREMENTS);// if (insertSpaceAfterCommaInForIncrementsOption != null) {// this.insert_space_after_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForIncrementsOption);// }// final Object insertSpaceAfterCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_FOR_INITS);// if (insertSpaceAfterCommaInForInitsOption != null) {// this.insert_space_after_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInForInitsOption);// }// final Object insertSpaceAfterCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_INVOCATION_ARGUMENTS);// if (insertSpaceAfterCommaInMethodInvocationArgumentsOption != null) {// this.insert_space_after_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodInvocationArgumentsOption);// }// final Object insertSpaceAfterCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_PARAMETERS);// if (insertSpaceAfterCommaInMethodDeclarationParametersOption != null) {// this.insert_space_after_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationParametersOption);// }// final Object insertSpaceAfterCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_METHOD_DECLARATION_THROWS);// if (insertSpaceAfterCommaInMethodDeclarationThrowsOption != null) {// this.insert_space_after_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMethodDeclarationThrowsOption);// }// final Object insertSpaceAfterCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS);// if (insertSpaceAfterCommaInMultipleFieldDeclarationsOption != null) {// this.insert_space_after_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleFieldDeclarationsOption);// }// final Object insertSpaceAfterCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS);// if (insertSpaceAfterCommaInMultipleLocalDeclarationsOption != null) {// this.insert_space_after_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInMultipleLocalDeclarationsOption);// }// final Object insertSpaceAfterCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceAfterCommaInParameterizedTypeReferenceOption != null) {// this.insert_space_after_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInParameterizedTypeReferenceOption);// }// final Object insertSpaceAfterCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_SUPERINTERFACES);// if (insertSpaceAfterCommaInSuperinterfacesOption != null) {// this.insert_space_after_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInSuperinterfacesOption);// }// final Object insertSpaceAfterCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterCommaInTypeArgumentsOption != null) {// this.insert_space_after_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeArgumentsOption);// }// final Object insertSpaceAfterCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_COMMA_IN_TYPE_PARAMETERS);// if (insertSpaceAfterCommaInTypeParametersOption != null) {// this.insert_space_after_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterCommaInTypeParametersOption);// }// final Object insertSpaceAfterEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_ELLIPSIS);// if (insertSpaceAfterEllipsisOption != null) {// this.insert_space_after_ellipsis = CCorePlugin.INSERT.equals(insertSpaceAfterEllipsisOption);// }// final Object insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption != null) {// this.insert_space_after_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInParameterizedTypeReferenceOption);// }// final Object insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption != null) {// this.insert_space_after_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceAfterOpeningAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceAfterOpeningAngleBracketInTypeParametersOption != null) {// this.insert_space_after_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningAngleBracketInTypeParametersOption);// }// final Object insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption != null) {// this.insert_space_after_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceAfterOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceAfterOpeningBracketInArrayReferenceOption != null) {// this.insert_space_after_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBracketInArrayReferenceOption);// }// final Object insertSpaceAfterOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceAfterOpeningBraceInArrayInitializerOption != null) {// this.insert_space_after_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningBraceInArrayInitializerOption);// }// final Object insertSpaceAfterOpeningParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CAST);// if (insertSpaceAfterOpeningParenInCastOption != null) {// this.insert_space_after_opening_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCastOption);// }// final Object insertSpaceAfterOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CATCH);// if (insertSpaceAfterOpeningParenInCatchOption != null) {// this.insert_space_after_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInCatchOption);// }// final Object insertSpaceAfterOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceAfterOpeningParenInConstructorDeclarationOption != null) {// this.insert_space_after_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInConstructorDeclarationOption);// }// final Object insertSpaceAfterOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceAfterOpeningParenInEnumConstantOption != null) {// this.insert_space_after_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInEnumConstantOption);// }// final Object insertSpaceAfterOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_FOR);// if (insertSpaceAfterOpeningParenInForOption != null) {// this.insert_space_after_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInForOption);// }// final Object insertSpaceAfterOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_IF);// if (insertSpaceAfterOpeningParenInIfOption != null) {// this.insert_space_after_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInIfOption);// }// final Object insertSpaceAfterOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceAfterOpeningParenInMethodDeclarationOption != null) {// this.insert_space_after_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodDeclarationOption);// }// final Object insertSpaceAfterOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceAfterOpeningParenInMethodInvocationOption != null) {// this.insert_space_after_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInMethodInvocationOption);// }// final Object insertSpaceAfterOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceAfterOpeningParenInParenthesizedExpressionOption != null) {// this.insert_space_after_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInParenthesizedExpressionOption);// }// final Object insertSpaceAfterOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SWITCH);// if (insertSpaceAfterOpeningParenInSwitchOption != null) {// this.insert_space_after_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSwitchOption);// }// final Object insertSpaceAfterOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceAfterOpeningParenInSynchronizedOption != null) {// this.insert_space_after_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInSynchronizedOption);// }// final Object insertSpaceAfterOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_OPENING_PAREN_IN_WHILE);// if (insertSpaceAfterOpeningParenInWhileOption != null) {// this.insert_space_after_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceAfterOpeningParenInWhileOption);// }// final Object insertSpaceAfterPostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_POSTFIX_OPERATOR);// if (insertSpaceAfterPostfixOperatorOption != null) {// this.insert_space_after_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPostfixOperatorOption);// }// final Object insertSpaceAfterPrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_PREFIX_OPERATOR);// if (insertSpaceAfterPrefixOperatorOption != null) {// this.insert_space_after_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceAfterPrefixOperatorOption);// }// final Object insertSpaceAfterQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_CONDITIONAL);// if (insertSpaceAfterQuestionInConditionalOption != null) {// this.insert_space_after_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInConditionalOption);// }// final Object insertSpaceAfterQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_QUESTION_IN_WILDCARD);// if (insertSpaceAfterQuestionInWildcardOption != null) {// this.insert_space_after_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceAfterQuestionInWildcardOption);// }// final Object insertSpaceAfterSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_SEMICOLON_IN_FOR);// if (insertSpaceAfterSemicolonInForOption != null) {// this.insert_space_after_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceAfterSemicolonInForOption);// }// final Object insertSpaceAfterUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_AFTER_UNARY_OPERATOR);// if (insertSpaceAfterUnaryOperatorOption != null) {// this.insert_space_after_unary_operator = CCorePlugin.INSERT.equals(insertSpaceAfterUnaryOperatorOption);// }// final Object insertSpaceBeforeAndInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_AND_IN_TYPE_PARAMETER);// if (insertSpaceBeforeAndInWildcardOption != null) {// this.insert_space_before_and_in_type_parameter = CCorePlugin.INSERT.equals(insertSpaceBeforeAndInWildcardOption);// }// final Object insertSpaceBeforeAssignmentOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ASSIGNMENT_OPERATOR);// if (insertSpaceBeforeAssignmentOperatorOption != null) {// this.insert_space_before_assignment_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeAssignmentOperatorOption);// }// final Object insertSpaceBeforeBinaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_BINARY_OPERATOR);// if (insertSpaceBeforeBinaryOperatorOption != null) {// this.insert_space_before_binary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeBinaryOperatorOption);// }// final Object insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption != null) {// this.insert_space_before_closing_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption != null) {// this.insert_space_before_closing_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeArgumentsOption);// }// final Object insertSpaceBeforeClosingAngleBracketInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeClosingAngleBracketInTypeParametersOption != null) {// this.insert_space_before_closing_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingAngleBracketInTypeParametersOption);// }// final Object insertSpaceBeforeClosingBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeClosingBraceInArrayInitializerOption != null) {// this.insert_space_before_closing_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBraceInArrayInitializerOption);// }// final Object insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption != null) {// this.insert_space_before_closing_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceBeforeClosingBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceBeforeClosingBracketInArrayReferenceOption != null) {// this.insert_space_before_closing_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingBracketInArrayReferenceOption);// }// final Object insertSpaceBeforeClosingParenInCastOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CAST);// if (insertSpaceBeforeClosingParenInCastOption != null) {// this.insert_space_before_closing_paren_in_cast = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCastOption);// }// final Object insertSpaceBeforeClosingParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CATCH);// if (insertSpaceBeforeClosingParenInCatchOption != null) {// this.insert_space_before_closing_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInCatchOption);// }// final Object insertSpaceBeforeClosingParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeClosingParenInConstructorDeclarationOption != null) {// this.insert_space_before_closing_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInConstructorDeclarationOption);// }// final Object insertSpaceBeforeClosingParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceBeforeClosingParenInEnumConstantOption != null) {// this.insert_space_before_closing_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInEnumConstantOption);// }// final Object insertSpaceBeforeClosingParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_FOR);// if (insertSpaceBeforeClosingParenInForOption != null) {// this.insert_space_before_closing_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInForOption);// }// final Object insertSpaceBeforeClosingParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_IF);// if (insertSpaceBeforeClosingParenInIfOption != null) {// this.insert_space_before_closing_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInIfOption);// }// final Object insertSpaceBeforeClosingParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceBeforeClosingParenInMethodDeclarationOption != null) {// this.insert_space_before_closing_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodDeclarationOption);// }// final Object insertSpaceBeforeClosingParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceBeforeClosingParenInMethodInvocationOption != null) {// this.insert_space_before_closing_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInMethodInvocationOption);// }// final Object insertSpaceBeforeClosingParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceBeforeClosingParenInParenthesizedExpressionOption != null) {// this.insert_space_before_closing_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInParenthesizedExpressionOption);// }// final Object insertSpaceBeforeClosingParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SWITCH);// if (insertSpaceBeforeClosingParenInSwitchOption != null) {// this.insert_space_before_closing_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSwitchOption);// }// final Object insertSpaceBeforeClosingParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceBeforeClosingParenInSynchronizedOption != null) {// this.insert_space_before_closing_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInSynchronizedOption);// }// final Object insertSpaceBeforeClosingParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_CLOSING_PAREN_IN_WHILE);// if (insertSpaceBeforeClosingParenInWhileOption != null) {// this.insert_space_before_closing_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeClosingParenInWhileOption);// }// final Object insertSpaceBeforeColonInAssertOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_ASSERT);// if (insertSpaceBeforeColonInAssertOption != null) {// this.insert_space_before_colon_in_assert = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInAssertOption);// }// final Object insertSpaceBeforeColonInCaseOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CASE);// if (insertSpaceBeforeColonInCaseOption != null) {// this.insert_space_before_colon_in_case = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInCaseOption);// }// final Object insertSpaceBeforeColonInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_CONDITIONAL);// if (insertSpaceBeforeColonInConditionalOption != null) {// this.insert_space_before_colon_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInConditionalOption);// }// final Object insertSpaceBeforeColonInDefaultOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_DEFAULT);// if (insertSpaceBeforeColonInDefaultOption != null) {// this.insert_space_before_colon_in_default = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInDefaultOption);// }// final Object insertSpaceBeforeColonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_FOR);// if (insertSpaceBeforeColonInForOption != null) {// this.insert_space_before_colon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInForOption);// }// final Object insertSpaceBeforeColonInLabeledStatementOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COLON_IN_LABELED_STATEMENT);// if (insertSpaceBeforeColonInLabeledStatementOption != null) {// this.insert_space_before_colon_in_labeled_statement = CCorePlugin.INSERT.equals(insertSpaceBeforeColonInLabeledStatementOption);// }// final Object insertSpaceBeforeCommaInAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeCommaInAllocationExpressionOption != null) {// this.insert_space_before_comma_in_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInAllocationExpressionOption);// }// final Object insertSpaceBeforeCommaInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeCommaInArrayInitializerOption != null) {// this.insert_space_before_comma_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInArrayInitializerOption);// }// final Object insertSpaceBeforeCommaInConstructorDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_PARAMETERS);// if (insertSpaceBeforeCommaInConstructorDeclarationParametersOption != null) {// this.insert_space_before_comma_in_constructor_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationParametersOption);// }// final Object insertSpaceBeforeCommaInConstructorDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_CONSTRUCTOR_DECLARATION_THROWS);// if (insertSpaceBeforeCommaInConstructorDeclarationThrowsOption != null) {// this.insert_space_before_comma_in_constructor_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInConstructorDeclarationThrowsOption);// }// final Object insertSpaceBeforeCommaInEnumConstantArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_CONSTANT_ARGUMENTS);// if (insertSpaceBeforeCommaInEnumConstantArgumentsOption != null) {// this.insert_space_before_comma_in_enum_constant_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumConstantArgumentsOption);// }// final Object insertSpaceBeforeCommaInEnumDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_ENUM_DECLARATIONS);// if (insertSpaceBeforeCommaInEnumDeclarationsOption != null) {// this.insert_space_before_comma_in_enum_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInEnumDeclarationsOption);// }// final Object insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_EXPLICIT_CONSTRUCTOR_CALL_ARGUMENTS);// if (insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption != null) {// this.insert_space_before_comma_in_explicit_constructor_call_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInExplicitConstructorCallArgumentsOption);// }// final Object insertSpaceBeforeCommaInForIncrementsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INCREMENTS);// if (insertSpaceBeforeCommaInForIncrementsOption != null) {// this.insert_space_before_comma_in_for_increments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForIncrementsOption);// }// final Object insertSpaceBeforeCommaInForInitsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_FOR_INITS);// if (insertSpaceBeforeCommaInForInitsOption != null) {// this.insert_space_before_comma_in_for_inits = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInForInitsOption);// }// final Object insertSpaceBeforeCommaInMethodInvocationArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_INVOCATION_ARGUMENTS);// if (insertSpaceBeforeCommaInMethodInvocationArgumentsOption != null) {// this.insert_space_before_comma_in_method_invocation_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodInvocationArgumentsOption);// }// final Object insertSpaceBeforeCommaInMethodDeclarationParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_PARAMETERS);// if (insertSpaceBeforeCommaInMethodDeclarationParametersOption != null) {// this.insert_space_before_comma_in_method_declaration_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationParametersOption);// }// final Object insertSpaceBeforeCommaInMethodDeclarationThrowsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_METHOD_DECLARATION_THROWS);// if (insertSpaceBeforeCommaInMethodDeclarationThrowsOption != null) {// this.insert_space_before_comma_in_method_declaration_throws = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMethodDeclarationThrowsOption);// }// final Object insertSpaceBeforeCommaInMultipleFieldDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_FIELD_DECLARATIONS);// if (insertSpaceBeforeCommaInMultipleFieldDeclarationsOption != null) {// this.insert_space_before_comma_in_multiple_field_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleFieldDeclarationsOption);// }// final Object insertSpaceBeforeCommaInMultipleLocalDeclarationsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_MULTIPLE_LOCAL_DECLARATIONS);// if (insertSpaceBeforeCommaInMultipleLocalDeclarationsOption != null) {// this.insert_space_before_comma_in_multiple_local_declarations = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInMultipleLocalDeclarationsOption);// }// final Object insertSpaceBeforeCommaInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeCommaInParameterizedTypeReferenceOption != null) {// this.insert_space_before_comma_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeCommaInSuperinterfacesOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_SUPERINTERFACES);// if (insertSpaceBeforeCommaInSuperinterfacesOption != null) {// this.insert_space_before_comma_in_superinterfaces = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInSuperinterfacesOption);// }// final Object insertSpaceBeforeCommaInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeCommaInTypeArgumentsOption != null) {// this.insert_space_before_comma_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeArgumentsOption);// }// final Object insertSpaceBeforeCommaInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_COMMA_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeCommaInTypeParametersOption != null) {// this.insert_space_before_comma_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeCommaInTypeParametersOption);// }// final Object insertSpaceBeforeEllipsisOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_ELLIPSIS);// if (insertSpaceBeforeEllipsisOption != null) {// this.insert_space_before_ellipsis = CCorePlugin.INSERT.equals(insertSpaceBeforeEllipsisOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_PARAMETERIZED_TYPE_REFERENCE);// if (insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption != null) {// this.insert_space_before_opening_angle_bracket_in_parameterized_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInParameterizedTypeReferenceOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_ARGUMENTS);// if (insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption != null) {// this.insert_space_before_opening_angle_bracket_in_type_arguments = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeArgumentsOption);// }// final Object insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_ANGLE_BRACKET_IN_TYPE_PARAMETERS);// if (insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption != null) {// this.insert_space_before_opening_angle_bracket_in_type_parameters = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningAngleBrackerInTypeParametersOption);// }// final Object insertSpaceBeforeOpeningBraceInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ARRAY_INITIALIZER);// if (insertSpaceBeforeOpeningBraceInArrayInitializerOption != null) {// this.insert_space_before_opening_brace_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInArrayInitializerOption);// }// final Object insertSpaceBeforeOpeningBraceInBlockOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_BLOCK);// if (insertSpaceBeforeOpeningBraceInBlockOption != null) {// this.insert_space_before_opening_brace_in_block = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInBlockOption);// }// final Object insertSpaceBeforeOpeningBraceInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeOpeningBraceInConstructorDeclarationOption != null) {// this.insert_space_before_opening_brace_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInConstructorDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInEnumDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_DECLARATION);// if (insertSpaceBeforeOpeningBraceInEnumDeclarationOption != null) {// this.insert_space_before_opening_brace_in_enum_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_ENUM_CONSTANT);// if (insertSpaceBeforeOpeningBraceInEnumConstantOption != null) {// this.insert_space_before_opening_brace_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInEnumConstantOption);// }// final Object insertSpaceBeforeOpeningBraceInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_METHOD_DECLARATION);// if (insertSpaceBeforeOpeningBraceInMethodDeclarationOption != null) {// this.insert_space_before_opening_brace_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInMethodDeclarationOption);// }// final Object insertSpaceBeforeOpeningBraceInTypeDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_TYPE_DECLARATION);// if (insertSpaceBeforeOpeningBraceInTypeDeclarationOption != null) {// this.insert_space_before_opening_brace_in_type_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInTypeDeclarationOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption != null) {// this.insert_space_before_opening_bracket_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayAllocationExpressionOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_REFERENCE);// if (insertSpaceBeforeOpeningBracketInArrayReferenceOption != null) {// this.insert_space_before_opening_bracket_in_array_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayReferenceOption);// }// final Object insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACKET_IN_ARRAY_TYPE_REFERENCE);// if (insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption != null) {// this.insert_space_before_opening_bracket_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBracketInArrayTypeReferenceOption);// }// final Object insertSpaceBeforeOpeningParenInCatchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CATCH);// if (insertSpaceBeforeOpeningParenInCatchOption != null) {// this.insert_space_before_opening_paren_in_catch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInCatchOption);// }// final Object insertSpaceBeforeOpeningParenInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBeforeOpeningParenInConstructorDeclarationOption != null) {// this.insert_space_before_opening_paren_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInConstructorDeclarationOption);// }// final Object insertSpaceBeforeOpeningParenInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_ENUM_CONSTANT);// if (insertSpaceBeforeOpeningParenInEnumConstantOption != null) {// this.insert_space_before_opening_paren_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInEnumConstantOption);// }// final Object insertSpaceBeforeOpeningParenInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_FOR);// if (insertSpaceBeforeOpeningParenInForOption != null) {// this.insert_space_before_opening_paren_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInForOption);// }// final Object insertSpaceBeforeOpeningParenInIfOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_IF);// if (insertSpaceBeforeOpeningParenInIfOption != null) {// this.insert_space_before_opening_paren_in_if = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInIfOption);// }// final Object insertSpaceBeforeOpeningParenInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_INVOCATION);// if (insertSpaceBeforeOpeningParenInMethodInvocationOption != null) {// this.insert_space_before_opening_paren_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodInvocationOption);// }// final Object insertSpaceBeforeOpeningParenInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_METHOD_DECLARATION);// if (insertSpaceBeforeOpeningParenInMethodDeclarationOption != null) {// this.insert_space_before_opening_paren_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInMethodDeclarationOption);// }// final Object insertSpaceBeforeOpeningParenInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SWITCH);// if (insertSpaceBeforeOpeningParenInSwitchOption != null) {// this.insert_space_before_opening_paren_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSwitchOption);// }// final Object insertSpaceBeforeOpeningBraceInSwitchOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_BRACE_IN_SWITCH);// if (insertSpaceBeforeOpeningBraceInSwitchOption != null) {// this.insert_space_before_opening_brace_in_switch = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningBraceInSwitchOption);// }// final Object insertSpaceBeforeOpeningParenInSynchronizedOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_SYNCHRONIZED);// if (insertSpaceBeforeOpeningParenInSynchronizedOption != null) {// this.insert_space_before_opening_paren_in_synchronized = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInSynchronizedOption);// }// final Object insertSpaceBeforeOpeningParenInParenthesizedExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_PARENTHESIZED_EXPRESSION);// if (insertSpaceBeforeOpeningParenInParenthesizedExpressionOption != null) {// this.insert_space_before_opening_paren_in_parenthesized_expression = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInParenthesizedExpressionOption);// }// final Object insertSpaceBeforeOpeningParenInWhileOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_OPENING_PAREN_IN_WHILE);// if (insertSpaceBeforeOpeningParenInWhileOption != null) {// this.insert_space_before_opening_paren_in_while = CCorePlugin.INSERT.equals(insertSpaceBeforeOpeningParenInWhileOption);// }// final Object insertSpaceBeforeParenthesizedExpressionInReturnOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PARENTHESIZED_EXPRESSION_IN_RETURN);// if (insertSpaceBeforeParenthesizedExpressionInReturnOption != null) {// this.insert_space_before_parenthesized_expression_in_return = CCorePlugin.INSERT.equals(insertSpaceBeforeParenthesizedExpressionInReturnOption);// }// final Object insertSpaceBeforePostfixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_POSTFIX_OPERATOR);// if (insertSpaceBeforePostfixOperatorOption != null) {// this.insert_space_before_postfix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePostfixOperatorOption);// }// final Object insertSpaceBeforePrefixOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_PREFIX_OPERATOR);// if (insertSpaceBeforePrefixOperatorOption != null) {// this.insert_space_before_prefix_operator = CCorePlugin.INSERT.equals(insertSpaceBeforePrefixOperatorOption);// }// final Object insertSpaceBeforeQuestionInConditionalOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_CONDITIONAL);// if (insertSpaceBeforeQuestionInConditionalOption != null) {// this.insert_space_before_question_in_conditional = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInConditionalOption);// }// final Object insertSpaceBeforeQuestionInWildcardOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_QUESTION_IN_WILDCARD);// if (insertSpaceBeforeQuestionInWildcardOption != null) {// this.insert_space_before_question_in_wilcard = CCorePlugin.INSERT.equals(insertSpaceBeforeQuestionInWildcardOption);// }// final Object insertSpaceBeforeSemicolonOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON);// if (insertSpaceBeforeSemicolonOption != null) {// this.insert_space_before_semicolon = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonOption);// }// final Object insertSpaceBeforeSemicolonInForOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_SEMICOLON_IN_FOR);// if (insertSpaceBeforeSemicolonInForOption != null) {// this.insert_space_before_semicolon_in_for = CCorePlugin.INSERT.equals(insertSpaceBeforeSemicolonInForOption);// }// final Object insertSpaceBeforeUnaryOperatorOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BEFORE_UNARY_OPERATOR);// if (insertSpaceBeforeUnaryOperatorOption != null) {// this.insert_space_before_unary_operator = CCorePlugin.INSERT.equals(insertSpaceBeforeUnaryOperatorOption);// }// final Object insertSpaceBetweenBracketsInArrayTypeReferenceOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_BRACKETS_IN_ARRAY_TYPE_REFERENCE);// if (insertSpaceBetweenBracketsInArrayTypeReferenceOption != null) {// this.insert_space_between_brackets_in_array_type_reference = CCorePlugin.INSERT.equals(insertSpaceBetweenBracketsInArrayTypeReferenceOption);// }// final Object insertSpaceBetweenEmptyBracesInArrayInitializerOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACES_IN_ARRAY_INITIALIZER);// if (insertSpaceBetweenEmptyBracesInArrayInitializerOption != null) {// this.insert_space_between_empty_braces_in_array_initializer = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracesInArrayInitializerOption);// }// final Object insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_BRACKETS_IN_ARRAY_ALLOCATION_EXPRESSION);// if (insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption != null) {// this.insert_space_between_empty_brackets_in_array_allocation_expression = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyBracketsInArrayAllocationExpressionOption);// }// final Object insertSpaceBetweenEmptyParensInConstructorDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_CONSTRUCTOR_DECLARATION);// if (insertSpaceBetweenEmptyParensInConstructorDeclarationOption != null) {// this.insert_space_between_empty_parens_in_constructor_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInConstructorDeclarationOption);// }// final Object insertSpaceBetweenEmptyParensInEnumConstantOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_ENUM_CONSTANT);// if (insertSpaceBetweenEmptyParensInEnumConstantOption != null) {// this.insert_space_between_empty_parens_in_enum_constant = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInEnumConstantOption);// }// final Object insertSpaceBetweenEmptyParensInMethodDeclarationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_DECLARATION);// if (insertSpaceBetweenEmptyParensInMethodDeclarationOption != null) {// this.insert_space_between_empty_parens_in_method_declaration = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodDeclarationOption);// }// final Object insertSpaceBetweenEmptyParensInMethodInvocationOption = settings.get(CodeFormatterConstants.FORMATTER_INSERT_SPACE_BETWEEN_EMPTY_PARENS_IN_METHOD_INVOCATION);// if (insertSpaceBetweenEmptyParensInMethodInvocationOption != null) {// this.insert_space_between_empty_parens_in_method_invocation = CCorePlugin.INSERT.equals(insertSpaceBetweenEmptyParensInMethodInvocationOption);// }// final Object compactElseIfOption = settings.get(CodeFormatterConstants.FORMATTER_COMPACT_ELSE_IF);// if (compactElseIfOption != null) {// this.compact_else_if = CodeFormatterConstants.TRUE.equals(compactElseIfOption);// }// final Object keepGuardianClauseOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_GUARDIAN_CLAUSE_ON_ONE_LINE);// if (keepGuardianClauseOnOneLineOption != null) {// this.keep_guardian_clause_on_one_line = CodeFormatterConstants.TRUE.equals(keepGuardianClauseOnOneLineOption);// }// final Object keepElseStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_ELSE_STATEMENT_ON_SAME_LINE);// if (keepElseStatementOnSameLineOption != null) {// this.keep_else_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepElseStatementOnSameLineOption);// }// final Object keepEmptyArrayInitializerOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_EMPTY_ARRAY_INITIALIZER_ON_ONE_LINE);// if (keepEmptyArrayInitializerOnOneLineOption != null) {// this.keep_empty_array_initializer_on_one_line = CodeFormatterConstants.TRUE.equals(keepEmptyArrayInitializerOnOneLineOption);// }// final Object keepSimpleIfOnOneLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_SIMPLE_IF_ON_ONE_LINE);// if (keepSimpleIfOnOneLineOption != null) {// this.keep_simple_if_on_one_line = CodeFormatterConstants.TRUE.equals(keepSimpleIfOnOneLineOption);// }// final Object keepThenStatementOnSameLineOption = settings.get(CodeFormatterConstants.FORMATTER_KEEP_THEN_STATEMENT_ON_SAME_LINE);// if (keepThenStatementOnSameLineOption != null) {// this.keep_then_statement_on_same_line = CodeFormatterConstants.TRUE.equals(keepThenStatementOnSameLineOption);// }// final Object numberOfEmptyLinesToPreserveOption = settings.get(CodeFormatterConstants.FORMATTER_NUMBER_OF_EMPTY_LINES_TO_PRESERVE);// if (numberOfEmptyLinesToPreserveOption != null) {// try {// this.number_of_empty_lines_to_preserve = Integer.parseInt((String) numberOfEmptyLinesToPreserveOption);// } catch (NumberFormatException e) {// this.number_of_empty_lines_to_preserve = 0;// } catch(ClassCastException e) {// this.number_of_empty_lines_to_preserve = 0;// }// }// final Object putEmptyStatementOnNewLineOption = settings.get(CodeFormatterConstants.FORMATTER_PUT_EMPTY_STATEMENT_ON_NEW_LINE);// if (putEmptyStatementOnNewLineOption != null) {// this.put_empty_statement_on_new_line = CodeFormatterConstants.TRUE.equals(putEmptyStatementOnNewLineOption);// } final Object tabSizeOption = settings.get(CodeFormatterConstants.FORMATTER_TAB_SIZE); if (tabSizeOption != null) { try { this.tab_size = Integer.parseInt((String) tabSizeOption); } catch (NumberFormatException e) { this.tab_size = 4; } catch(ClassCastException e) { this.tab_size = 4; } } final Object useTabsOnlyForLeadingIndentationsOption = settings.get(CodeFormatterConstants.FORMATTER_USE_TABS_ONLY_FOR_LEADING_INDENTATIONS); if (useTabsOnlyForLeadingIndentationsOption != null) { this.use_tabs_only_for_leading_indentations = CodeFormatterConstants.TRUE.equals(useTabsOnlyForLeadingIndentationsOption); } final Object pageWidthOption = settings.get(CodeFormatterConstants.FORMATTER_LINE_SPLIT); if (pageWidthOption != null) { try { this.page_width = Integer.parseInt((String) pageWidthOption); } catch (NumberFormatException e) { this.page_width = 80; } catch(ClassCastException e) { this.page_width = 80; } } final Object useTabOption = settings.get(CodeFormatterConstants.FORMATTER_TAB_CHAR); if (useTabOption != null) { if (CCorePlugin.TAB.equals(useTabOption)) { this.tab_char = TAB; } else if (CCorePlugin.SPACE.equals(useTabOption)) { this.tab_char = SPACE; } else { this.tab_char = MIXED; } } }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/0482b3954404fd528d629e737114a70d018a10db/DefaultCodeFormatterOptions.java/buggy/core/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/formatter/DefaultCodeFormatterOptions.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 12, 863, 1947, 13, 288, 202, 202, 6385, 1033, 8710, 1290, 4628, 382, 17353, 2300, 1895, 273, 1947, 18, 588, 12, 1085, 5074, 2918, 18, 7254, 2560, 67, 26439, 3212, 67, 7473, 67, 18311, 55, 67, 706, 67, 1013, 15277, 67, 19111, 1769, 202, 202, 430, 261, 14409, 1290, 4628, 382, 17353, 2300, 1895, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 2144, 18, 2670, 1702, 12443, 780, 13, 8710, 1290, 4628, 382, 17353, 2300, 1895, 1769, 1082, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 17804, 18, 49, 67, 4208, 4066, 1268, 67, 17482, 31, 1082, 202, 97, 1044, 261, 797, 22768, 425, 13, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 17804, 18, 49, 67, 4208, 4066, 1268, 67, 17482, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 6385, 1033, 8710, 1290, 4628, 382, 3572, 6902, 1895, 273, 1947, 18, 588, 12, 1085, 5074, 2918, 18, 7254, 2560, 67, 26439, 3212, 67, 7473, 67, 18311, 55, 67, 706, 67, 16509, 67, 25878, 1769, 202, 202, 430, 261, 14409, 1290, 4628, 382, 3572, 6902, 1895, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 7924, 67, 14384, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 12, 863, 1947, 13, 288, 202, 202, 6385, 1033, 8710, 1290, 4628, 382, 17353, 2300, 1895, 273, 1947, 18, 588, 12, 1085, 5074, 2918, 18, 7254, 2560, 67, 26439, 3212, 67, 7473, 67, 18311, 55, 67, 706, 67, 1013, 15277, 67, 19111, 1769, 202, 202, 430, 261, 14409, 1290, 4628, 382, 17353, 2300, 1895, 480, 446, 13, 288, 1082, 202, 698, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 67, 29299, 67, 8692, 273, 2144, 18, 2670, 1702, 12443, 780, 13, 8710, 1290, 4628, 382, 17353, 2300, 1895, 1769, 1082, 202, 97, 1044, 261, 1854, 9291, 425, 13, 288, 9506, 202, 2211, 18, 14409, 67, 1884, 67, 7099, 67, 267, 2 ]
context.operands.push(new Double(Math.abs(data[0])));
context.operands.push(new Long(Math.round(data[0])));
public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); }
4174 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4174/d2f614f1cabfa6f585b4e67b060a3e4e49a9f71e/PAContext.java/clean/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 3639, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3407, 12, 10477, 18, 2260, 12, 892, 63, 20, 22643, 1769, 1377, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1836, 12, 4066, 1042, 819, 13, 1216, 453, 11606, 503, 288, 3639, 1645, 501, 8526, 31, 3639, 501, 273, 819, 18, 5120, 1854, 3542, 5708, 12, 21, 1769, 3639, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 3407, 12, 10477, 18, 2260, 12, 892, 63, 20, 22643, 1769, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate();
public quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { quickfix.field.UnderlyingMaturityDate value = new quickfix.field.UnderlyingMaturityDate();
public org.quickfix.field.UnderlyingMaturityDate getUnderlyingMaturityDate() throws FieldNotFound { org.quickfix.field.UnderlyingMaturityDate value = new org.quickfix.field.UnderlyingMaturityDate(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelReplaceRequest.java/clean/src/java/src/quickfix/fix44/CrossOrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 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, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 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, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 10833, 765, 6291, 15947, 2336, 1626, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 15947, 2336, 1626, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
MuleConfiguration cfg = ((MuleManager)digester.getRoot()).getConfiguration();
MuleConfiguration cfg = MuleManager.getConfiguration();
protected void addThreadingProfileRules(Digester digester, String path, final String type) { //set threading profile digester.addRule(path + "/threading-profile", new Rule(){ public void begin(String s, String s1, Attributes attributes) throws Exception { //use the default as a template MuleConfiguration cfg = ((MuleManager)digester.getRoot()).getConfiguration(); if("component".equals(type)) { digester.push(cfg.getComponentThreadingProfile()); } else if("messageReceiver".equals(type)) { digester.push(cfg.getComponentThreadingProfile()); } else if("messageDispatcher".equals(type)) { digester.push(cfg.getComponentThreadingProfile()); } else { digester.push(cfg.getDefaultThreadingProfile()); } } public void end(String s, String s1) throws Exception { digester.pop(); } }); //set threading profile SetPropertiesRule threadingRule = new SetPropertiesRule(); threadingRule.addAlias("setPoolExhaustedAction", "setPoolExhaustedActionString"); digester.addRule(path + "/threading-profile", threadingRule); digester.addSetNext(path + "/threading-profile", "setThreadingProfile"); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/cedf2fc1e9973b1ed339f2698bf2a2085f7cca7e/MuleXmlConfigurationBuilder.java/buggy/src/java/org/mule/config/builders/MuleXmlConfigurationBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 3830, 310, 4029, 4478, 12, 4907, 7654, 23821, 16, 514, 589, 16, 727, 514, 618, 13, 565, 288, 3639, 368, 542, 17254, 3042, 3639, 23821, 18, 1289, 2175, 12, 803, 397, 2206, 5930, 310, 17, 5040, 3113, 394, 6781, 1435, 95, 5411, 1071, 918, 2376, 12, 780, 272, 16, 514, 272, 21, 16, 9055, 1677, 13, 1216, 1185, 5411, 288, 7734, 368, 1202, 326, 805, 487, 279, 1542, 7734, 490, 725, 1750, 2776, 273, 490, 725, 1318, 18, 588, 1750, 5621, 7734, 309, 2932, 4652, 9654, 14963, 12, 723, 3719, 288, 10792, 23821, 18, 6206, 12, 7066, 18, 588, 1841, 3830, 310, 4029, 10663, 7734, 289, 469, 225, 309, 2932, 2150, 12952, 9654, 14963, 12, 723, 3719, 288, 10792, 23821, 18, 6206, 12, 7066, 18, 588, 1841, 3830, 310, 4029, 10663, 7734, 289, 469, 309, 2932, 2150, 6681, 9654, 14963, 12, 723, 3719, 288, 10792, 23821, 18, 6206, 12, 7066, 18, 588, 1841, 3830, 310, 4029, 10663, 7734, 289, 469, 288, 10792, 23821, 18, 6206, 12, 7066, 18, 588, 1868, 3830, 310, 4029, 10663, 7734, 289, 5411, 289, 5411, 1071, 918, 679, 12, 780, 272, 16, 514, 272, 21, 13, 1216, 1185, 5411, 288, 7734, 23821, 18, 5120, 5621, 5411, 289, 3639, 15549, 3639, 368, 542, 17254, 3042, 3639, 1000, 2297, 2175, 17254, 2175, 273, 394, 1000, 2297, 2175, 5621, 3639, 17254, 2175, 18, 1289, 2936, 2932, 542, 2864, 424, 3395, 7328, 1803, 3113, 315, 542, 2864, 424, 3395, 7328, 1803, 780, 8863, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 3830, 310, 4029, 4478, 12, 4907, 7654, 23821, 16, 514, 589, 16, 727, 514, 618, 13, 565, 288, 3639, 368, 542, 17254, 3042, 3639, 23821, 18, 1289, 2175, 12, 803, 397, 2206, 5930, 310, 17, 5040, 3113, 394, 6781, 1435, 95, 5411, 1071, 918, 2376, 12, 780, 272, 16, 514, 272, 21, 16, 9055, 1677, 13, 1216, 1185, 5411, 288, 7734, 368, 1202, 326, 805, 487, 279, 1542, 7734, 490, 725, 1750, 2776, 273, 490, 725, 1318, 18, 588, 1750, 5621, 7734, 309, 2932, 4652, 9654, 14963, 12, 723, 3719, 288, 10792, 23821, 18, 6206, 12, 7066, 18, 588, 1841, 3830, 310, 4029, 10663, 7734, 289, 469, 225, 309, 2932, 2150, 12952, 9654, 14963, 12, 2 ]
try { Thread.sleep(30L * 1000L); } catch (Exception e) { }
try { Thread.sleep(30L * 1000L); } catch (Exception e) { }
public void run() throws Exception { Log log = LogFactory.getLog(SimpleTriggerExample.class); log.info("------- Initializing -------------------"); // First we must get a reference to a scheduler SchedulerFactory sf = new StdSchedulerFactory(); Scheduler sched = sf.getScheduler(); log.info("------- Initialization Complete --------"); log.info("------- Scheduling Jobs ----------------"); // jobs can be scheduled before sched.start() has been called // get a "nice round" time a few seconds in the future... long ts = TriggerUtils.getNextGivenSecondDate(null, 15).getTime(); // job1 will only fire once at date/time "ts" JobDetail job = new JobDetail("job1", "group1", SimpleJob.class); SimpleTrigger trigger = new SimpleTrigger("trigger1", "group1", new Date(ts)); // schedule it to run! Date ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // job2 will only fire once at date/time "ts" job = new JobDetail("job2", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger2", "group1", "job2", "group1", new Date(ts), null, 0, 0); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // job3 will run 11 times (run once and repeat 10 more times) // job3 will repeat every 10 seconds (10000 ms) job = new JobDetail("job3", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger3", "group1", "job3", "group1", new Date(ts), null, 10, 10000L); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // the same job (job3) will be scheduled by a another trigger // this time will only run every 70 seocnds (70000 ms) trigger = new SimpleTrigger("trigger3", "group2", "job3", "group1", new Date(ts), null, 2, 70000L); ft = sched.scheduleJob(trigger); log.info(job.getFullName() + " will [also] run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // job4 will run 6 times (run once and repeat 5 more times) // job4 will repeat every 10 seconds (10000 ms) job = new JobDetail("job4", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger4", "group1", "job4", "group1", new Date(ts), null, 5, 10000L); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // job5 will run once, five minutes past "ts" (300 seconds past "ts") job = new JobDetail("job5", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger5", "group1", "job5", "group1", new Date(ts + 300000L), null, 0, 0); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // job6 will run indefinitely, every 50 seconds job = new JobDetail("job6", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger6", "group1", "job6", "group1", new Date(ts), null, SimpleTrigger.REPEAT_INDEFINITELY, 50000L); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); log.info("------- Starting Scheduler ----------------"); // All of the jobs have been added to the scheduler, but none of the jobs // will run until the scheduler has been started sched.start(); log.info("------- Started Scheduler -----------------"); // jobs can also be scheduled after start() has been called... // job7 will repeat 20 times, repeat every five minutes job = new JobDetail("job7", "group1", SimpleJob.class); trigger = new SimpleTrigger("trigger7", "group1", "job7", "group1", new Date(ts), null, 20, 300000L); ft = sched.scheduleJob(job, trigger); log.info(job.getFullName() + " will run at: " + ft + " and repeat: " + trigger.getRepeatCount() + " times, every " + trigger.getRepeatInterval() / 1000 + " seconds"); // jobs can be fired directly... (rather than waiting for a trigger) job = new JobDetail("job8", "group1", SimpleJob.class); job.setDurability(true); sched.addJob(job, true); log.info("'Manually' triggering job8..."); sched.triggerJob("job8", "group1"); log.info("------- Waiting 30 seconds... --------------"); try { // wait 30 seconds to show jobs Thread.sleep(30L * 1000L); // executing... } catch (Exception e) { } // jobs can be re-scheduled... // job 7 will run immediately and repeat 10 times for every second log.info("------- Rescheduling... --------------------"); trigger = new SimpleTrigger("trigger7", "group1", "job7", "group1", new Date(), null, 10, 1000L); ft = sched.rescheduleJob("trigger7", "group1", trigger); log.info("job7 rescheduled to run at: " + ft); log.info("------- Waiting five minutes... ------------"); try { // wait five minutes to show jobs Thread.sleep(300L * 1000L); // executing... } catch (Exception e) { } log.info("------- Shutting Down ---------------------"); sched.shutdown(true); log.info("------- Shutdown Complete -----------------"); // display some stats about the schedule that just ran SchedulerMetaData metaData = sched.getMetaData(); log.info("Executed " + metaData.numJobsExecuted() + " jobs."); }
3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/8441c8be6e16f3f87693ab6cfeae2bf90caf7159/SimpleTriggerExample.java/buggy/examples/src/java/org/quartz/examples/example2/SimpleTriggerExample.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 5784, 6518, 10908, 18, 1106, 1769, 202, 202, 1330, 18, 1376, 2932, 17082, 10188, 6894, 12146, 413, 8863, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 27093, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 348, 13252, 26909, 300, 18753, 8863, 202, 202, 759, 6550, 848, 506, 9755, 1865, 23964, 18, 1937, 1435, 711, 2118, 2566, 202, 202, 759, 336, 279, 315, 82, 1812, 3643, 6, 813, 279, 11315, 3974, 316, 326, 3563, 2777, 202, 202, 5748, 3742, 273, 11321, 1989, 18, 588, 2134, 6083, 8211, 1626, 12, 2011, 16, 4711, 2934, 588, 950, 5621, 202, 202, 759, 1719, 21, 903, 1338, 4452, 3647, 622, 1509, 19, 957, 315, 3428, 6, 202, 202, 2278, 6109, 1719, 273, 394, 3956, 6109, 2932, 4688, 21, 3113, 315, 1655, 21, 3113, 4477, 2278, 18, 1106, 1769, 202, 202, 5784, 6518, 3080, 273, 1875, 202, 2704, 4477, 6518, 2932, 10668, 21, 3113, 315, 1655, 21, 3113, 394, 2167, 12, 3428, 10019, 202, 202, 759, 4788, 518, 358, 1086, 5, 202, 202, 1626, 11038, 273, 23964, 18, 10676, 2278, 12, 4688, 16, 3080, 1769, 202, 202, 1330, 18, 1376, 12, 4688, 18, 588, 19223, 1435, 397, 9506, 202, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 1216, 1185, 288, 202, 202, 1343, 613, 273, 1827, 1733, 18, 588, 1343, 12, 5784, 6518, 10908, 18, 1106, 1769, 202, 202, 1330, 18, 1376, 2932, 17082, 10188, 6894, 12146, 413, 8863, 202, 202, 759, 5783, 732, 1297, 336, 279, 2114, 358, 279, 8129, 202, 202, 11870, 1733, 9033, 273, 394, 6276, 11870, 1733, 5621, 202, 202, 11870, 23964, 273, 9033, 18, 588, 11870, 5621, 202, 202, 1330, 18, 1376, 2932, 17082, 26586, 14575, 27093, 8863, 202, 202, 1330, 18, 1376, 2932, 17082, 348, 13252, 26909, 300, 18753, 8863, 202, 202, 759, 6550, 848, 506, 9755, 1865, 23964, 18, 1937, 1435, 711, 2118, 2566, 202, 202, 759, 336, 279, 315, 82, 1812, 3643, 2 ]
if ( model.isErrorColumnProfile(row) )
if ( model.isErrorColumnProfile(row2) )
public TableCellRenderer getCellRenderer(int row, int column) { TableModelSortDecorator t = (TableModelSortDecorator) getModel(); ProfileTableModel model = (ProfileTableModel) t.getTableModel(); int modelColumn = convertColumnIndexToModel(column); ProfileColumn pc = ProfileColumn.values()[modelColumn]; switch(pc) { case DATABASE: case SCHEMA: case CATALOG: case TABLE: case COLUMN: SQLObjectRendererFactory objectRendererFactory = new SQLObjectRendererFactory(); if ( model.isErrorColumnProfile(row) ) objectRendererFactory.setError(true); return objectRendererFactory; case RUNDATE: return new DateRendererFactory(); case PERCENT_UNIQUE: case PERCENT_NULL: return new PercentRendererFactory(); case AVERAGE_LENGTH: return new DecimalRendererFactory(); case MIN_VALUE: case MAX_VALUE: case AVERAGE_VALUE: return new ValueRendererFactory(); case TOP_VALUE: ValueRendererFactory valueRendererFactory = new ValueRendererFactory(); StringBuffer toolTip = new StringBuffer(); List<ColumnValueCount> topNValue = model.getTopNValueAt(row); if ( topNValue != null ) { toolTip.append("<html><table>"); for ( ColumnValueCount v : topNValue ) { toolTip.append("<tr>"); toolTip.append("<td align=\"left\">"); if ( v.getValue() == null ) { toolTip.append("null"); } else { toolTip.append(v.getValue().toString()); } toolTip.append("</td>"); toolTip.append("<td>&nbsp;&nbsp;&nbsp;</td>"); toolTip.append("<td align=\"right\">"); toolTip.append(v.getCount()); toolTip.append("</td>"); toolTip.append("</tr>"); } toolTip.append("</table></html>"); valueRendererFactory.setToolTipText(toolTip.toString()); } return valueRendererFactory; default: return super.getCellRenderer(row, column); } }
53257 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53257/42f6a0a8e97fd00286c5891e7852251bcd6bc110/ProfileTable.java/clean/src/ca/sqlpower/architect/swingui/ProfileTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3555, 4020, 6747, 16458, 6747, 12, 474, 1027, 16, 509, 1057, 13, 288, 3639, 3555, 1488, 4416, 10361, 268, 273, 261, 1388, 1488, 4416, 10361, 13, 7454, 5621, 3639, 11357, 1388, 1488, 938, 273, 261, 4029, 1388, 1488, 13, 268, 18, 588, 1388, 1488, 5621, 3639, 509, 938, 1494, 273, 1765, 21689, 774, 1488, 12, 2827, 1769, 3639, 11357, 1494, 6125, 273, 11357, 1494, 18, 2372, 1435, 63, 2284, 1494, 15533, 3639, 1620, 12, 2436, 13, 288, 3639, 648, 17998, 30, 648, 22473, 30, 648, 30210, 18683, 30, 648, 7567, 30, 648, 13473, 30, 5411, 3063, 921, 6747, 1733, 733, 6747, 1733, 273, 394, 3063, 921, 6747, 1733, 5621, 5411, 309, 261, 938, 18, 291, 668, 1494, 4029, 12, 492, 22, 13, 262, 7734, 733, 6747, 1733, 18, 542, 668, 12, 3767, 1769, 5411, 327, 733, 6747, 1733, 31, 3639, 648, 15484, 4594, 30, 5411, 327, 394, 2167, 6747, 1733, 5621, 3639, 648, 10950, 19666, 67, 16879, 30, 3639, 648, 10950, 19666, 67, 8560, 30, 5411, 327, 394, 21198, 6747, 1733, 5621, 3639, 648, 432, 2204, 2833, 67, 7096, 30, 5411, 327, 394, 11322, 6747, 1733, 5621, 3639, 648, 6989, 67, 4051, 30, 3639, 648, 4552, 67, 4051, 30, 3639, 648, 432, 2204, 2833, 67, 4051, 30, 5411, 327, 394, 1445, 6747, 1733, 5621, 3639, 648, 18680, 67, 4051, 30, 5411, 1445, 6747, 1733, 460, 6747, 1733, 273, 394, 1445, 6747, 1733, 5621, 5411, 6674, 5226, 14189, 273, 394, 6674, 5621, 5411, 987, 32, 29515, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3555, 4020, 6747, 16458, 6747, 12, 474, 1027, 16, 509, 1057, 13, 288, 3639, 3555, 1488, 4416, 10361, 268, 273, 261, 1388, 1488, 4416, 10361, 13, 7454, 5621, 3639, 11357, 1388, 1488, 938, 273, 261, 4029, 1388, 1488, 13, 268, 18, 588, 1388, 1488, 5621, 3639, 509, 938, 1494, 273, 1765, 21689, 774, 1488, 12, 2827, 1769, 3639, 11357, 1494, 6125, 273, 11357, 1494, 18, 2372, 1435, 63, 2284, 1494, 15533, 3639, 1620, 12, 2436, 13, 288, 3639, 648, 17998, 30, 648, 22473, 30, 648, 30210, 18683, 30, 648, 7567, 30, 648, 13473, 30, 5411, 3063, 921, 6747, 1733, 733, 6747, 1733, 273, 394, 3063, 921, 6747, 1733, 5621, 5411, 309, 261, 938, 18, 291, 668, 1494, 2 ]
if (saveablesSourceHelper != null) { saveablesSourceHelper.dispose(); saveablesSourceHelper = null; }
public void dispose() { if (commonManager != null) { commonManager.dispose(); } if(commonActionGroup != null) { commonActionGroup.dispose(); } if (saveablesSourceHelper != null) { saveablesSourceHelper.dispose(); saveablesSourceHelper = null; } super.dispose(); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/74644d9992cb1a835eb923ff9904e153fb81045c/CommonNavigator.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/CommonNavigator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15825, 1435, 288, 202, 202, 430, 261, 6054, 1318, 480, 446, 13, 288, 1082, 202, 6054, 1318, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 12, 6054, 1803, 1114, 480, 446, 13, 288, 1082, 202, 6054, 1803, 1114, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 261, 5688, 1538, 1830, 2276, 480, 446, 13, 288, 1082, 202, 5688, 1538, 1830, 2276, 18, 2251, 4150, 5621, 1082, 202, 5688, 1538, 1830, 2276, 273, 446, 31, 202, 202, 97, 202, 202, 9565, 18, 2251, 4150, 5621, 202, 97, 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, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 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, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 15825, 1435, 288, 202, 202, 430, 261, 6054, 1318, 480, 446, 13, 288, 1082, 202, 6054, 1318, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 12, 6054, 1803, 1114, 480, 446, 13, 288, 1082, 202, 6054, 1803, 1114, 18, 2251, 4150, 5621, 202, 202, 97, 202, 202, 430, 261, 5688, 1538, 1830, 2276, 480, 446, 13, 288, 1082, 202, 5688, 1538, 1830, 2276, 18, 2251, 4150, 5621, 1082, 202, 5688, 1538, 1830, 2276, 273, 446, 31, 202, 202, 97, 202, 202, 9565, 18, 2251, 4150, 5621, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
pathBeyondViewID = pathInfo.substring(viewParameters.viewID.length());
pathBeyondViewID = pathInfo.substring(viewParameters.viewID.length() + 1);
public boolean handle() { String viewID = viewParameters.viewID; Logger.log.info("Handling view: " + viewID); String pathBeyondViewID = "" ; if (pathInfo.length() > viewID.length() + 1) { pathBeyondViewID = pathInfo.substring(viewParameters.viewID.length()); } if (Logger.log.isInfoEnabled()) { Logger.log.info("pathInfo: " + pathInfo + " pathBeyondViewID: " + pathBeyondViewID); } if (pathBeyondViewID.startsWith(HELPER_FINISHED_PATH)) { return handleHelperDone(); } if (pathBeyondViewID.startsWith(IN_HELPER_PATH)) { return handleHelperHelper(pathBeyondViewID); } return handleHelperStart(); }
46221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46221/c6fc8892a1bb06055d80a4b0669dbe7ee324e5bb/HelperHandlerHookBean.java/buggy/src/java/uk/ac/cam/caret/sakai/rsf/helper/HelperHandlerHookBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1640, 1435, 288, 202, 202, 780, 1476, 734, 273, 1476, 2402, 18, 1945, 734, 31, 202, 202, 3328, 18, 1330, 18, 1376, 2932, 14701, 1476, 30, 315, 397, 1476, 734, 1769, 9506, 202, 780, 589, 38, 17029, 1767, 734, 273, 1408, 274, 202, 202, 430, 261, 803, 966, 18, 2469, 1435, 405, 1476, 734, 18, 2469, 1435, 397, 404, 13, 288, 1082, 202, 803, 38, 17029, 1767, 734, 273, 17058, 18, 28023, 12, 1945, 2402, 18, 1945, 734, 18, 2469, 10663, 202, 202, 97, 202, 202, 430, 261, 3328, 18, 1330, 18, 291, 966, 1526, 10756, 288, 1082, 202, 3328, 18, 1330, 18, 1376, 2932, 803, 966, 30, 315, 397, 17058, 397, 315, 589, 38, 17029, 1767, 734, 30, 315, 397, 589, 38, 17029, 1767, 734, 1769, 202, 202, 97, 202, 202, 430, 261, 803, 38, 17029, 1767, 734, 18, 17514, 1190, 12, 20264, 3194, 67, 23259, 2056, 67, 4211, 3719, 288, 1082, 202, 2463, 1640, 2276, 7387, 5621, 202, 202, 97, 9506, 202, 430, 261, 803, 38, 17029, 1767, 734, 18, 17514, 1190, 12, 706, 67, 20264, 3194, 67, 4211, 3719, 288, 1082, 202, 2463, 1640, 2276, 2276, 12, 803, 38, 17029, 1767, 734, 1769, 202, 202, 97, 9506, 202, 2463, 1640, 2276, 1685, 5621, 202, 97, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1640, 1435, 288, 202, 202, 780, 1476, 734, 273, 1476, 2402, 18, 1945, 734, 31, 202, 202, 3328, 18, 1330, 18, 1376, 2932, 14701, 1476, 30, 315, 397, 1476, 734, 1769, 9506, 202, 780, 589, 38, 17029, 1767, 734, 273, 1408, 274, 202, 202, 430, 261, 803, 966, 18, 2469, 1435, 405, 1476, 734, 18, 2469, 1435, 397, 404, 13, 288, 1082, 202, 803, 38, 17029, 1767, 734, 273, 17058, 18, 28023, 12, 1945, 2402, 18, 1945, 734, 18, 2469, 10663, 202, 202, 97, 202, 202, 430, 261, 3328, 18, 1330, 18, 291, 966, 1526, 10756, 288, 1082, 202, 3328, 18, 1330, 18, 1376, 2932, 803, 966, 30, 315, 397, 17058, 397, 315, 589, 38, 2 ]
assert decl != null;
assert declarationStatement != null;
private static String createCollectionIterationText( @NotNull PsiForStatement forStatement) throws IncorrectOperationException{ final String text = forStatement.getText(); final int length = text.length(); @NonNls final StringBuffer out = new StringBuffer(length); final PsiStatement body = forStatement.getBody(); final PsiStatement firstStatement = getFirstStatement(body); final PsiStatement initialization = forStatement.getInitialization(); final PsiDeclarationStatement declaration = (PsiDeclarationStatement) initialization; if (declaration == null) { return null; } final PsiLocalVariable iterator = (PsiLocalVariable) declaration.getDeclaredElements()[0]; final PsiClassType iteratorType = (PsiClassType) iterator.getType(); final PsiType[] iteratorTypeParameters = iteratorType .getParameters(); PsiType iteratedContentsType = null; if(iteratorTypeParameters.length == 1){ final PsiType parameterType = iteratorTypeParameters[0]; if(parameterType instanceof PsiWildcardType){ final PsiWildcardType wildcardType = (PsiWildcardType) parameterType; iteratedContentsType = wildcardType.getExtendsBound(); } else{ iteratedContentsType = parameterType; } } final PsiMethodCallExpression initializer = (PsiMethodCallExpression) iterator.getInitializer(); if (initializer == null) { return null; } final PsiReferenceExpression methodExpression = initializer.getMethodExpression(); final PsiExpression collection = methodExpression.getQualifierExpression(); if (collection == null) { return null; } final PsiClassType collectionType = (PsiClassType) collection.getType(); if (collectionType == null) { return null; } final PsiType[] parameters = collectionType.getParameters(); final String collectionContentsTypeString; if(parameters.length == 1){ final PsiType parameterType = parameters[0]; if(parameterType instanceof PsiWildcardType){ final PsiWildcardType wildcardType = (PsiWildcardType) parameterType; final PsiType bound = wildcardType.getExtendsBound(); collectionContentsTypeString = bound.getCanonicalText(); } else if(parameterType != null){ collectionContentsTypeString = parameterType .getCanonicalText(); } else{ collectionContentsTypeString = "java.lang.Object"; } } else{ collectionContentsTypeString = "java.lang.Object"; } final String contentTypeString; if(iteratedContentsType != null){ contentTypeString = iteratedContentsType.getCanonicalText(); } else{ contentTypeString = collectionContentsTypeString; } final PsiManager psiManager = forStatement.getManager(); final PsiElementFactory elementFactory = psiManager.getElementFactory(); final PsiType contentType = elementFactory.createTypeFromText(contentTypeString, forStatement); final String iteratorName = iterator.getName(); final boolean isDeclaration = isIteratorNextDeclaration(firstStatement, iteratorName, contentTypeString); final PsiStatement statementToSkip; @NonNls final String finalString; final String contentVariableName; if(isDeclaration){ final PsiDeclarationStatement decl = (PsiDeclarationStatement) firstStatement; assert decl != null; final PsiElement[] declaredElements = decl.getDeclaredElements(); final PsiLocalVariable localVar = (PsiLocalVariable) declaredElements[0]; contentVariableName = localVar.getName(); statementToSkip = decl; if(localVar.hasModifierProperty(PsiModifier.FINAL)){ finalString = "final "; } else{ finalString = ""; } } else{ if(collection instanceof PsiReferenceExpression){ final PsiReferenceExpression referenceExpression = (PsiReferenceExpression)collection; final String collectionName = referenceExpression.getReferenceName(); contentVariableName = createNewVarName(forStatement, contentType, collectionName); } else{ contentVariableName = createNewVarName(forStatement, contentType, null); } final Project project = forStatement.getProject(); final CodeStyleSettings codeStyleSettings = CodeStyleSettingsManager.getSettings(project); if(codeStyleSettings.GENERATE_FINAL_LOCALS){ finalString = "final "; } else{ finalString = ""; } statementToSkip = null; } @NonNls final String iterableTypeString = "java.lang.Iterable<" + contentTypeString + '>'; final PsiManager manager = forStatement.getManager(); final PsiElementFactory factory = manager.getElementFactory(); final PsiType collectionContentsType = factory .createTypeFromText(collectionContentsTypeString, forStatement); final String castString; if(iteratedContentsType == null || iteratedContentsType .isAssignableFrom(collectionContentsType)){ castString = ""; } else{ castString = '(' + iterableTypeString + ')'; } out.append("for("); out.append(finalString); out.append(contentTypeString); out.append(' '); out.append(contentVariableName); out.append(": "); out.append(castString); out.append(collection.getText()); out.append(')'); replaceIteratorNext(body, contentVariableName, iteratorName, statementToSkip, out, contentTypeString); return out.toString(); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/9c59a0ba1e8fc5685a99bd20714c4dfa226d5c4c/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 760, 514, 752, 2532, 10795, 1528, 12, 7734, 632, 5962, 453, 7722, 1290, 3406, 364, 3406, 13, 7734, 1216, 657, 6746, 10602, 95, 5411, 727, 514, 977, 273, 364, 3406, 18, 588, 1528, 5621, 5411, 727, 509, 769, 273, 977, 18, 2469, 5621, 5411, 632, 3989, 50, 3251, 727, 6674, 596, 273, 394, 6674, 12, 2469, 1769, 5411, 727, 453, 7722, 3406, 1417, 273, 364, 3406, 18, 588, 2250, 5621, 5411, 727, 453, 7722, 3406, 1122, 3406, 273, 7521, 3406, 12, 3432, 1769, 5411, 727, 453, 7722, 3406, 10313, 273, 10792, 364, 3406, 18, 588, 17701, 5621, 5411, 727, 453, 7722, 6094, 3406, 8266, 273, 10792, 261, 52, 7722, 6094, 3406, 13, 10313, 31, 5411, 309, 261, 22448, 422, 446, 13, 288, 7734, 327, 446, 31, 5411, 289, 5411, 727, 453, 7722, 2042, 3092, 2775, 273, 10792, 261, 52, 7722, 2042, 3092, 13, 8266, 18, 588, 18888, 3471, 1435, 63, 20, 15533, 5411, 727, 453, 7722, 18328, 2775, 559, 273, 261, 52, 7722, 18328, 13, 2775, 18, 588, 559, 5621, 5411, 727, 453, 7722, 559, 8526, 2775, 559, 2402, 273, 2775, 559, 10792, 263, 588, 2402, 5621, 5411, 453, 7722, 559, 29873, 6323, 559, 273, 446, 31, 5411, 309, 12, 9838, 559, 2402, 18, 2469, 422, 404, 15329, 7734, 727, 453, 7722, 559, 28240, 273, 2775, 559, 2402, 63, 20, 15533, 7734, 309, 12, 6775, 559, 1276, 453, 7722, 12121, 559, 15329, 10792, 727, 453, 7722, 12121, 559, 8531, 559, 273, 18701, 261, 52, 7722, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3238, 760, 514, 752, 2532, 10795, 1528, 12, 7734, 632, 5962, 453, 7722, 1290, 3406, 364, 3406, 13, 7734, 1216, 657, 6746, 10602, 95, 5411, 727, 514, 977, 273, 364, 3406, 18, 588, 1528, 5621, 5411, 727, 509, 769, 273, 977, 18, 2469, 5621, 5411, 632, 3989, 50, 3251, 727, 6674, 596, 273, 394, 6674, 12, 2469, 1769, 5411, 727, 453, 7722, 3406, 1417, 273, 364, 3406, 18, 588, 2250, 5621, 5411, 727, 453, 7722, 3406, 1122, 3406, 273, 7521, 3406, 12, 3432, 1769, 5411, 727, 453, 7722, 3406, 10313, 273, 10792, 364, 3406, 18, 588, 17701, 5621, 5411, 727, 453, 7722, 6094, 3406, 8266, 273, 10792, 261, 52, 7722, 6094, 3406, 13, 10313, 31, 5411, 309, 261, 2 ]
String status = null;
public boolean readRichSequence(BufferedReader reader, SymbolTokenization symParser, RichSeqIOListener rlistener, Namespace ns) throws IllegalSymbolException, IOException, ParseException { String line; boolean hasAnotherSequence = true; //boolean hasInternalWhitespace = false; rlistener.startSequence(); if (ns==null) ns=RichObjectFactory.getDefaultNamespace(); rlistener.setNamespace(ns); // Get an ordered list of key->value pairs in array-tuples String sectionKey = null; NCBITaxon tax = null; String organism = null; String accession = null; int xrefCount = 0; do { List section = this.readSection(reader); sectionKey = ((String[])section.get(0))[0]; if(sectionKey == null){ throw new ParseException("Section key was null. Accession:"+ accession == null ? "Not set" : accession); } // process section-by-section if (sectionKey.equals(LOCUS_TAG)) { // entryname dataclass; moltype; sequencelength AA. String loc = ((String[])section.get(0))[1]; Matcher m = lp.matcher(loc); if (m.matches()) { rlistener.setName(m.group(2)); rlistener.setDivision(m.group(3)); rlistener.addSequenceProperty(Terms.getDataClassTerm(),m.group(4)); rlistener.addSequenceProperty(Terms.getMolTypeTerm(),m.group(5)); } else { throw new ParseException("Bad ID line found: "+loc); } } else if (sectionKey.equals(DEFINITION_TAG)) { String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot rlistener.setDescription(val); } else if (sectionKey.equals(SOURCE_TAG)) { // use SOURCE_TAG and TAXON_TAG values String sciname = null; String comname = null; List synonym = new ArrayList(); int taxid = 0; for (int i = 0; i < section.size(); i++) { String tag = ((String[])section.get(i))[0]; String value = ((String[])section.get(i))[1].trim(); if (tag.equals(SOURCE_TAG)) { if (value.endsWith(".")) value = value.substring(0,value.length()-1); // chomp trailing dot String[] parts = value.split("\\("); sciname = parts[0].trim(); if (parts.length>1) { comname = parts[1].trim(); if (comname.endsWith(")")) comname = comname.substring(0,comname.length()-1); // chomp trailing bracket if (parts.length>2) { // synonyms for (int j = 2 ; j < parts.length; j++) { String syn = parts[j].trim(); if (syn.endsWith(")")) syn = syn.substring(0,syn.length()-1); // chomp trailing bracket synonym.add(syn); } } } } else if (tag.equals(TAXON_TAG)) { String[] parts = value.split(";"); for (int j = 0; j < parts.length; j++) { String[] bits = parts[j].split("="); if (bits[0].equals("NCBI_TaxID")) { String[] morebits = bits[1].split(","); taxid = Integer.parseInt(morebits[0].trim()); } } } else if (tag.equals(ORGANELLE_TAG)) { if (value.endsWith(".")) value = value.substring(0,value.length()-1); // chomp trailing dot String[] parts = value.split(";"); for (int j = 0; j < parts.length; j++) { parts[j]=parts[j].trim(); rlistener.addSequenceProperty(Terms.getOrganelleTerm(),parts[j]); } } } // Set the Taxon tax = (NCBITaxon)RichObjectFactory.getObject(SimpleNCBITaxon.class, new Object[]{new Integer(taxid)}); rlistener.setTaxon(tax); try { if (sciname!=null) tax.addName(NCBITaxon.SCIENTIFIC,sciname); if (comname!=null) tax.addName(NCBITaxon.COMMON,comname); for (Iterator j = synonym.iterator(); j.hasNext(); ) tax.addName(NCBITaxon.SYNONYM, (String)j.next()); } catch (ChangeVetoException e) { throw new ParseException(e); } } else if (sectionKey.equals(DATE_TAG)) { String chunk = ((String[])section.get(0))[1]; Matcher dm = dp.matcher(chunk); if (dm.matches()) { String date = dm.group(1).trim(); String type = dm.group(2).trim(); String rel = dm.group(3); if (rel!=null) rel = rel.trim(); if (type.startsWith("integrated into UniProtKB")) { String dbname = type.split("/")[1]; rlistener.addSequenceProperty(Terms.getDateCreatedTerm(), date); rlistener.addSequenceProperty(Terms.getUniProtDBNameTerm(), dbname); } else if (type.equalsIgnoreCase("sequence version")) { if (rel==null) throw new ParseException("Version missing for "+type); rlistener.addSequenceProperty(Terms.getDateUpdatedTerm(), date); rlistener.addSequenceProperty(Terms.getRelUpdatedTerm(), rel); } else if (type.equalsIgnoreCase("entry version")) { if (rel==null) throw new ParseException("Version missing for "+type); rlistener.addSequenceProperty(Terms.getDateAnnotatedTerm(), date); rlistener.addSequenceProperty(Terms.getRelAnnotatedTerm(), rel); } else throw new ParseException("Bad date type found: "+type); } else throw new ParseException("Bad date line found: "+chunk); } else if (sectionKey.equals(ACCESSION_TAG)) { // if multiple accessions, store only first as accession, // and store rest in annotation String[] accs = ((String[])section.get(0))[1].split(";"); accession = accs[0].trim(); rlistener.setAccession(accession); for (int i = 1; i < accs.length; i++) { rlistener.addSequenceProperty(Terms.getAdditionalAccessionTerm(),accs[i].trim()); } } else if (sectionKey.equals(KEYWORDS_TAG)) { String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot String[] kws = val.split(";"); for (int i = 0; i < kws.length; i++) { String kw = kws[i].trim(); if (kw.length()==0) continue; rlistener.addSequenceProperty(Terms.getKeywordTerm(), kw); } } else if (sectionKey.equals(GENE_TAG)) { String[] genes = ((String[])section.get(0))[1].split("\\s+(or|and)\\s+"); for (int geneID = 0; geneID < genes.length; geneID++) { String[] parts = genes[geneID].split(";"); for (int j = 0; j < parts.length; j++) { String[] moreparts = parts[j].split("="); String[] values = moreparts[1].split(","); // nasty hack - we really should have notes on the gene object itself... if such a thing existed... if (moreparts[0].trim().equals(Terms.GENENAME_KEY)) rlistener.addSequenceProperty(Terms.getGeneNameTerm(),geneID+":"+values[0].trim()); else if (moreparts[0].trim().equals(Terms.GENESYNONYM_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getGeneSynonymTerm(),geneID+":"+values[k].trim()); } else if (moreparts[0].trim().equals(Terms.ORDLOCNAME_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getOrderedLocusNameTerm(),geneID+":"+values[k].trim()); } else if (moreparts[0].trim().equals(Terms.ORFNAME_KEY)) { for (int k = 0; k < values.length; k++) rlistener.addSequenceProperty(Terms.getORFNameTerm(),geneID+":"+values[k].trim()); } } } } else if (sectionKey.equals(DATABASE_XREF_TAG)) { // database_identifier; primary_identifier; secondary_identifier.... String val = ((String[])section.get(0))[1]; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot String[] parts = val.split(";"); // construct a DBXREF out of the dbname part[0] and accession part[1] String dbname = parts[0].trim(); String acc = parts[1].trim(); CrossRef crossRef = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{dbname,acc,new Integer(0)}); // assign remaining bits of info as additional accession annotations for (int j = 2; j < parts.length; j++) { ComparableTerm t = (ComparableTerm)Terms.getAdditionalAccessionTerm(); Note note = new SimpleNote(t,parts[j].trim(),j); try { ((RichAnnotation)crossRef.getAnnotation()).addNote(note); } catch (ChangeVetoException ce) { ParseException pe = new ParseException("Could not annotate additional accession terms"); pe.initCause(ce); throw pe; } } RankedCrossRef rcrossRef = new SimpleRankedCrossRef(crossRef, ++xrefCount); rlistener.setRankedCrossRef(rcrossRef); } else if (sectionKey.equals(REFERENCE_TAG) && !this.getElideReferences()) { // first line of section has rank and location String refrank = ((String[])section.get(0))[1]; int ref_rank = Integer.parseInt(refrank.substring(1,refrank.length()-1)); // rest can be in any order String authors = null; String consortium = null; String title = null; String locator = null; String pubmed = null; String medline = null; String doi = null; String remark = null; Integer rstart = null; Integer rend = null; for (int i = 1; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; //System.err.println(key+": "+val); if (key.equals(AUTHORS_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon authors = val; } if (key.equals(CONSORTIUM_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon consortium = val; } if (key.equals(TITLE_TAG)) { if (val.endsWith(";")) val = val.trim().substring(0, val.length()-1); // chomp semicolon if (val.endsWith("\"")) val = val.trim().substring(1, val.length()-2); // chomp quotes title = val; } if (key.equals(LOCATION_TAG)) { if (val.endsWith(".")) val = val.trim().substring(0, val.length()-1); // chomp dot locator = val; } if (key.equals(REFERENCE_XREF_TAG)) { // database_identifier=primary_identifier; String[] refs = val.split(";"); for (int j = 0 ; j < refs.length; j++) { if (refs[j].trim().length()==0) continue; String[] parts = refs[j].split("="); String db = parts[0]; String ref = parts[1]; if (db.equalsIgnoreCase(Terms.PUBMED_KEY)) pubmed = ref; else if (db.equalsIgnoreCase(Terms.MEDLINE_KEY)) medline = ref; else if (db.equalsIgnoreCase(Terms.DOI_KEY)) doi = ref; } } if (key.equals(RP_LINE_TAG)) { remark = val; if (val.endsWith(".")) val = val.substring(0, val.length()-1); // chomp dot // Try to use it to find the location of the reference, if we have one. Matcher m = rppat.matcher(val); if (m.matches()) { rstart = Integer.valueOf(m.group(1)); rend = Integer.valueOf(m.group(2)); } } if (key.equals(RC_LINE_TAG)) { // Split into key=value pairs separated by semicolons and terminated with semicolon. String[] parts = val.split(";"); for (int j = 0; j < parts.length; j++) { String[] subparts = parts[j].split("="); // get term for first section String termName = subparts[0].trim(); Term t; if (termName.equalsIgnoreCase(Terms.SPECIES_KEY)) t = Terms.getSpeciesTerm(); else if (termName.equalsIgnoreCase(Terms.STRAIN_KEY)) t = Terms.getStrainTerm(); else if (termName.equalsIgnoreCase(Terms.TISSUE_KEY)) t = Terms.getTissueTerm(); else if (termName.equalsIgnoreCase(Terms.TRANSPOSON_KEY)) t = Terms.getTransposonTerm(); else if (termName.equalsIgnoreCase(Terms.PLASMID_KEY)) t = Terms.getPlasmidTerm(); else throw new ParseException("Invalid RC term found: "+termName); // assign notes using term and rank:second section as value // nasty hack - we really should have notes on the reference itself. rlistener.addSequenceProperty(t, ref_rank+":"+subparts[1].trim()); } } } // create the pubmed crossref and assign to the bioentry CrossRef pcr = null; if (pubmed!=null) { pcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.PUBMED_KEY, pubmed, new Integer(0)}); RankedCrossRef rpcr = new SimpleRankedCrossRef(pcr, 0); rlistener.setRankedCrossRef(rpcr); } // create the medline crossref and assign to the bioentry CrossRef mcr = null; if (medline!=null) { mcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.MEDLINE_KEY, medline, new Integer(0)}); RankedCrossRef rmcr = new SimpleRankedCrossRef(mcr, 0); rlistener.setRankedCrossRef(rmcr); } // create the doi crossref and assign to the bioentry CrossRef dcr = null; if (doi!=null) { dcr = (CrossRef)RichObjectFactory.getObject(SimpleCrossRef.class,new Object[]{Terms.DOI_KEY, doi, new Integer(0)}); RankedCrossRef rdcr = new SimpleRankedCrossRef(dcr, 0); rlistener.setRankedCrossRef(rdcr); } // create the docref object try { List auths = null; if(authors != null) auths = DocRefAuthor.Tools.parseAuthorString(authors); if (consortium!=null){ if(auths == null) auths = new ArrayList(); auths.add(new SimpleDocRefAuthor(consortium,true,false)); } DocRef dr = (DocRef)RichObjectFactory.getObject(SimpleDocRef.class,new Object[]{auths,locator}); if (title!=null) dr.setTitle(title); // assign either the pubmed or medline to the docref - medline gets priority, then pubmed, then doi if (mcr!=null) dr.setCrossref(mcr); else if (pcr!=null) dr.setCrossref(pcr); else if (dcr!=null) dr.setCrossref(dcr); // assign the remarks if (!this.getElideComments()) dr.setRemark(remark); // assign the docref to the bioentry RankedDocRef rdr = new SimpleRankedDocRef(dr,rstart,rend,ref_rank); rlistener.setRankedDocRef(rdr); } catch (ChangeVetoException e) { throw new ParseException(e); } } else if (sectionKey.equals(COMMENT_TAG) && !this.getElideComments()) { // Set up some comments String val = ((String[])section.get(0))[1]; if (UniProtCommentParser.isParseable(val)) rlistener.setComment(val); else { // copyright message rlistener.addSequenceProperty(Terms.getCopyrightTerm(), val); } } else if (sectionKey.equals(FEATURE_TAG) && !this.getElideFeatures()) { // starting from second line of input, start a new feature whenever we come across // a key that does not start with / boolean seenAFeature = false; for (int i = 1 ; i < section.size(); i++) { String key = ((String[])section.get(i))[0]; String val = ((String[])section.get(i))[1]; val = val.trim(); if (val.endsWith(".")) val = val.substring(0,val.length()-1); // chomp dot if (key.startsWith("/")) { key = key.substring(1); // strip leading slash if (key.equals("FTId")) rlistener.addFeatureProperty(Terms.getFTIdTerm(),val); else { // should never happen - but here just in case rlistener.addFeatureProperty(RichObjectFactory.getDefaultOntology().getOrCreateTerm(key),val); } } else { // new feature! // end previous feature if (seenAFeature) rlistener.endFeature(); // start next one, with lots of lovely info in it RichFeature.Template templ = new RichFeature.Template(); templ.annotation = new SimpleRichAnnotation(); templ.sourceTerm = Terms.getUniProtTerm(); templ.typeTerm = RichObjectFactory.getDefaultOntology().getOrCreateTerm(key); templ.featureRelationshipSet = new TreeSet(); templ.rankedCrossRefs = new TreeSet(); String desc = null; String status = null; val = val.replaceAll("\n", " "); // Nasty hack but we have to do this, sadly. Matcher m = fp.matcher(val); if (m.matches()) { String loc = m.group(1); desc = m.group(3); templ.location = UniProtLocationParser.parseLocation(loc); } else { System.err.println("XX"+val+"XX"); throw new ParseException("Bad feature value: "+val); } rlistener.startFeature(templ); if (desc!=null) rlistener.addFeatureProperty(Terms.getFeatureDescTerm(),desc); seenAFeature = true; } } if (seenAFeature) rlistener.endFeature(); } else if (sectionKey.equals(START_SEQUENCE_TAG) && !this.getElideSymbols()) { StringBuffer seq = new StringBuffer(); for (int i = 0 ; i < section.size(); i++) seq.append(((String[])section.get(i))[1]); try { SymbolList sl = new SimpleSymbolList(symParser, seq.toString().replaceAll("\\s+","").replaceAll("[\\.|~]","-")); rlistener.addSymbols(symParser.getAlphabet(), (Symbol[])(sl.toList().toArray(new Symbol[0])), 0, sl.length()); } catch (Exception e) { throw new ParseException(e); } } } while (!sectionKey.equals(END_SEQUENCE_TAG)); // Allows us to tolerate trailing whitespace without // thinking that there is another Sequence to follow while (true) { reader.mark(1); int c = reader.read(); if (c == -1) { hasAnotherSequence = false; break; } if (Character.isWhitespace((char) c)) { //hasInternalWhitespace = true; continue; } //if (hasInternalWhitespace) //System.err.println("Warning: whitespace found between sequence entries"); reader.reset(); break; } // Finish up. rlistener.endSequence(); return hasAnotherSequence; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/05b36241610b2e40a85168dccc182f8d5f51e4de/UniProtFormat.java/clean/src/org/biojavax/bio/seq/io/UniProtFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 855, 22591, 4021, 12, 17947, 2514, 2949, 16, 5411, 8565, 1345, 1588, 5382, 2678, 16, 5411, 534, 1354, 6926, 4294, 2223, 436, 12757, 16, 5411, 6005, 3153, 13, 5411, 1216, 2141, 5335, 503, 16, 1860, 16, 10616, 288, 7734, 514, 980, 31, 3639, 1250, 711, 37, 24413, 4021, 273, 638, 31, 3639, 368, 6494, 711, 3061, 9431, 273, 629, 31, 7734, 436, 12757, 18, 1937, 4021, 5621, 7734, 309, 261, 2387, 631, 2011, 13, 3153, 33, 22591, 921, 1733, 18, 588, 1868, 3402, 5621, 3639, 436, 12757, 18, 542, 3402, 12, 2387, 1769, 7734, 368, 968, 392, 5901, 666, 434, 498, 2122, 1132, 5574, 316, 526, 17, 17705, 3639, 514, 2442, 653, 273, 446, 31, 3639, 423, 8876, 1285, 651, 265, 5320, 273, 446, 31, 3639, 514, 15501, 6228, 273, 446, 31, 3639, 514, 2006, 285, 273, 446, 31, 3639, 509, 15187, 1380, 273, 374, 31, 3639, 741, 288, 5411, 987, 2442, 273, 333, 18, 896, 5285, 12, 10530, 1769, 5411, 2442, 653, 273, 14015, 780, 63, 5717, 3464, 18, 588, 12, 20, 3719, 63, 20, 15533, 5411, 309, 12, 3464, 653, 422, 446, 15329, 7734, 604, 394, 10616, 2932, 5285, 498, 1703, 446, 18, 5016, 285, 2773, 15, 13491, 2006, 285, 422, 446, 692, 315, 1248, 444, 6, 294, 2006, 285, 1769, 5411, 289, 5411, 368, 1207, 2442, 17, 1637, 17, 3464, 5411, 309, 261, 3464, 653, 18, 14963, 12, 29450, 3378, 67, 7927, 3719, 288, 7734, 368, 1241, 529, 225, 501, 1106, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 855, 22591, 4021, 12, 17947, 2514, 2949, 16, 5411, 8565, 1345, 1588, 5382, 2678, 16, 5411, 534, 1354, 6926, 4294, 2223, 436, 12757, 16, 5411, 6005, 3153, 13, 5411, 1216, 2141, 5335, 503, 16, 1860, 16, 10616, 288, 7734, 514, 980, 31, 3639, 1250, 711, 37, 24413, 4021, 273, 638, 31, 3639, 368, 6494, 711, 3061, 9431, 273, 629, 31, 7734, 436, 12757, 18, 1937, 4021, 5621, 7734, 309, 261, 2387, 631, 2011, 13, 3153, 33, 22591, 921, 1733, 18, 588, 1868, 3402, 5621, 3639, 436, 12757, 18, 542, 3402, 12, 2387, 1769, 7734, 368, 968, 392, 5901, 666, 434, 498, 2122, 1132, 5574, 316, 526, 17, 17705, 3639, 514, 2442, 653, 273, 446, 31, 3639, 2 ]
TraceClassVisitor tv = new TraceClassVisitor( cw, new PrintWriter( System.err)) { protected TraceMethodVisitor createTraceMethodVisitor() { return new TraceMethodVisitor() { protected void appendLabel( Label l) { super.appendLabel(l); buf.append( " "+System.identityHashCode( l)); } }; } };
public void test() throws Exception { Attribute[] tattributes = new Attribute[] { new StubStackMapTableAttribute()}; Attribute[] attributes = new Attribute[] { new StackMapTableAttribute()}; ClassWriter cw = new ClassWriter( false); TraceClassVisitor tv = new TraceClassVisitor( cw, new PrintWriter( System.err)) { protected TraceMethodVisitor createTraceMethodVisitor() { return new TraceMethodVisitor() { protected void appendLabel( Label l) { super.appendLabel(l); buf.append( " "+System.identityHashCode( l)); } }; } }; ClassReader cr1 = new ClassReader( is); cr1.accept( tv, attributes, false); ClassReader cr2 = new ClassReader( cw.toByteArray()); if(!Arrays.equals(cr1.b, cr2.b)) { StringWriter sw1 = new StringWriter(); StringWriter sw2 = new StringWriter(); ClassVisitor cv1 = new TraceClassVisitor(new PrintWriter(sw1)); ClassVisitor cv2 = new TraceClassVisitor(new PrintWriter(sw2)); cr1.accept( cv1, attributes, false); cr2.accept( cv2, attributes, false); assertEquals("different data", sw1.toString(), sw2.toString()); } }
392 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/392/45df8e02b4bf1bc8313d51eb04cd138cf7fbf651/StackMapTableAttributeTest.java/clean/test/conform/org/objectweb/asm/attrs/StackMapTableAttributeTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 1435, 1216, 1185, 288, 565, 3601, 8526, 268, 4350, 273, 394, 3601, 8526, 288, 394, 26483, 2624, 863, 1388, 1499, 17767, 31, 565, 3601, 8526, 1677, 273, 394, 3601, 8526, 288, 394, 7283, 863, 1388, 1499, 17767, 31, 3639, 31807, 14098, 273, 394, 31807, 12, 629, 1769, 565, 2677, 797, 7413, 13521, 273, 394, 2677, 797, 7413, 12, 14098, 16, 394, 14071, 12, 2332, 18, 370, 3719, 288, 3639, 4750, 2677, 1305, 7413, 752, 3448, 1305, 7413, 1435, 288, 1850, 327, 394, 2677, 1305, 7413, 1435, 288, 2868, 4750, 918, 714, 2224, 12, 5287, 328, 13, 288, 7734, 2240, 18, 6923, 2224, 12, 80, 1769, 7734, 1681, 18, 6923, 12, 315, 13773, 3163, 18, 10781, 21952, 12, 328, 10019, 2868, 289, 5411, 289, 31, 3639, 289, 1377, 289, 31, 3639, 1659, 2514, 4422, 21, 273, 394, 1659, 2514, 12, 353, 1769, 565, 4422, 21, 18, 9436, 12, 13521, 16, 1677, 16, 629, 1769, 3639, 1659, 2514, 4422, 22, 273, 394, 1659, 2514, 12, 14098, 18, 869, 8826, 10663, 3639, 309, 12, 5, 12726, 18, 14963, 12, 3353, 21, 18, 70, 16, 4422, 22, 18, 70, 3719, 288, 7734, 17436, 1352, 21, 273, 394, 17436, 5621, 1377, 17436, 1352, 22, 273, 394, 17436, 5621, 1377, 1659, 7413, 8951, 21, 273, 394, 2677, 797, 7413, 12, 2704, 14071, 12, 5328, 21, 10019, 1377, 1659, 7413, 8951, 22, 273, 394, 2677, 797, 7413, 12, 2704, 14071, 12, 5328, 22, 10019, 1377, 4422, 21, 18, 9436, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1842, 1435, 1216, 1185, 288, 565, 3601, 8526, 268, 4350, 273, 394, 3601, 8526, 288, 394, 26483, 2624, 863, 1388, 1499, 17767, 31, 565, 3601, 8526, 1677, 273, 394, 3601, 8526, 288, 394, 7283, 863, 1388, 1499, 17767, 31, 3639, 31807, 14098, 273, 394, 31807, 12, 629, 1769, 565, 2677, 797, 7413, 13521, 273, 394, 2677, 797, 7413, 12, 14098, 16, 394, 14071, 12, 2332, 18, 370, 3719, 288, 3639, 4750, 2677, 1305, 7413, 752, 3448, 1305, 7413, 1435, 288, 1850, 327, 394, 2677, 1305, 7413, 1435, 288, 2868, 4750, 918, 714, 2224, 12, 5287, 328, 13, 288, 7734, 2240, 18, 6923, 2224, 12, 80, 1769, 7734, 1681, 18, 6923, 12, 315, 13773, 3163, 18, 10781, 2 ]
else { scriptable = makeJavaScriptObject(javaScriptClassName); } scriptable.setDomNode(domNode); scriptable.setParentScope(ScriptableObject.getTopLevelScope((Scriptable) domNode.getPage().getScriptObject())); return scriptable;
public SimpleScriptable makeScriptableFor(final DomNode domNode) { // Get the JS class name for the specified DOM node. // Walk up the inheritance chain if necessary. String javaScriptClassName = null; for( Class c = domNode.getClass(); javaScriptClassName == null && c != null; c = c.getSuperclass() ) { javaScriptClassName = (String) getHtmlJavaScriptMapping().get( c ); } final SimpleScriptable scriptable; if (javaScriptClassName == null) { // We don't have a specific subclass for this element so create something generic. scriptable = makeJavaScriptObject("HTMLElement"); getLog().debug("No javascript class found for element <"+domNode.getNodeName()+">. Using HTMLElement"); } else { scriptable = makeJavaScriptObject(javaScriptClassName); } scriptable.setDomNode(domNode); // parent scope needs to be set to "window" (no simple unit test found to illustrate the necessity) // if navigation has continued, the window may contain an other page as the on to which the current node // belongs to // see test JavaScriptEngineTest#testScopeInInactivePage scriptable.setParentScope(ScriptableObject.getTopLevelScope((Scriptable) domNode.getPage().getScriptObject())); return scriptable; }
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/a29b4d215e65ac8211b0fc8aaf4d375d3c5c55c3/SimpleScriptable.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/javascript/SimpleScriptable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4477, 3651, 429, 1221, 3651, 429, 1290, 12, 6385, 12965, 907, 24984, 13, 288, 3639, 368, 968, 326, 6756, 667, 508, 364, 326, 1269, 4703, 756, 18, 3639, 368, 7564, 731, 326, 16334, 2687, 309, 4573, 18, 3639, 514, 2252, 3651, 3834, 273, 446, 31, 3639, 364, 12, 1659, 276, 273, 24984, 18, 588, 797, 5621, 2252, 3651, 3834, 422, 446, 597, 276, 480, 446, 31, 276, 273, 276, 18, 588, 28471, 1435, 262, 288, 5411, 2252, 3651, 3834, 273, 261, 780, 13, 19633, 16634, 3233, 7675, 588, 12, 276, 11272, 3639, 289, 3639, 727, 4477, 3651, 429, 2728, 429, 31, 3639, 309, 261, 6290, 3651, 3834, 422, 446, 13, 288, 5411, 368, 1660, 2727, 1404, 1240, 279, 2923, 10177, 364, 333, 930, 1427, 752, 5943, 5210, 18, 5411, 2728, 429, 273, 1221, 16634, 921, 2932, 5062, 11155, 8863, 5411, 9189, 7675, 4148, 2932, 2279, 11341, 667, 1392, 364, 930, 411, 6, 15, 9859, 907, 18, 588, 18948, 1435, 15, 6441, 18, 11637, 19408, 11155, 8863, 3639, 289, 3639, 469, 288, 5411, 2728, 429, 273, 1221, 16634, 921, 12, 6290, 3651, 3834, 1769, 3639, 289, 3639, 2728, 429, 18, 542, 8832, 907, 12, 9859, 907, 1769, 3639, 368, 982, 2146, 4260, 358, 506, 444, 358, 315, 5668, 6, 261, 2135, 4143, 2836, 1842, 1392, 358, 277, 2906, 27008, 340, 326, 290, 3957, 560, 13, 3639, 368, 309, 10394, 711, 17545, 5957, 16, 326, 2742, 2026, 912, 392, 1308, 1363, 487, 326, 603, 358, 1492, 326, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 3651, 429, 1221, 3651, 429, 1290, 12, 6385, 12965, 907, 24984, 13, 288, 3639, 368, 968, 326, 6756, 667, 508, 364, 326, 1269, 4703, 756, 18, 3639, 368, 7564, 731, 326, 16334, 2687, 309, 4573, 18, 3639, 514, 2252, 3651, 3834, 273, 446, 31, 3639, 364, 12, 1659, 276, 273, 24984, 18, 588, 797, 5621, 2252, 3651, 3834, 422, 446, 597, 276, 480, 446, 31, 276, 273, 276, 18, 588, 28471, 1435, 262, 288, 5411, 2252, 3651, 3834, 273, 261, 780, 13, 19633, 16634, 3233, 7675, 588, 12, 276, 11272, 3639, 289, 3639, 727, 4477, 3651, 429, 2728, 429, 31, 3639, 309, 261, 6290, 3651, 3834, 422, 446, 13, 288, 5411, 368, 1660, 2727, 1404, 1240, 2 ]
realStereo.setNamespace(ns);
public MAbstraction buildRealization(MModelElement client, MModelElement supplier) { MAbstraction realization = new MAbstractionImpl();// MStereotype realStereo = (MStereotype)STANDARDS.lookup("realize");// System.out.println("real ist: "+realStereo); MStereotype realStereo = new MStereotypeImpl(); realStereo.setName("realize"); if (supplier.getNamespace() != null) { MNamespace ns = supplier.getNamespace(); realization.setNamespace(ns); realStereo.setNamespace(ns); // ns.addOwnedElement(STANDARDS); } else if (client.getNamespace() != null) { MNamespace ns = client.getNamespace(); realization.setNamespace(ns); realStereo.setNamespace(ns); // ns.addOwnedElement(STANDARDS); } realization.setStereotype(realStereo); realization.addSupplier(supplier); realization.addClient(client); return realization; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ccb822c30e1c762f951b4d90d6a4c793d58079d9/MMUtil.java/clean/src_new/org/argouml/uml/MMUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 490, 5895, 701, 1128, 1361, 6955, 1588, 12, 49, 1488, 1046, 1004, 16, 490, 1488, 1046, 17402, 13, 288, 202, 202, 5535, 70, 701, 1128, 2863, 1588, 273, 394, 490, 5895, 701, 1128, 2828, 5621, 759, 3196, 202, 3537, 387, 73, 10570, 2863, 55, 22854, 273, 261, 3537, 387, 73, 10570, 13, 882, 4307, 985, 3948, 18, 8664, 2932, 7688, 554, 8863, 759, 3196, 202, 3163, 18, 659, 18, 8222, 2932, 7688, 19165, 30, 13773, 7688, 55, 22854, 1769, 202, 202, 3537, 387, 73, 10570, 2863, 55, 22854, 273, 394, 9238, 387, 73, 10570, 2828, 5621, 202, 202, 7688, 55, 22854, 18, 542, 461, 2932, 7688, 554, 8863, 202, 202, 430, 261, 2859, 5742, 18, 588, 3402, 1435, 480, 446, 13, 288, 1082, 565, 490, 3402, 3153, 273, 17402, 18, 588, 3402, 5621, 1082, 565, 2863, 1588, 18, 542, 3402, 12, 2387, 1769, 1082, 565, 2863, 55, 22854, 18, 542, 3402, 12, 2387, 1769, 1082, 565, 368, 1082, 565, 3153, 18, 1289, 5460, 329, 1046, 12, 882, 4307, 985, 3948, 1769, 202, 202, 97, 202, 202, 12107, 309, 261, 2625, 18, 588, 3402, 1435, 480, 446, 13, 288, 1082, 565, 490, 3402, 3153, 273, 1004, 18, 588, 3402, 5621, 1082, 565, 2863, 1588, 18, 542, 3402, 12, 2387, 1769, 1082, 565, 2863, 55, 22854, 18, 542, 3402, 12, 2387, 1769, 1082, 565, 368, 1082, 565, 3153, 18, 1289, 5460, 329, 1046, 12, 882, 4307, 985, 3948, 1769, 202, 202, 97, 202, 202, 7688, 1588, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 490, 5895, 701, 1128, 1361, 6955, 1588, 12, 49, 1488, 1046, 1004, 16, 490, 1488, 1046, 17402, 13, 288, 202, 202, 5535, 70, 701, 1128, 2863, 1588, 273, 394, 490, 5895, 701, 1128, 2828, 5621, 759, 3196, 202, 3537, 387, 73, 10570, 2863, 55, 22854, 273, 261, 3537, 387, 73, 10570, 13, 882, 4307, 985, 3948, 18, 8664, 2932, 7688, 554, 8863, 759, 3196, 202, 3163, 18, 659, 18, 8222, 2932, 7688, 19165, 30, 13773, 7688, 55, 22854, 1769, 202, 202, 3537, 387, 73, 10570, 2863, 55, 22854, 273, 394, 9238, 387, 73, 10570, 2828, 5621, 202, 202, 7688, 55, 22854, 18, 542, 461, 2932, 7688, 554, 8863, 202, 202, 430, 261, 2859, 5742, 18, 588, 2 ]
final String queryString = "select count (distinct bs2gp) from CompositeSequenceImpl as cs inner join cs.arrayDesign as ar " + "inner join cs.biologicalCharacteristic, BioSequence2GeneProductImpl as bs2gp " + "where bs2gp.bioSequence=cs.biologicalCharacteristic and ar.id = :id";
final String queryString = "select count (distinct bs2gp) from CompositeSequenceImpl as cs inner join cs.arrayDesign as ar " + "inner join cs.biologicalCharacteristic, BioSequence2GeneProductImpl as bs2gp " + "where bs2gp.bioSequence=cs.biologicalCharacteristic and ar.id = :id";
protected long handleNumBlatResults( ArrayDesign arrayDesign ) throws Exception { if (arrayDesign == null || arrayDesign.getId() == null) { throw new IllegalArgumentException(); } long id = arrayDesign.getId(); final String queryString = "select count (distinct bs2gp) from CompositeSequenceImpl as cs inner join cs.arrayDesign as ar " + "inner join cs.biologicalCharacteristic, BioSequence2GeneProductImpl as bs2gp " + "where bs2gp.bioSequence=cs.biologicalCharacteristic and ar.id = :id"; return queryByIdReturnInteger( id, queryString ); }
4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/a38ec5b62d473dbb459399b7f03a372b314f1d88/ArrayDesignDaoImpl.java/buggy/gemma-mda/src/main/java/ubic/gemma/model/expression/arrayDesign/ArrayDesignDaoImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1525, 1640, 2578, 38, 4801, 3447, 12, 1510, 15478, 526, 15478, 262, 1216, 1185, 288, 3639, 309, 261, 1126, 15478, 422, 446, 747, 526, 15478, 18, 26321, 1435, 422, 446, 13, 288, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 1525, 612, 273, 526, 15478, 18, 26321, 5621, 3639, 727, 514, 11337, 273, 315, 4025, 1056, 261, 24592, 7081, 22, 6403, 13, 628, 225, 14728, 4021, 2828, 487, 2873, 3443, 1233, 2873, 18, 1126, 15478, 487, 419, 315, 397, 3639, 315, 7872, 1233, 2873, 18, 13266, 18224, 7069, 5846, 16, 21209, 4021, 22, 24442, 4133, 2828, 487, 7081, 22, 6403, 315, 397, 3639, 315, 6051, 7081, 22, 6403, 18, 21010, 4021, 33, 2143, 18, 13266, 18224, 7069, 5846, 471, 419, 18, 350, 273, 294, 350, 14432, 3639, 327, 843, 5132, 990, 4522, 12, 612, 16, 11337, 11272, 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, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 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, 4750, 1525, 1640, 2578, 38, 4801, 3447, 12, 1510, 15478, 526, 15478, 262, 1216, 1185, 288, 3639, 309, 261, 1126, 15478, 422, 446, 747, 526, 15478, 18, 26321, 1435, 422, 446, 13, 288, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 1525, 612, 273, 526, 15478, 18, 26321, 5621, 3639, 727, 514, 11337, 273, 315, 4025, 1056, 261, 24592, 7081, 22, 6403, 13, 628, 225, 14728, 4021, 2828, 487, 2873, 3443, 1233, 2873, 18, 1126, 15478, 487, 419, 315, 397, 3639, 315, 7872, 1233, 2873, 18, 13266, 18224, 7069, 5846, 16, 21209, 4021, 22, 24442, 4133, 2828, 487, 7081, 22, 6403, 315, 397, 3639, 315, 6051, 7081, 22, 6403, 18, 21010, 4021, 33, 2143, 18, 13266, 18224, 7069, 2 ]
p_start = createRefillTimePreference(start, earliest); p_end = createRefillTimePreference(end, earliest);
p_start = createRefillTimePreference(start, earliest, AspectType.START_TIME); p_end = createRefillTimePreference(end, earliest, AspectType.END_TIME);
private NewTask fillInTask(NewTask newRefill, long start, long end, long earliest, double qty, Asset asset) { // create preferences Vector prefs = new Vector(); Preference p_start,p_end,p_qty; p_start = createRefillTimePreference(start, earliest); p_end = createRefillTimePreference(end, earliest); p_qty = createRefillRatePreference(qty); prefs.add(p_start); prefs.add(p_end); prefs.add(p_qty); newRefill.setPreferences(prefs.elements()); //create Prepositional Phrases Vector pp_vector = new Vector(); pp_vector.add(createPrepPhrase(Constants.Preposition.FOR, getOrgName())); pp_vector.add(createPrepPhrase(Constants.Preposition.OFTYPE, inventoryPlugin.getSupplyType())); Object io; Enumeration geolocs = getAssetUtils().getGeolocLocationAtTime( getMyOrganization(), end); if (geolocs.hasMoreElements()) { io = (GeolocLocation)geolocs.nextElement(); } else { io = getHomeLocation(); } pp_vector.addElement(createPrepPhrase(Constants.Preposition.TO, io)); TypeIdentificationPG tip = asset.getTypeIdentificationPG(); MaintainedItem itemID = MaintainedItem. findOrMakeMaintainedItem("Inventory", tip.getTypeIdentification(), null, tip.getNomenclature(), inventoryPlugin); pp_vector.add(createPrepPhrase(Constants.Preposition.MAINTAINING, itemID)); pp_vector.add(createPrepPhrase(Constants.Preposition.REFILL, null)); newRefill.setPrepositionalPhrases(pp_vector.elements()); return newRefill; }
11319 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11319/6b98fa6c43734537f2c625977b3ba3ac3429d6d0/RefillProjectionGenerator.java/clean/bbn/src/org/cougaar/logistics/plugin/inventory/RefillProjectionGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1166, 2174, 3636, 382, 2174, 12, 1908, 2174, 394, 1957, 737, 16, 1525, 787, 16, 1525, 679, 16, 1525, 20674, 16, 21821, 1645, 26667, 16, 10494, 3310, 13, 288, 565, 368, 752, 12750, 565, 5589, 15503, 273, 394, 5589, 5621, 565, 29125, 293, 67, 1937, 16, 84, 67, 409, 16, 84, 67, 85, 4098, 31, 565, 293, 67, 1937, 273, 752, 1957, 737, 950, 9624, 12, 1937, 16, 20674, 1769, 565, 293, 67, 409, 273, 752, 1957, 737, 950, 9624, 12, 409, 16, 20674, 1769, 565, 293, 67, 85, 4098, 273, 752, 1957, 737, 4727, 9624, 12, 85, 4098, 1769, 565, 15503, 18, 1289, 12, 84, 67, 1937, 1769, 565, 15503, 18, 1289, 12, 84, 67, 409, 1769, 565, 15503, 18, 1289, 12, 84, 67, 85, 4098, 1769, 565, 394, 1957, 737, 18, 542, 12377, 12, 1484, 2556, 18, 6274, 10663, 565, 368, 2640, 2962, 3276, 287, 4360, 17415, 565, 5589, 8228, 67, 7737, 273, 394, 5589, 5621, 565, 8228, 67, 7737, 18, 1289, 12, 2640, 15543, 12812, 12, 2918, 18, 1386, 3276, 18, 7473, 16, 336, 6001, 461, 1435, 10019, 565, 8228, 67, 7737, 18, 1289, 12, 2640, 15543, 12812, 12, 2918, 18, 1386, 3276, 18, 3932, 2399, 16, 4766, 565, 13086, 3773, 18, 588, 3088, 1283, 559, 1435, 10019, 3639, 1033, 2527, 31, 565, 13864, 8244, 355, 22280, 273, 24689, 1989, 7675, 588, 18809, 355, 504, 2735, 861, 950, 12, 6862, 6862, 225, 2108, 93, 8113, 9334, 6862, 6862, 225, 679, 1769, 565, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1166, 2174, 3636, 382, 2174, 12, 1908, 2174, 394, 1957, 737, 16, 1525, 787, 16, 1525, 679, 16, 1525, 20674, 16, 21821, 1645, 26667, 16, 10494, 3310, 13, 288, 565, 368, 752, 12750, 565, 5589, 15503, 273, 394, 5589, 5621, 565, 29125, 293, 67, 1937, 16, 84, 67, 409, 16, 84, 67, 85, 4098, 31, 565, 293, 67, 1937, 273, 752, 1957, 737, 950, 9624, 12, 1937, 16, 20674, 1769, 565, 293, 67, 409, 273, 752, 1957, 737, 950, 9624, 12, 409, 16, 20674, 1769, 565, 293, 67, 85, 4098, 273, 752, 1957, 737, 4727, 9624, 12, 85, 4098, 1769, 565, 15503, 18, 1289, 12, 84, 67, 1937, 1769, 565, 15503, 18, 1289, 12, 84, 67, 409, 2 ]
setModel( model );
getProvider( ).connect( model );
public boolean onBroughtToTop( IReportEditorPage prePage ) { if ( getEditorInput( ) != prePage.getEditorInput( ) ) { setInput( prePage.getEditorInput( ) ); } ModuleHandle model = SessionHandleAdapter.getInstance( ).getReportDesignHandle( ); if ( model != null && getModel() != model) { Object oldModel = getModel( ); setModel( model ); rebuildReportDesign( oldModel ); if ( getModel( ) != null ) { setViewContentsAsMasterPage(); markPageStale( IPageStaleType.NONE ); } updateStackActions( ); } return true; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/604ce5391dbc451664ffe72c0eb2da50e51bc4ed/ReportMasterPageEditorFormPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.editors.schematic/src/org/eclipse/birt/report/designer/ui/editors/pages/ReportMasterPageEditorFormPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 603, 38, 303, 9540, 774, 3401, 12, 467, 4820, 6946, 1964, 675, 1964, 262, 202, 95, 202, 202, 430, 261, 336, 6946, 1210, 12, 262, 480, 675, 1964, 18, 588, 6946, 1210, 12, 262, 262, 202, 202, 95, 1082, 202, 542, 1210, 12, 675, 1964, 18, 588, 6946, 1210, 12, 262, 11272, 202, 202, 97, 9506, 202, 3120, 3259, 938, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 18, 588, 4820, 15478, 3259, 12, 11272, 202, 202, 430, 261, 938, 480, 446, 597, 7454, 1435, 480, 938, 13, 202, 202, 95, 6862, 202, 921, 1592, 1488, 273, 7454, 12, 11272, 6862, 1082, 202, 542, 1488, 12, 938, 11272, 1082, 202, 266, 3510, 4820, 15478, 12, 1592, 1488, 11272, 1082, 202, 430, 261, 7454, 12, 262, 480, 446, 262, 1082, 202, 95, 9506, 202, 542, 1767, 6323, 1463, 7786, 1964, 5621, 9506, 202, 3355, 1964, 19155, 12, 467, 1964, 19155, 559, 18, 9826, 11272, 1082, 202, 97, 1082, 202, 2725, 2624, 6100, 12, 11272, 6862, 202, 97, 6862, 202, 2463, 638, 31, 1082, 202, 97, 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, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 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, 225, 202, 482, 1250, 603, 38, 303, 9540, 774, 3401, 12, 467, 4820, 6946, 1964, 675, 1964, 262, 202, 95, 202, 202, 430, 261, 336, 6946, 1210, 12, 262, 480, 675, 1964, 18, 588, 6946, 1210, 12, 262, 262, 202, 202, 95, 1082, 202, 542, 1210, 12, 675, 1964, 18, 588, 6946, 1210, 12, 262, 11272, 202, 202, 97, 9506, 202, 3120, 3259, 938, 273, 3877, 3259, 4216, 18, 588, 1442, 12, 262, 18, 588, 4820, 15478, 3259, 12, 11272, 202, 202, 430, 261, 938, 480, 446, 597, 7454, 1435, 480, 938, 13, 202, 202, 95, 6862, 202, 921, 1592, 1488, 273, 7454, 12, 11272, 6862, 1082, 202, 542, 1488, 12, 938, 11272, 1082, 202, 266, 3510, 4820, 15478, 2 ]
case LEFT: iNewPointToCheck = 2; iPrevPointToCheck = 1;
case LEFT : iNewPointToCheck = 2; iPrevPointToCheck = 1;
final protected boolean[] checkTickLabelsVisibility( IDisplayServer xs, Label la, int iLabelLocation ) throws ChartException { boolean[] ba = new boolean[daTickCoordinates.length]; boolean vis = la.isSetVisible( ) && la.isVisible( ); Arrays.fill( ba, vis ); if ( !vis ) { // all non-visible label, skip checking. return ba; } if ( iType != TEXT && !bCategoryScale ) { // Already auto scaled, just return all as true. return ba; } final double dAngleInDegrees = la.getCaption( ) .getFont( ) .getRotation( ); double x = 0, y = 0; int iNewPointToCheck = 0, iPrevPointToCheck = 0; /* * Rectangle points are layed out like this * * 0 1 * NextLabel * 3 2 * * 0 1 0 1 * PreviousLabel NextLabel * 3 2 3 2 * */ boolean isNegativeRotation = ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ); switch ( iLabelLocation ) { case ABOVE: iNewPointToCheck = isNegativeRotation ? 3 : 0; iPrevPointToCheck = isNegativeRotation ? 1 : 3; break; case BELOW: iNewPointToCheck = isNegativeRotation ? 3 : 0; iPrevPointToCheck = isNegativeRotation ? 0 : 2; break; case LEFT: iNewPointToCheck = 2; iPrevPointToCheck = 1; break; case RIGHT: iNewPointToCheck = 3; iPrevPointToCheck = 0; break; } RotatedRectangle rrPrev[] = new RotatedRectangle[2]; DataSetIterator dsi = getData( ); dsi.reset( ); final int iDateTimeUnit = ( iType == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; String sText = null; dsi.reset( ); for ( int i = 0; i < daTickCoordinates.length - 1; i++ ) { if ( dsi.hasNext( ) ) { sText = formatCategoryValue( iType, dsi.next( ), iDateTimeUnit ); } else { sText = NULL_STRING; } if ( iLabelLocation == ABOVE || iLabelLocation == BELOW ) { x = this.daTickCoordinates[i]; } else if ( iLabelLocation == LEFT || iLabelLocation == RIGHT ) { y = this.daTickCoordinates[i]; } la.getCaption( ).setValue( sText ); if ( isAxisLabelStaggered( ) && i % 2 == 1 ) { ba[i] = checkOneTickLabelVisibility( rrPrev, 1, iLabelLocation, x, y, iNewPointToCheck, iPrevPointToCheck, la, xs, i ); } else { ba[i] = checkOneTickLabelVisibility( rrPrev, 0, iLabelLocation, x, y, iNewPointToCheck, iPrevPointToCheck, la, xs, i ); } } return ba; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/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, 6385, 4750, 1250, 8526, 866, 6264, 5888, 10135, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 262, 1216, 14804, 503, 202, 95, 202, 202, 6494, 8526, 9846, 273, 394, 1250, 63, 2414, 6264, 13431, 18, 2469, 15533, 202, 202, 6494, 2281, 273, 7125, 18, 291, 694, 6207, 12, 262, 597, 7125, 18, 291, 6207, 12, 11272, 202, 202, 12726, 18, 5935, 12, 9846, 16, 2281, 11272, 202, 202, 430, 261, 401, 3516, 262, 202, 202, 95, 1082, 202, 759, 777, 1661, 17, 8613, 1433, 16, 2488, 6728, 18, 1082, 202, 2463, 9846, 31, 202, 202, 97, 202, 202, 430, 261, 277, 559, 480, 9204, 597, 401, 70, 4457, 5587, 262, 202, 202, 95, 1082, 202, 759, 17009, 3656, 12304, 16, 2537, 327, 777, 487, 638, 18, 1082, 202, 2463, 9846, 31, 202, 202, 97, 202, 202, 6385, 1645, 302, 8467, 382, 24400, 273, 7125, 18, 588, 21158, 12, 262, 9506, 202, 18, 588, 5711, 12, 262, 9506, 202, 18, 588, 14032, 12, 11272, 202, 202, 9056, 619, 273, 374, 16, 677, 273, 374, 31, 202, 202, 474, 277, 1908, 2148, 18126, 273, 374, 16, 277, 9958, 2148, 18126, 273, 374, 31, 9506, 202, 20308, 1082, 380, 13264, 3143, 854, 328, 528, 329, 596, 3007, 333, 1082, 380, 1082, 380, 4202, 374, 1850, 404, 565, 1082, 380, 540, 4804, 2224, 1082, 380, 4202, 890, 1850, 576, 26924, 380, 3639, 1082, 380, 4202, 374, 2868, 404, 565, 374, 1850, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6385, 4750, 1250, 8526, 866, 6264, 5888, 10135, 12, 1599, 291, 1601, 2081, 9280, 16, 5287, 7125, 16, 1082, 202, 474, 277, 2224, 2735, 262, 1216, 14804, 503, 202, 95, 202, 202, 6494, 8526, 9846, 273, 394, 1250, 63, 2414, 6264, 13431, 18, 2469, 15533, 202, 202, 6494, 2281, 273, 7125, 18, 291, 694, 6207, 12, 262, 597, 7125, 18, 291, 6207, 12, 11272, 202, 202, 12726, 18, 5935, 12, 9846, 16, 2281, 11272, 202, 202, 430, 261, 401, 3516, 262, 202, 202, 95, 1082, 202, 759, 777, 1661, 17, 8613, 1433, 16, 2488, 6728, 18, 1082, 202, 2463, 9846, 31, 202, 202, 97, 202, 202, 430, 261, 277, 559, 480, 9204, 597, 401, 70, 4457, 5587, 2 ]