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 (!editor.getSite().getPage().isPartVisible(editor)) return; ISourceViewer sourceViewer = editor.getViewer(); if (sourceViewer instanceof ProjectionViewer) { ProjectionViewer pv= (ProjectionViewer) sourceViewer; if (isAutoFoldingEnabled()) { if (expand) { if (pv.canDoOperation(ProjectionViewer.EXPAND)) pv.doOperation(ProjectionViewer.EXPAND); } else { if (pv.canDoOperation(ProjectionViewer.COLLAPSE)) pv.doOperation(ProjectionViewer.COLLAPSE); } } } }
internalUpdateFolding(expand); }
public void run() { if (!editor.getSite().getPage().isPartVisible(editor)) return; ISourceViewer sourceViewer = editor.getViewer(); if (sourceViewer instanceof ProjectionViewer) { ProjectionViewer pv= (ProjectionViewer) sourceViewer; if (isAutoFoldingEnabled()) { if (expand) { if (pv.canDoOperation(ProjectionViewer.EXPAND)) pv.doOperation(ProjectionViewer.EXPAND); } else { if (pv.canDoOperation(ProjectionViewer.COLLAPSE)) pv.doOperation(ProjectionViewer.COLLAPSE); } } } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c3d24e75c3c7cb26ff60a1ddfcc3acdf00557d46/ActiveFoldingListener.java/clean/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/java/ui/editor/ActiveFoldingListener.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 5397, 309, 16051, 9177, 18, 588, 4956, 7675, 588, 1964, 7675, 291, 1988, 6207, 12, 9177, 3719, 327, 31, 10792, 467, 1830, 18415, 1084, 18415, 273, 4858, 18, 588, 18415, 5621, 10792, 309, 261, 3168, 18415, 1276, 21288, 18415, 13, 288, 13491, 21288, 18415, 9770, 33, 261, 14789, 18415, 13, 1084, 18415, 31, 13491, 309, 261, 291, 4965, 15592, 310, 1526, 10756, 288, 18701, 309, 261, 12320, 13, 288, 27573, 309, 261, 25224, 18, 4169, 3244, 2988, 12, 14789, 18415, 18, 16109, 4307, 3719, 9770, 18, 2896, 2988, 12, 14789, 18415, 18, 16109, 4307, 1769, 18701, 289, 469, 288, 27573, 309, 261, 25224, 18, 4169, 3244, 2988, 12, 14789, 18415, 18, 4935, 48, 2203, 1090, 3719, 9770, 18, 2896, 2988, 12, 14789, 18415, 18, 4935, 48, 2203, 1090, 1769, 17311, 289, 13491, 289, 5397, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1171, 1071, 918, 1086, 1435, 288, 5397, 309, 16051, 9177, 18, 588, 4956, 7675, 588, 1964, 7675, 291, 1988, 6207, 12, 9177, 3719, 327, 31, 10792, 467, 1830, 18415, 1084, 18415, 273, 4858, 18, 588, 18415, 5621, 10792, 309, 261, 3168, 18415, 1276, 21288, 18415, 13, 288, 13491, 21288, 18415, 9770, 33, 261, 14789, 18415, 13, 1084, 18415, 31, 13491, 309, 261, 291, 4965, 15592, 310, 1526, 10756, 288, 18701, 309, 261, 12320, 13, 288, 27573, 309, 261, 25224, 18, 4169, 3244, 2988, 12, 14789, 18415, 18, 16109, 4307, 3719, 9770, 18, 2896, 2988, 12, 14789, 18415, 18, 16109, 4307, 1769, 18701, 289, 469, 288, 27573, 309, 261, 25224, 18, 4169, 3244, 2988, 12, 14789, 18415, 18, 4935, 48, 2 ]
TableFormBuilder formBuilder = new TableFormBuilder(getFormModel());
TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory());
protected JComponent createFormControl() { TableFormBuilder formBuilder = new TableFormBuilder(getFormModel()); this.address = formBuilder.add("address")[1]; formBuilder.row(); formBuilder.add("city"); return formBuilder.getForm(); }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/5ec19649d881a3bcff846f9ee381f25c8ee1943f/OwnerAddressForm.java/clean/samples/petclinic/src/org/springframework/richclient/samples/petclinic/ui/OwnerAddressForm.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 29058, 19580, 3367, 1435, 288, 3639, 3555, 1204, 1263, 646, 1263, 273, 394, 3555, 1204, 1263, 12, 588, 5250, 1733, 10663, 3639, 333, 18, 2867, 273, 646, 1263, 18, 1289, 2932, 2867, 7923, 63, 21, 15533, 3639, 646, 1263, 18, 492, 5621, 3639, 646, 1263, 18, 1289, 2932, 14240, 8863, 3639, 327, 646, 1263, 18, 588, 1204, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 29058, 19580, 3367, 1435, 288, 3639, 3555, 1204, 1263, 646, 1263, 273, 394, 3555, 1204, 1263, 12, 588, 5250, 1733, 10663, 3639, 333, 18, 2867, 273, 646, 1263, 18, 1289, 2932, 2867, 7923, 63, 21, 15533, 3639, 646, 1263, 18, 492, 5621, 3639, 646, 1263, 18, 1289, 2932, 14240, 8863, 3639, 327, 646, 1263, 18, 588, 1204, 5621, 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 ]
AST tmp2264_AST_in = (AST)_t;
AST tmp2265_AST_in = (AST)_t;
public final void fieldoption(AST _t) throws RecognitionException { AST fieldoption_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AS: { AST __t1280 = _t; AST tmp2253_AST_in = (AST)_t; match(_t,AS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp2254_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); AST tmp2255_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); break; } case CHARACTER: case COMHANDLE: case DATE: case DECIMAL: case HANDLE: case INTEGER: case LOGICAL: case MEMPTR: case RAW: case RECID: case ROWID: case WIDGETHANDLE: case BLOB: case CLOB: case DATETIME: case DATETIMETZ: case LONGCHAR: case TYPE_NAME: { datatype_field(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } } _t = __t1280; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } case BGCOLOR: case DCOLOR: case FGCOLOR: case PFCOLOR: { color_expr(_t); _t = _retTree; break; } case COLUMNCODEPAGE: { AST __t1282 = _t; AST tmp2256_AST_in = (AST)_t; match(_t,COLUMNCODEPAGE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1282; _t = _t.getNextSibling(); break; } case CONTEXTHELPID: { AST __t1283 = _t; AST tmp2257_AST_in = (AST)_t; match(_t,CONTEXTHELPID); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1283; _t = _t.getNextSibling(); break; } case DECIMALS: { AST __t1284 = _t; AST tmp2258_AST_in = (AST)_t; match(_t,DECIMALS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1284; _t = _t.getNextSibling(); break; } case DROPTARGET: { AST tmp2259_AST_in = (AST)_t; match(_t,DROPTARGET); _t = _t.getNextSibling(); break; } case EXTENT: { extentphrase(_t); _t = _retTree; break; } case FONT: { AST __t1285 = _t; AST tmp2260_AST_in = (AST)_t; match(_t,FONT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1285; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t1286 = _t; AST tmp2261_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1286; _t = _t.getNextSibling(); break; } case HELP: { AST __t1287 = _t; AST tmp2262_AST_in = (AST)_t; match(_t,HELP); _t = _t.getFirstChild(); constant(_t); _t = _retTree; _t = __t1287; _t = _t.getNextSibling(); break; } case INITIAL: { initial_constant(_t); _t = _retTree; break; } case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case LIKE: { AST __t1288 = _t; AST tmp2263_AST_in = (AST)_t; match(_t,LIKE); _t = _t.getFirstChild(); field(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALIDATE: { AST tmp2264_AST_in = (AST)_t; match(_t,VALIDATE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1288; _t = _t.getNextSibling(); break; } case MOUSEPOINTER: { AST __t1290 = _t; AST tmp2265_AST_in = (AST)_t; match(_t,MOUSEPOINTER); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1290; _t = _t.getNextSibling(); break; } case NOUNDO: { AST tmp2266_AST_in = (AST)_t; match(_t,NOUNDO); _t = _t.getNextSibling(); break; } case VIEWAS: { viewasphrase(_t); _t = _retTree; break; } case TTCODEPAGE: { AST tmp2267_AST_in = (AST)_t; match(_t,TTCODEPAGE); _t = _t.getNextSibling(); break; } case XMLDATATYPE: { xml_data_type(_t); _t = _retTree; break; } case XMLNODETYPE: { xml_node_type(_t); _t = _retTree; break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 652, 3482, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 652, 3482, 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, 5355, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 2138, 3672, 273, 389, 88, 31, 1082, 202, 9053, 1853, 22, 30304, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 3033, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 1082, 202, 95, 1082, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 1082, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 1082, 202, 3593, 7383, 30, 1082, 202, 95, 9506, 202, 9053, 1853, 22, 26261, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 5237, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 9053, 1853, 3787, 2539, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 9506, 202, 1916, 24899, 88, 16, 2399, 67, 1985, 1769, 9506, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 9506, 202, 8820, 31, 1082, 202, 97, 1082, 202, 3593, 27517, 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, 652, 3482, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 652, 3482, 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, 5355, 30, 202, 202, 95, 1082, 202, 9053, 1001, 88, 2138, 3672, 273, 389, 88, 31, 1082, 202, 9053, 1853, 22, 30304, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 1082, 202, 1916, 24899, 88, 16, 3033, 1769, 1082, 202, 67, 88, 273, 389, 88, 18, 2 ]
handle.setResultSetColumn( dialog.getBindingColumn( ).getName( ) );
if(dialog.getBindingColumn( ) != null) { handle.setResultSetColumn( dialog.getBindingColumn( ).getName( ) ); }
public void performDirectEdit( ) { DataItemHandle handle = (DataItemHandle) getModel( ); handle.getModuleHandle( ).getCommandStack( ).startTrans( null ); DataItemBindingDialog dialog = new DataItemBindingDialog( handle.getResultSetColumn( )==null ); dialog.setInput( handle ); // ColumnBindingDialog dialog = new ColumnBindingDialog( true ); // dialog.setInput( handle ); // dialog.setGroupList( DEUtil.getGroups( handle ) ); if ( dialog.open( ) == Dialog.OK ) { handle.getModuleHandle( ).getCommandStack( ).commit( ); try { handle.setResultSetColumn( dialog.getBindingColumn( ).getName( ) ); } catch ( Exception e ) { ExceptionHandler.handle( e ); } refreshVisuals( ); } else { handle.getModuleHandle( ).getCommandStack( ).rollbackAll( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/b7f17c292d2c31aa2108eb6d6b52f3b5f4b048e8/DataEditPart.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/DataEditPart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3073, 5368, 4666, 12, 262, 202, 95, 202, 202, 29903, 3259, 1640, 273, 261, 29903, 3259, 13, 7454, 12, 11272, 202, 202, 4110, 18, 588, 3120, 3259, 12, 262, 18, 588, 2189, 2624, 12, 262, 18, 1937, 1429, 12, 446, 11272, 202, 202, 29903, 5250, 6353, 6176, 273, 394, 1910, 1180, 5250, 6353, 12, 1640, 18, 588, 13198, 1494, 12, 262, 631, 2011, 11272, 202, 202, 12730, 18, 542, 1210, 12, 1640, 11272, 202, 202, 759, 4753, 5250, 6353, 6176, 273, 394, 4753, 5250, 6353, 12, 638, 11272, 202, 202, 759, 6176, 18, 542, 1210, 12, 1640, 11272, 202, 202, 759, 6176, 18, 542, 1114, 682, 12, 2030, 1304, 18, 588, 3621, 12, 1640, 262, 11272, 202, 202, 430, 261, 6176, 18, 3190, 12, 262, 422, 17242, 18, 3141, 262, 202, 202, 95, 1082, 202, 4110, 18, 588, 3120, 3259, 12, 262, 18, 588, 2189, 2624, 12, 262, 18, 7371, 12, 11272, 1082, 202, 698, 1082, 202, 95, 9506, 202, 4110, 18, 542, 13198, 1494, 12, 6176, 18, 588, 5250, 1494, 12, 262, 18, 17994, 12, 262, 11272, 1082, 202, 97, 1082, 202, 14683, 261, 1185, 425, 262, 1082, 202, 95, 9506, 202, 18894, 18, 4110, 12, 425, 11272, 1082, 202, 97, 25083, 202, 9144, 3282, 12588, 12, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 4110, 18, 588, 3120, 3259, 12, 262, 18, 588, 2189, 2624, 12, 262, 18, 20050, 1595, 12, 11272, 202, 202, 97, 202, 97, 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, 3073, 5368, 4666, 12, 262, 202, 95, 202, 202, 29903, 3259, 1640, 273, 261, 29903, 3259, 13, 7454, 12, 11272, 202, 202, 4110, 18, 588, 3120, 3259, 12, 262, 18, 588, 2189, 2624, 12, 262, 18, 1937, 1429, 12, 446, 11272, 202, 202, 29903, 5250, 6353, 6176, 273, 394, 1910, 1180, 5250, 6353, 12, 1640, 18, 588, 13198, 1494, 12, 262, 631, 2011, 11272, 202, 202, 12730, 18, 542, 1210, 12, 1640, 11272, 202, 202, 759, 4753, 5250, 6353, 6176, 273, 394, 4753, 5250, 6353, 12, 638, 11272, 202, 202, 759, 6176, 18, 542, 1210, 12, 1640, 11272, 202, 202, 759, 6176, 18, 542, 1114, 682, 12, 2030, 1304, 18, 588, 3621, 12, 1640, 262, 2 ]
setSorter(fSorter);
setComparator(fSorter);
public SourceFolderSelectionDialog(Shell parent) { super(parent, fLabelProvider, fContentProvider); setValidator(fValidator); setSorter(fSorter); addFilter(fFilter); setTitle(NewWizardMessages.getString("SourceFolderSelectionDialog.title")); //$NON-NLS-1$ setMessage(NewWizardMessages.getString("SourceFolderSelectionDialog.description")); //$NON-NLS-1$ }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/12dc80623b7df7cc6d57b29d4a5b76138e53e977/SourceFolderSelectionDialog.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/wizards/SourceFolderSelectionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4998, 3899, 6233, 6353, 12, 13220, 982, 13, 288, 3639, 2240, 12, 2938, 16, 284, 2224, 2249, 16, 284, 1350, 2249, 1769, 3639, 444, 5126, 12, 74, 5126, 1769, 3639, 444, 5559, 12, 74, 24952, 1769, 3639, 17952, 12, 74, 1586, 1769, 3639, 14109, 12, 1908, 27130, 5058, 18, 588, 780, 2932, 1830, 3899, 6233, 6353, 18, 2649, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 15227, 12, 1908, 27130, 5058, 18, 588, 780, 2932, 1830, 3899, 6233, 6353, 18, 3384, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4998, 3899, 6233, 6353, 12, 13220, 982, 13, 288, 3639, 2240, 12, 2938, 16, 284, 2224, 2249, 16, 284, 1350, 2249, 1769, 3639, 444, 5126, 12, 74, 5126, 1769, 3639, 444, 5559, 12, 74, 24952, 1769, 3639, 17952, 12, 74, 1586, 1769, 3639, 14109, 12, 1908, 27130, 5058, 18, 588, 780, 2932, 1830, 3899, 6233, 6353, 18, 2649, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 3639, 15227, 12, 1908, 27130, 5058, 18, 588, 780, 2932, 1830, 3899, 6233, 6353, 18, 3384, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 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 ]
jjCheckNAddTwoStates(29, 30);
jjCheckNAddTwoStates(28, 29);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 75; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x3ff000000000000L & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(18, 23); break; case 2: case 41: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(2, 3); break; case 3: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(4); break; case 4: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: case 50: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(7); break; case 7: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 10: case 11: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: case 63: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(12, 13); break; case 13: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(14); break; case 14: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 17: case 18: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(18, 19); break; case 19: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(20); break; case 20: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(24, 26); break; case 24: if ((0x600000000000L & l) != 0L) jjCheckNAddStates(27, 29); break; case 26: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(30, 33); break; case 28: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddStates(34, 36); break; case 29: if (curChar != 46) break; if (kind > 5) kind = 5; jjCheckNAddTwoStates(29, 30); break; case 30: if (curChar == 45) jjCheckNAdd(31); break; case 31: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 33: if (curChar == 46) jjCheckNAdd(34); break; case 34: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 38: case 39: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 45: case 46: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(46, 47); break; case 47: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(48); break; case 48: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 54: case 55: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if ((0xf00000000000L & l) != 0L) jjCheckNAdd(57); break; case 57: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if ((0xf00000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 60: case 61: if ((0x3ff000000000000L & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x3ff000000000000L & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 66: if (curChar == 39) jjstateSet[jjnewStateCnt++] = 67; break; case 69: if (curChar == 46) jjCheckNAdd(70); break; case 71: if (curChar != 46) break; if (kind > 3) kind = 3; jjCheckNAdd(70); break; case 73: if (curChar == 38) jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); if ((0x7fffffe07fffffeL & l) != 0L) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } break; case 2: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(46, 47); break; case 3: if (curChar == 95) jjCheckNAdd(4); break; case 4: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAdd(4); break; case 5: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(5, 6); break; case 6: if (curChar == 95) jjCheckNAdd(7); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(7, 8); break; case 8: if (curChar == 95) jjCheckNAddTwoStates(9, 10); break; case 9: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(9, 10); break; case 11: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(48, 49); break; case 13: if (curChar == 95) jjCheckNAdd(14); break; case 14: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(14, 15); break; case 15: if (curChar == 95) jjCheckNAddTwoStates(16, 17); break; case 16: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(16, 17); break; case 18: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(50, 51); break; case 19: if (curChar == 95) jjCheckNAdd(20); break; case 20: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(24, 26); break; case 25: if (curChar == 95) jjCheckNAdd(26); break; case 26: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(30, 33); break; case 27: if (curChar == 64) jjCheckNAdd(28); break; case 28: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(34, 36); break; case 31: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(32, 33); break; case 34: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(35, 36); break; case 36: if (curChar == 95) jjCheckNAddTwoStates(37, 38); break; case 37: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(37, 38); break; case 39: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 39; break; case 40: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(40, 41); break; case 42: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(42, 43); break; case 43: if (curChar == 95) jjCheckNAddTwoStates(44, 45); break; case 44: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(44, 45); break; case 46: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(52, 53); break; case 47: if (curChar == 95) jjCheckNAdd(48); break; case 48: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(49, 50); break; case 51: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(51, 52); break; case 52: if (curChar == 95) jjCheckNAddTwoStates(53, 54); break; case 53: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(53, 54); break; case 55: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(55, 56); break; case 56: if (curChar == 95) jjCheckNAdd(57); break; case 57: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(57, 58); break; case 58: if (curChar == 95) jjCheckNAddTwoStates(59, 60); break; case 59: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(59, 60); break; case 61: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(62, 63); break; case 64: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddStates(40, 45); break; case 65: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(65, 66); break; case 67: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(68, 69); break; case 70: if ((0x7fffffe07fffffeL & l) != 0L) jjAddStates(54, 55); break; case 72: if ((0x7fffffe07fffffeL & l) != 0L) jjCheckNAddTwoStates(72, 73); break; case 73: if (curChar == 64) jjCheckNAdd(74); break; case 74: if ((0x7fffffe07fffffeL & l) == 0L) break; if (kind > 4) kind = 4; jjCheckNAdd(74); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2)) { if (kind > 10) kind = 10; jjCheckNAdd(0); } if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(18, 23); if (jjCanMove_2(hiByte, i1, i2, l1, l2)) { if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); } if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 0: if (!jjCanMove_0(hiByte, i1, i2, l1, l2)) break; if (kind > 10) kind = 10; jjCheckNAdd(0); break; case 2: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 4: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjstateSet[jjnewStateCnt++] = 4; break; case 5: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 7: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(56, 57); break; case 9: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(58, 59); break; case 10: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 11: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(6, 11); break; case 12: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 14: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(14, 15); break; case 16: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(60, 61); break; case 17: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 18: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(18, 19); break; case 20: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(15, 20); break; case 21: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAddStates(0, 17); break; case 22: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 1) kind = 1; jjCheckNAdd(22); break; case 23: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(24, 26); break; case 26: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(30, 33); break; case 28: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(34, 36); break; case 31: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 5) kind = 5; jjCheckNAddStates(37, 39); break; case 32: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(32, 33); break; case 34: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 6) kind = 6; jjCheckNAddTwoStates(33, 34); break; case 35: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(35, 36); break; case 37: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(62, 63); break; case 38: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 39: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAdd(39); break; case 40: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(40, 41); break; case 41: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(2, 3); break; case 42: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(42, 43); break; case 44: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(64, 65); break; case 45: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 46: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(46, 47); break; case 48: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(43, 48); break; case 49: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(49, 50); break; case 50: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(5, 6); break; case 51: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(51, 52); break; case 53: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(66, 67); break; case 54: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 55: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(55, 56); break; case 57: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(68, 69); break; case 59: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(70, 71); break; case 60: if (!jjCanMove_1(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 61: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 7) kind = 7; jjCheckNAddTwoStates(56, 61); break; case 62: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(62, 63); break; case 63: if (jjCanMove_1(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(12, 13); break; case 64: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddStates(40, 45); break; case 65: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(65, 66); break; case 67: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 2) kind = 2; jjCheckNAddTwoStates(66, 67); break; case 68: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(68, 69); break; case 70: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjAddStates(54, 55); break; case 72: if (jjCanMove_2(hiByte, i1, i2, l1, l2)) jjCheckNAddTwoStates(72, 73); break; case 74: if (!jjCanMove_2(hiByte, i1, i2, l1, l2)) break; if (kind > 4) kind = 4; jjstateSet[jjnewStateCnt++] = 74; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 75 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/b118a27a8623ffbfab74ffed2cb6817d04292d9a/StandardTokenizerTokenManager.java/buggy/src/java/org/apache/lucene/analysis/standard/StandardTokenizerTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750, 273, 18821, 31, 282, 509, 277, 273, 404, 31, 282, 10684, 2019, 694, 63, 20, 65, 273, 787, 1119, 31, 282, 509, 525, 16, 3846, 273, 374, 92, 27, 18217, 74, 31, 282, 364, 261, 25708, 13, 282, 288, 1377, 309, 261, 9904, 78, 78, 2260, 422, 374, 92, 27, 18217, 74, 13, 540, 868, 2570, 54, 9284, 5621, 1377, 309, 261, 1397, 2156, 411, 5178, 13, 1377, 288, 540, 1525, 328, 273, 404, 48, 2296, 662, 2156, 31, 540, 4639, 6452, 30, 741, 540, 288, 5411, 1620, 12, 78, 78, 2019, 694, 63, 413, 77, 5717, 5411, 288, 9079, 648, 404, 30, 5375, 309, 14015, 20, 92, 23, 1403, 12648, 2787, 48, 473, 328, 13, 480, 374, 48, 13, 5375, 288, 5397, 309, 261, 9224, 405, 404, 13, 13491, 3846, 273, 404, 31, 5397, 10684, 1564, 50, 986, 7629, 12, 20, 16, 8043, 1769, 5375, 289, 5375, 309, 14015, 20, 92, 23, 1403, 12648, 2787, 48, 473, 328, 13, 480, 374, 48, 13, 5397, 10684, 1564, 50, 986, 7629, 12, 2643, 16, 10213, 1769, 5375, 898, 31, 9079, 648, 576, 30, 9079, 648, 20170, 30, 5375, 309, 14015, 20, 92, 23, 1403, 12648, 2787, 48, 473, 328, 13, 480, 374, 48, 13, 5397, 10684, 1564, 50, 986, 11710, 7629, 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, 727, 509, 10684, 7607, 50, 507, 67, 20, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750, 273, 18821, 31, 282, 509, 277, 273, 404, 31, 282, 10684, 2019, 694, 63, 20, 65, 273, 787, 1119, 31, 282, 509, 525, 16, 3846, 273, 374, 92, 27, 18217, 74, 31, 282, 364, 261, 25708, 13, 282, 288, 1377, 309, 261, 9904, 78, 78, 2260, 422, 374, 92, 27, 18217, 74, 13, 540, 868, 2570, 54, 9284, 5621, 1377, 309, 261, 1397, 2156, 411, 5178, 13, 1377, 288, 540, 1525, 328, 273, 404, 48, 2296, 662, 2156, 31, 540, 4639, 6452, 30, 2 ]
if(!members.contains(objectName)) {
if (!members.contains(objectName)) {
private final void enrollInRelationships() throws StartException { String relationshipType = null; String relationshipRole = null; String targetRoleName = null; try { Set relationships = dependencyService.getRelationships(objectName); for (Iterator i = relationships.iterator(); i.hasNext();) { MBeanRelationship relationship = (MBeanRelationship) i.next(); // if we don't have a relationship instance create one String relationshipName = relationship.getName(); relationshipRole = relationship.getRole(); if (!relationService.hasRelation(relationshipName).booleanValue()) { relationshipType = relationship.getType(); RoleList roleList = new RoleList(); roleList.add(new Role(relationshipRole, Collections.singletonList(objectName))); // if we have a target we need to add it to the role list ObjectName target = relationship.getTarget(); if (target != null) { targetRoleName = relationship.getTargetRole(); if (targetRoleName == null || targetRoleName.length() == 0) { List roles = relationService.getRoleInfos(relationshipType); if (roles.size() < 2) { throw new StartException("Relationship has less than two roles. You cannot specify a target"); } if (roles.size() > 2) { throw new StartException("Relationship has more than two roles. You must use targetRoleName"); } if (((RoleInfo) roles.get(0)).getName().equals(relationshipRole)) { targetRoleName = ((RoleInfo) roles.get(1)).getName(); } else { targetRoleName = ((RoleInfo) roles.get(0)).getName(); } } roleList.add(new Role(targetRoleName, Collections.singletonList(target))); } relationService.createRelation(relationshipName, relationshipType, roleList); } else { // We have an exiting relationship -- just add to the existing role List members = relationService.getRole(relationshipName, relationshipRole); if(!members.contains(objectName)) { members.add(objectName); relationService.setRole(relationshipName, new Role(relationshipRole, members)); } } } } catch (RelationTypeNotFoundException e) { throw new StartException("Relationship type is not registered: relationType=" + relationshipType); } catch (RelationServiceNotRegisteredException e) { throw new StartException("RelationshipService is not registered", e); } catch (RoleNotFoundException e) { throw new StartException("RelationshipService is not registered", e); } catch (InvalidRelationIdException e) { throw new StartException("Relationship type does not contain role:" + " relationType=" + relationshipType + " sourceRole=" + relationshipRole + " targetRole=" + targetRoleName, e); } catch (InvalidRoleValueException e) { throw new StartException("Relationship role state is invalid", e); } catch (RelationNotFoundException e) { throw new StartException("Relation was unregistered while executing", e); } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/40cf70816d34bf1ed8ffac9ed94360bb1ca26b22/AbstractStateManageable.java/clean/modules/core/src/java/org/apache/geronimo/common/AbstractStateManageable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 727, 918, 570, 2693, 382, 17185, 1435, 1216, 3603, 503, 288, 3639, 514, 5232, 559, 273, 446, 31, 3639, 514, 5232, 2996, 273, 446, 31, 3639, 514, 1018, 31278, 273, 446, 31, 3639, 775, 288, 5411, 1000, 11499, 273, 4904, 1179, 18, 588, 17185, 12, 1612, 461, 1769, 5411, 364, 261, 3198, 277, 273, 11499, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 16622, 8180, 5232, 273, 261, 18089, 8180, 13, 277, 18, 4285, 5621, 7734, 368, 309, 732, 2727, 1404, 1240, 279, 5232, 791, 752, 1245, 7734, 514, 5232, 461, 273, 5232, 18, 17994, 5621, 7734, 5232, 2996, 273, 5232, 18, 588, 2996, 5621, 7734, 309, 16051, 5488, 1179, 18, 5332, 3963, 12, 12873, 461, 2934, 6494, 620, 10756, 288, 10792, 5232, 559, 273, 5232, 18, 588, 559, 5621, 10792, 6204, 682, 2478, 682, 273, 394, 6204, 682, 5621, 10792, 2478, 682, 18, 1289, 12, 2704, 6204, 12, 12873, 2996, 16, 5737, 18, 24487, 682, 12, 1612, 461, 3719, 1769, 10792, 368, 309, 732, 1240, 279, 1018, 732, 1608, 358, 527, 518, 358, 326, 2478, 666, 10792, 21013, 1018, 273, 5232, 18, 588, 2326, 5621, 10792, 309, 261, 3299, 480, 446, 13, 288, 13491, 1018, 31278, 273, 5232, 18, 588, 2326, 2996, 5621, 13491, 309, 261, 3299, 31278, 422, 446, 747, 1018, 31278, 18, 2469, 1435, 422, 374, 13, 288, 18701, 987, 4900, 273, 2533, 1179, 18, 588, 2996, 7655, 12, 12873, 559, 1769, 18701, 309, 261, 7774, 18, 1467, 1435, 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, 727, 918, 570, 2693, 382, 17185, 1435, 1216, 3603, 503, 288, 3639, 514, 5232, 559, 273, 446, 31, 3639, 514, 5232, 2996, 273, 446, 31, 3639, 514, 1018, 31278, 273, 446, 31, 3639, 775, 288, 5411, 1000, 11499, 273, 4904, 1179, 18, 588, 17185, 12, 1612, 461, 1769, 5411, 364, 261, 3198, 277, 273, 11499, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 7734, 16622, 8180, 5232, 273, 261, 18089, 8180, 13, 277, 18, 4285, 5621, 7734, 368, 309, 732, 2727, 1404, 1240, 279, 5232, 791, 752, 1245, 7734, 514, 5232, 461, 273, 5232, 18, 17994, 5621, 7734, 5232, 2996, 273, 5232, 18, 588, 2996, 5621, 7734, 309, 16051, 5488, 1179, 18, 5332, 3963, 12, 2 ]
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (xIncludeLevel > 0 && fallbackLevel < 1) return; super.startPrefixMapping(prefix, uri);
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (isEvaluatingContent()) { super.startPrefixMapping(prefix, uri); }
public void startPrefixMapping(String prefix, String uri) throws SAXException { if (xIncludeLevel > 0 && fallbackLevel < 1) return; super.startPrefixMapping(prefix, uri); }
46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/bb4ec8469d225cd9698840dda6f8e3091e13314e/XIncludeTransformer.java/buggy/core/cocoon-core/src/main/java/org/apache/cocoon/transformation/XIncludeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 2244, 3233, 12, 780, 1633, 16, 514, 2003, 13, 7734, 1216, 14366, 288, 5411, 309, 261, 92, 8752, 2355, 405, 374, 597, 5922, 2355, 411, 404, 13, 7734, 327, 31, 5411, 2240, 18, 1937, 2244, 3233, 12, 3239, 16, 2003, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 787, 2244, 3233, 12, 780, 1633, 16, 514, 2003, 13, 7734, 1216, 14366, 288, 5411, 309, 261, 92, 8752, 2355, 405, 374, 597, 5922, 2355, 411, 404, 13, 7734, 327, 31, 5411, 2240, 18, 1937, 2244, 3233, 12, 3239, 16, 2003, 1769, 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 ]
private static ErrorStatus createErrorStatus( Throwable e ) { Throwable exception = null; String reason = null; String[] detail = null; if ( e instanceof NullPointerException || e instanceof ArrayIndexOutOfBoundsException || e instanceof SWTException || e instanceof CoreException ) { exception = e; } else if ( e instanceof DesignFileException ) { detail = e.toString( ).split( "\n" ); reason = detail[0]; } else { reason = e.getClass( ).getName( ) + " " + MSG_OCURR; if ( e.getLocalizedMessage( ) != null ) { detail = new String[]{ e.getLocalizedMessage( ) }; } else { detail = new String[]{ e.getClass( ).getName( ) }; } } ErrorStatus status = new ErrorStatus( ReportPlugin.REPORT_UI, 1001, reason, exception ); for ( int i = 0; i < detail.length; i++ ) { status.addError( detail[i] ); } for ( Throwable cause = e.getCause( ); cause != null; cause = cause.getCause( ) ) { status.addCause( cause ); } return status; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/94766bcea8ce3f79076946accb49afc4cde40860/ExceptionHandler.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/util/ExceptionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 11365, 270, 395, 2126, 668, 1482, 2640, 668, 1482, 12, 15155, 73, 13, 202, 95, 202, 202, 15155, 4064, 33, 2011, 31, 202, 202, 780, 10579, 33, 2011, 31, 202, 202, 780, 8526, 8992, 33, 2011, 31, 202, 202, 430, 12, 73, 1336, 792, 2041, 9992, 9506, 202, 20081, 73, 1336, 792, 1076, 30548, 9506, 202, 20081, 73, 1336, 792, 55, 8588, 503, 9506, 202, 20081, 73, 1336, 792, 25341, 13, 202, 202, 95, 1082, 202, 4064, 33, 73, 31, 202, 202, 97, 202, 202, 12107, 430, 12, 73, 1336, 792, 15478, 812, 503, 13, 202, 202, 95, 1082, 202, 8992, 33, 73, 18, 10492, 7675, 4939, 31458, 82, 8863, 1082, 202, 10579, 33, 8992, 63, 20, 15533, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 10579, 33, 73, 18, 588, 797, 7675, 17994, 1435, 15, 3660, 15, 11210, 67, 51, 7509, 54, 31, 1082, 202, 430, 12, 73, 18, 588, 2042, 1235, 1079, 1435, 5, 33, 2011, 13, 1082, 202, 95, 9506, 202, 8992, 33, 2704, 780, 63, 7073, 6862, 202, 73, 18, 588, 2042, 1235, 1079, 1435, 9506, 202, 20451, 1082, 202, 97, 1082, 202, 12107, 1082, 202, 95, 9506, 202, 8992, 33, 2704, 780, 63, 7073, 6862, 202, 73, 18, 588, 797, 7675, 17994, 1435, 9506, 202, 20451, 1082, 202, 97, 202, 202, 97, 202, 202, 668, 1482, 2327, 33, 2704, 668, 1482, 12, 4820, 3773, 18, 22710, 67, 5370, 16, 9506, 202, 6625, 21, 16, 9506, 202, 10579, 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, 11365, 270, 395, 2126, 668, 1482, 2640, 668, 1482, 12, 15155, 73, 13, 202, 95, 202, 202, 15155, 4064, 33, 2011, 31, 202, 202, 780, 10579, 33, 2011, 31, 202, 202, 780, 8526, 8992, 33, 2011, 31, 202, 202, 430, 12, 73, 1336, 792, 2041, 9992, 9506, 202, 20081, 73, 1336, 792, 1076, 30548, 9506, 202, 20081, 73, 1336, 792, 55, 8588, 503, 9506, 202, 20081, 73, 1336, 792, 25341, 13, 202, 202, 95, 1082, 202, 4064, 33, 73, 31, 202, 202, 97, 202, 202, 12107, 430, 12, 73, 1336, 792, 15478, 812, 503, 13, 202, 202, 95, 1082, 202, 8992, 33, 73, 18, 10492, 7675, 4939, 31458, 82, 8863, 1082, 202, 10579, 33, 8992, 63, 20, 2 ]
try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file);
synchronized (this) { try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file); }
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + suffixes[i]; break; } } if(library == null) { library = findLibrary(file); if(library != null) { loadName = file; } } library = tryLoadExtension(library,file); if (library == null) { throw runtime.newLoadError("No such file to load -- " + file); } try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13706, 2563, 12, 780, 585, 13, 288, 3639, 18694, 5313, 273, 446, 31, 3639, 514, 1262, 461, 273, 585, 31, 7734, 368, 5083, 4671, 16, 775, 18333, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 18333, 18, 2469, 31, 277, 27245, 288, 5411, 5313, 273, 1104, 9313, 12, 768, 397, 18333, 63, 77, 19226, 5411, 309, 261, 12083, 480, 446, 13, 288, 7734, 1262, 461, 273, 585, 397, 18333, 63, 77, 15533, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 309, 12, 12083, 422, 446, 13, 288, 5411, 5313, 273, 1104, 9313, 12, 768, 1769, 5411, 309, 12, 12083, 480, 446, 13, 288, 7734, 1262, 461, 273, 585, 31, 5411, 289, 3639, 289, 3639, 5313, 273, 775, 2563, 3625, 12, 12083, 16, 768, 1769, 3639, 309, 261, 12083, 422, 446, 13, 288, 5411, 604, 3099, 18, 2704, 2563, 668, 2932, 2279, 4123, 585, 358, 1262, 1493, 315, 397, 585, 1769, 3639, 289, 3639, 775, 288, 5411, 4203, 8696, 3061, 18, 1289, 12, 768, 1769, 5411, 4203, 8696, 18, 1289, 12, 9448, 18, 2704, 780, 12, 945, 461, 10019, 5411, 5313, 18, 945, 12, 9448, 1769, 3639, 289, 1044, 261, 14106, 425, 13, 288, 5411, 4203, 8696, 3061, 18, 4479, 12, 768, 1769, 5411, 4203, 8696, 18, 4479, 12, 9448, 18, 2704, 780, 12, 945, 461, 10019, 5411, 604, 3099, 18, 2704, 2563, 668, 2932, 4294, 555, 1493, 315, 397, 585, 1769, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13706, 2563, 12, 780, 585, 13, 288, 3639, 18694, 5313, 273, 446, 31, 3639, 514, 1262, 461, 273, 585, 31, 7734, 368, 5083, 4671, 16, 775, 18333, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 18333, 18, 2469, 31, 277, 27245, 288, 5411, 5313, 273, 1104, 9313, 12, 768, 397, 18333, 63, 77, 19226, 5411, 309, 261, 12083, 480, 446, 13, 288, 7734, 1262, 461, 273, 585, 397, 18333, 63, 77, 15533, 7734, 898, 31, 5411, 289, 3639, 289, 3639, 309, 12, 12083, 422, 446, 13, 288, 5411, 5313, 273, 1104, 9313, 12, 768, 1769, 5411, 309, 12, 12083, 480, 446, 13, 288, 7734, 1262, 461, 273, 585, 31, 5411, 289, 3639, 289, 3639, 2 ]
public NoFrames(Tag tag){ super(tag);
public NoFrames(){ this(new Tag("NOFRAMES"));
public NoFrames(Tag tag){ super(tag); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/cc323a7cc819ef90c1be0849f6c8df50e43667e7/NoFrames.java/clean/modules/edtplug/classes/netscape/plugin/composer/frameEdit/NoFrames.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2631, 15162, 12, 1805, 1047, 15329, 3639, 2240, 12, 2692, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2631, 15162, 12, 1805, 1047, 15329, 3639, 2240, 12, 2692, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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.IOIid getIOIid() throws FieldNotFound { org.quickfix.field.IOIid value = new org.quickfix.field.IOIid();
public quickfix.field.IOIid getIOIid() throws FieldNotFound { quickfix.field.IOIid value = new quickfix.field.IOIid();
public org.quickfix.field.IOIid getIOIid() throws FieldNotFound { org.quickfix.field.IOIid value = new org.quickfix.field.IOIid(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 336, 4294, 45, 350, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 336, 4294, 45, 350, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 4294, 45, 350, 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 ]
if (isUserFile) maybeAddRollupDefinitions(cachedIncludeFile);
public void caseAIncludeDeclaration(AIncludeDeclaration node) { String line = node.getIncludeDirective().getText(); inheritedDatafile = line.substring(includeTag.length()).trim(); // Add proper exception handling in case someone is somehow using // the deprecated include syntax. if (inheritedDatafile.startsWith("\"")) { throw new LoadingException (new InvalidDatafileFormat ("datafile #include directives with relative" + " paths are no longer supported.")); } try { Map cachedIncludeFile = loadIncludedFileDefinitions(inheritedDatafile); if (isUserFile) maybeAddRollupDefinitions(cachedIncludeFile); Map filteredIncludeFile = cachedIncludeFile; if (node.getExcludeClause() != null) { IdentifierLister filter = new IdentifierLister(); node.getExcludeClause().apply(filter); filteredIncludeFile = filterDefinitions (cachedIncludeFile, filter.identifiers, filter.strings); } dest.putAll(filteredIncludeFile); } catch (Exception e) { throw new LoadingException(e); } }
5494 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5494/5d9c7fb31b6b1f8ddfd6c23073ba205966dd0e25/DataRepository.java/buggy/processdash/src/net/sourceforge/processdash/data/repository/DataRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 648, 37, 8752, 6094, 12, 37, 8752, 6094, 756, 13, 288, 7734, 514, 980, 273, 756, 18, 588, 8752, 13307, 7675, 588, 1528, 5621, 7734, 12078, 751, 768, 273, 980, 18, 28023, 12, 6702, 1805, 18, 2469, 1435, 2934, 5290, 5621, 7734, 368, 1436, 5338, 1520, 5057, 316, 648, 18626, 353, 28578, 1450, 7734, 368, 326, 6849, 2341, 6279, 18, 7734, 309, 261, 6018, 329, 751, 768, 18, 17514, 1190, 2932, 8530, 3719, 288, 10792, 604, 394, 4444, 21546, 13491, 261, 2704, 1962, 751, 768, 1630, 18701, 7566, 892, 768, 468, 6702, 13877, 598, 3632, 6, 397, 11794, 315, 2953, 854, 1158, 7144, 3260, 1199, 10019, 7734, 289, 7734, 775, 288, 10792, 1635, 3472, 8752, 812, 273, 13491, 1262, 19323, 812, 7130, 12, 6018, 329, 751, 768, 1769, 10792, 309, 261, 291, 1299, 812, 13, 13491, 6944, 986, 24194, 416, 7130, 12, 7097, 8752, 812, 1769, 10792, 1635, 5105, 8752, 812, 273, 3472, 8752, 812, 31, 10792, 309, 261, 2159, 18, 588, 12689, 7044, 1435, 480, 446, 13, 288, 13491, 10333, 18391, 1034, 273, 394, 10333, 18391, 5621, 13491, 756, 18, 588, 12689, 7044, 7675, 9010, 12, 2188, 1769, 13491, 5105, 8752, 812, 273, 1034, 7130, 18701, 261, 7097, 8752, 812, 16, 1034, 18, 20218, 16, 1034, 18, 10219, 1769, 10792, 289, 10792, 1570, 18, 458, 1595, 12, 12071, 8752, 812, 1769, 7734, 289, 1044, 261, 503, 425, 13, 288, 10792, 604, 394, 4444, 21546, 12, 73, 1769, 7734, 289, 5411, 289, 2, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 648, 37, 8752, 6094, 12, 37, 8752, 6094, 756, 13, 288, 7734, 514, 980, 273, 756, 18, 588, 8752, 13307, 7675, 588, 1528, 5621, 7734, 12078, 751, 768, 273, 980, 18, 28023, 12, 6702, 1805, 18, 2469, 1435, 2934, 5290, 5621, 7734, 368, 1436, 5338, 1520, 5057, 316, 648, 18626, 353, 28578, 1450, 7734, 368, 326, 6849, 2341, 6279, 18, 7734, 309, 261, 6018, 329, 751, 768, 18, 17514, 1190, 2932, 8530, 3719, 288, 10792, 604, 394, 4444, 21546, 13491, 261, 2704, 1962, 751, 768, 1630, 18701, 7566, 892, 768, 468, 6702, 13877, 598, 3632, 6, 397, 11794, 315, 2953, 854, 1158, 7144, 3260, 1199, 10019, 7734, 289, 7734, 775, 288, 10792, 1635, 3472, 8752, 812, 2 ]
if (charset!=null) { return messageMimeType+"; charset=\""+charset+"\""; } else {
if (charset != null) { return messageMimeType + "; charset=\"" + charset + "\""; } else {
String getContentType() { if (charset!=null) { return messageMimeType+"; charset=\""+charset+"\""; } else { return messageMimeType; } }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/70daedda2cdd1b8e9245311c1790bef77a5e3fb4/HTMLEmailPublisher.java/buggy/main/src/net/sourceforge/cruisecontrol/publishers/HTMLEmailPublisher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 17470, 1435, 288, 3639, 309, 261, 9999, 5, 33, 2011, 13, 288, 5411, 327, 883, 16821, 9078, 31, 4856, 13186, 15, 9999, 9078, 8530, 31, 3639, 289, 3639, 469, 288, 5411, 327, 883, 16821, 31, 3639, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 514, 17470, 1435, 288, 3639, 309, 261, 9999, 5, 33, 2011, 13, 288, 5411, 327, 883, 16821, 9078, 31, 4856, 13186, 15, 9999, 9078, 8530, 31, 3639, 289, 3639, 469, 288, 5411, 327, 883, 16821, 31, 3639, 289, 565, 289, 377, 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 ]
private Entry getEntry( Address addr ) { synchronized( acks ) { int size = acks.size(); for( int i=0; i<size; i++ ) { Object temp_obj = acks.elementAt(i); if ( temp_obj instanceof Entry ) { Entry this_entry = (Entry) temp_obj; if ( (this_entry.addr).equals(addr) ) { return this_entry; } } else { log.error( "Error: (TOTAL_OLD) MessageAcks.getEntry() - could not cast element of \"acks\" to an Entry" ); } }
private Entry getEntry(Address addr) { synchronized(acks) { int size=acks.size(); for(int i=0; i < size; i++) { Object temp_obj=acks.elementAt(i); if(temp_obj instanceof Entry) { Entry this_entry=(Entry)temp_obj; if((this_entry.addr).equals(addr)) { return this_entry; } } else { log.error("Error: (TOTAL_OLD) MessageAcks.getEntry() - could not cast element of \"acks\" to an Entry"); } }
private Entry getEntry( Address addr ) { synchronized( acks ) { // look for this addreess in the acknowledgement Vector int size = acks.size(); for( int i=0; i<size; i++ ) { Object temp_obj = acks.elementAt(i); if ( temp_obj instanceof Entry ) { Entry this_entry = (Entry) temp_obj; if ( (this_entry.addr).equals(addr) ) { // the given Address matches this entry return this_entry; } } else { log.error( "Error: (TOTAL_OLD) MessageAcks.getEntry() - could not cast element of \"acks\" to an Entry" ); } // if ( temp_obj instanceof Entry ) } // if we get here, we didn't find this Address return null; } }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/5ad015d9a78e1da3350d9b398b46b2f5d4508564/TOTAL_OLD.java/clean/src/org/jgroups/protocols/TOTAL_OLD.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 3841, 15428, 12, 5267, 3091, 262, 288, 202, 22043, 12, 8479, 87, 262, 288, 202, 565, 368, 2324, 364, 333, 527, 266, 403, 316, 326, 23262, 75, 820, 5589, 202, 565, 509, 963, 273, 8479, 87, 18, 1467, 5621, 202, 565, 364, 12, 509, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 9904, 262, 288, 202, 202, 921, 1906, 67, 2603, 273, 8479, 87, 18, 2956, 861, 12, 77, 1769, 202, 202, 430, 261, 1906, 67, 2603, 1276, 3841, 262, 288, 1082, 565, 3841, 333, 67, 4099, 273, 261, 1622, 13, 1906, 67, 2603, 31, 1082, 565, 309, 261, 261, 2211, 67, 4099, 18, 4793, 2934, 14963, 12, 4793, 13, 262, 288, 1082, 202, 759, 326, 864, 5267, 1885, 333, 1241, 1082, 202, 2463, 333, 67, 4099, 31, 1082, 565, 289, 202, 202, 97, 469, 288, 1082, 565, 613, 18, 1636, 12, 315, 668, 30, 261, 28624, 67, 11846, 13, 2350, 11931, 87, 18, 588, 1622, 1435, 300, 3377, 486, 4812, 930, 434, 1239, 22098, 2412, 358, 392, 3841, 6, 11272, 202, 202, 97, 368, 309, 261, 1906, 67, 2603, 1276, 3841, 262, 202, 565, 289, 202, 565, 368, 309, 732, 336, 2674, 16, 732, 10242, 1404, 1104, 333, 5267, 202, 565, 327, 446, 31, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 3238, 3841, 15428, 12, 5267, 3091, 262, 288, 202, 22043, 12, 8479, 87, 262, 288, 202, 565, 368, 2324, 364, 333, 527, 266, 403, 316, 326, 23262, 75, 820, 5589, 202, 565, 509, 963, 273, 8479, 87, 18, 1467, 5621, 202, 565, 364, 12, 509, 277, 33, 20, 31, 277, 32, 1467, 31, 277, 9904, 262, 288, 202, 202, 921, 1906, 67, 2603, 273, 8479, 87, 18, 2956, 861, 12, 77, 1769, 202, 202, 430, 261, 1906, 67, 2603, 1276, 3841, 262, 288, 1082, 565, 3841, 333, 67, 4099, 273, 261, 1622, 13, 1906, 67, 2603, 31, 1082, 565, 309, 261, 261, 2211, 67, 4099, 18, 4793, 2934, 14963, 12, 4793, 13, 262, 288, 1082, 202, 759, 326, 2 ]
throw new TypeError(getRuntime(), index, getRuntime().getClasses().getIntegerClass());
throw getRuntime().newTypeError(index, getRuntime().getClasses().getIntegerClass());
public IRubyObject aset(IRubyObject index, IRubyObject value) { if (! (index instanceof RubyInteger)) { throw new TypeError(getRuntime(), index, getRuntime().getClasses().getIntegerClass()); } int intIndex = (int) ((RubyInteger) index).getLongValue(); if (! (value instanceof JavaObject)) { throw new TypeError(getRuntime(), "not a java object:" + value); } Object javaObject = ((JavaObject) value).getValue(); try { Array.set(getValue(), intIndex, javaObject); } catch (IndexOutOfBoundsException e) { throw new ArgumentError(getRuntime(), "index out of bounds for java array (" + intIndex + " for length " + getLength() + ")"); } catch (ArrayStoreException e) { throw new ArgumentError(getRuntime(), "wrong element type " + javaObject.getClass() + "(array is " + getValue().getClass() + ")"); } return value; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/870e1da9b41bfdbae259e1fc5f18fc8b76686998/JavaArray.java/buggy/src/org/jruby/javasupport/JavaArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 487, 278, 12, 7937, 10340, 921, 770, 16, 15908, 10340, 921, 460, 13, 288, 540, 309, 16051, 261, 1615, 1276, 19817, 4522, 3719, 288, 5411, 604, 18814, 7675, 2704, 19030, 12, 1615, 16, 18814, 7675, 588, 4818, 7675, 588, 4522, 797, 10663, 3639, 289, 3639, 509, 509, 1016, 273, 261, 474, 13, 14015, 54, 10340, 4522, 13, 770, 2934, 588, 3708, 620, 5621, 3639, 309, 16051, 261, 1132, 1276, 5110, 921, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 902, 279, 2252, 733, 2773, 397, 460, 1769, 3639, 289, 3639, 1033, 2252, 921, 273, 14015, 5852, 921, 13, 460, 2934, 24805, 5621, 3639, 775, 288, 5411, 1510, 18, 542, 12, 24805, 9334, 509, 1016, 16, 2252, 921, 1769, 3639, 289, 1044, 261, 30548, 425, 13, 288, 5411, 604, 394, 9236, 12, 588, 5576, 9334, 4766, 565, 315, 1615, 596, 434, 4972, 364, 2252, 526, 7566, 397, 509, 1016, 397, 4766, 565, 315, 364, 769, 315, 397, 9888, 1435, 397, 7310, 1769, 3639, 289, 1044, 261, 1076, 21151, 425, 13, 288, 5411, 604, 394, 9236, 12, 588, 5576, 9334, 4766, 565, 315, 21530, 930, 618, 315, 397, 2252, 921, 18, 588, 797, 1435, 397, 7751, 1126, 353, 315, 397, 4766, 565, 2366, 7675, 588, 797, 1435, 397, 7310, 1769, 3639, 289, 3639, 327, 460, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 487, 278, 12, 7937, 10340, 921, 770, 16, 15908, 10340, 921, 460, 13, 288, 540, 309, 16051, 261, 1615, 1276, 19817, 4522, 3719, 288, 5411, 604, 18814, 7675, 2704, 19030, 12, 1615, 16, 18814, 7675, 588, 4818, 7675, 588, 4522, 797, 10663, 3639, 289, 3639, 509, 509, 1016, 273, 261, 474, 13, 14015, 54, 10340, 4522, 13, 770, 2934, 588, 3708, 620, 5621, 3639, 309, 16051, 261, 1132, 1276, 5110, 921, 3719, 288, 5411, 604, 394, 3580, 12, 588, 5576, 9334, 315, 902, 279, 2252, 733, 2773, 397, 460, 1769, 3639, 289, 3639, 1033, 2252, 921, 273, 14015, 5852, 921, 13, 460, 2934, 24805, 5621, 3639, 775, 288, 5411, 1510, 18, 542, 12, 24805, 2 ]
case 3:
case 4:
protected int letUserCorrect(String basename, String errorMessage) throws IOException { int choice = JOptionPane.showOptionDialog(null, "Misalignment problem for "+basename+":\n"+ errorMessage, "Correct alignment for "+basename, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, new String[] {"Edit RAWMARYXML", "Edit unit labels", "Remove utterance from list", "Remove all upcoming wrong", "Skip", "Skip all"}, null); switch (choice) { case 0: editMaryXML(basename); return TRYAGAIN; case 1: editUnitLabels(basename); return TRYAGAIN; case 2: return REMOVE; case 3: return REMOVEALL; case 4: return SKIP; case 5: return SKIPALL; default: // JOptionPane.CLOSED_OPTION return SKIP; // don't verify again. } }
18648 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18648/a979509021f05d987bd7f9cf428f03edfb592aed/LabelFeatureAligner.java/clean/java/de/dfki/lt/mary/unitselection/voiceimport/LabelFeatureAligner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 2231, 1299, 16147, 12, 780, 4882, 16, 514, 9324, 13, 1216, 1860, 565, 288, 3639, 509, 6023, 273, 804, 1895, 8485, 18, 4500, 1895, 6353, 12, 2011, 16, 7734, 315, 11729, 14409, 6199, 364, 13773, 13909, 9078, 5581, 82, 6, 15, 7734, 9324, 16, 7734, 315, 16147, 8710, 364, 13773, 13909, 16, 7734, 804, 1895, 8485, 18, 29081, 67, 3417, 67, 25268, 67, 7425, 16, 1171, 804, 1895, 8485, 18, 4740, 1146, 67, 8723, 16, 1171, 446, 16, 7734, 394, 514, 8526, 12528, 4666, 29118, 11293, 4201, 3113, 315, 4666, 2836, 3249, 3113, 315, 3288, 31297, 628, 666, 3113, 315, 3288, 777, 731, 5522, 7194, 3113, 315, 6368, 3113, 315, 6368, 777, 6, 5779, 7734, 446, 1769, 3639, 1620, 261, 11569, 13, 288, 3639, 648, 374, 30, 2398, 3874, 49, 814, 4201, 12, 13909, 1769, 5411, 327, 4235, 61, 1781, 6964, 31, 3639, 648, 404, 30, 5411, 3874, 2802, 5888, 12, 13909, 1769, 5411, 327, 4235, 61, 1781, 6964, 31, 3639, 648, 576, 30, 5411, 327, 26056, 31, 3639, 648, 1059, 30, 5411, 327, 26056, 4685, 31, 3639, 648, 1059, 30, 5411, 327, 18420, 31, 3639, 648, 1381, 30, 5411, 327, 18420, 4685, 31, 3639, 805, 30, 368, 804, 1895, 8485, 18, 28475, 67, 7425, 5411, 327, 18420, 31, 368, 2727, 1404, 3929, 3382, 18, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 2231, 1299, 16147, 12, 780, 4882, 16, 514, 9324, 13, 1216, 1860, 565, 288, 3639, 509, 6023, 273, 804, 1895, 8485, 18, 4500, 1895, 6353, 12, 2011, 16, 7734, 315, 11729, 14409, 6199, 364, 13773, 13909, 9078, 5581, 82, 6, 15, 7734, 9324, 16, 7734, 315, 16147, 8710, 364, 13773, 13909, 16, 7734, 804, 1895, 8485, 18, 29081, 67, 3417, 67, 25268, 67, 7425, 16, 1171, 804, 1895, 8485, 18, 4740, 1146, 67, 8723, 16, 1171, 446, 16, 7734, 394, 514, 8526, 12528, 4666, 29118, 11293, 4201, 3113, 315, 4666, 2836, 3249, 3113, 315, 3288, 31297, 628, 666, 3113, 315, 3288, 777, 731, 5522, 7194, 3113, 315, 6368, 3113, 315, 6368, 777, 6, 5779, 7734, 446, 2 ]
private void expand() { int i; if (isCompact) { char[] tempArray; tempArray = new char[UNICODECOUNT]; for (i = 0; i < UNICODECOUNT; ++i) { tempArray[i] = elementAt((char)i); } for (i = 0; i < INDEXCOUNT; ++i) { indices[i] = (char)(i<<BLOCKSHIFT); } values = null; values = tempArray; isCompact = false; } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/e87b31606f688d97d1580bcab4c7589a7d24935d/CompactCharArray.java/buggy/icu4j/src/com/ibm/icu/util/CompactCharArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 90, 11359, 561, 84, 464, 1435, 95, 474, 77, 31, 430, 12, 291, 16863, 15329, 3001, 8526, 5814, 1076, 31, 5814, 1076, 33, 2704, 3001, 63, 26642, 7240, 15533, 1884, 12, 77, 33, 20, 31, 77, 32, 26642, 7240, 31, 9904, 77, 15329, 5814, 1076, 63, 77, 65, 33, 2956, 861, 12443, 3001, 13, 77, 1769, 97, 1884, 12, 77, 33, 20, 31, 77, 32, 9199, 7240, 31, 9904, 77, 15329, 6836, 63, 77, 65, 28657, 3001, 21433, 77, 17685, 11403, 23191, 1769, 97, 2372, 33, 2011, 31, 2372, 33, 5814, 1076, 31, 291, 16863, 33, 5743, 31, 9090, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 90, 11359, 561, 84, 464, 1435, 95, 474, 77, 31, 430, 12, 291, 16863, 15329, 3001, 8526, 5814, 1076, 31, 5814, 1076, 33, 2704, 3001, 63, 26642, 7240, 15533, 1884, 12, 77, 33, 20, 31, 77, 32, 26642, 7240, 31, 9904, 77, 15329, 5814, 1076, 63, 77, 65, 33, 2956, 861, 12443, 3001, 13, 77, 1769, 97, 1884, 12, 77, 33, 20, 31, 77, 32, 9199, 7240, 31, 9904, 77, 15329, 6836, 63, 77, 65, 28657, 3001, 21433, 77, 17685, 11403, 23191, 1769, 97, 2372, 33, 2011, 31, 2372, 33, 5814, 1076, 31, 291, 16863, 33, 5743, 31, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected void printOrder() { // TODO // vzimane na stoinostite ot imenata na kolonite i popalvaneto im v hashmapa setRow(getTable().getSelectedRow()); setAllVariables(); String jasperFile = ""; java.util.HashMap hm = new java.util.HashMap(); if (jRadioButton1.isSelected()) { jasperFile = "pn_freeform_razpla6taniq.jasper"; hm.put("bank", " "); hm.put("branch", ""); hm.put("address", " 1"); hm.put("contragent", " ."); hm.put("IBANcontragent", "BG5531GKS15154143878458"); hm.put("BICcontragent", "BGGKSYTR"); hm.put("BANKcontragent", " "); hm.put("currency", "BGN"); hm.put("amount", this.getAmount()); hm.put("reason", this.getOsnovanie().toUpperCase()); hm.put("comment", " "); hm.put("firm", " ."); hm.put("iban", "BG558531GKS541438715184"); hm.put("bic", "KSYBGGTR"); } else if (jRadioButton2.isSelected()) { jasperFile = "pn_freeform_wnosna_belejka.jasper"; imakante.com.priceToString prcT = new imakante.com.priceToString(); double w = this.getAmount(); prcT.setValue(w); prcT.ConstString(); hm.put("bank", " "); hm.put("branch", ""); hm.put("address", " 1"); hm.put("place", ""); hm.put("contragent", " ."); hm.put("IBAN", "BG5531GKS15154143878458"); hm.put("currency", "BGN"); hm.put("amount", this.getAmount()); hm.put("words", prcT.getEndString().toUpperCase()); hm.put("person", " "); hm.put("reason", this.getOsnovanie().toUpperCase()); } else { } imakante.com.vcomponents.tableDialog td = new imakante.com.vcomponents.tableDialog(this, true, null, getConn(), hm, jasperFile, "\u0418\u0437\u0433\u043B\u0435\u0434 \u043D\u0430 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u0442\u043E \u043D\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435", ""); td.setVisible(true); }
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/3b247d6dc9dc0465358f9c3515a1654c87bf888a/FrmPayingOrders.java/buggy/src/imakante/sales/FrmPayingOrders.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1172, 2448, 1435, 288, 13491, 368, 2660, 540, 368, 24856, 381, 8806, 9583, 384, 885, 669, 1137, 15835, 709, 275, 396, 9583, 417, 355, 265, 1137, 277, 1843, 287, 90, 304, 11453, 709, 331, 1651, 1458, 69, 1171, 444, 1999, 12, 588, 1388, 7675, 588, 7416, 1999, 10663, 3639, 30213, 6158, 5621, 3639, 514, 525, 345, 457, 812, 273, 1408, 31, 3639, 2252, 18, 1367, 18, 8658, 16349, 273, 394, 2252, 18, 1367, 18, 8658, 5621, 3639, 309, 261, 78, 19984, 3616, 21, 18, 291, 7416, 10756, 288, 5411, 525, 345, 457, 812, 273, 315, 7449, 67, 9156, 687, 67, 354, 94, 412, 69, 26, 88, 304, 18638, 18, 78, 345, 457, 14432, 5411, 16349, 18, 458, 2932, 10546, 3113, 315, 315, 1769, 5411, 16349, 18, 458, 2932, 7500, 3113, 1408, 1769, 5411, 16349, 18, 458, 2932, 2867, 3113, 315, 225, 404, 8863, 5411, 16349, 18, 458, 2932, 591, 313, 5629, 3113, 315, 263, 8863, 5411, 16349, 18, 458, 2932, 13450, 1258, 591, 313, 5629, 3113, 315, 30098, 2539, 6938, 43, 47, 55, 3600, 29003, 3461, 7414, 27, 5193, 8204, 8863, 5411, 16349, 18, 458, 2932, 38, 2871, 591, 313, 5629, 3113, 315, 38, 19491, 47, 7474, 4349, 8863, 5411, 16349, 18, 458, 2932, 38, 20201, 591, 313, 5629, 3113, 315, 225, 315, 1769, 5411, 16349, 18, 458, 2932, 7095, 3113, 315, 38, 8318, 8863, 5411, 16349, 18, 458, 2932, 8949, 3113, 333, 18, 588, 6275, 10663, 5411, 16349, 18, 458, 2932, 10579, 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, 1172, 2448, 1435, 288, 13491, 368, 2660, 540, 368, 24856, 381, 8806, 9583, 384, 885, 669, 1137, 15835, 709, 275, 396, 9583, 417, 355, 265, 1137, 277, 1843, 287, 90, 304, 11453, 709, 331, 1651, 1458, 69, 1171, 444, 1999, 12, 588, 1388, 7675, 588, 7416, 1999, 10663, 3639, 30213, 6158, 5621, 3639, 514, 525, 345, 457, 812, 273, 1408, 31, 3639, 2252, 18, 1367, 18, 8658, 16349, 273, 394, 2252, 18, 1367, 18, 8658, 5621, 3639, 309, 261, 78, 19984, 3616, 21, 18, 291, 7416, 10756, 288, 5411, 525, 345, 457, 812, 273, 315, 7449, 67, 9156, 687, 67, 354, 94, 412, 69, 26, 88, 304, 18638, 18, 78, 345, 457, 14432, 5411, 16349, 18, 2 ]
if ( backtracking>0 && alreadyParsedRule(input, 30) ) { return ; }
public void mT44() throws RecognitionException { try { int type = T44; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:35:7: ( '<=' ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:35:7: '<=' { match("<="); } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 1071, 918, 21115, 6334, 1435, 1216, 9539, 288, 430, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 775, 288, 430, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 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, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 1071, 918, 21115, 6334, 1435, 1216, 9539, 288, 430, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 16, 5196, 13, 262, 288, 327, 274, 289, 282, 309, 261, 6888, 34, 20, 597, 1818, 11257, 2175, 12, 2630, 2 ]
MylarPlugin.fail(e, e.getMessage(), true);
ErrorLogger.fail(e, e.getMessage(), true);
public void run(IAction action) { ITask task = TaskListView.getDefault().getSelectedTask(); IResource[] resources = MylarIdePlugin.getDefault().getChangeSetManager().getResources(task); if (resources == null || resources.length == 0){ MessageDialog.openInformation(null, "Mylar Information", "There are no interesting resources in the corresponding change set.\nRefer to Synchronize view."); return; } try { MylarCommitWizard wizard = new MylarCommitWizard(resources, task); Shell shell = Workbench.getInstance().getActiveWorkbenchWindow().getShell(); if (wizard != null && shell != null && !shell.isDisposed()) { wizard.loadSize(); WizardDialog dialog = new WizardDialog(shell, wizard); dialog.setMinimumPageSize(wizard.loadSize()); dialog.create(); dialog.setTitle(WIZARD_LABEL); dialog.setBlockOnOpen(true); if(dialog.open() == Dialog.CANCEL){ dialog.close(); return; } } } catch (Exception e) { MylarPlugin.fail(e, e.getMessage(), true); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6e4c36ce82823e91011a538b1e18917054cfdf11/CompleteTaskWizardAction.java/buggy/org.eclipse.mylyn.ide.ui/src/org/eclipse/mylyn/ide/ui/actions/CompleteTaskWizardAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1285, 835, 1562, 273, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 7416, 2174, 5621, 202, 202, 45, 1420, 8526, 2703, 273, 8005, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 21565, 1318, 7675, 588, 3805, 12, 4146, 1769, 202, 202, 430, 261, 4683, 422, 446, 747, 2703, 18, 2469, 422, 374, 15329, 1082, 202, 1079, 6353, 18, 3190, 5369, 12, 2011, 16, 4405, 202, 6, 12062, 7901, 15353, 3113, 4405, 202, 6, 9828, 854, 1158, 26122, 2703, 316, 326, 4656, 2549, 444, 8403, 82, 426, 586, 358, 26535, 554, 1476, 1199, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 698, 288, 1082, 202, 12062, 7901, 5580, 27130, 24204, 273, 394, 8005, 7901, 5580, 27130, 12, 4683, 16, 1562, 1769, 25083, 202, 13220, 5972, 273, 4147, 22144, 18, 588, 1442, 7675, 588, 3896, 2421, 22144, 3829, 7675, 588, 13220, 5621, 1082, 202, 430, 261, 31837, 480, 446, 597, 5972, 480, 446, 597, 401, 10304, 18, 291, 1669, 7423, 10756, 288, 9506, 202, 31837, 18, 945, 1225, 5621, 9506, 202, 27130, 6353, 6176, 273, 394, 678, 13412, 6353, 12, 10304, 16, 24204, 1769, 9506, 202, 12730, 18, 542, 13042, 24035, 12, 31837, 18, 945, 1225, 10663, 9506, 202, 12730, 18, 2640, 5621, 9506, 202, 12730, 18, 542, 4247, 12, 59, 6867, 8085, 67, 13545, 1769, 9506, 202, 12730, 18, 542, 1768, 1398, 3678, 12, 3767, 1769, 9506, 202, 430, 12, 12730, 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, 225, 202, 482, 918, 1086, 12, 45, 1803, 1301, 13, 288, 202, 202, 1285, 835, 1562, 273, 3837, 682, 1767, 18, 588, 1868, 7675, 588, 7416, 2174, 5621, 202, 202, 45, 1420, 8526, 2703, 273, 8005, 7901, 45, 323, 3773, 18, 588, 1868, 7675, 588, 21565, 1318, 7675, 588, 3805, 12, 4146, 1769, 202, 202, 430, 261, 4683, 422, 446, 747, 2703, 18, 2469, 422, 374, 15329, 1082, 202, 1079, 6353, 18, 3190, 5369, 12, 2011, 16, 4405, 202, 6, 12062, 7901, 15353, 3113, 4405, 202, 6, 9828, 854, 1158, 26122, 2703, 316, 326, 4656, 2549, 444, 8403, 82, 426, 586, 358, 26535, 554, 1476, 1199, 1769, 1082, 202, 2463, 31, 202, 202, 97, 9506, 202, 698, 288, 1082, 2 ]
sleep(100); Activity c = new Activity() { public void run() { sleep(100); Activity d = new Activity() { public void run() { x = 1; } }; Runtime.here().runAsync(d, Runtime.getCurrentActivityInformation()); } }; Runtime.here().runAsync(c, null); }
final Clock c = (Clock) Runtime.factory.getClockFactory().clock(); Activity b = new Activity() { public void run() { Runtime.doNext(); x = 1; c.resume(); sleep(100); x = 2; } }; Runtime.here().runAsync(b, null); assertTrue(x == 0); Runtime.doNext(); Runtime.doNext(); assertTrue(x == 1); sleep(200); assertTrue(x == 2); }
public void run() { sleep(100); Activity c = new Activity() { public void run() { sleep(100); Activity d = new Activity() { public void run() { x = 1; } }; Runtime.here().runAsync(d, Runtime.getCurrentActivityInformation()); } }; Runtime.here().runAsync(c, null); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/237e8bdc28d9be8b3f8501beda0e1ad081d889aa/TestRuntime.java/clean/x10.test/src/x10/runtime/TestRuntime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 7734, 5329, 12, 6625, 1769, 7734, 9621, 276, 273, 394, 9621, 1435, 288, 10792, 1071, 918, 1086, 1435, 288, 13491, 5329, 12, 6625, 1769, 13491, 9621, 302, 273, 394, 9621, 1435, 288, 18701, 1071, 918, 1086, 1435, 288, 27573, 619, 273, 404, 31, 18701, 289, 13491, 289, 31, 4766, 5411, 2509, 18, 14852, 7675, 2681, 2771, 12, 72, 16, 2509, 18, 588, 3935, 6193, 5369, 10663, 10792, 289, 7734, 289, 31, 7734, 2509, 18, 14852, 7675, 2681, 2771, 12, 71, 16, 446, 1769, 5411, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2398, 1071, 918, 1086, 1435, 288, 7734, 5329, 12, 6625, 1769, 7734, 9621, 276, 273, 394, 9621, 1435, 288, 10792, 1071, 918, 1086, 1435, 288, 13491, 5329, 12, 6625, 1769, 13491, 9621, 302, 273, 394, 9621, 1435, 288, 18701, 1071, 918, 1086, 1435, 288, 27573, 619, 273, 404, 31, 18701, 289, 13491, 289, 31, 4766, 5411, 2509, 18, 14852, 7675, 2681, 2771, 12, 72, 16, 2509, 18, 588, 3935, 6193, 5369, 10663, 10792, 289, 7734, 289, 31, 7734, 2509, 18, 14852, 7675, 2681, 2771, 12, 71, 16, 446, 1769, 5411, 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 ]
else
iterate(traces, true, false, rawChip); traces = scheduler.getInitSchedule().iterator(); iterate(traces, false, true, rawChip); } else {
public static void run(SimpleScheduler scheduler, RawChip rawChip, boolean init) { Iterator traces; if (init) traces = scheduler.getInitSchedule().iterator(); else traces = scheduler.getSchedule().iterator(); //iterate over the traces in the given order and generate the //switch code, the tile code, and the off chip stuff for //each TraceNode Trace trace; while (traces.hasNext()) { trace = (Trace)traces.next(); //iterate over the TraceNodes TraceNode traceNode = trace.getHead(); while (traceNode != null) { SpaceTimeBackend.println("Rawify: " + traceNode); //do the appropiate code generation if (traceNode.isFilterTrace()) { FilterTraceNode filterNode = (FilterTraceNode)traceNode; assert !filterNode.isPredefined() : "Predefined filters should not appear in the trace traversal: " + trace.toString(); RawTile tile = rawChip.getTile((filterNode).getX(), (filterNode).getY()); //create the filter info class FilterInfo filterInfo = FilterInfo.getFilterInfo(filterNode); //add the dram command if this filter trace is an endpoint... generateFilterDRAMCommand(filterNode, filterInfo, tile, init, false); if (filterInfo.isLinear()) { assert FilterInfo.getFilterInfo(filterNode).remaining == 0 : "Items remaining on buffer for init for linear filter"; createSwitchCodeLinear(filterNode, trace,filterInfo,init,false,tile,rawChip); } else createSwitchCode(filterNode, trace, filterInfo, init, false, tile, rawChip); //used for debugging, nothing more tile.addFilterTrace(init, false, filterNode); //do every again for the primepump if it is the init stage and add the //compute code for the init stage if (init) { //add the dram command if this filter trace is an endpoint... generateFilterDRAMCommand(filterNode, filterInfo, tile, false, true); //create the prime pump stage switch code //after the initialization switch code createSwitchCode(filterNode, trace, filterInfo, false, true, tile, rawChip); //generate the compute code for the trace and place it in //the tile tile.getComputeCode().addTraceInit(filterInfo); //used for debugging tile.addFilterTrace(false, true, filterNode); } else { //generate the compute code for the trace and place it in //the tile tile.getComputeCode().addTraceSteady(filterInfo); } } else if (traceNode.isInputTrace() && !KjcOptions.magicdram) { assert StreamingDram.differentDRAMs((InputTraceNode)traceNode) : "inputs for a single InputTraceNode coming from same DRAM"; handleFileInput((InputTraceNode)traceNode, init, false, rawChip); //create the switch code to perform the joining joinInputTrace((InputTraceNode)traceNode, init, false); //generate the dram command to execute the joining generateInputDRAMCommands((InputTraceNode)traceNode, init, false); //now create the primepump code if (init) { handleFileInput((InputTraceNode)traceNode, false, true, rawChip); joinInputTrace((InputTraceNode)traceNode, false, true); generateInputDRAMCommands((InputTraceNode)traceNode, false, true); } } else if (traceNode.isOutputTrace() && !KjcOptions.magicdram) { assert StreamingDram.differentDRAMs((OutputTraceNode)traceNode) : "outputs for a single OutputTraceNode going to same DRAM"; handleFileOutput((OutputTraceNode)traceNode, init, false, rawChip); //create the switch code to perform the splitting splitOutputTrace((OutputTraceNode)traceNode, init, false); //generate the DRAM command outputDRAMCommands((OutputTraceNode)traceNode, init, false); //now create the primepump code if (init) { handleFileOutput((OutputTraceNode)traceNode, false, true, rawChip); splitOutputTrace((OutputTraceNode)traceNode, false, true); outputDRAMCommands((OutputTraceNode)traceNode, false, true); } } //get the next tracenode traceNode = traceNode.getNext(); } } }
5955 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5955/3bdb4ea77aed910a823dec704fea7c627d3cf1cf/Rawify.java/clean/streams/src/at/dms/kjc/spacetime/Rawify.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1086, 12, 5784, 11870, 8129, 16, 6576, 782, 625, 1831, 782, 625, 16, 9506, 282, 1250, 1208, 13, 377, 288, 202, 3198, 19649, 31, 202, 202, 430, 261, 2738, 13, 202, 565, 19649, 273, 8129, 18, 588, 2570, 6061, 7675, 9838, 5621, 202, 12107, 202, 565, 19649, 273, 8129, 18, 588, 6061, 7675, 9838, 5621, 202, 759, 18793, 1879, 326, 19649, 316, 326, 864, 1353, 471, 2103, 326, 225, 202, 759, 9610, 981, 16, 326, 4769, 981, 16, 471, 326, 3397, 18624, 10769, 364, 225, 202, 759, 13798, 2677, 907, 202, 3448, 2606, 31, 202, 202, 17523, 261, 2033, 764, 18, 5332, 2134, 10756, 288, 202, 565, 2606, 273, 261, 3448, 13, 2033, 764, 18, 4285, 5621, 202, 565, 368, 18793, 1879, 326, 2677, 3205, 202, 565, 2677, 907, 2606, 907, 273, 2606, 18, 588, 1414, 5621, 202, 565, 1323, 261, 5129, 907, 480, 446, 13, 288, 202, 202, 3819, 950, 7172, 18, 8222, 2932, 4809, 1164, 30, 315, 397, 2606, 907, 1769, 202, 202, 759, 2896, 326, 5145, 3840, 981, 9377, 202, 202, 430, 261, 5129, 907, 18, 291, 1586, 3448, 10756, 288, 1082, 565, 4008, 3448, 907, 1034, 907, 273, 261, 1586, 3448, 907, 13, 5129, 907, 31, 1082, 565, 1815, 401, 2188, 907, 18, 291, 1386, 2178, 1435, 294, 1082, 202, 6, 1386, 2178, 3415, 1410, 486, 9788, 316, 326, 2606, 15940, 30, 315, 397, 2606, 18, 10492, 5621, 1082, 565, 6576, 9337, 4769, 273, 1831, 782, 625, 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, 1071, 760, 918, 1086, 12, 5784, 11870, 8129, 16, 6576, 782, 625, 1831, 782, 625, 16, 9506, 282, 1250, 1208, 13, 377, 288, 202, 3198, 19649, 31, 202, 202, 430, 261, 2738, 13, 202, 565, 19649, 273, 8129, 18, 588, 2570, 6061, 7675, 9838, 5621, 202, 12107, 202, 565, 19649, 273, 8129, 18, 588, 6061, 7675, 9838, 5621, 202, 759, 18793, 1879, 326, 19649, 316, 326, 864, 1353, 471, 2103, 326, 225, 202, 759, 9610, 981, 16, 326, 4769, 981, 16, 471, 326, 3397, 18624, 10769, 364, 225, 202, 759, 13798, 2677, 907, 202, 3448, 2606, 31, 202, 202, 17523, 261, 2033, 764, 18, 5332, 2134, 10756, 288, 202, 565, 2606, 273, 261, 3448, 13, 2033, 764, 18, 2 ]
public int getLastChild(int nodeIndex, boolean free) { if (nodeIndex == -1) { return -1; } int chunk = nodeIndex >> CHUNK_SHIFT; int index = nodeIndex & CHUNK_MASK; return free ? clearChunkIndex(fNodeLastChild, chunk, index) : getChunkIndex(fNodeLastChild, chunk, index); }
public int getLastChild(int nodeIndex) { return getLastChild(nodeIndex, true); }
public int getLastChild(int nodeIndex, boolean free) { if (nodeIndex == -1) { return -1; } int chunk = nodeIndex >> CHUNK_SHIFT; int index = nodeIndex & CHUNK_MASK; return free ? clearChunkIndex(fNodeLastChild, chunk, index) : getChunkIndex(fNodeLastChild, chunk, index); } // getLastChild(int,boolean):int
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/0281fda09525815998bd7d9a7ca24e49558fb238/DeferredDocumentImpl.java/buggy/src/org/apache/xerces/dom/DeferredDocumentImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7595, 1763, 12, 474, 756, 1016, 16, 1250, 4843, 13, 288, 3639, 309, 261, 2159, 1016, 422, 300, 21, 13, 288, 5411, 327, 300, 21, 31, 3639, 289, 3639, 509, 2441, 273, 756, 1016, 1671, 28096, 67, 23191, 31, 3639, 509, 770, 273, 756, 1016, 473, 28096, 67, 11704, 31, 3639, 327, 4843, 692, 2424, 5579, 1016, 12, 74, 907, 3024, 1763, 16, 2441, 16, 770, 13, 10792, 294, 336, 5579, 1016, 12, 74, 907, 3024, 1763, 16, 2441, 16, 770, 1769, 565, 289, 368, 7595, 1763, 12, 474, 16, 6494, 4672, 474, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 7595, 1763, 12, 474, 756, 1016, 16, 1250, 4843, 13, 288, 3639, 309, 261, 2159, 1016, 422, 300, 21, 13, 288, 5411, 327, 300, 21, 31, 3639, 289, 3639, 509, 2441, 273, 756, 1016, 1671, 28096, 67, 23191, 31, 3639, 509, 770, 273, 756, 1016, 473, 28096, 67, 11704, 31, 3639, 327, 4843, 692, 2424, 5579, 1016, 12, 74, 907, 3024, 1763, 16, 2441, 16, 770, 13, 10792, 294, 336, 5579, 1016, 12, 74, 907, 3024, 1763, 16, 2441, 16, 770, 1769, 565, 289, 368, 7595, 1763, 12, 474, 16, 6494, 4672, 474, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
newRules.add(rule.clone());
newRules.add((IRecurrence) rule.clone());
public Object clone() { ArrayList newRules = new ArrayList(); for (Iterator iter = mRules.iterator(); iter.hasNext();) { IRecurrence rule = (IRecurrence) iter.next(); newRules.add(rule.clone()); } return new MultiRuleSorter(newRules); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/c0c7f8c93158e98e31d183ea37047718ff422275/Recurrence.java/clean/ZimbraServer/src/java/com/zimbra/cs/mailbox/calendar/Recurrence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 3236, 1435, 288, 5411, 2407, 394, 4478, 273, 394, 2407, 5621, 5411, 364, 261, 3198, 1400, 273, 312, 4478, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 467, 426, 17131, 1720, 273, 261, 45, 426, 17131, 13, 1400, 18, 4285, 5621, 7734, 394, 4478, 18, 1289, 12443, 45, 426, 17131, 13, 1720, 18, 14056, 10663, 5411, 289, 5411, 327, 394, 5991, 2175, 24952, 12, 2704, 4478, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 1033, 3236, 1435, 288, 5411, 2407, 394, 4478, 273, 394, 2407, 5621, 5411, 364, 261, 3198, 1400, 273, 312, 4478, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 13, 288, 7734, 467, 426, 17131, 1720, 273, 261, 45, 426, 17131, 13, 1400, 18, 4285, 5621, 7734, 394, 4478, 18, 1289, 12443, 45, 426, 17131, 13, 1720, 18, 14056, 10663, 5411, 289, 5411, 327, 394, 5991, 2175, 24952, 12, 2704, 4478, 1769, 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 ]
status = computeCreateStatus();
status = computeCreateStatus(false);
public IStatus computeUndoableStatus(IProgressMonitor monitor) { IStatus status = super.computeUndoableStatus(monitor); if (status.isOK()) { status = computeCreateStatus(); } return status; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/15b7ac7ecd92ec22e58163138dff63d1b48a8dd7/DeleteResourcesOperation.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/undo/DeleteResourcesOperation.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 3671, 31224, 429, 1482, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 45, 1482, 1267, 273, 2240, 18, 9200, 31224, 429, 1482, 12, 10259, 1769, 202, 202, 430, 261, 2327, 18, 291, 3141, 10756, 288, 1082, 202, 2327, 273, 3671, 1684, 1482, 5621, 202, 202, 97, 202, 202, 2463, 1267, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1482, 3671, 31224, 429, 1482, 12, 45, 5491, 7187, 6438, 13, 288, 202, 202, 45, 1482, 1267, 273, 2240, 18, 9200, 31224, 429, 1482, 12, 10259, 1769, 202, 202, 430, 261, 2327, 18, 291, 3141, 10756, 288, 1082, 202, 2327, 273, 3671, 1684, 1482, 5621, 202, 202, 97, 202, 202, 2463, 1267, 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 ]
((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series);
((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions() .get(0)).getSeries().add(series);
private Chart getConvertedChart(Chart currentChart, String sNewSubType, Orientation newOrientation, String sNewDimension) { Chart helperModel = (Chart) EcoreUtil.copy(currentChart); if((currentChart instanceof ChartWithAxes)) // Chart is ChartWithAxes { if(currentChart.getType().equals(sType)) // Original chart is of this type (BarChart) { if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series.setStacked(false); } } } } else if(currentChart.getType().equals("Line Chart") || currentChart.getType().equals("Bar Chart") || currentChart.getType().equals("Scatter Chart")) { if(!currentChart.getType().equals("Stock Chart")) { currentChart.setSampleData(getConvertedSampleData(currentChart.getSampleData())); } currentChart.setType(sType); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); if(!currentChart.getSubType().equals(sNewSubType)) // Original chart is not of the required subtype { currentChart.setSubType(sNewSubType); EList axes = ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes(); for(int i = 0; i < axes.size(); i++) { ((Axis) axes.get(i)).setPercent(false); EList seriesdefinitions = ((Axis) axes.get(i)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { Series series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().set(j, series); } } } } else { return null; } } else { // Create a new instance of the correct type and set initial properties currentChart = ChartWithAxesImpl.create(); currentChart.setType(sType); currentChart.setSubType(sNewSubType); ((ChartWithAxes) currentChart).setOrientation(newOrientation); currentChart.setDimension(getDimensionFor(sNewDimension)); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setType(AxisType.DATE_TIME_LITERAL); ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).setCategoryAxis(true); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); // Copy generic chart properties from the old chart currentChart.setBlock(helperModel.getBlock()); currentChart.setDescription(helperModel.getDescription()); currentChart.setGridColumnCount(helperModel.getGridColumnCount()); currentChart.setSampleData(getConvertedSampleData(helperModel.getSampleData())); currentChart.setScript(helperModel.getScript()); currentChart.setSeriesThickness(helperModel.getSeriesThickness()); currentChart.setUnits(helperModel.getUnits()); if(helperModel.getType().equals("Pie Chart")) { // Clear existing series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().clear(); // Copy base series definitions ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().add(((ChartWithoutAxes) helperModel).getSeriesDefinitions().get(0)); // Clear existing series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().clear(); // Copy orthogonal series definitions ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().addAll(((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeriesDefinitions()); // Update the base series Series series = ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getDesignTimeSeries(); series = getConvertedSeries(series); // Clear existing series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().clear(); // Add converted series ((SeriesDefinition) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getSeriesDefinitions().get(0)).getSeries().add(series); // Update the orthogonal series EList seriesdefinitions = ((Axis) ((Axis) ((ChartWithAxes) currentChart).getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions(); for(int j = 0; j < seriesdefinitions.size(); j++) { series = ((SeriesDefinition) seriesdefinitions.get(j)).getDesignTimeSeries(); series = getConvertedSeries(series); series.setStacked(false); // Clear any existing series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().clear(); // Add the new series ((SeriesDefinition) seriesdefinitions.get(j)).getSeries().add(series); } } else { return null; } } if(currentChart instanceof ChartWithAxes && !((ChartWithAxes) currentChart).getOrientation().equals(newOrientation)) { ((ChartWithAxes) currentChart).setOrientation(newOrientation); } if(!currentChart.getDimension().equals(getDimensionFor(sNewDimension))) { currentChart.setDimension(getDimensionFor(sNewDimension)); } return currentChart; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/33aaa1a97f4ae29f5607eeb332deeff2384cc2e3/StockChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/StockChart.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 12443, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 202, 759, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 12, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 202, 759, 19225, 4980, 353, 434, 333, 618, 261, 5190, 7984, 13, 5411, 288, 7734, 309, 12, 5, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 202, 759, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 10792, 783, 7984, 18, 542, 30511, 12, 87, 1908, 30511, 1769, 10792, 17021, 6515, 273, 14015, 6558, 13, 14015, 7984, 1190, 26494, 13, 783, 7984, 2934, 588, 26494, 7675, 588, 12, 20, 13, 2934, 588, 19233, 26494, 5621, 10792, 364, 12, 474, 277, 273, 374, 31, 277, 411, 6515, 18, 1467, 5621, 277, 27245, 10792, 288, 13491, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 542, 8410, 12, 5743, 1769, 13491, 17021, 4166, 13314, 273, 14015, 6558, 13, 6515, 18, 588, 12, 77, 13, 2934, 588, 6485, 7130, 5621, 13491, 364, 12, 474, 525, 273, 374, 31, 525, 411, 4166, 13314, 18, 1467, 5621, 525, 27245, 13491, 288, 18701, 9225, 4166, 273, 14015, 6485, 1852, 13, 4166, 13314, 18, 588, 12, 78, 13, 2934, 588, 15478, 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, 14804, 336, 22063, 7984, 12, 7984, 783, 7984, 16, 514, 272, 1908, 30511, 16, 531, 12556, 394, 14097, 16, 514, 272, 1908, 8611, 13, 565, 288, 3639, 14804, 4222, 1488, 273, 261, 7984, 13, 512, 3644, 1304, 18, 3530, 12, 2972, 7984, 1769, 3639, 309, 12443, 2972, 7984, 1276, 14804, 1190, 26494, 3719, 202, 759, 14804, 353, 14804, 1190, 26494, 3639, 288, 5411, 309, 12, 2972, 7984, 18, 588, 559, 7675, 14963, 12, 87, 559, 3719, 202, 759, 19225, 4980, 353, 434, 333, 618, 261, 5190, 7984, 13, 5411, 288, 7734, 309, 12, 5, 2972, 7984, 18, 588, 30511, 7675, 14963, 12, 87, 1908, 30511, 3719, 202, 759, 19225, 4980, 353, 434, 326, 1931, 12308, 7734, 288, 2 ]
receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), args.toJavaArray(), 0);
receiver.getInternalClass().call(receiver, iVisited.getName(), args.toJavaArray(), 0);
public void visitCallNode(CallNode iVisited) { EvaluateVisitor evaluator = EvaluateVisitor.createVisitor(self); IRubyObject receiver = evaluator.eval(iVisited.getReceiverNode()); if (iVisited.getArgsNode() == null) { // attribute set. receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), new IRubyObject[] {value}, 0); } else { // element set RubyArray args = (RubyArray) evaluator.eval(iVisited.getArgsNode()); args.append(value); receiver.getInternalClass().call(receiver.toRubyObject(), iVisited.getName(), args.toJavaArray(), 0); } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/f235ab756f32ea9496f8f880066b46ad95ebb692/AssignmentVisitor.java/buggy/org/jruby/evaluator/AssignmentVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 18176, 7413, 18256, 273, 18176, 7413, 18, 2640, 7413, 12, 2890, 1769, 3639, 15908, 10340, 921, 5971, 273, 18256, 18, 8622, 12, 77, 30019, 18, 588, 12952, 907, 10663, 3639, 309, 261, 77, 30019, 18, 588, 2615, 907, 1435, 422, 446, 13, 288, 368, 1566, 444, 18, 5411, 5971, 18, 588, 3061, 797, 7675, 1991, 12, 24454, 18, 869, 54, 10340, 921, 9334, 277, 30019, 18, 17994, 9334, 394, 15908, 10340, 921, 8526, 288, 1132, 5779, 374, 1769, 3639, 289, 469, 288, 368, 930, 444, 5411, 19817, 1076, 833, 273, 261, 54, 10340, 1076, 13, 18256, 18, 8622, 12, 77, 30019, 18, 588, 2615, 907, 10663, 5411, 833, 18, 6923, 12, 1132, 1769, 5411, 5971, 18, 588, 3061, 797, 7675, 1991, 12, 24454, 16, 277, 30019, 18, 17994, 9334, 833, 18, 869, 5852, 1076, 9334, 374, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1477, 907, 12, 1477, 907, 277, 30019, 13, 288, 3639, 18176, 7413, 18256, 273, 18176, 7413, 18, 2640, 7413, 12, 2890, 1769, 3639, 15908, 10340, 921, 5971, 273, 18256, 18, 8622, 12, 77, 30019, 18, 588, 12952, 907, 10663, 3639, 309, 261, 77, 30019, 18, 588, 2615, 907, 1435, 422, 446, 13, 288, 368, 1566, 444, 18, 5411, 5971, 18, 588, 3061, 797, 7675, 1991, 12, 24454, 18, 869, 54, 10340, 921, 9334, 277, 30019, 18, 17994, 9334, 394, 15908, 10340, 921, 8526, 288, 1132, 5779, 374, 1769, 3639, 289, 469, 288, 368, 930, 444, 5411, 19817, 1076, 833, 273, 261, 54, 10340, 1076, 13, 18256, 18, 8622, 12, 77, 30019, 18, 588, 2615, 907, 2 ]
getComponentAt(i).setParentFrame(getParentFrame());
getComponent(i).setParentFrame(getParentFrame());
protected void setParentFrame(SFrame f) { if ( f!=parentFrame ) { super.setParentFrame(f); for ( int i=0; i<getComponentCount(); i++ ) { getComponentAt(i).setParentFrame(getParentFrame()); } } }
3911 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3911/03d659395931d26ae9105b003e2411268481560d/SContainer.java/buggy/wings/src/org/wings/SContainer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12548, 3219, 12, 55, 3219, 284, 13, 288, 3639, 309, 261, 284, 5, 33, 2938, 3219, 262, 288, 5411, 2240, 18, 542, 3054, 3219, 12, 74, 1769, 5411, 364, 261, 509, 277, 33, 20, 31, 277, 32, 588, 1841, 1380, 5621, 277, 9904, 262, 288, 7734, 10322, 12, 77, 2934, 542, 3054, 3219, 12, 588, 3054, 3219, 10663, 5411, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12548, 3219, 12, 55, 3219, 284, 13, 288, 3639, 309, 261, 284, 5, 33, 2938, 3219, 262, 288, 5411, 2240, 18, 542, 3054, 3219, 12, 74, 1769, 5411, 364, 261, 509, 277, 33, 20, 31, 277, 32, 588, 1841, 1380, 5621, 277, 9904, 262, 288, 7734, 10322, 12, 77, 2934, 542, 3054, 3219, 12, 588, 3054, 3219, 10663, 5411, 289, 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 ]
((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand));
((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand));
public void execute(int limit) throws SequenceException, InvalidQueryException { SequenceDescription seqd = query.getSequenceDescription(); // need to know these indexes specifically int queryIDindex = 0; int rankIndex = 0; int assemblyIndex = 0; int startIndex = 0; int endIndex = 0; int chromIndex = 0; int strandIndex = 0; List displayIDindices = new ArrayList(); List otherIndices = new ArrayList(); queryID = "transcript_id"; coordStart = "exon_chrom_start"; coordEnd = "exon_chrom_end"; displayIDs.add("transcript_stable_id_v"); displayIDs.add("gene_stable_id_v"); updateQuery(); Attribute[] attributes = query.getAttributes(); try { CompiledSQLQuery csql = new CompiledSQLQuery( conn, query ); String sql = csql.toSQL(); String structure_table = query.getSpecies()+"_core_"+query.getFocus()+"_structure"; sql += " order by "+structure_table+".transcript_id, "+structure_table+".rank"; if (limit > 0) sql = sql+" limit "+limit; logger.info( "QUERY : " + query ); logger.info( "SQL : " +sql ); PreparedStatement ps = conn.prepareStatement( sql ); int p=1; for( int i=0, n=query.getFilters().length; i<n; ++i) { Filter f = query.getFilters()[i]; String value = f.getValue(); if ( value!=null ) { logger.info("SQL (prepared statement value) : "+p+" = " + value); ps.setString( p++, value); } } ResultSet rs = ps.executeQuery(); ResultSetMetaData rmeta = rs.getMetaData(); // process columnNames for required attribute indices for (int i = 1, nColumns = rmeta.getColumnCount(); i <= nColumns; ++i) { String column = rmeta.getColumnName(i); if (column.equals(queryID)) queryIDindex = i; else if (column.equals(Rank)) rankIndex = i; else if (column.equals(AssemblyColumn)) assemblyIndex = i; else if (column.equals(coordStart)) startIndex = i; else if (column.equals(coordEnd)) endIndex = i; else if (column.equals(Chr)) chromIndex = i; else if (column.equals(StrandColumn)) strandIndex = i; else if (displayIDs.contains(column)) displayIDindices.add(new Integer(i)); else otherIndices.add(new Integer(i)); } Integer lastTran = new Integer(0); // will hold previous transcript id, when a new one is encountered while ( rs.next() ) { Integer tranID = new Integer(rs.getInt(queryIDindex)); Integer rank = new Integer(rs.getInt(rankIndex)); if (! traniDs.containsKey(tranID)) { if (traniDs.size() > 0) { // process the previous tranID, if this isnt the first time through, then refresh the traniDs TreeMap seqWriter.writeSequences(lastTran); traniDs = new TreeMap(); } lastTran = tranID; Hashtable atts = new Hashtable(); atts.put(Locations, new TreeMap()); atts.put(Assembly, rs.getString(assemblyIndex)); traniDs.put(tranID, atts); } Hashtable tranatts = (Hashtable) traniDs.get(tranID); int start = rs.getInt(startIndex); if (start > 0) { // if start is not null, create a new SequenceLocation object from the chr, start, end, and strand String chr = rs.getString(chromIndex); int end = rs.getInt(endIndex); int strand = rs.getInt(strandIndex); // order the locations by their rank in ascending order ((TreeMap) tranatts.get(Locations)).put(rank, new SequenceLocation(chr, start, end, strand)); // keep track of the lowest start and highest end for the gene if (! tranatts.containsKey(Geneloc)) { tranatts.put(Geneloc, new SequenceLocation(chr, start, end, strand)); } else { SequenceLocation geneloc = (SequenceLocation) ((Hashtable) traniDs.get(tranID)).get(Geneloc); if (start < geneloc.getStart()) { tranatts.put(Geneloc, new SequenceLocation(chr, start, geneloc.getEnd(), strand)); // overwrite the previous copy if (end > geneloc.getEnd()) tranatts.put(Geneloc, new SequenceLocation(chr, geneloc.getStart(), end, strand)); // overwrite the previous copy } } } // process displayID, if necessary if (! tranatts.containsKey(DisplayID)) { StringBuffer displayID = new StringBuffer(); for (int i = 0, n = displayIDindices.size(); i < n; i++) { if (i>0) displayID.append( separator ); int currindex = ((Integer) displayIDindices.get(i)).intValue(); if ( rs.getString(currindex) != null ) displayID.append( rs.getString(currindex) ); } tranatts.put(DisplayID, displayID.toString()); } // Rest can be duplicates, or novel values for a given field, collect lists of values for each field // currindex is now the last index of the DisplayIDs. Increment it, and iterate over the rest of the ResultSet to print the description for (int i = 0, n = otherIndices.size(); i < n; i++) { int currindex = ((Integer) otherIndices.get(i)).intValue(); if (rs.getString(currindex) != null ) { String field = attributes[currindex-1].getName(); if (! fields.contains(field)) fields.add(field); String value = rs.getString(currindex); if ( tranatts.containsKey(field) ) { if (! ((ArrayList) tranatts.get(field)).contains(value)) ((ArrayList) tranatts.get(field)).add(value); } else { List values = new ArrayList(); values.add(value); tranatts.put(field, values); } } } // add the description, if necessary if (! tranatts.containsKey(Description)) tranatts.put( Description, seqd.getDescription() ); } // write the last transcripts data seqWriter.writeSequences(lastTran); osr.close(); } catch (IOException e) { logger.warn("Couldnt write to OutputStream\n"+e.getMessage()); throw new SequenceException(e); } catch (SQLException e) { logger.warn(e.getMessage()); throw new InvalidQueryException(e); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/16dfde49e7b6eb326a73d7c831e9910a2b1a3f42/CdnaSeqQueryRunner.java/clean/src/java/org/ensembl/mart/explorer/CdnaSeqQueryRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1836, 12, 474, 1800, 13, 1216, 8370, 503, 16, 1962, 1138, 503, 288, 202, 202, 4021, 3291, 3833, 72, 273, 843, 18, 588, 4021, 3291, 5621, 202, 202, 759, 1608, 358, 5055, 4259, 5596, 21195, 202, 202, 474, 843, 734, 1615, 273, 374, 31, 202, 202, 474, 6171, 1016, 273, 374, 31, 202, 202, 474, 19931, 1016, 273, 374, 31, 202, 202, 474, 10588, 273, 374, 31, 202, 202, 474, 13818, 273, 374, 31, 202, 202, 474, 8123, 1016, 273, 374, 31, 202, 202, 474, 16706, 1016, 273, 374, 31, 202, 202, 682, 2562, 734, 6836, 273, 394, 2407, 5621, 202, 202, 682, 1308, 8776, 273, 394, 2407, 5621, 540, 202, 202, 2271, 734, 273, 315, 27257, 67, 350, 14432, 202, 202, 5732, 1685, 273, 315, 338, 265, 67, 16298, 67, 1937, 14432, 202, 202, 5732, 1638, 273, 315, 338, 265, 67, 16298, 67, 409, 14432, 202, 202, 5417, 5103, 18, 1289, 2932, 27257, 67, 15021, 67, 350, 67, 90, 8863, 202, 202, 5417, 5103, 18, 1289, 2932, 11857, 67, 15021, 67, 350, 67, 90, 8863, 202, 202, 2725, 1138, 5621, 25083, 202, 1499, 8526, 1677, 273, 843, 18, 588, 2498, 5621, 202, 202, 698, 288, 1082, 225, 25854, 3997, 1138, 2873, 1217, 273, 394, 25854, 3997, 1138, 12, 1487, 16, 843, 11272, 1082, 225, 514, 1847, 273, 2873, 1217, 18, 869, 3997, 5621, 6862, 225, 514, 3695, 67, 2121, 273, 843, 18, 588, 1990, 606, 1435, 9078, 67, 3644, 9548, 15, 2271, 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, 1836, 12, 474, 1800, 13, 1216, 8370, 503, 16, 1962, 1138, 503, 288, 202, 202, 4021, 3291, 3833, 72, 273, 843, 18, 588, 4021, 3291, 5621, 202, 202, 759, 1608, 358, 5055, 4259, 5596, 21195, 202, 202, 474, 843, 734, 1615, 273, 374, 31, 202, 202, 474, 6171, 1016, 273, 374, 31, 202, 202, 474, 19931, 1016, 273, 374, 31, 202, 202, 474, 10588, 273, 374, 31, 202, 202, 474, 13818, 273, 374, 31, 202, 202, 474, 8123, 1016, 273, 374, 31, 202, 202, 474, 16706, 1016, 273, 374, 31, 202, 202, 682, 2562, 734, 6836, 273, 394, 2407, 5621, 202, 202, 682, 1308, 8776, 273, 394, 2407, 5621, 540, 202, 202, 2271, 734, 273, 2 ]
public void run(IProgressMonitor monitor) throws SVNException {
public void run(final IProgressMonitor monitor) throws SVNException {
public void run(IProgressMonitor monitor) throws SVNException { final ISVNClientAdapter svnClient = root.getRepository().getSVNClient(); // Prepare the parents list // we will Auto-commit parents if they are not already commited List parentsList = new ArrayList(); for (int i=0; i<resources.length; i++) { IResource currentResource = resources[i]; IContainer parent = currentResource.getParent(); ISVNLocalResource svnParentResource = SVNWorkspaceRoot.getSVNResourceFor(parent); while (parent.getType() != IResource.ROOT && parent.getType() != IResource.PROJECT && !svnParentResource.hasRemote()) { if (!inCommitList(parent)) parentsList.add(parent); parent = parent.getParent(); svnParentResource = svnParentResource.getParent(); } } // convert parents and resources to an array of File final File[] parents = new File[parentsList.size()]; for (int i = 0; i < parentsList.size();i++) parents[i] = ((IResource)parentsList.get(i)).getLocation().toFile(); final File[] resourceFiles = new File[resources.length]; for (int i = 0; i < resources.length;i++) resourceFiles[i] = resources[i].getLocation().toFile(); SVNProviderPlugin.run(new ISVNRunnable() { public void run(IProgressMonitor monitor) throws SVNException { try { monitor.beginTask(null, 100); OperationManager.getInstance().beginOperation(svnClient); // we commit the parents (not recursively) if (parents.length > 0) svnClient.commit(parents,message,false,false); // then the resources the user has requested to commit svnClient.commit(resourceFiles,message,depth == IResource.DEPTH_INFINITE,keepLocks); } catch (SVNClientException e) { throw SVNException.wrapException(e); } finally { OperationManager.getInstance().endOperation(); monitor.done(); } } }, Policy.monitorFor(monitor)); }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/8ed03502a75774882357798457771ef98592b305/CheckinResourcesCommand.java/clean/subclipse/core/src/org/tigris/subversion/subclipse/core/commands/CheckinResourcesCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 12, 6385, 467, 5491, 7187, 6438, 13, 1216, 29537, 50, 503, 288, 3639, 727, 4437, 58, 50, 1227, 4216, 5893, 82, 1227, 273, 1365, 18, 588, 3305, 7675, 588, 23927, 50, 1227, 5621, 7734, 368, 7730, 326, 6298, 666, 3639, 368, 732, 903, 8064, 17, 7371, 6298, 309, 2898, 854, 486, 1818, 3294, 329, 3639, 987, 6298, 682, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 4683, 18, 2469, 31, 277, 27245, 288, 5411, 467, 1420, 783, 1420, 273, 2703, 63, 77, 15533, 5411, 467, 2170, 982, 273, 783, 1420, 18, 588, 3054, 5621, 5411, 4437, 58, 50, 2042, 1420, 5893, 82, 3054, 1420, 273, 29537, 50, 8241, 2375, 18, 588, 23927, 50, 1420, 1290, 12, 2938, 1769, 5411, 1323, 261, 2938, 18, 588, 559, 1435, 480, 467, 1420, 18, 9185, 597, 10792, 982, 18, 588, 559, 1435, 480, 467, 1420, 18, 17147, 597, 10792, 401, 31505, 3054, 1420, 18, 5332, 5169, 10756, 288, 2398, 202, 430, 16051, 267, 5580, 682, 12, 2938, 3719, 2398, 202, 202, 12606, 682, 18, 1289, 12, 2938, 1769, 7734, 982, 273, 982, 18, 588, 3054, 5621, 7734, 5893, 82, 3054, 1420, 273, 5893, 82, 3054, 1420, 18, 588, 3054, 5621, 5411, 289, 3639, 289, 7734, 368, 1765, 6298, 471, 2703, 358, 392, 526, 434, 1387, 3639, 727, 1387, 8526, 6298, 273, 394, 1387, 63, 12606, 682, 18, 1467, 1435, 15533, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 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, 12, 6385, 467, 5491, 7187, 6438, 13, 1216, 29537, 50, 503, 288, 3639, 727, 4437, 58, 50, 1227, 4216, 5893, 82, 1227, 273, 1365, 18, 588, 3305, 7675, 588, 23927, 50, 1227, 5621, 7734, 368, 7730, 326, 6298, 666, 3639, 368, 732, 903, 8064, 17, 7371, 6298, 309, 2898, 854, 486, 1818, 3294, 329, 3639, 987, 6298, 682, 273, 394, 2407, 5621, 3639, 364, 261, 474, 277, 33, 20, 31, 277, 32, 4683, 18, 2469, 31, 277, 27245, 288, 5411, 467, 1420, 783, 1420, 273, 2703, 63, 77, 15533, 5411, 467, 2170, 982, 273, 783, 1420, 18, 588, 3054, 5621, 5411, 4437, 58, 50, 2042, 1420, 5893, 82, 3054, 1420, 273, 29537, 50, 8241, 2 ]
w.endElement();
w.endElement();
private void writeGoalParameterTable( MojoDescriptor mojoDescriptor, XMLWriter w ) { w.startElement( "table" ); w.startElement( "tr" ); w.startElement( "th" ); w.writeText( "Parameter" ); w.endElement(); w.startElement( "th" ); w.writeText( "Type" ); w.endElement(); w.startElement( "th" ); w.writeText( "Expression" ); w.endElement(); w.startElement( "th" ); w.writeText( "Description" ); w.endElement(); w.endElement(); List parameters = mojoDescriptor.getParameters(); for ( int i = 0; i < parameters.size(); i++ ) { Parameter parameter = (Parameter) parameters.get( i ); w.startElement( "tr" ); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); String paramName = parameter.getAlias(); if ( StringUtils.isEmpty( paramName ) ) { paramName = parameter.getName(); } w.startElement( "code" ); w.writeText( paramName ); w.endElement(); if ( !parameter.isRequired() ) { w.writeMarkup( " <i>(Optional)</i>" ); } if ( parameter.getExpression() != null && parameter.getExpression().startsWith( "${component." ) ) { w.writeMarkup( " <i>(Discovered)</i>" ); } w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); w.startElement( "code" ); w.addAttribute( "title", parameter.getType() ); int index = parameter.getType().lastIndexOf( "." ); if ( index >= 0 ) { w.writeText( parameter.getType().substring( index + 1 ) ); } else { w.writeText( parameter.getType() ); } w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); w.startElement( "code" ); if ( StringUtils.isNotEmpty( parameter.getExpression() ) && !parameter.getExpression().startsWith( "${component." ) ) { w.writeText( parameter.getExpression() ); } else { w.writeText( "-" ); } w.endElement(); w.endElement(); // ---------------------------------------------------------------------- // // ---------------------------------------------------------------------- w.startElement( "td" ); if ( StringUtils.isNotEmpty( parameter.getDescription() ) ) { w.writeMarkup( parameter.getDescription() ); } else { w.writeText( "No description." ); } String deprecationWarning = parameter.getDeprecated(); if ( deprecationWarning != null ) { w.writeMarkup( "<br/><b>Deprecated:</b> " ); w.writeMarkup( deprecationWarning ); if ( deprecationWarning.length() == 0 ) { w.writeText( "No reason given." ); } w.endElement(); } w.endElement(); w.endElement(); } w.endElement(); w.endElement(); }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/76d49b7d7be734d97e5e9357a6a84d8d60ef02fe/PluginXdocGenerator.java/clean/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/generator/PluginXdocGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 27716, 1662, 1388, 12, 15931, 3187, 312, 10007, 3187, 16, 3167, 2289, 341, 262, 565, 288, 3639, 341, 18, 1937, 1046, 12, 315, 2121, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 1662, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 559, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 2300, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 3291, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 409, 1046, 5621, 3639, 987, 1472, 273, 312, 10007, 3187, 18, 588, 2402, 5621, 3639, 364, 261, 509, 277, 273, 374, 31, 277, 411, 1472, 18, 1467, 5621, 277, 9904, 262, 3639, 288, 5411, 5498, 1569, 273, 261, 1662, 13, 1472, 18, 588, 12, 277, 11272, 5411, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 5411, 368, 8879, 13465, 5411, 368, 5411, 368, 8879, 13465, 5411, 341, 18, 1937, 1046, 12, 315, 4465, 6, 11272, 5411, 514, 11466, 273, 1569, 18, 588, 2936, 5621, 5411, 309, 261, 5778, 18, 291, 1921, 12, 11466, 262, 262, 5411, 288, 7734, 11466, 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, 1045, 27716, 1662, 1388, 12, 15931, 3187, 312, 10007, 3187, 16, 3167, 2289, 341, 262, 565, 288, 3639, 341, 18, 1937, 1046, 12, 315, 2121, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 313, 6, 11272, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 1662, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 559, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 341, 18, 1937, 1046, 12, 315, 451, 6, 11272, 3639, 341, 18, 2626, 1528, 12, 315, 2300, 6, 11272, 3639, 341, 18, 409, 1046, 5621, 3639, 2 ]
return segments[i].measure; }
return segments[i].measure; }
public RolapStar.Measure getMeasure(int i) { return segments[i].measure; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/b5b5168edc3af09cb74945a80b0c36e6630ed502/AggregationManager.java/clean/src/main/mondrian/rolap/agg/AggregationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 11714, 438, 18379, 18, 7197, 25107, 3619, 12, 474, 277, 13, 288, 1082, 202, 2463, 5155, 63, 77, 8009, 10772, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 11714, 438, 18379, 18, 7197, 25107, 3619, 12, 474, 277, 13, 288, 1082, 202, 2463, 5155, 63, 77, 8009, 10772, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private static final HashMap parseAttributes(String html) { HashMap attrs = new HashMap(); String name; String value; // Loop over the attributes. // We maintain counter is so that we don't accidentally enter // an infinite loop int i = 0; int count = 0; while (i < html.length() && html.charAt(i) != '>') { if (count++ > 100) { throw new RuntimeException ("Infinite loop in HtmlToText.parseAttributes"); } if (html.startsWith("/>", i)) { // This is an XML-style tag ending: <... /> break; } // This regexp matches an attribute name and an equal // sign, if present. Also eats whitespace before or // after. if (!s_re.match("/\\s*([^\\s=>]+)\\s*(=?)\\s*/", html.substring(i))) { // Apparantly there's no attribute name here. Let's // eat all whitespace and lonely equal signs. s_re.match("/[\\s=]*/", html.substring(i)); i += s_re.end(0); } else { name = s_re.group(1).toLowerCase(); // Move past the current match i += s_re.end(0); // If there is an equal sign, we're expecting the next // token to be a value if (s_re.group(2) == "") { // No equal sign, no value attrs.put(name,null); } else { // is there a single or double quote sign as the // first character? String exp; if (html.charAt(i) == '"') { exp = "/\"([^\"]*)\"\\s*/"; } else if (html.charAt(i) == '\'') { exp = "/\'([^\']*)\'\\s*/"; } else { exp = "/([^\\s>]*)\\s*/"; } if (!s_re.match(exp,html.substring(i))) { // No end quote. value = html.substring(i); i = html.length(); } else { value = s_re.group(1); i += s_re.end(0); } attrs.put(name,expandEntities(value)); } } } return attrs; }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/558097820abc0198518796cedde797658cda9a5e/HtmlToText.java/buggy/archive/core-platform/src/com/arsdigita/util/HtmlToText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 4317, 1109, 2498, 12, 780, 1729, 13, 288, 7734, 4317, 3422, 273, 394, 4317, 5621, 3639, 514, 508, 31, 3639, 514, 460, 31, 3639, 368, 9720, 1879, 326, 1677, 18, 3639, 368, 1660, 17505, 3895, 353, 1427, 716, 732, 2727, 1404, 25961, 1230, 6103, 3639, 368, 392, 14853, 2798, 540, 509, 277, 273, 374, 31, 3639, 509, 1056, 273, 374, 31, 3639, 1323, 261, 77, 411, 1729, 18, 2469, 1435, 597, 1729, 18, 3001, 861, 12, 77, 13, 480, 7481, 13, 288, 5411, 309, 261, 1883, 9904, 405, 2130, 13, 288, 7734, 604, 394, 3235, 10792, 7566, 382, 9551, 2798, 316, 5430, 774, 1528, 18, 2670, 2498, 8863, 5411, 289, 5411, 309, 261, 2620, 18, 17514, 1190, 2932, 26293, 16, 277, 3719, 288, 7734, 368, 1220, 353, 392, 3167, 17, 4060, 1047, 11463, 30, 411, 2777, 20954, 7734, 898, 31, 5411, 289, 5411, 368, 1220, 7195, 1885, 392, 1566, 508, 471, 392, 3959, 5411, 368, 1573, 16, 309, 3430, 18, 225, 8080, 425, 2323, 7983, 1865, 578, 5411, 368, 1839, 18, 5411, 309, 16051, 87, 67, 266, 18, 1916, 2932, 19, 1695, 87, 14, 8178, 1695, 87, 9207, 7941, 1695, 87, 21556, 33, 8535, 1695, 87, 5549, 3113, 1729, 18, 28023, 12, 77, 20349, 288, 7734, 368, 1716, 1065, 970, 715, 1915, 1807, 1158, 1566, 508, 2674, 18, 10559, 1807, 7734, 368, 20729, 777, 7983, 471, 4281, 2357, 3959, 21588, 18, 7734, 272, 67, 266, 18, 1916, 2932, 19, 63, 1695, 87, 33, 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, 727, 4317, 1109, 2498, 12, 780, 1729, 13, 288, 7734, 4317, 3422, 273, 394, 4317, 5621, 3639, 514, 508, 31, 3639, 514, 460, 31, 3639, 368, 9720, 1879, 326, 1677, 18, 3639, 368, 1660, 17505, 3895, 353, 1427, 716, 732, 2727, 1404, 25961, 1230, 6103, 3639, 368, 392, 14853, 2798, 540, 509, 277, 273, 374, 31, 3639, 509, 1056, 273, 374, 31, 3639, 1323, 261, 77, 411, 1729, 18, 2469, 1435, 597, 1729, 18, 3001, 861, 12, 77, 13, 480, 7481, 13, 288, 5411, 309, 261, 1883, 9904, 405, 2130, 13, 288, 7734, 604, 394, 3235, 10792, 7566, 382, 9551, 2798, 316, 5430, 774, 1528, 18, 2670, 2498, 8863, 5411, 289, 5411, 309, 261, 2620, 18, 2 ]
public String decompile(Context cx, int indent, int flags)
String decompile(int indent, int flags)
public String decompile(Context cx, int indent, int flags) { StringBuffer sb = new StringBuffer(); boolean justbody = (0 != (flags & Decompiler.ONLY_BODY_FLAG)); if (!justbody) { sb.append("function "); sb.append(getFunctionName()); sb.append("() {\n\t"); } sb.append("[native code, arity="); sb.append(getArity()); sb.append("]\n"); if (!justbody) { sb.append("}\n"); } return sb.toString(); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/f4ff06f911a8e5be2e3bc270a9d7fa7fd39f1ced/BaseFunction.java/clean/js/rhino/src/org/mozilla/javascript/BaseFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 443, 11100, 12, 474, 3504, 16, 509, 2943, 13, 565, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 1250, 2537, 3432, 273, 261, 20, 480, 261, 7133, 473, 3416, 20667, 2895, 18, 10857, 67, 16691, 67, 9651, 10019, 3639, 309, 16051, 3732, 3432, 13, 288, 5411, 2393, 18, 6923, 2932, 915, 315, 1769, 5411, 2393, 18, 6923, 12, 588, 25258, 10663, 5411, 2393, 18, 6923, 2932, 1435, 18890, 82, 64, 88, 8863, 3639, 289, 3639, 2393, 18, 6923, 2932, 63, 13635, 981, 16, 19353, 1546, 1769, 3639, 2393, 18, 6923, 12, 588, 686, 560, 10663, 3639, 2393, 18, 6923, 2932, 13944, 82, 8863, 3639, 309, 16051, 3732, 3432, 13, 288, 5411, 2393, 18, 6923, 2932, 6280, 82, 8863, 3639, 289, 3639, 327, 2393, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 514, 443, 11100, 12, 474, 3504, 16, 509, 2943, 13, 565, 288, 3639, 6674, 2393, 273, 394, 6674, 5621, 3639, 1250, 2537, 3432, 273, 261, 20, 480, 261, 7133, 473, 3416, 20667, 2895, 18, 10857, 67, 16691, 67, 9651, 10019, 3639, 309, 16051, 3732, 3432, 13, 288, 5411, 2393, 18, 6923, 2932, 915, 315, 1769, 5411, 2393, 18, 6923, 12, 588, 25258, 10663, 5411, 2393, 18, 6923, 2932, 1435, 18890, 82, 64, 88, 8863, 3639, 289, 3639, 2393, 18, 6923, 2932, 63, 13635, 981, 16, 19353, 1546, 1769, 3639, 2393, 18, 6923, 12, 588, 686, 560, 10663, 3639, 2393, 18, 6923, 2932, 13944, 82, 8863, 3639, 309, 16051, 3732, 3432, 13, 288, 5411, 2393, 18, 6923, 2932, 6280, 2 ]
void login(final String serverName, final String database, final String user, final String password, final String domain, final String charset, final String appName, final String libName, final String language, final String macAddress, final int packetSize) throws SQLException { try { if (tdsVersion >= TDS70) { sendMSLoginPkt(serverName, database, user, password, domain, appName, libName, language, macAddress, packetSize); } else if (tdsVersion == TDS50) { send50LoginPkt(serverName, user, password, charset, appName, libName, language, packetSize); } else { send42LoginPkt(serverName, user, password, charset, appName, libName, language, packetSize); } nextToken(); while (!endOfResponse) { if (currentToken.isAuthToken()) { sendNtlmChallengeResponse(currentToken.nonce, user, password, domain); } nextToken(); } messages.checkErrors(); } catch (IOException ioe) { throw Support.linkException( new SQLException( Support.getMessage( "error.generic.ioerror", ioe.getMessage()), "08S01"), ioe); } }
5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/4824f8fb57e450b4f2cc3cb1e9b7b2849806b125/TdsCore.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsCore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 3925, 12, 6385, 514, 10926, 16, 9079, 727, 514, 2063, 16, 9079, 727, 514, 729, 16, 9079, 727, 514, 2201, 16, 9079, 727, 514, 2461, 16, 9079, 727, 514, 4856, 16, 9079, 727, 514, 10236, 16, 9079, 727, 514, 2561, 461, 16, 9079, 727, 514, 2653, 16, 9079, 727, 514, 5318, 1887, 16, 9079, 727, 509, 4414, 1225, 13, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 309, 261, 88, 2377, 1444, 1545, 399, 3948, 7301, 13, 288, 7734, 1366, 3537, 5358, 7789, 88, 12, 3567, 461, 16, 2063, 16, 729, 16, 2201, 16, 27573, 2461, 16, 10236, 16, 2561, 461, 16, 2653, 16, 27573, 5318, 1887, 16, 4414, 1225, 1769, 5411, 289, 469, 309, 261, 88, 2377, 1444, 422, 399, 3948, 3361, 13, 288, 7734, 1366, 3361, 5358, 7789, 88, 12, 3567, 461, 16, 729, 16, 2201, 16, 27573, 4856, 16, 10236, 16, 2561, 461, 16, 27573, 2653, 16, 4414, 1225, 1769, 5411, 289, 469, 288, 7734, 1366, 9452, 5358, 7789, 88, 12, 3567, 461, 16, 729, 16, 2201, 16, 27573, 4856, 16, 10236, 16, 2561, 461, 16, 27573, 2653, 16, 4414, 1225, 1769, 5411, 289, 13491, 9617, 5621, 13491, 1323, 16051, 409, 951, 1064, 13, 288, 7734, 309, 261, 2972, 1345, 18, 291, 28967, 10756, 288, 10792, 1366, 50, 6172, 81, 18359, 1064, 12, 2972, 1345, 18, 12824, 16, 729, 16, 2201, 16, 2461, 1769, 7734, 289, 27573, 9617, 5621, 5411, 289, 13491, 2743, 18, 1893, 4229, 5621, 3639, 289, 1044, 261, 14106, 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, 918, 3925, 12, 6385, 514, 10926, 16, 9079, 727, 514, 2063, 16, 9079, 727, 514, 729, 16, 9079, 727, 514, 2201, 16, 9079, 727, 514, 2461, 16, 9079, 727, 514, 4856, 16, 9079, 727, 514, 10236, 16, 9079, 727, 514, 2561, 461, 16, 9079, 727, 514, 2653, 16, 9079, 727, 514, 5318, 1887, 16, 9079, 727, 509, 4414, 1225, 13, 3639, 1216, 6483, 288, 3639, 775, 288, 5411, 309, 261, 88, 2377, 1444, 1545, 399, 3948, 7301, 13, 288, 7734, 1366, 3537, 5358, 7789, 88, 12, 3567, 461, 16, 2063, 16, 729, 16, 2201, 16, 27573, 2461, 16, 10236, 16, 2561, 461, 16, 2653, 16, 27573, 5318, 1887, 16, 4414, 1225, 1769, 5411, 289, 469, 309, 261, 88, 2 ]
protected void setUp() { m_processor = new BroadcastEventProcessor();
protected void setUp() throws Exception { super.setUp(); m_processor = new BroadcastEventProcessor();
protected void setUp() { m_processor = new BroadcastEventProcessor(); m_processor.initExpandRe(); }
48885 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48885/807a5a085038e630de3816af8bd081318808a99e/BroadcastEventProcessorTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/notifd/BroadcastEventProcessorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 24292, 1435, 288, 3639, 312, 67, 8700, 273, 394, 19687, 1133, 5164, 5621, 3639, 312, 67, 8700, 18, 2738, 12271, 426, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 24292, 1435, 288, 3639, 312, 67, 8700, 273, 394, 19687, 1133, 5164, 5621, 3639, 312, 67, 8700, 18, 2738, 12271, 426, 5621, 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 ]
public Node logop(/*node_type*/ int type, Node left, Node right) {
public Node logop(int type, Node left, Node right) {
public Node logop(/*node_type*/ int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/9fd6d1b2b629d2c29cb2dc7346da08720e95598c/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 613, 556, 12, 474, 618, 16, 2029, 2002, 16, 2029, 2145, 13, 288, 3639, 460, 67, 8638, 12, 4482, 1769, 7734, 368, 327, 13958, 18, 2704, 1868, 907, 12, 723, 16, 6941, 21, 12, 4482, 16, 404, 3631, 6941, 21, 12, 4083, 16, 404, 3631, 446, 1769, 3639, 604, 394, 3235, 2932, 63, 4827, 65, 6783, 2276, 7, 1330, 556, 30, 423, 369, 5872, 1546, 397, 618, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 613, 556, 12, 474, 618, 16, 2029, 2002, 16, 2029, 2145, 13, 288, 3639, 460, 67, 8638, 12, 4482, 1769, 7734, 368, 327, 13958, 18, 2704, 1868, 907, 12, 723, 16, 6941, 21, 12, 4482, 16, 404, 3631, 6941, 21, 12, 4083, 16, 404, 3631, 446, 1769, 3639, 604, 394, 3235, 2932, 63, 4827, 65, 6783, 2276, 7, 1330, 556, 30, 423, 369, 5872, 1546, 397, 618, 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 ]
if (!(pkg instanceof NativeJavaPackage)) throw new EvaluatorException("not a package");
if (!(pkg instanceof NativeJavaPackage)) { String[] args = { Context.toString(pkg) }; throw Context.reportRuntimeError( Context.getMessage("msg.not.pkg", args)); } for (int i=0; i < importedPackages.size(); i++) { if (pkg == importedPackages.elementAt(i)) return; }
public void importPackage(Object pkg) { if (importedPackages == null) importedPackages = new Vector(); if (!(pkg instanceof NativeJavaPackage)) throw new EvaluatorException("not a package");// TODO: better msg importedPackages.addElement(pkg); }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/44a16bd22d44371c2e71613dfeabc60981670164/ImporterTopLevel.java/clean/org/mozilla/javascript/ImporterTopLevel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 2261, 12, 921, 3475, 13, 288, 3639, 309, 261, 29266, 11425, 422, 446, 13, 5411, 9101, 11425, 273, 394, 5589, 5621, 3639, 309, 16051, 12, 10657, 1276, 16717, 5852, 2261, 3719, 5411, 604, 394, 31956, 503, 2932, 902, 279, 2181, 8863, 759, 2660, 30, 7844, 1234, 3639, 9101, 11425, 18, 1289, 1046, 12, 10657, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1930, 2261, 12, 921, 3475, 13, 288, 3639, 309, 261, 29266, 11425, 422, 446, 13, 5411, 9101, 11425, 273, 394, 5589, 5621, 3639, 309, 16051, 12, 10657, 1276, 16717, 5852, 2261, 3719, 5411, 604, 394, 31956, 503, 2932, 902, 279, 2181, 8863, 759, 2660, 30, 7844, 1234, 3639, 9101, 11425, 18, 1289, 1046, 12, 10657, 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 ]
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource();
public quickfix.field.IDSource getIDSource() throws FieldNotFound { quickfix.field.IDSource value = new quickfix.field.IDSource();
public org.quickfix.field.IDSource getIDSource() throws FieldNotFound { org.quickfix.field.IDSource value = new org.quickfix.field.IDSource(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/buggy/src/java/src/quickfix/fix42/NewOrderSingle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 14744, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 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, 734, 1830, 14744, 1830, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 734, 1830, 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 ]
long tid; synchronized (lock) { tid = nextTid++; } return new TransactionHandleImpl(tid);
return new TransactionHandleImpl(nextTid.getAndIncrement());
public TransactionHandle createTransaction() { long tid; synchronized (lock) { tid = nextTid++; } return new TransactionHandleImpl(tid); }
55380 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55380/4ddad99c3d3edad5206ba2571d60d78d70d594fa/TransactionCoordinatorImpl.java/clean/src/server/j2se/com/sun/sgs/impl/service/transaction/TransactionCoordinatorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5947, 3259, 752, 3342, 1435, 288, 202, 5748, 11594, 31, 202, 22043, 261, 739, 13, 288, 202, 565, 11594, 273, 1024, 56, 350, 9904, 31, 202, 97, 202, 2463, 394, 5947, 3259, 2828, 12, 18081, 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, 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, 377, 1071, 5947, 3259, 752, 3342, 1435, 288, 202, 5748, 11594, 31, 202, 22043, 261, 739, 13, 288, 202, 565, 11594, 273, 1024, 56, 350, 9904, 31, 202, 97, 202, 2463, 394, 5947, 3259, 2828, 12, 18081, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
/*Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder();
protected void addComponents(Game game, boolean flipped){ this.setLayout(null); // See the doLayout() method //JPanel boardPanel = new JPanel(); //boardPanel.setLayout(new BorderLayout()); Border loweredBevelBorder = BorderFactory.createLoweredBevelBorder(); Border emptyBorder = BorderFactory.createEmptyBorder(5, 5, 5, 5); Border compoundBorder = new CompoundBorder(loweredBevelBorder, emptyBorder); board.setBorder(loweredBevelBorder); //boardPanel.add(board, BorderLayout.CENTER); this.add(board); infoBoxButtonPanel = new JPanel(); infoBoxButtonPanel.setBorder(new EmptyBorder(2, 2, 2, 2)); infoBoxButtonPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); infoBoxButtonPanel.add(flipBoardButton); infoBoxButtonPanel.add(prefsButton); if (isVerticalLayout){ topInfoBox = new JPanel(); topInfoBox.setBorder(new EmptyBorder(5,5,5,5)); topInfoBox.setLayout(new BoxLayout(topInfoBox, BoxLayout.X_AXIS)); bottomInfoBox = new JPanel(); bottomInfoBox.setBorder(new EmptyBorder(5,5,5,5)); bottomInfoBox.setLayout(new BoxLayout(bottomInfoBox, BoxLayout.X_AXIS)); whiteClock.setMaximumSize(whiteClock.getPreferredSize()); blackClock.setMaximumSize(blackClock.getPreferredSize()); int labelWidth = Math.max(whiteLabel.getPreferredSize().width, blackLabel.getPreferredSize().width); int labelHeight = Math.max(whiteLabel.getPreferredSize().height, blackLabel.getPreferredSize().height); whiteLabel.setMinimumSize(new Dimension(labelWidth, labelHeight)); blackLabel.setMinimumSize(new Dimension(labelWidth, labelHeight)); whiteLabel.setPreferredSize(new Dimension(labelWidth, labelHeight)); blackLabel.setPreferredSize(new Dimension(labelWidth, labelHeight)); fullscreenButton.setAlignmentY(Component.BOTTOM_ALIGNMENT); //my button - flip and prefs //flipBoardButton.setAlignmentY(Component.BOTTOM_ALIGNMENT); //prefsButton.setAlignmentY(Component.BOTTOM_ALIGNMENT); if (flipped){ whiteLabel.setAlignmentY(Component.BOTTOM_ALIGNMENT); whiteClock.setAlignmentY(Component.BOTTOM_ALIGNMENT); blackLabel.setAlignmentY(Component.TOP_ALIGNMENT); blackClock.setAlignmentY(Component.TOP_ALIGNMENT); topInfoBox.add(whiteLabel); topInfoBox.add(Box.createHorizontalStrut(10)); topInfoBox.add(fullscreenButton); // adding my board fliping and prefs showing button topInfoBox.add(infoBoxButtonPanel); topInfoBox.add(Box.createHorizontalGlue()); topInfoBox.add(whiteClock); bottomInfoBox.add(blackLabel); bottomInfoBox.add(Box.createHorizontalGlue()); bottomInfoBox.add(blackClock); } else{ whiteLabel.setAlignmentY(Component.TOP_ALIGNMENT); whiteClock.setAlignmentY(Component.TOP_ALIGNMENT); blackLabel.setAlignmentY(Component.BOTTOM_ALIGNMENT); blackClock.setAlignmentY(Component.BOTTOM_ALIGNMENT); topInfoBox.add(blackLabel); topInfoBox.add(Box.createHorizontalStrut(10)); topInfoBox.add(fullscreenButton); // adding my board fliping button and prefs button whp //infoBoxButtonPanel.add(flipBoardButton); //infoBoxButtonPanel.add(prefsButton); topInfoBox.add(infoBoxButtonPanel); topInfoBox.add(Box.createHorizontalGlue()); topInfoBox.add(blackClock); bottomInfoBox.add(whiteLabel); bottomInfoBox.add(Box.createHorizontalGlue()); bottomInfoBox.add(whiteClock); } this.add(topInfoBox); this.add(bottomInfoBox); } else{ whiteClock.setMaximumSize(new Dimension(Integer.MAX_VALUE, whiteClock.getPreferredSize().height)); blackClock.setMaximumSize(new Dimension(Integer.MAX_VALUE, blackClock.getPreferredSize().height)); // This could have been changed in vertical layout mode whiteLabel.setAlignmentY(Component.CENTER_ALIGNMENT); whiteClock.setAlignmentY(Component.CENTER_ALIGNMENT); blackLabel.setAlignmentY(Component.CENTER_ALIGNMENT); blackClock.setAlignmentY(Component.CENTER_ALIGNMENT); fullscreenButton.setAlignmentY(Component.CENTER_ALIGNMENT); JComponent whiteLabelBox = new JPanel(new BorderLayout()); whiteLabelBox.add(whiteLabel, BorderLayout.CENTER); JComponent blackLabelBox = new JPanel(new BorderLayout()); blackLabelBox.add(blackLabel, BorderLayout.CENTER); Container fullscreenButtonWrapper = SquareLayout.createSquareContainer(fullscreenButton); //Containers for my button flip and show prefs //Container flipBoardButtonWrapper = SquareLayout.createSquareContainer(flipBoardButton); //Container prefsButtonWrapper = SquareLayout.createSquareContainer(prefsButton); //Container infoBoxButtonPanelWrapper = SquareLayout.createSquareContainer(infoBoxButtonPanel); if (flipped){ whiteLabelBox.add(fullscreenButtonWrapper, BorderLayout.EAST); //adding my buttons' wrappers //whiteLabelBox.add(flipBoardButtonWrapper, BorderLayout.WEST); //whiteLabelBox.add(prefsButtonWrapper, BorderLayout.WEST); whiteLabelBox.add(infoBoxButtonPanel, BorderLayout.WEST); } else{ blackLabelBox.add(fullscreenButtonWrapper, BorderLayout.EAST); //adding my buttons' wrappers //blackLabelBox.add(flipBoardButtonWrapper, BorderLayout.WEST); //blackLabelBox.add(prefsButtonWrapper, BorderLayout.WEST); blackLabelBox.add(infoBoxButtonPanel, BorderLayout.WEST); } Box gameLabelBox = Box.createHorizontalBox(); gameLabelBox.add(gameLabel); gameLabelBox.add(Box.createHorizontalGlue()); JPanel upperBox = new JPanel(null); upperBox.setLayout(new BoxLayout(upperBox, BoxLayout.Y_AXIS)); JPanel middleBox = new JPanel(null); middleBox.setLayout(new BoxLayout(middleBox, BoxLayout.Y_AXIS)); JPanel bottomBox = new JPanel(null); bottomBox.setLayout(new BoxLayout(bottomBox, BoxLayout.Y_AXIS)); if (flipped){ upperBox.add(whiteLabelBox); upperBox.add(Box.createVerticalStrut(10)); upperBox.add(whiteClock); middleBox.add(Box.createVerticalStrut(10)); middleBox.add(gameLabelBox); middleBox.add(Box.createVerticalStrut(10)); middleBox.add(positionScrollBar); middleBox.add(Box.createVerticalStrut(5)); middleBox.add(moveListTableScrollPane); middleBox.add(Box.createVerticalStrut(10)); if (buttonPanel != null){ middleBox.add(buttonPanel); middleBox.add(Box.createVerticalStrut(10)); } bottomBox.add(blackClock); bottomBox.add(Box.createVerticalStrut(10)); bottomBox.add(blackLabelBox); } else{ upperBox.add(blackLabelBox); upperBox.add(Box.createVerticalStrut(10)); upperBox.add(blackClock); middleBox.add(Box.createVerticalStrut(10)); middleBox.add(gameLabelBox); middleBox.add(Box.createVerticalStrut(10)); middleBox.add(positionScrollBar); middleBox.add(Box.createVerticalStrut(10)); middleBox.add(moveListTableScrollPane); middleBox.add(Box.createVerticalStrut(10)); if (buttonPanel != null){ middleBox.add(buttonPanel); middleBox.add(Box.createVerticalStrut(10)); } bottomBox.add(whiteClock); bottomBox.add(Box.createVerticalStrut(10)); bottomBox.add(whiteLabelBox); } infoBox = new JPanel(null); infoBox.setBorder(new EmptyBorder(5, 5, 5, 5)); infoBox.setLayout(new BorderLayout()); infoBox.add(upperBox, BorderLayout.NORTH); infoBox.add(middleBox, BorderLayout.CENTER); infoBox.add(bottomBox, BorderLayout.SOUTH); this.add(infoBox); } }
50794 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50794/f4c0b99cb12f57bf8c1f261269dc83a36a5d20ce/BoardPanel.java/buggy/src/free/jin/board/BoardPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 527, 7171, 12, 12496, 7920, 16, 1250, 28821, 15329, 1377, 333, 18, 542, 3744, 12, 2011, 1769, 368, 2164, 326, 741, 3744, 1435, 707, 1377, 368, 46, 5537, 11094, 5537, 273, 394, 24048, 5621, 1377, 368, 3752, 5537, 18, 542, 3744, 12, 2704, 30814, 10663, 1377, 1748, 8107, 2612, 329, 1919, 941, 8107, 273, 13525, 1733, 18, 2640, 4070, 329, 1919, 941, 8107, 5621, 1377, 13525, 1008, 8107, 273, 13525, 1733, 18, 2640, 1921, 8107, 12, 25, 16, 1381, 16, 1381, 16, 1381, 1769, 1377, 13525, 11360, 8107, 273, 394, 21327, 8107, 12, 8167, 329, 1919, 941, 8107, 16, 1008, 8107, 1769, 1377, 11094, 18, 542, 8107, 12, 8167, 329, 1919, 941, 8107, 1769, 1377, 368, 3752, 5537, 18, 1289, 12, 3752, 16, 30814, 18, 19835, 1769, 1377, 333, 18, 1289, 12, 3752, 1769, 1377, 1123, 3514, 3616, 5537, 273, 394, 24048, 5621, 1377, 1123, 3514, 3616, 5537, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 22, 16, 576, 16, 576, 16, 576, 10019, 1377, 1123, 3514, 3616, 5537, 18, 542, 3744, 12, 2704, 9473, 3744, 12, 5249, 3744, 18, 10066, 16, 374, 16, 374, 10019, 1377, 1123, 3514, 3616, 5537, 18, 1289, 12, 12357, 22233, 3616, 1769, 1377, 1123, 3514, 3616, 5537, 18, 1289, 12, 1484, 2556, 3616, 1769, 5411, 309, 261, 291, 15704, 3744, 15329, 21394, 1760, 966, 3514, 273, 394, 24048, 5621, 3639, 1760, 966, 3514, 18, 542, 8107, 12, 2704, 8953, 8107, 12, 25, 16, 25, 16, 25, 16, 25, 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, 7171, 12, 12496, 7920, 16, 1250, 28821, 15329, 1377, 333, 18, 542, 3744, 12, 2011, 1769, 368, 2164, 326, 741, 3744, 1435, 707, 1377, 368, 46, 5537, 11094, 5537, 273, 394, 24048, 5621, 1377, 368, 3752, 5537, 18, 542, 3744, 12, 2704, 30814, 10663, 1377, 1748, 8107, 2612, 329, 1919, 941, 8107, 273, 13525, 1733, 18, 2640, 4070, 329, 1919, 941, 8107, 5621, 1377, 13525, 1008, 8107, 273, 13525, 1733, 18, 2640, 1921, 8107, 12, 25, 16, 1381, 16, 1381, 16, 1381, 1769, 1377, 13525, 11360, 8107, 273, 394, 21327, 8107, 12, 8167, 329, 1919, 941, 8107, 16, 1008, 8107, 1769, 1377, 11094, 18, 542, 8107, 12, 8167, 329, 1919, 941, 8107, 1769, 1377, 368, 2 ]
return _severity == Severity.Warning;
return _severity == Severity.WARNING;
public boolean isWarning() { return _severity == Severity.Warning; }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/01183640e0035cac2c0d8aba45f61a8be154617f/APTProblem.java/clean/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/APTProblem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 6210, 1435, 288, 202, 202, 2463, 389, 27341, 422, 23760, 18, 6210, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 353, 6210, 1435, 288, 202, 202, 2463, 389, 27341, 422, 23760, 18, 6210, 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, -100, -100, -100, -100, -100 ]
private void doGetContacts(String[] args) throws ServiceException, ArgException {
private void doGetContacts(String[] args) throws ServiceException {
private void doGetContacts(String[] args) throws ServiceException, ArgException { dumpContacts(mMbox.getContacts(id(args[0]), null, true, getList(args, 1))); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/a53105f5c5345503930f1670d53cc8fefd4cd53e/ZMailboxUtil.java/buggy/ZimbraServer/src/java/com/zimbra/cs/zclient/ZMailboxUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 23611, 20017, 12, 780, 8526, 833, 13, 1216, 16489, 288, 3639, 4657, 20017, 12, 81, 49, 2147, 18, 588, 20017, 12, 350, 12, 1968, 63, 20, 65, 3631, 446, 16, 638, 16, 10033, 12, 1968, 16, 404, 3719, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 23611, 20017, 12, 780, 8526, 833, 13, 1216, 16489, 288, 3639, 4657, 20017, 12, 81, 49, 2147, 18, 588, 20017, 12, 350, 12, 1968, 63, 20, 65, 3631, 446, 16, 638, 16, 10033, 12, 1968, 16, 404, 3719, 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, -100, -100, -100, -100, -100, -100 ]
if ( currentToken.startsWith(PORTLET_PARAMS_DELIM_BEG) ) currentToken = uPTokenizer.nextToken();
protected void analyze(String uPFile) { StringTokenizer uPTokenizer=new StringTokenizer(uPFile,PORTAL_URL_SEPARATOR); // determine tag or method if(uPTokenizer.hasMoreTokens()) { String currentToken=uPTokenizer.nextToken(); if ( currentToken.startsWith(PORTLET_PARAMS_DELIM_BEG) ) currentToken = uPTokenizer.nextToken(); // is it a "tag" ? if(currentToken.equals(TAG_URL_ELEMENT)) { // yes it's, a tag if(uPTokenizer.hasMoreElements()) { // we'll assume that the next toke is always an Id ... tagId=uPTokenizer.nextToken(); if(uPTokenizer.hasMoreElements()) { currentToken=uPTokenizer.nextToken(); } else { return; } } else { // nothing after the "tag" element return; } } // determine method if(currentToken.equals(RENDER_URL_ELEMENT)) { // render method method=currentToken; } else if(currentToken.equals(WORKER_URL_ELEMENT)) { // worker method method=currentToken; } else { // unknown method uPFile_extras=sinkTokenization(uPTokenizer,PORTAL_URL_SEPARATOR,currentToken); return; } // determine method target if(uPTokenizer.hasMoreElements()) { methodNodeId=uPTokenizer.nextToken(); } else { return; } // see if a target is specified if(uPTokenizer.hasMoreElements()) { currentToken=uPTokenizer.nextToken(); } else { return; } if(currentToken.equals(TARGET_URL_ELEMENT)) { // yes, target is specified if(uPTokenizer.hasMoreElements()) { targetNodeId=uPTokenizer.nextToken(); if (uPTokenizer.hasMoreElements()) { currentToken = uPTokenizer.nextToken(); } else { currentToken = null; } } else { return; } } // sink the rest into the uPFile_extras uPFile_extras=sinkTokenization(uPTokenizer,PORTAL_URL_SEPARATOR,currentToken); } else { // blank .uP file ? return; } }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/cad27a7ed0dad9a0296a070c08340f00b03793df/UPFileSpec.java/buggy/source/org/jasig/portal/UPFileSpec.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 12375, 12, 780, 582, 52, 812, 13, 288, 3639, 16370, 582, 52, 10524, 33, 2704, 16370, 12, 89, 52, 812, 16, 6354, 1013, 67, 1785, 67, 4550, 1769, 3639, 368, 4199, 1047, 578, 707, 3639, 309, 12, 89, 52, 10524, 18, 5332, 7417, 5157, 10756, 288, 5411, 514, 23719, 33, 89, 52, 10524, 18, 4285, 1345, 5621, 5411, 309, 261, 23719, 18, 17514, 1190, 12, 6354, 15146, 67, 16785, 67, 31519, 67, 5948, 43, 13, 262, 2868, 23719, 273, 582, 52, 10524, 18, 4285, 1345, 5621, 5411, 368, 353, 518, 279, 315, 2692, 6, 692, 5411, 309, 12, 2972, 1345, 18, 14963, 12, 7927, 67, 1785, 67, 10976, 3719, 288, 7734, 368, 12465, 518, 1807, 16, 279, 1047, 7734, 309, 12, 89, 52, 10524, 18, 5332, 7417, 3471, 10756, 288, 10792, 368, 732, 5614, 6750, 716, 326, 1024, 946, 73, 353, 3712, 392, 3124, 1372, 10792, 29238, 33, 89, 52, 10524, 18, 4285, 1345, 5621, 10792, 309, 12, 89, 52, 10524, 18, 5332, 7417, 3471, 10756, 288, 13491, 23719, 33, 89, 52, 10524, 18, 4285, 1345, 5621, 10792, 289, 469, 288, 13491, 327, 31, 10792, 289, 7734, 289, 469, 288, 10792, 368, 5083, 1839, 326, 315, 2692, 6, 930, 10792, 327, 31, 7734, 289, 5411, 289, 5411, 368, 4199, 707, 5411, 309, 12, 2972, 1345, 18, 14963, 12, 25230, 67, 1785, 67, 10976, 3719, 288, 7734, 368, 1743, 707, 7734, 707, 33, 2972, 1345, 31, 5411, 289, 469, 309, 12, 2972, 1345, 18, 14963, 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, 12375, 12, 780, 582, 52, 812, 13, 288, 3639, 16370, 582, 52, 10524, 33, 2704, 16370, 12, 89, 52, 812, 16, 6354, 1013, 67, 1785, 67, 4550, 1769, 3639, 368, 4199, 1047, 578, 707, 3639, 309, 12, 89, 52, 10524, 18, 5332, 7417, 5157, 10756, 288, 5411, 514, 23719, 33, 89, 52, 10524, 18, 4285, 1345, 5621, 5411, 309, 261, 23719, 18, 17514, 1190, 12, 6354, 15146, 67, 16785, 67, 31519, 67, 5948, 43, 13, 262, 2868, 23719, 273, 582, 52, 10524, 18, 4285, 1345, 5621, 5411, 368, 353, 518, 279, 315, 2692, 6, 692, 5411, 309, 12, 2972, 1345, 18, 14963, 12, 7927, 67, 1785, 67, 10976, 3719, 288, 7734, 368, 12465, 518, 1807, 16, 2 ]
}
}
public final void doReplace(int pos, int length, String text) throws BadLocationException { super.replace(pos, length, text); if (actualReplace != -1) { if (pos + length < actualReplace) { fEditor.addCarretDrift(text.length() - length); } } }
47339 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47339/697461911174634805a169804de32f54f3932230/TEFDocument.java/buggy/TEF/src/editortest/editor/TEFDocument.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 741, 5729, 12, 474, 949, 16, 509, 769, 16, 514, 977, 13, 1216, 6107, 2735, 503, 288, 202, 202, 9565, 18, 2079, 12, 917, 16, 769, 16, 977, 1769, 9506, 202, 430, 261, 18672, 5729, 480, 300, 21, 13, 288, 1082, 202, 430, 261, 917, 397, 769, 411, 3214, 5729, 13, 288, 9506, 202, 74, 6946, 18, 1289, 16321, 1349, 27885, 12, 955, 18, 2469, 1435, 300, 769, 1769, 1082, 202, 97, 202, 202, 97, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 727, 918, 741, 5729, 12, 474, 949, 16, 509, 769, 16, 514, 977, 13, 1216, 6107, 2735, 503, 288, 202, 202, 9565, 18, 2079, 12, 917, 16, 769, 16, 977, 1769, 9506, 202, 430, 261, 18672, 5729, 480, 300, 21, 13, 288, 1082, 202, 430, 261, 917, 397, 769, 411, 3214, 5729, 13, 288, 9506, 202, 74, 6946, 18, 1289, 16321, 1349, 27885, 12, 955, 18, 2469, 1435, 300, 769, 1769, 1082, 202, 97, 202, 202, 97, 1082, 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 ]
jjmatchedKind = 60;
jjmatchedKind = 62;
private final int jjStopStringLiteralDfa_5(int pos, long active0, long active1){ switch (pos) { case 0: if ((active0 & 0x68000L) != 0L) return 2; if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 60; return 5; } return -1; case 1: if ((active0 & 0x20000L) != 0L) return 0; if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 60; jjmatchedPos = 1; return 5; } return -1; case 2: if ((active0 & 0x30000000L) != 0L) { jjmatchedKind = 60; jjmatchedPos = 2; return 5; } return -1; case 3: if ((active0 & 0x20000000L) != 0L) { jjmatchedKind = 60; jjmatchedPos = 3; return 5; } if ((active0 & 0x10000000L) != 0L) return 5; return -1; default : return -1; }}
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 4947, 28565, 40, 507, 67, 25, 12, 474, 949, 16, 1525, 2695, 20, 16, 1525, 2695, 21, 15329, 282, 1620, 261, 917, 13, 282, 288, 1377, 648, 374, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 9470, 3784, 48, 13, 480, 374, 48, 13, 5411, 327, 576, 31, 540, 309, 14015, 3535, 20, 473, 374, 92, 23, 17877, 48, 13, 480, 374, 48, 13, 540, 288, 5411, 10684, 11073, 5677, 273, 22684, 31, 5411, 327, 1381, 31, 540, 289, 540, 327, 300, 21, 31, 1377, 648, 404, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 22, 2787, 48, 13, 480, 374, 48, 13, 5411, 327, 374, 31, 540, 309, 14015, 3535, 20, 473, 374, 92, 23, 17877, 48, 13, 480, 374, 48, 13, 540, 288, 5411, 10684, 11073, 5677, 273, 22684, 31, 5411, 10684, 11073, 1616, 273, 404, 31, 5411, 327, 1381, 31, 540, 289, 540, 327, 300, 21, 31, 1377, 648, 576, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 23, 17877, 48, 13, 480, 374, 48, 13, 540, 288, 5411, 10684, 11073, 5677, 273, 22684, 31, 5411, 10684, 11073, 1616, 273, 576, 31, 5411, 327, 1381, 31, 540, 289, 540, 327, 300, 21, 31, 1377, 648, 890, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 22, 17877, 48, 13, 480, 374, 48, 13, 540, 288, 5411, 10684, 11073, 5677, 273, 22684, 31, 5411, 10684, 11073, 1616, 273, 890, 31, 5411, 327, 1381, 31, 540, 289, 540, 309, 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, 727, 509, 10684, 4947, 28565, 40, 507, 67, 25, 12, 474, 949, 16, 1525, 2695, 20, 16, 1525, 2695, 21, 15329, 282, 1620, 261, 917, 13, 282, 288, 1377, 648, 374, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 9470, 3784, 48, 13, 480, 374, 48, 13, 5411, 327, 576, 31, 540, 309, 14015, 3535, 20, 473, 374, 92, 23, 17877, 48, 13, 480, 374, 48, 13, 540, 288, 5411, 10684, 11073, 5677, 273, 22684, 31, 5411, 327, 1381, 31, 540, 289, 540, 327, 300, 21, 31, 1377, 648, 404, 30, 540, 309, 14015, 3535, 20, 473, 374, 92, 22, 2787, 48, 13, 480, 374, 48, 13, 5411, 327, 374, 31, 540, 309, 14015, 3535, 20, 473, 2 ]
{ if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL)
{ if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL)
private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 7182, 382, 1435, 202, 95, 202, 202, 430, 261, 14932, 2355, 411, 3421, 19443, 18, 6694, 67, 62, 51, 1872, 67, 10398, 13, 2398, 7182, 2355, 1011, 3421, 19443, 18, 62, 51, 1872, 67, 29836, 31, 202, 202, 7098, 18, 542, 11497, 2355, 12, 14932, 2355, 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, 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, 225, 202, 1152, 918, 7182, 382, 1435, 202, 95, 202, 202, 430, 261, 14932, 2355, 411, 3421, 19443, 18, 6694, 67, 62, 51, 1872, 67, 10398, 13, 2398, 7182, 2355, 1011, 3421, 19443, 18, 62, 51, 1872, 67, 29836, 31, 202, 202, 7098, 18, 542, 11497, 2355, 12, 14932, 2355, 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, -100, -100, -100, -100, -100 ]
return null;
int index = comment.indexOf(BugzillaRepositoryUtil.POST_ARGS_SHOW_BUG); if (index != -1) { return comment.substring(0, index); } else { return null; }
private String getRepositoryUrlFromComment(String comment) { int index = comment.indexOf(BugzillaRepositoryUtil.POST_ARGS_SHOW_BUG); if (index != -1) { return comment.substring(0, index); } else { return null; } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e4a2661b4982b879d2b10f07bda4286e2357af45/OpenCorrespondingTaskAction.java/buggy/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/bugs/ui/actions/OpenCorrespondingTaskAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8261, 1489, 1265, 4469, 12, 780, 2879, 13, 288, 202, 202, 474, 770, 273, 2879, 18, 31806, 12, 19865, 15990, 3305, 1304, 18, 3798, 67, 22439, 67, 16677, 67, 4827, 1769, 202, 202, 430, 261, 1615, 480, 300, 21, 13, 288, 1082, 202, 2463, 2879, 18, 28023, 12, 20, 16, 770, 1769, 202, 202, 97, 469, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 8261, 1489, 1265, 4469, 12, 780, 2879, 13, 288, 202, 202, 474, 770, 273, 2879, 18, 31806, 12, 19865, 15990, 3305, 1304, 18, 3798, 67, 22439, 67, 16677, 67, 4827, 1769, 202, 202, 430, 261, 1615, 480, 300, 21, 13, 288, 1082, 202, 2463, 2879, 18, 28023, 12, 20, 16, 770, 1769, 202, 202, 97, 469, 288, 1082, 202, 2463, 446, 31, 202, 202, 97, 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 ]
Plugin plugin = (Plugin) plugins.next(); if ( "org.codehaus.modello:modello-maven-plugin:2.0".equals( plugin.getKey() + ":" + plugin.getVersion() ) )
String plugin = (String) plugins.next(); if ( "org.codehaus.modello:modello-maven-plugin:2.0".equals( plugin ) )
public void testSearchSingle() throws Exception { createTestIndex(); RepositoryIndexingFactory factory = (RepositoryIndexingFactory) lookup( RepositoryIndexingFactory.ROLE ); PomRepositoryIndex indexer = factory.createPomRepositoryIndex( indexPath, repository ); RepositoryIndexSearcher repoSearcher = factory.createDefaultRepositoryIndexSearcher( indexer ); // search version Query qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_VERSION, "1.0" ); List artifactList = repoSearcher.search( qry ); //assertEquals( 1, artifactList.size() ); for ( Iterator iter = artifactList.iterator(); iter.hasNext(); ) { Artifact artifact = (Artifact) iter.next(); assertEquals( "1.0", artifact.getVersion() ); } // search group id qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_GROUPID, "org.apache.maven" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); Iterator artifacts = artifactList.iterator(); if ( artifacts.hasNext() ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "org.apache.maven", artifact.getGroupId() ); } // search artifact id qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_ARTIFACTID, "maven-artifact" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "maven-artifact", artifact.getArtifactId() ); } // search version qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_VERSION, "2" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertTrue( artifact.getVersion().indexOf( "2" ) != -1 ); } // search packaging qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PACKAGING, "jar" ); artifactList = repoSearcher.search( qry ); assertEquals( 3, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); assertEquals( "jar", artifact.getType() ); } //search license url qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_LICENSE_URLS, "http://www.apache.org/licenses/LICENSE-2.0.txt" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); License license = (License) getPom( artifact ).getLicenses().get( 0 ); assertEquals( "http://www.apache.org/licenses/LICENSE-2.0.txt", license.getUrl() ); } //search dependencies qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_DEPENDENCIES, "org.codehaus.plexus:plexus-utils:1.0.5" ); artifactList = repoSearcher.search( qry ); assertEquals( 2, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator dependencies = getPom( artifact ).getDependencies().iterator(); boolean depFound = false; while ( dependencies.hasNext() ) { Dependency dep = (Dependency) dependencies.next(); if ( "org.codehaus.plexus:plexus-utils:1.0.5".equals( dep.getGroupId() + ":" + dep.getArtifactId() + ":" + dep.getVersion() ) ) { depFound = true; break; } } assertTrue( "Searched dependency not found.", depFound ); } //search build plugin qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PLUGINS_BUILD, "org.codehaus.modello:modello-maven-plugin:2.0" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator plugins = getPom( artifact ).getBuild().getPlugins().iterator(); boolean found = false; while ( plugins.hasNext() ) { Plugin plugin = (Plugin) plugins.next(); if ( "org.codehaus.modello:modello-maven-plugin:2.0".equals( plugin.getKey() + ":" + plugin.getVersion() ) ) { found = true; break; } } assertTrue( "Searched plugin not found.", found ); } //search reporting plugin qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_PLUGINS_REPORT, "org.apache.maven.plugins:maven-checkstyle-plugin:2.0" ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact = (Artifact) artifacts.next(); Iterator plugins = getPom( artifact ).getReporting().getPlugins().iterator(); boolean found = false; while ( plugins.hasNext() ) { ReportPlugin plugin = (ReportPlugin) plugins.next(); if ( "org.apache.maven.plugins:maven-checkstyle-plugin:2.0".equals( plugin.getKey() + ":" + plugin.getVersion() ) ) { found = true; break; } } assertTrue( "Searched report plugin not found.", found ); } // search sha1 checksum Artifact artifact = getArtifact( "org.apache.maven", "maven-model", "2.0" ); artifact.setFile( new File( repository.getBasedir(), repository.pathOf( artifact ) ) ); String sha1 = digester.createChecksum( artifact.getFile(), Digester.SHA1 ); qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_SHA1, sha1.trim() ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact2 = (Artifact) artifacts.next(); String sha1Tmp = digester.createChecksum( getPomFile( artifact2 ), Digester.SHA1 ); assertEquals( sha1, sha1Tmp ); } // search md5 checksum String md5 = digester.createChecksum( getPomFile( artifact ), Digester.MD5 ); qry = new SinglePhraseQuery( PomRepositoryIndex.FLD_MD5, md5.trim() ); artifactList = repoSearcher.search( qry ); assertEquals( 1, artifactList.size() ); for ( artifacts = artifactList.iterator(); artifacts.hasNext(); ) { Artifact artifact2 = (Artifact) artifacts.next(); String md5Tmp = digester.createChecksum( getPomFile( artifact2 ), Digester.MD5 ); assertEquals( md5, md5Tmp ); } indexer.close(); }
47019 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47019/b7fb3a7476ad4d7d36eae11d93f3d69c147a1205/PomRepositoryIndexingTest.java/buggy/maven-repository-indexer/src/test/java/org/apache/maven/repository/indexing/PomRepositoryIndexingTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2979, 5281, 1435, 3639, 1216, 1185, 565, 288, 3639, 752, 4709, 1016, 5621, 3639, 6281, 24465, 1733, 3272, 273, 261, 3305, 24465, 1733, 13, 3689, 12, 6281, 24465, 1733, 18, 16256, 11272, 3639, 453, 362, 3305, 1016, 12635, 273, 3272, 18, 2640, 52, 362, 3305, 1016, 12, 770, 743, 16, 3352, 11272, 3639, 6281, 1016, 2979, 264, 3538, 2979, 264, 273, 3272, 18, 2640, 1868, 3305, 1016, 2979, 264, 12, 12635, 11272, 3639, 368, 1623, 1177, 3639, 2770, 16788, 273, 394, 10326, 12812, 1138, 12, 453, 362, 3305, 1016, 18, 42, 12069, 67, 5757, 16, 315, 21, 18, 20, 6, 11272, 3639, 987, 6462, 682, 273, 3538, 2979, 264, 18, 3072, 12, 16788, 11272, 3639, 368, 11231, 8867, 12, 404, 16, 6462, 682, 18, 1467, 1435, 11272, 3639, 364, 261, 4498, 1400, 273, 6462, 682, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 262, 3639, 288, 5411, 14022, 6462, 273, 261, 7581, 13, 1400, 18, 4285, 5621, 5411, 1815, 8867, 12, 315, 21, 18, 20, 3113, 6462, 18, 588, 1444, 1435, 11272, 3639, 289, 3639, 368, 1623, 1041, 612, 3639, 16788, 273, 394, 10326, 12812, 1138, 12, 453, 362, 3305, 1016, 18, 42, 12069, 67, 8468, 734, 16, 315, 3341, 18, 19211, 18, 81, 7638, 6, 11272, 3639, 6462, 682, 273, 3538, 2979, 264, 18, 3072, 12, 16788, 11272, 3639, 1815, 8867, 12, 576, 16, 6462, 682, 18, 1467, 1435, 11272, 3639, 4498, 16259, 273, 6462, 682, 18, 9838, 5621, 3639, 309, 261, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2979, 5281, 1435, 3639, 1216, 1185, 565, 288, 3639, 752, 4709, 1016, 5621, 3639, 6281, 24465, 1733, 3272, 273, 261, 3305, 24465, 1733, 13, 3689, 12, 6281, 24465, 1733, 18, 16256, 11272, 3639, 453, 362, 3305, 1016, 12635, 273, 3272, 18, 2640, 52, 362, 3305, 1016, 12, 770, 743, 16, 3352, 11272, 3639, 6281, 1016, 2979, 264, 3538, 2979, 264, 273, 3272, 18, 2640, 1868, 3305, 1016, 2979, 264, 12, 12635, 11272, 3639, 368, 1623, 1177, 3639, 2770, 16788, 273, 394, 10326, 12812, 1138, 12, 453, 362, 3305, 1016, 18, 42, 12069, 67, 5757, 16, 315, 21, 18, 20, 6, 11272, 3639, 987, 6462, 682, 273, 3538, 2979, 264, 18, 3072, 12, 16788, 11272, 3639, 2 ]
if (Scheduler.DebugThreads) System.out.println("Creating new UsageRecord for " +child);
private synchronized UsageRecord getUsageRecord(TimeSliceConsumer child) { UsageRecord record = (UsageRecord) records.get(child); if (record == null) { // System.out.println("Creating new UsageRecord for " +child); record = new UsageRecord(); records.put(child, record); record.child = child; record.targetPercentage = PropertyParser.getDouble(properties, child.getName(), .01); } return record; }
7981 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7981/287ac9778a9837c26ba85de7aef18f872eee1911/PercentageLatencyPolicy.java/clean/core/src/org/cougaar/core/thread/PercentageLatencyPolicy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 3238, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 3852, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 10858, 2115, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 336, 5357, 2115, 12, 950, 5959, 5869, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 1151, 13, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 288, 202, 5357, 2115, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 1409, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 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, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 309, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 3238, 430, 261, 11870, 18, 2829, 13233, 13, 2332, 18, 659, 18, 8222, 2932, 11092, 394, 10858, 2115, 364, 315, 397, 3624, 1769, 3852, 430, 261, 11870, 18, 2829, 13233, 13, 2 ]
System.out.println("Opening file "+dir+"/"+name);
public void run() { // Now the real import stuff if(name!=null && dir!=null) { Statement stat = null; try { // fetch the large object manager LargeObjectManager lom = ((org.postgresql.Connection)db).getLargeObjectAPI(); System.out.println("Importing file"); // A temporary buffer - this can be as large as you like byte buf[] = new byte[2048]; // Open the file System.out.println("Opening file "+dir+"/"+name); FileInputStream fis = new FileInputStream(new File(dir,name)); // Gain access to large objects System.out.println("Gaining LOAPI"); // Now create the large object System.out.println("creating blob"); int oid = lom.create(); System.out.println("Opening "+oid); LargeObject blob = lom.open(oid); // Now copy the file into the object. // // Note: we dont use write(buf), as the last block is rarely the same // size as our buffer, so we have to use the amount read. System.out.println("Importing file"); int s,t=0; while((s=fis.read(buf,0,buf.length))>0) { System.out.println("Block s="+s+" t="+t);t+=s; blob.write(buf,0,s); } // Close the object System.out.println("Closing blob"); blob.close(); // Now store the entry into the table // As we are a different thread to the other window, we must use // our own thread stat = db.createStatement(); stat.executeUpdate("insert into images values ('"+name+"',"+oid+")"); db.commit(); // Finally refresh the names list, and display the current image ImageViewer.this.refreshList(); ImageViewer.this.displayImage(name); } catch(Exception ex) { label.setText(ex.toString()); } finally { // ensure the statement is closed after us try { if(stat != null) stat.close(); } catch(SQLException se) { System.err.println("closing of Statement failed"); } } } }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/00659bf1e495de76b0444a0baecb12516526595d/ImageViewer.java/buggy/example/ImageViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 5411, 368, 4494, 326, 2863, 1930, 10769, 1377, 309, 12, 529, 5, 33, 2011, 597, 1577, 5, 33, 2011, 13, 288, 202, 3406, 610, 273, 446, 31, 202, 202, 698, 288, 202, 225, 368, 2158, 326, 7876, 733, 3301, 202, 225, 16236, 908, 921, 1318, 328, 362, 273, 14015, 3341, 18, 2767, 24330, 18, 1952, 13, 1966, 2934, 588, 20020, 921, 2557, 5621, 202, 21114, 225, 2332, 18, 659, 18, 8222, 2932, 5010, 310, 585, 8863, 202, 225, 368, 432, 6269, 1613, 300, 333, 848, 506, 487, 7876, 487, 1846, 3007, 202, 225, 1160, 1681, 8526, 273, 394, 1160, 63, 21573, 28, 15533, 202, 21114, 225, 368, 3502, 326, 585, 202, 225, 2332, 18, 659, 18, 8222, 2932, 21378, 585, 13773, 1214, 9078, 4898, 15, 529, 1769, 202, 225, 11907, 15324, 273, 394, 11907, 12, 2704, 1387, 12, 1214, 16, 529, 10019, 202, 21114, 225, 368, 611, 530, 2006, 358, 7876, 2184, 202, 225, 2332, 18, 659, 18, 8222, 2932, 43, 3280, 1806, 2557, 8863, 202, 21114, 225, 368, 4494, 752, 326, 7876, 733, 202, 225, 2332, 18, 659, 18, 8222, 2932, 23799, 4795, 8863, 202, 225, 509, 7764, 273, 328, 362, 18, 2640, 5621, 202, 21114, 225, 2332, 18, 659, 18, 8222, 2932, 21378, 13773, 839, 1769, 202, 225, 16236, 908, 921, 4795, 273, 328, 362, 18, 3190, 12, 839, 1769, 202, 21114, 225, 368, 4494, 1610, 326, 585, 1368, 326, 733, 18, 202, 225, 368, 202, 225, 368, 3609, 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, 1086, 1435, 288, 5411, 368, 4494, 326, 2863, 1930, 10769, 1377, 309, 12, 529, 5, 33, 2011, 597, 1577, 5, 33, 2011, 13, 288, 202, 3406, 610, 273, 446, 31, 202, 202, 698, 288, 202, 225, 368, 2158, 326, 7876, 733, 3301, 202, 225, 16236, 908, 921, 1318, 328, 362, 273, 14015, 3341, 18, 2767, 24330, 18, 1952, 13, 1966, 2934, 588, 20020, 921, 2557, 5621, 202, 21114, 225, 2332, 18, 659, 18, 8222, 2932, 5010, 310, 585, 8863, 202, 225, 368, 432, 6269, 1613, 300, 333, 848, 506, 487, 7876, 487, 1846, 3007, 202, 225, 1160, 1681, 8526, 273, 394, 1160, 63, 21573, 28, 15533, 202, 21114, 225, 368, 3502, 326, 585, 202, 225, 2332, 2 ]
ResultSet rs = dbr.retrieve("rft_packets", new String [] {"number_of_files", "number_of_bytes","request_type"}, startD, ts.getTime()); while(rs.next()){
ResultSet rs = dbr.retrieve("rft_packets", new String[] { "number_of_files", "number_of_bytes", "request_type" }, startD, ts.getTime()); while (rs.next()) {
public static void main (String [] args) throws Exception{ String USAGE = "Usage: java JobFlagReport [options] <date (YYYY-MM-DD)> Enter -help for a list of options\n"; String HELP = "Where [options] are:\n"+ " -help Displays help\n"+ " -step <day|month> Specifies size of step (day by default)\n"+ " -n <steps> Specifies number of steps to do\n"; if (args.length == 0){ System.err.println(USAGE); System.exit(1); } else if (args.length == 1 && args[0].equalsIgnoreCase("-help")){ System.err.println(USAGE); System.err.println(HELP); System.exit(1); } int n = 1; String stepStr = "day"; for (int i=0;i<args.length-1;i++){ if (args[i].equals("-n")) { n = Integer.parseInt(args[++i]); } else if (args[i].equals("-step")) { stepStr = args[++i]; } else if (args[i].equalsIgnoreCase("-help")) { System.err.println(USAGE); System.err.println(HELP); System.exit(1); } else { System.err.println("Unknown argument: " + args[i]); System.exit(1); } } String inputDate = args[args.length-1]; TimeStep ts = new TimeStep (stepStr, n, inputDate); HistogramParser fileHist = new HistogramParser("Average Number of Files Transfered by a RFT Resource", "rftfilehistogram", "Number of Files", n); HistogramParser deleteHist = new HistogramParser("Average Number of Files deleted by a RFT Resource","rftdeletehistogram", "Number of Files Deleted",n); HistogramParser byteHist = new HistogramParser("Average Number of Bytes Transfered by a RFT Resource", "rftbytehistogram", "Bytes Transferred", n); HistogramParser typeHist = new HistogramParser("Percent of Requests forDeletion vs. Transfer", "rfttypehistogram","Percent of total requests",n); while(ts.next()){ int requests = 0; int delete = 0; int transfer = 0; int numFilesTransfer = 0; int numFilesDelete = 0; long numBytes = 0; Date startD = ts.getTime(); String startS = ts.getFormattedTime(); ts.stepTime(); typeHist.nextEntry(startS, ts.getFormattedTime()); deleteHist.nextEntry(startS, ts.getFormattedTime()); fileHist.nextEntry(startS, ts.getFormattedTime()); byteHist.nextEntry(startS, ts.getFormattedTime()); DatabaseRetriever dbr = new DatabaseRetriever(); String startDate = ts.getFormattedTime(); ResultSet rs = dbr.retrieve("rft_packets", new String [] {"number_of_files", "number_of_bytes","request_type"}, startD, ts.getTime()); while(rs.next()){ requests++; if (rs.getInt(3) == 0) { numFilesTransfer += rs.getInt(1); transfer++; } if (rs.getInt(3) == 1) { numFilesDelete += rs.getInt(1); delete++; } numBytes += rs.getLong(2); } byteHist.addData("Number of Bytes", (double)numBytes/transfer); fileHist.addData("File Number Transferred", (double)numFilesTransfer/transfer); deleteHist.addData("File Number Deleted", (double)numFilesDelete/delete); typeHist.addData("% Transfers", 100.0*transfer/requests); typeHist.addData("% Deletions", 100.0*delete/requests); rs.close(); dbr.close(); } System.out.println("<report>"); typeHist.output(System.out); deleteHist.output(System.out); byteHist.output(System.out); fileHist.output(System.out); System.out.println("</report>"); }
8754 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8754/efb83d08bf3214ba362adb9486345c128a00bae7/FileReport.java/clean/usage/java/reports/source/src/org/globus/usage/report/rft/FileReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 261, 780, 5378, 833, 13, 1216, 1185, 95, 3639, 514, 11836, 2833, 273, 315, 5357, 30, 2252, 3956, 4678, 4820, 306, 2116, 65, 411, 712, 261, 26287, 17, 8206, 17, 5698, 13, 34, 15439, 300, 5201, 364, 279, 666, 434, 702, 64, 82, 14432, 3639, 514, 22557, 52, 273, 315, 5262, 306, 2116, 65, 854, 5581, 82, 6, 15, 5411, 315, 300, 5201, 1171, 9311, 87, 2809, 64, 82, 6, 15, 5411, 315, 300, 4119, 411, 2881, 96, 7496, 34, 377, 4185, 5032, 963, 434, 2235, 261, 2881, 635, 805, 5153, 82, 6, 15, 5411, 315, 300, 82, 411, 8986, 34, 5411, 4185, 5032, 1300, 434, 6075, 358, 741, 64, 82, 14432, 3639, 309, 261, 1968, 18, 2469, 422, 374, 15329, 5411, 2332, 18, 370, 18, 8222, 12, 29550, 1769, 5411, 2332, 18, 8593, 12, 21, 1769, 3639, 289, 3639, 469, 309, 261, 1968, 18, 2469, 422, 404, 597, 833, 63, 20, 8009, 14963, 5556, 2932, 17, 5201, 6, 3719, 95, 5411, 2332, 18, 370, 18, 8222, 12, 29550, 1769, 5411, 2332, 18, 370, 18, 8222, 12, 27396, 1769, 5411, 2332, 18, 8593, 12, 21, 1769, 3639, 289, 3639, 509, 290, 273, 404, 31, 3639, 514, 2235, 1585, 273, 315, 2881, 14432, 3639, 364, 261, 474, 277, 33, 20, 31, 77, 32, 1968, 18, 2469, 17, 21, 31, 77, 27245, 95, 5411, 309, 261, 1968, 63, 77, 8009, 14963, 2932, 17, 82, 6, 3719, 288, 7734, 290, 273, 2144, 18, 2670, 1702, 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, 2774, 261, 780, 5378, 833, 13, 1216, 1185, 95, 3639, 514, 11836, 2833, 273, 315, 5357, 30, 2252, 3956, 4678, 4820, 306, 2116, 65, 411, 712, 261, 26287, 17, 8206, 17, 5698, 13, 34, 15439, 300, 5201, 364, 279, 666, 434, 702, 64, 82, 14432, 3639, 514, 22557, 52, 273, 315, 5262, 306, 2116, 65, 854, 5581, 82, 6, 15, 5411, 315, 300, 5201, 1171, 9311, 87, 2809, 64, 82, 6, 15, 5411, 315, 300, 4119, 411, 2881, 96, 7496, 34, 377, 4185, 5032, 963, 434, 2235, 261, 2881, 635, 805, 5153, 82, 6, 15, 5411, 315, 300, 82, 411, 8986, 34, 5411, 4185, 5032, 1300, 434, 6075, 358, 741, 64, 82, 14432, 3639, 309, 2 ]
public void setCursorMarkPosition(int cursorMarkPosition) {this.cursorMarkPosition = cursorMarkPosition;}
public void setCursorMarkPosition(int cursorMarkPosition) { this.cursorMarkPosition = cursorMarkPosition; }
public void setCursorMarkPosition(int cursorMarkPosition) {this.cursorMarkPosition = cursorMarkPosition;}
49473 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49473/f216d3d6c10f50f0e2aaafd55b9d988c0c5dfcf1/TreeContext.java/buggy/outliner/src/com/organic/maynard/outliner/TreeContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6688, 3882, 2555, 12, 474, 3347, 3882, 2555, 13, 288, 2211, 18, 9216, 3882, 2555, 273, 3347, 3882, 2555, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6688, 3882, 2555, 12, 474, 3347, 3882, 2555, 13, 288, 2211, 18, 9216, 3882, 2555, 273, 3347, 3882, 2555, 31, 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 ]
m_userCache.remove(user.getId()); m_userCache.remove(user.getName()); m_userCache.remove(user.getName()+user.getType());
try{ m_userCache.remove(user.getId()); } catch (Exception e){ } try{ m_userCache.remove(user.getName()); } catch (Exception e){ } try{ m_userCache.remove(user.getName()+user.getType()); } catch (Exception e){ } m_accessCache.clear();
public void clearUserCache(CmsUser user){ m_userCache.remove(user.getId()); m_userCache.remove(user.getName()); m_userCache.remove(user.getName()+user.getType()); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/8f92902cfd075fb15b01e1bc566c8d60eb2a5455/CmsResourceBroker.java/clean/src/com/opencms/file/genericSql/CmsResourceBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2424, 1299, 1649, 12, 4747, 1299, 729, 15329, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 26321, 10663, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 17994, 10663, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 17994, 1435, 15, 1355, 18, 588, 559, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2424, 1299, 1649, 12, 4747, 1299, 729, 15329, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 26321, 10663, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 17994, 10663, 3639, 312, 67, 1355, 1649, 18, 4479, 12, 1355, 18, 17994, 1435, 15, 1355, 18, 588, 559, 10663, 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 ]
public boolean isOrdered();
boolean isOrdered();
public boolean isOrdered();
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/0788b89b7368770a1157f825d60dd8c5a9df183e/Attribute.java/buggy/core/src/classpath/javax/javax/naming/directory/Attribute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 16756, 5621, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 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, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 16756, 5621, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if (DEBUG) System.out.println("Interface link: " + implementor.getSignature() + " --> " + iface.getSignature());
public void addInterfaceLink(ObjectType implementor, ClassType iface) { //System.out.println("Interface link: " + implementor.getSignature() + " --> " + iface.getSignature()); inheritanceGraph.createEdge(implementor, iface, InheritanceGraphEdgeTypes.INTERFACE_EDGE); }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/f75d28ae16376fe0eed1ff80c8437b9cd2d21357/TypeRepository.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/type/TypeRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 918, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 527, 1358, 2098, 12, 17610, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 2348, 280, 16, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 1659, 559, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 9751, 13, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 288, 202, 202, 759, 3163, 18, 659, 18, 8222, 2932, 1358, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 1692, 30, 430, 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, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 918, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 527, 1358, 2098, 12, 17610, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 397, 2348, 280, 18, 588, 5374, 1435, 397, 315, 15431, 315, 397, 9751, 18, 588, 5374, 10663, 2348, 280, 16, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 2932, 1358, 1692, 30, 315, 2 ]
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice();
public quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { quickfix.field.UnderlyingDirtyPrice value = new quickfix.field.UnderlyingDirtyPrice();
public org.quickfix.field.UnderlyingDirtyPrice getUnderlyingDirtyPrice() throws FieldNotFound { org.quickfix.field.UnderlyingDirtyPrice value = new org.quickfix.field.UnderlyingDirtyPrice(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/IndicationOfInterest.java/buggy/src/java/src/quickfix/fix44/IndicationOfInterest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 10833, 765, 6291, 10785, 5147, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 10785, 5147, 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 ]
finalDb.addTopLevel("Evaluate", frame);
debugGui.addTopLevel("Evaluate", frame);
ContextWindow(Main db) { super(); this.db = db; enabled = false; JPanel left = new JPanel(); JToolBar t1 = new JToolBar(); t1.setName("Variables"); t1.setLayout(new GridLayout()); t1.add(left); JPanel p1 = new JPanel(); p1.setLayout(new GridLayout()); JPanel p2 = new JPanel(); p2.setLayout(new GridLayout()); p1.add(t1); JLabel label = new JLabel("Context:"); context = new JComboBox(); context.setLightWeightPopupEnabled(false); toolTips = new java.util.Vector(); label.setBorder(context.getBorder()); context.addActionListener(this); context.setActionCommand("ContextSwitch"); GridBagLayout layout = new GridBagLayout(); left.setLayout(layout); GridBagConstraints lc = new GridBagConstraints(); lc.insets.left = 5; lc.anchor = GridBagConstraints.WEST; lc.ipadx = 5; layout.setConstraints(label, lc); left.add(label); GridBagConstraints c = new GridBagConstraints(); c.gridwidth = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.HORIZONTAL; c.anchor = GridBagConstraints.WEST; layout.setConstraints(context, c); left.add(context); tabs = new JTabbedPane(SwingConstants.BOTTOM); tabs.setPreferredSize(new Dimension(500,300)); thisTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { //return 3; return 2; } public String getColumnName(int column) { switch (column) { case 0: return " Name"; case 1: //return "Type"; //case 2: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); JScrollPane jsp = new JScrollPane(thisTable); jsp.getViewport().setViewSize(new Dimension(5,2)); tabs.add("this", jsp); localsTable = new MyTreeTable(new AbstractTreeTableModel(new DefaultMutableTreeNode()) { public Object getChild(Object parent, int index) { return null; } public int getChildCount(Object parent) { return 0; } public int getColumnCount() { return 2; } public String getColumnName(int column) { switch (column) { case 0: return " Name"; case 1: return " Value"; } return null; } public Object getValueAt(Object node, int column) { return null; } }); localsTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); localsTable.setPreferredSize(null); jsp = new JScrollPane(localsTable); tabs.add("Locals", jsp); c.weightx = c.weighty = 1; c.gridheight = GridBagConstraints.REMAINDER; c.fill = GridBagConstraints.BOTH; c.anchor = GridBagConstraints.WEST; layout.setConstraints(tabs, c); left.add(tabs); evaluator = new Evaluator(db); cmdLine = new EvalTextArea(db); //cmdLine.requestFocus(); tableModel = evaluator.tableModel; jsp = new JScrollPane(evaluator); JToolBar t2 = new JToolBar(); t2.setName("Evaluate"); tabs2 = new JTabbedPane(SwingConstants.BOTTOM); tabs2.add("Watch", jsp); tabs2.add("Evaluate", new JScrollPane(cmdLine)); tabs2.setPreferredSize(new Dimension(500,300)); t2.setLayout(new GridLayout()); t2.add(tabs2); p2.add(t2); evaluator.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS); split = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, p1, p2); split.setOneTouchExpandable(true); Main.setResizeWeight(split, 0.5); setLayout(new BorderLayout()); add(split, BorderLayout.CENTER); final JToolBar finalT1 = t1; final JToolBar finalT2 = t2; final JPanel finalP1 = p1; final JPanel finalP2 = p2; final JSplitPane finalSplit = split; final JPanel finalThis = this; final Main finalDb = db; ComponentListener clistener = new ComponentListener() { boolean t1Docked = true; boolean t2Docked = true; void check(Component comp) { Component thisParent = finalThis.getParent(); if (thisParent == null) { return; } Component parent = finalT1.getParent(); boolean leftDocked = true; boolean rightDocked = true; boolean adjustVerticalSplit = false; if (parent != null) { if (parent != finalP1) { while (!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Variables", frame); // We need the following hacks because: // - We want an undocked toolbar to be // resizable. // - We are using JToolbar as a container of a // JComboBox. Without this JComboBox's popup // can get left floating when the toolbar is // re-docked. // // We make the frame resizable and then // remove JToolbar's window listener // and insert one of our own that first ensures // the JComboBox's popup window is closed // and then calls JToolbar's window listener. if (!frame.isResizable()) { frame.setResizable(true); frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); final EventListener[] l = frame.getListeners(WindowListener.class); frame.removeWindowListener((WindowListener)l[0]); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { context.hidePopup(); ((WindowListener)l[0]).windowClosing(e); } }); //adjustVerticalSplit = true; } leftDocked = false; } else { leftDocked = true; } } parent = finalT2.getParent(); if (parent != null) { if (parent != finalP2) { while (!(parent instanceof JFrame)) { parent = parent.getParent(); } JFrame frame = (JFrame)parent; finalDb.addTopLevel("Evaluate", frame); frame.setResizable(true); rightDocked = false; } else { rightDocked = true; } } if (leftDocked && t2Docked && rightDocked && t2Docked) { // no change return; } t1Docked = leftDocked; t2Docked = rightDocked; JSplitPane split = (JSplitPane)thisParent; if (leftDocked) { if (rightDocked) { finalSplit.setDividerLocation(0.5); } else { finalSplit.setDividerLocation(1.0); } if (adjustVerticalSplit) { split.setDividerLocation(0.66); } } else if (rightDocked) { finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } public void componentHidden(ComponentEvent e) { check(e.getComponent()); } public void componentMoved(ComponentEvent e) { check(e.getComponent()); } public void componentResized(ComponentEvent e) { check(e.getComponent()); } public void componentShown(ComponentEvent e) { check(e.getComponent()); } }; p1.addContainerListener(new ContainerListener() { public void componentAdded(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if (e.getChild() == finalT1) { if (finalT2.getParent() == finalP2) { // both docked finalSplit.setDividerLocation(0.5); } else { // left docked only finalSplit.setDividerLocation(1.0); } split.setDividerLocation(0.66); } } public void componentRemoved(ContainerEvent e) { Component thisParent = finalThis.getParent(); JSplitPane split = (JSplitPane)thisParent; if (e.getChild() == finalT1) { if (finalT2.getParent() == finalP2) { // right docked only finalSplit.setDividerLocation(0.0); split.setDividerLocation(0.66); } else { // both undocked split.setDividerLocation(1.0); } } } }); t1.addComponentListener(clistener); t2.addComponentListener(clistener); disable(); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/7ceadc8e69bfcf427fd421373c750f8de120f15c/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 88, 21, 1769, 3639, 21403, 1433, 273, 394, 21403, 2932, 1042, 2773, 1769, 3639, 819, 273, 394, 804, 22199, 5621, 3639, 819, 18, 542, 12128, 6544, 13770, 1526, 12, 5743, 1769, 3639, 5226, 56, 7146, 273, 394, 2252, 18, 1367, 18, 5018, 5621, 3639, 1433, 18, 542, 8107, 12, 2472, 18, 588, 8107, 10663, 3639, 819, 18, 1289, 1803, 2223, 12, 2211, 1769, 3639, 819, 18, 542, 1803, 2189, 2932, 1042, 10200, 8863, 3639, 7145, 5013, 3744, 3511, 273, 394, 7145, 5013, 3744, 5621, 3639, 2002, 18, 542, 3744, 12, 6741, 1769, 3639, 13075, 9109, 273, 394, 13075, 5621, 3639, 9109, 18, 267, 4424, 18, 4482, 273, 1381, 31, 3639, 9109, 18, 16215, 273, 13075, 18, 31285, 31, 3639, 9109, 18, 625, 361, 92, 273, 1381, 31, 3639, 3511, 18, 542, 4878, 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, 1772, 3829, 12, 6376, 1319, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 1966, 273, 1319, 31, 3639, 3696, 273, 629, 31, 3639, 24048, 2002, 273, 394, 24048, 5621, 3639, 804, 6364, 5190, 268, 21, 273, 394, 804, 6364, 5190, 5621, 3639, 268, 21, 18, 542, 461, 2932, 6158, 8863, 3639, 268, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 268, 21, 18, 1289, 12, 4482, 1769, 3639, 24048, 293, 21, 273, 394, 24048, 5621, 3639, 293, 21, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 24048, 293, 22, 273, 394, 24048, 5621, 3639, 293, 22, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 3639, 293, 21, 18, 1289, 12, 88, 21, 1769, 3639, 21403, 2 ]
new ServiceTypePK(new Integer(rs.getInt(3)))));
new Integer(rs.getInt(3))));
public AppdefResourceValue getServiceValueDirectSQL(ServicePK pk, boolean getLight) { Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; try { log.debug("VOCache Miss! Retrieving ServiceValue from database"); conn = Util.getConnection(); ps = conn.prepareStatement(SERVICE_SQL); ps.setInt(1, pk.getId().intValue()); rs = ps.executeQuery(); rs.next(); if (getLight) { ServiceLightValue slv = new ServiceLightValue(); slv.setId(new Integer(rs.getInt(1))); slv.setServiceType(getServiceTypeValue( new ServiceTypePK(new Integer(rs.getInt(3))))); slv.setName(rs.getString(5)); slv.setSortName(rs.getString(6)); slv.setDescription(rs.getString(7)); slv.setMTime(new Long(rs.getLong(8))); slv.setCTime(new Long(rs.getLong(9))); slv.setModifiedBy(rs.getString(10)); slv.setLocation(rs.getString(11)); slv.setOwner(rs.getString(12)); slv.setConfigResponseId(new Integer(rs.getInt(13))); slv.setParentId(new Integer(rs.getInt(14))); slv.setAutodiscoveryZombie(rs.getBoolean(15)); slv.setServiceRt(rs.getBoolean(16)); slv.setEndUserRt(rs.getBoolean(17)); return slv; } else { ServiceValue sv = new ServiceValue(); sv.setId(new Integer(rs.getInt(1))); sv.setServiceType(getServiceTypeValue( new ServiceTypePK(new Integer(rs.getInt(3))))); sv.setName(rs.getString(5)); sv.setSortName(rs.getString(6)); sv.setDescription(rs.getString(7)); sv.setMTime(new Long(rs.getLong(8))); sv.setCTime(new Long(rs.getLong(9))); sv.setModifiedBy(rs.getString(10)); sv.setLocation(rs.getString(11)); sv.setOwner(rs.getString(12)); sv.setConfigResponseId(new Integer(rs.getInt(13))); sv.setParentId(new Integer(rs.getInt(14))); sv.setAutodiscoveryZombie(rs.getBoolean(15)); sv.setServiceRt(rs.getBoolean(16)); sv.setEndUserRt(rs.getBoolean(17)); Server serv = getServerDAO().findById(new Integer(rs.getInt(2))); sv.setServer(serv.getServerLightValue()); return sv; } } catch (Exception e) { throw new SystemException(e); } finally { DBUtil.closeJDBCObjects(ctx, null, ps, rs); Util.endConnection(); } }
52591 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52591/5b5340cb0d18f5736d423826ddf9afcd22ec015f/ServiceVOHelperEJBImpl.java/clean/src/org/hyperic/hq/appdef/server/session/ServiceVOHelperEJBImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4677, 536, 1420, 620, 6373, 620, 5368, 3997, 12, 1179, 8784, 2365, 16, 4766, 13491, 1250, 9014, 750, 13, 288, 3639, 4050, 1487, 273, 446, 31, 3639, 16913, 4250, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, 5411, 613, 18, 4148, 2932, 16169, 1649, 490, 1054, 5, 8803, 6282, 1956, 620, 628, 2063, 8863, 5411, 1487, 273, 3564, 18, 588, 1952, 5621, 5411, 4250, 273, 1487, 18, 9366, 3406, 12, 12426, 67, 3997, 1769, 5411, 4250, 18, 542, 1702, 12, 21, 16, 2365, 18, 26321, 7675, 474, 620, 10663, 5411, 3597, 273, 4250, 18, 8837, 1138, 5621, 5411, 3597, 18, 4285, 5621, 5411, 309, 261, 588, 12128, 13, 288, 7734, 1956, 12128, 620, 2020, 90, 273, 394, 1956, 12128, 620, 5621, 7734, 2020, 90, 18, 542, 548, 12, 2704, 2144, 12, 5453, 18, 588, 1702, 12, 21, 3719, 1769, 7734, 2020, 90, 18, 542, 1179, 559, 12, 588, 1179, 559, 620, 12, 10792, 394, 2144, 12, 5453, 18, 588, 1702, 12, 23, 3719, 10019, 7734, 2020, 90, 18, 542, 461, 12, 5453, 18, 588, 780, 12, 25, 10019, 7734, 2020, 90, 18, 542, 4416, 461, 12, 5453, 18, 588, 780, 12, 26, 10019, 7734, 2020, 90, 18, 542, 3291, 12, 5453, 18, 588, 780, 12, 27, 10019, 7734, 2020, 90, 18, 542, 49, 950, 12, 2704, 3407, 12, 5453, 18, 588, 3708, 12, 28, 3719, 1769, 7734, 2020, 90, 18, 542, 39, 950, 12, 2704, 3407, 12, 5453, 18, 588, 3708, 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, 4677, 536, 1420, 620, 6373, 620, 5368, 3997, 12, 1179, 8784, 2365, 16, 4766, 13491, 1250, 9014, 750, 13, 288, 3639, 4050, 1487, 273, 446, 31, 3639, 16913, 4250, 273, 446, 31, 3639, 10842, 3597, 273, 446, 31, 3639, 775, 288, 5411, 613, 18, 4148, 2932, 16169, 1649, 490, 1054, 5, 8803, 6282, 1956, 620, 628, 2063, 8863, 5411, 1487, 273, 3564, 18, 588, 1952, 5621, 5411, 4250, 273, 1487, 18, 9366, 3406, 12, 12426, 67, 3997, 1769, 5411, 4250, 18, 542, 1702, 12, 21, 16, 2365, 18, 26321, 7675, 474, 620, 10663, 5411, 3597, 273, 4250, 18, 8837, 1138, 5621, 5411, 3597, 18, 4285, 5621, 5411, 309, 261, 588, 12128, 13, 288, 7734, 1956, 12128, 620, 2 ]
new DataQueue(c.getSystem(), "/QSYS.LIB/L701QUEUE.DTAQ"), c.getSystem());
new DataQueue(system, "/QSYS.LIB/L701QUEUE.DTAQ"), system);
public UMOMessageReceiver getMessageReceiver() throws Exception { DQConnector c = new DQConnector(); c.setName("dqConnector"); c.setRecordFormat("DQ_recordFormat.xml"); c.setUsername("xxx"); c.setPassword("xxx"); c.setHostname("localhost"); MuleManager.getInstance().registerConnector(c); MuleManager.getInstance().start(); endpoint = new MuleEndpoint("dq://QSYS.LIB/L701QUEUE.DTAQ", true); Mock mockComponent = new Mock(UMOComponent.class); return new DQMessageReceiver((AbstractConnector) endpoint.getConnector(), (UMOComponent) mockComponent.proxy(), endpoint, new Long(1000), new DataQueue(c.getSystem(), "/QSYS.LIB/L701QUEUE.DTAQ"), c.getSystem()); }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/f095e6cee5b030bca6444069885841ae55114520/DQMessageReceiverTestCase.java/buggy/providers/dq/src/test/java/org/mule/providers/dq/DQMessageReceiverTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 5980, 1079, 12952, 2381, 12952, 1435, 1216, 1185, 565, 288, 3639, 463, 53, 7487, 276, 273, 394, 463, 53, 7487, 5621, 3639, 276, 18, 542, 461, 2932, 72, 85, 7487, 8863, 3639, 276, 18, 542, 2115, 1630, 2932, 40, 53, 67, 3366, 1630, 18, 2902, 8863, 3639, 276, 18, 542, 8575, 2932, 18310, 8863, 3639, 276, 18, 542, 3913, 2932, 18310, 8863, 3639, 276, 18, 542, 13769, 2932, 13014, 8863, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 4861, 7487, 12, 71, 1769, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 1937, 5621, 3639, 2494, 273, 394, 490, 725, 3293, 2932, 72, 85, 2207, 53, 30664, 18, 14484, 19, 48, 27, 1611, 19533, 18, 9081, 37, 53, 3113, 638, 1769, 3639, 7867, 5416, 1841, 273, 394, 7867, 12, 2799, 51, 1841, 18, 1106, 1769, 3639, 327, 394, 463, 53, 1079, 12952, 12443, 7469, 7487, 13, 2494, 18, 588, 7487, 9334, 19694, 261, 2799, 51, 1841, 13, 5416, 1841, 18, 5656, 9334, 19694, 2494, 16, 19694, 394, 3407, 12, 18088, 3631, 19694, 394, 1910, 3183, 12, 71, 18, 588, 3163, 9334, 2206, 53, 30664, 18, 14484, 19, 48, 27, 1611, 19533, 18, 9081, 37, 53, 6, 3631, 19694, 276, 18, 588, 3163, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 587, 5980, 1079, 12952, 2381, 12952, 1435, 1216, 1185, 565, 288, 3639, 463, 53, 7487, 276, 273, 394, 463, 53, 7487, 5621, 3639, 276, 18, 542, 461, 2932, 72, 85, 7487, 8863, 3639, 276, 18, 542, 2115, 1630, 2932, 40, 53, 67, 3366, 1630, 18, 2902, 8863, 3639, 276, 18, 542, 8575, 2932, 18310, 8863, 3639, 276, 18, 542, 3913, 2932, 18310, 8863, 3639, 276, 18, 542, 13769, 2932, 13014, 8863, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 4861, 7487, 12, 71, 1769, 3639, 490, 725, 1318, 18, 588, 1442, 7675, 1937, 5621, 3639, 2494, 273, 394, 490, 725, 3293, 2932, 72, 85, 2207, 53, 30664, 18, 14484, 19, 48, 27, 1611, 19533, 18, 9081, 37, 2 ]
return getLayout().preferredLayoutSize(this);
Dimension d; if (orientation == JSplitPane.HORIZONTAL_SPLIT) d = new Dimension(getDividerSize(), 1); else d = new Dimension(1, getDividerSize()); return d;
public Dimension getPreferredSize() { return getLayout().preferredLayoutSize(this); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ff4d557efcee4a2c3a25a9cac2252bc626fb10fe/BasicSplitPaneDivider.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicSplitPaneDivider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 13037, 302, 31, 309, 261, 19235, 422, 804, 5521, 8485, 18, 44, 20344, 67, 17482, 13, 302, 273, 394, 13037, 12, 588, 25558, 1225, 9334, 404, 1769, 469, 302, 273, 394, 13037, 12, 21, 16, 2343, 427, 3585, 1225, 10663, 327, 302, 31, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 13037, 12822, 4193, 1225, 1435, 225, 288, 565, 13037, 302, 31, 309, 261, 19235, 422, 804, 5521, 8485, 18, 44, 20344, 67, 17482, 13, 302, 273, 394, 13037, 12, 588, 25558, 1225, 9334, 404, 1769, 469, 302, 273, 394, 13037, 12, 21, 16, 2343, 427, 3585, 1225, 10663, 327, 302, 31, 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 ]
log.fine("Received hand message for player " + player + "; " + hand.size() + " cards.");
log.fine("Received hand message for player " + player + "; " + hand.size() + " cards.");
private void handle_msg_hand() throws IOException { int player; int hand_size; ArrayList hand; /* first read the player whose hand it is */ player = fd_in.read_seat(); /* Find out how many cards in this hand */ hand_size = fd_in.readInt(); /* Reallocate hand structures, if necessary */ increase_max_hand_size(hand_size); hand = this.players[player].hand; /* * Read in all the card values. It's important that we don't change * anything before here so that any functions we call from * increase_max_hand_size won't have inconsistent data. */ hand.clear(); for (int i = 0; i < hand_size; i++) { Card card = fd_in.read_card(); hand.add(card); // this.players[player].u_hand[i].card = card; // this.players[player].u_hand[i].is_valid = true; } log.fine("Received hand message for player " + player + "; " + hand.size() + " cards."); /* Finally, show the hand. */ game.display_hand(player); }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/44e587940db5385974fd6a597a51d634a1b2ab34/Client.java/clean/java/src/ggz/cards/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1640, 67, 3576, 67, 2349, 1435, 1216, 1860, 288, 202, 202, 474, 7291, 31, 202, 202, 474, 948, 67, 1467, 31, 202, 202, 19558, 948, 31, 202, 202, 20308, 1122, 855, 326, 7291, 8272, 948, 518, 353, 1195, 202, 202, 14872, 273, 5194, 67, 267, 18, 896, 67, 307, 270, 5621, 202, 202, 20308, 4163, 596, 3661, 4906, 18122, 316, 333, 948, 1195, 202, 202, 2349, 67, 1467, 273, 5194, 67, 267, 18, 896, 1702, 5621, 202, 202, 20308, 868, 16247, 948, 12597, 16, 309, 4573, 1195, 202, 202, 267, 11908, 67, 1896, 67, 2349, 67, 1467, 12, 2349, 67, 1467, 1769, 202, 202, 2349, 273, 333, 18, 1601, 414, 63, 14872, 8009, 2349, 31, 202, 202, 20308, 1082, 380, 2720, 316, 777, 326, 5270, 924, 18, 2597, 1807, 10802, 716, 732, 2727, 1404, 2549, 1082, 380, 6967, 1865, 2674, 1427, 716, 1281, 4186, 732, 745, 628, 1082, 380, 10929, 67, 1896, 67, 2349, 67, 1467, 8462, 1404, 1240, 27403, 501, 18, 1082, 1195, 202, 202, 2349, 18, 8507, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 948, 67, 1467, 31, 277, 27245, 288, 1082, 202, 6415, 5270, 273, 5194, 67, 267, 18, 896, 67, 3327, 5621, 1082, 202, 2349, 18, 1289, 12, 3327, 1769, 1082, 202, 759, 333, 18, 1601, 414, 63, 14872, 8009, 89, 67, 2349, 63, 77, 8009, 3327, 273, 5270, 31, 1082, 202, 759, 333, 18, 1601, 414, 63, 14872, 8009, 89, 67, 2349, 63, 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, 1640, 67, 3576, 67, 2349, 1435, 1216, 1860, 288, 202, 202, 474, 7291, 31, 202, 202, 474, 948, 67, 1467, 31, 202, 202, 19558, 948, 31, 202, 202, 20308, 1122, 855, 326, 7291, 8272, 948, 518, 353, 1195, 202, 202, 14872, 273, 5194, 67, 267, 18, 896, 67, 307, 270, 5621, 202, 202, 20308, 4163, 596, 3661, 4906, 18122, 316, 333, 948, 1195, 202, 202, 2349, 67, 1467, 273, 5194, 67, 267, 18, 896, 1702, 5621, 202, 202, 20308, 868, 16247, 948, 12597, 16, 309, 4573, 1195, 202, 202, 267, 11908, 67, 1896, 67, 2349, 67, 1467, 12, 2349, 67, 1467, 1769, 202, 202, 2349, 273, 333, 18, 1601, 414, 63, 14872, 8009, 2349, 31, 2 ]
getContext().css = new TBStyleReference(new NaiveUserAgent());
getContext().css = new StyleReference(new NaiveUserAgent());
public RenderingContext() { setMedia("screen"); setContext(new Context()); getContext().ctx = this; getContext().css = new TBStyleReference(new NaiveUserAgent()); XRLog.render("Using CSS implementation from: " + getContext().css.getClass().getName()); layout_factory = new LayoutFactory(); setTextRenderer(new Java2DTextRenderer()); }
57883 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57883/93d814d7886e593bc9bd7f476b2a18571a009aa6/RenderingContext.java/clean/src/java/org/xhtmlrenderer/extend/RenderingContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 18018, 1042, 1435, 288, 3639, 444, 5419, 2932, 9252, 8863, 3639, 16615, 12, 2704, 1772, 10663, 3639, 6474, 7675, 5900, 273, 333, 31, 3639, 6474, 7675, 5212, 273, 394, 9767, 2404, 12, 2704, 16350, 688, 12276, 10663, 3639, 1139, 54, 1343, 18, 5902, 2932, 7736, 6765, 4471, 628, 30, 315, 397, 6474, 7675, 5212, 18, 588, 797, 7675, 17994, 10663, 3639, 3511, 67, 6848, 273, 394, 9995, 1733, 5621, 3639, 7883, 6747, 12, 2704, 5110, 22, 40, 1528, 6747, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 18018, 1042, 1435, 288, 3639, 444, 5419, 2932, 9252, 8863, 3639, 16615, 12, 2704, 1772, 10663, 3639, 6474, 7675, 5900, 273, 333, 31, 3639, 6474, 7675, 5212, 273, 394, 9767, 2404, 12, 2704, 16350, 688, 12276, 10663, 3639, 1139, 54, 1343, 18, 5902, 2932, 7736, 6765, 4471, 628, 30, 315, 397, 6474, 7675, 5212, 18, 588, 797, 7675, 17994, 10663, 3639, 3511, 67, 6848, 273, 394, 9995, 1733, 5621, 3639, 7883, 6747, 12, 2704, 5110, 22, 40, 1528, 6747, 10663, 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 ]
public void setFont(Font f) {
public void setFont(Font f) {
public void setFont(Font f) { firePropertyChange("font", font, f); if (peer != null) peer.setFont(f); font = f; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/ac6303b96cdaf2d4230daf25a90dd00cc4cb192d/Component.java/clean/core/src/classpath/java/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20454, 12, 5711, 284, 13, 288, 202, 202, 12179, 1396, 3043, 2932, 5776, 3113, 3512, 16, 284, 1769, 202, 202, 430, 261, 12210, 480, 446, 13, 1082, 202, 12210, 18, 542, 5711, 12, 74, 1769, 202, 202, 5776, 273, 284, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20454, 12, 5711, 284, 13, 288, 202, 202, 12179, 1396, 3043, 2932, 5776, 3113, 3512, 16, 284, 1769, 202, 202, 430, 261, 12210, 480, 446, 13, 1082, 202, 12210, 18, 542, 5711, 12, 74, 1769, 202, 202, 5776, 273, 284, 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 ]
} else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; }
} else if (ph.getLexState() == LexState.EXPR_ARG && space_seen != 0) { ph.rb_warning(tok() + " (...) interpreted as method call");
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = ph.isCommandStart(); ph.setCommandStart(false); retry : for (; ; ) { switch (c = nextc()) { case '\0': // NUL case '\004': // ^D case '\032': // ^Z case -1: //end of script. return 0; // white spaces case ' ': case '\t': case '\f': case '\r': case '\013': // '\v' space_seen = true; continue retry; case '#': // it's a comment while ((c = nextc()) != '\n') { if (c == -1) { return 0; } } // fall through case '\n': switch (ph.getLexState()) { case LexState.EXPR_BEG: case LexState.EXPR_FNAME: case LexState.EXPR_DOT: continue retry; default: break; } ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return '\n'; case '*': if ((c = nextc()) == '*') { ph.setLexState(LexState.EXPR_BEG); if (nextc() == '=') { yyVal = ph.newId(Token.tPOW); return Token.tOP_ASGN; } pushback(c); return Token.tPOW; } if (c == '=') { yyVal = ph.newId('*'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`*' interpreted as argument prefix"); c = Token.tSTAR; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tSTAR; } else { c = '*'; } ph.setLexState(LexState.EXPR_BEG); return c; case '!': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tNEQ; } if (c == '~') { return Token.tNMATCH; } pushback(c); return '!'; case '=': if (lex_p == 1) { // skip embedded rd document if (lex_curline.startsWith("=begin") && (lex_pend == 6 || ISSPACE(lex_curline.charAt(6)))) { for (; ; ) { lex_p = lex_pend; c = nextc(); if (c == -1) { ph.rb_compile_error("embedded document meets end of file"); return 0; } if (c != '=') { continue; } if (lex_curline.substring(lex_p, lex_p + 3).equals("end") && (lex_p + 3 == lex_pend || ISSPACE(lex_curline.charAt(lex_p + 3)))) { break; } } lex_p = lex_pend; continue retry; } } ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { if ((c = nextc()) == '=') { return Token.tEQQ; } pushback(c); return Token.tEQ; } if (c == '~') { return Token.tMATCH; } else if (c == '>') { return Token.tASSOC; } pushback(c); return '='; case '<': c = nextc(); if (c == '<' && ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG && ph.getLexState() != LexState.EXPR_CLASS && (!IS_ARG() || space_seen)) { int c2 = nextc(); int indent = 0; if (c2 == '-') { indent = 1; c2 = nextc(); } if (!ISSPACE(c2) && ("\"'`".indexOf(c2) != -1 || is_identchar(c2))) { return here_document(c2, indent); } pushback(c2); } ph.setLexState(LexState.EXPR_BEG); if (c == '=') { if ((c = nextc()) == '>') { return Token.tCMP; } pushback(c); return Token.tLEQ; } if (c == '<') { if (nextc() == '=') { yyVal = ph.newId(Token.tLSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tLSHFT; } pushback(c); return '<'; case '>': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { return Token.tGEQ; } if (c == '>') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tRSHFT); return Token.tOP_ASGN; } pushback(c); return Token.tRSHFT; } pushback(c); return '>'; case '"': return parse_string(c, c, c); case '`': if (ph.getLexState() == LexState.EXPR_FNAME) { return c; } if (ph.getLexState() == LexState.EXPR_DOT) { return c; } return parse_string(c, c, c); case '\'': return parse_qstring(c, 0); case '?': if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG) { ph.setLexState(LexState.EXPR_BEG); return '?'; } c = nextc(); if (c == -1) { /* FIX 1.6.5 */ ph.rb_compile_error("incomplete character syntax"); return 0; } if (IS_ARG() && ISSPACE(c)) { pushback(c); ph.setLexState(LexState.EXPR_BEG); return '?'; } if (c == '\\') { c = read_escape(); } c &= 0xff; yyVal = RubyFixnum.m_newFixnum(ruby, c); ph.setLexState(LexState.EXPR_END); return Token.tINTEGER; case '&': if ((c = nextc()) == '&') { ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tANDOP); return Token.tOP_ASGN; } pushback(c); return Token.tANDOP; } else if (c == '=') { yyVal = ph.newId('&'); ph.setLexState(LexState.EXPR_BEG); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen && !ISSPACE(c)) { ph.rb_warning("`&' interpeted as argument prefix"); c = Token.tAMPER; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tAMPER; } else { c = '&'; } ph.setLexState(LexState.EXPR_BEG); return c; case '|': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '|') { if ((c = nextc()) == '=') { yyVal = ph.newId(Token.tOROP); return Token.tOP_ASGN; } pushback(c); return Token.tOROP; } else if (c == '=') { yyVal = ph.newId('|'); return Token.tOP_ASGN; } pushback(c); return '|'; case '+': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUPLUS; } pushback(c); return '+'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('+'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '+'; return start_num(c); } return Token.tUPLUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '+'; case '-': c = nextc(); if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if (c == '@') { return Token.tUMINUS; } pushback(c); return '-'; } if (c == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('-'); return Token.tOP_ASGN; } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen && !ISSPACE(c))) { if (IS_ARG()) { arg_ambiguous(); } ph.setLexState(LexState.EXPR_BEG); pushback(c); if (Character.isDigit((char) c)) { c = '-'; return start_num(c); } return Token.tUMINUS; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '-'; case '.': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '.') { if ((c = nextc()) == '.') { return Token.tDOT3; } pushback(c); return Token.tDOT2; } pushback(c); if (!Character.isDigit((char) c)) { ph.setLexState(LexState.EXPR_DOT); return '.'; } c = '.'; // fall through //start_num: case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': return start_num(c); case ']': case '}': ph.setLexState(LexState.EXPR_END); return c; case ')': if (cond_nest > 0) { cond_stack >>= 1; } ph.setLexState(LexState.EXPR_END); return c; case ':': c = nextc(); if (c == ':') { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID || (IS_ARG() && space_seen)) { ph.setLexState(LexState.EXPR_BEG); return Token.tCOLON3; } ph.setLexState(LexState.EXPR_DOT); return Token.tCOLON2; } pushback(c); if (ph.getLexState() == LexState.EXPR_END || ph.getLexState() == LexState.EXPR_ENDARG || ISSPACE(c)) { ph.setLexState(LexState.EXPR_BEG); return ':'; } ph.setLexState(LexState.EXPR_FNAME); return Token.tSYMBEG; case '/': if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { return parse_regx('/', '/'); } if ((c = nextc()) == '=') { ph.setLexState(LexState.EXPR_BEG); yyVal = ph.newId('/'); return Token.tOP_ASGN; } pushback(c); if (IS_ARG() && space_seen) { if (!ISSPACE(c)) { arg_ambiguous(); return parse_regx('/', '/'); } } ph.setLexState(LexState.EXPR_BEG); return '/'; case '^': ph.setLexState(LexState.EXPR_BEG); if ((c = nextc()) == '=') { yyVal = ph.newId('^'); return Token.tOP_ASGN; } pushback(c); return '^'; case ',': case ';': // ph.setCommandStart(true); ph.setLexState(LexState.EXPR_BEG); return c; case '~': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) != '@') { pushback(c); } } ph.setLexState(LexState.EXPR_BEG); return '~'; case '(': if (cond_nest > 0) { cond_stack = (cond_stack << 1 ) | 0; } // ph.setCommandStart(true); if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLPAREN; } else if (space_seen) { if (ph.getLexState() == LexState.EXPR_CMDARG) { c = Token.tLPAREN_ARG; } else if (ph.getLexState() == LexState.EXPR_ARG) { ph.rb_warning(tok() + " (...) interpreted as method call"); c = Token.tLPAREN_ARG; } } ph.setLexState(LexState.EXPR_BEG); return c; case '[': if (ph.getLexState() == LexState.EXPR_FNAME || ph.getLexState() == LexState.EXPR_DOT) { if ((c = nextc()) == ']') { if ((c = nextc()) == '=') { return Token.tASET; } pushback(c); return Token.tAREF; } pushback(c); return '['; } else if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { c = Token.tLBRACK; } else if (IS_ARG() && space_seen) { c = Token.tLBRACK; } ph.setLexState(LexState.EXPR_BEG); return c; case '{': if (!IS_ARG()) { if (space_seen && ph.getLexState() == LexState.EXPR_ENDARG) { c = Token.tLBRACE_ARG; } if (ph.getLexState() != LexState.EXPR_END && ph.getLexState() != LexState.EXPR_ENDARG) { c = Token.tLBRACE; } } ph.setLexState(LexState.EXPR_BEG); return c; case '\\': c = nextc(); if (c == '\n') { space_seen = true; continue retry; // skip \\n } pushback(c); return '\\'; case '%': quotation : for (; ; ) { if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_MID) { int term; int paren; c = nextc(); if (!Character.isLetterOrDigit((char) c)) { term = c; c = 'Q'; } else { term = nextc(); } if (c == -1 || term == -1) { ph.rb_compile_error("unterminated quoted string meets end of file"); return 0; } paren = term; if (term == '(') { term = ')'; } else if (term == '[') { term = ']'; } else if (term == '{') { term = '}'; } else if (term == '<') { term = '>'; } else { paren = 0; } switch (c) { case 'Q': return parse_string('"', term, paren); case 'q': return parse_qstring(term, paren); case 'w': return parse_quotedwords(term, paren); case 'x': return parse_string('`', term, paren); case 'r': return parse_regx(term, paren); default: yyerror("unknown type of %string"); return 0; } } if ((c = nextc()) == '=') { yyVal = ph.newId('%'); return Token.tOP_ASGN; } if (IS_ARG() && space_seen && !ISSPACE(c)) { pushback(c); continue quotation; } break quotation; } ph.setLexState(LexState.EXPR_BEG); pushback(c); return '%'; case '$': ph.setLexState(LexState.EXPR_END); newtok(); c = nextc(); switch (c) { case '_': // $_: last read line string c = nextc(); if (is_identchar(c)) { tokadd('$'); tokadd('_'); break; } pushback(c); c = '_'; // fall through case '~': // $~: match-data ph.local_cnt(c); // fall through case '*': // $*: argv case '$': // $$: pid case '?': // $?: last status case '!': // $!: error string case '@': // $@: error position case '/': // $/: input record separator case '\\':// $\: output record separator case ';': // $;: field separator case ',': // $,: output field separator case '.': // $.: last read line number case '=': // $=: ignorecase case ':': // $:: load path case '<': // $<: reading filename case '>': // $>: default output handle case '\"':// $": already loaded files tokadd('$'); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); return Token.tGVAR; case '-': tokadd('$'); tokadd(c); c = nextc(); tokadd(c); tokfix(); yyVal = ruby.intern(tok()); /* * xxx shouldn't check if valid option variable */ return Token.tGVAR; case '&': // $&: last match case '`': // $`: string before last match case '\'':// $': string after last match case '+': // $+: string matches last paren. yyVal = nf.newBackRef(c); return Token.tBACK_REF; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': tokadd('$'); while (Character.isDigit((char) c)) { tokadd(c); c = nextc(); } if (is_identchar(c)) { break; } pushback(c); tokfix(); yyVal = nf.newNthRef(Integer.parseInt(tok().substring(1))); return Token.tNTH_REF; default: if (!is_identchar(c)) { pushback(c); return '$'; } case '0': tokadd('$'); } break; case '@': c = nextc(); newtok(); tokadd('@'); if (c == '@') { tokadd('@'); c = nextc(); } if (Character.isDigit((char) c)) { ph.rb_compile_error("`@" + c + "' is not a valid instance variable name"); } if (!is_identchar(c)) { pushback(c); return '@'; } break; default: if (!is_identchar(c) || Character.isDigit((char) c)) { ph.rb_compile_error("Invalid char `\\" + c + "' in expression"); continue retry; } newtok(); break; } break retry; } while (is_identchar(c)) { tokadd(c); /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * c = nextc(); * tokadd(c); * } * } */ c = nextc(); } if ((c == '!' || c == '?') && is_identchar(tok().charAt(0)) && !peek('=')) { tokadd(c); } else { pushback(c); } tokfix(); { int result = 0; switch (tok().charAt(0)) { case '$': ph.setLexState(LexState.EXPR_END); result = Token.tGVAR; break; case '@': ph.setLexState(LexState.EXPR_END); if (tok().charAt(1) == '@') { result = Token.tCVAR; } else { result = Token.tIVAR; } break; default: if (ph.getLexState() != LexState.EXPR_DOT) { // See if it is a reserved word. kw = rb_reserved_word(tok(), toklen()); if (kw != null) { // enum lex_state int state = ph.getLexState(); ph.setLexState(kw.state); if (state == LexState.EXPR_FNAME) { yyVal = ruby.intern(kw.name); } if (kw.id0 == Token.kDO) { if (COND_P()) { return Token.kDO_COND; } if (CMDARG_P() && state != LexState.EXPR_CMDARG) { return Token.kDO_BLOCK; } return Token.kDO; } if (state == LexState.EXPR_BEG) { return kw.id0; } else { if (kw.id0 != kw.id1) { ph.setLexState(LexState.EXPR_BEG); } return kw.id1; } } } if (toklast() == '!' || toklast() == '?') { result = Token.tFID; } else { if (ph.getLexState() == LexState.EXPR_FNAME) { if ((c = nextc()) == '=' && !peek('~') && !peek('>') && (!peek('=') || lex_p + 1 < lex_pend && lex_curline.charAt(lex_p + 1) == '>')) { result = Token.tIDENTIFIER; tokadd(c); } else { pushback(c); } } if (result == 0 && Character.isUpperCase(tok().charAt(0))) { result = Token.tCONSTANT; } else { result = Token.tIDENTIFIER; } } if (ph.getLexState() == LexState.EXPR_BEG || ph.getLexState() == LexState.EXPR_DOT || ph.getLexState() == LexState.EXPR_ARG || ph.getLexState() == LexState.EXPR_CMDARG) { if (cmd_state) { ph.setLexState(LexState.EXPR_CMDARG); } else { ph.setLexState(LexState.EXPR_ARG); } } else { ph.setLexState(LexState.EXPR_END); } } tokfix(); yyVal = /* last_id = */ ruby.intern(tok()); //XXX really overwrite last_id? return result; } }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/75e51682c6dfb1ff67ffb81cea2dfd23c3e3a9f4/DefaultRubyParser.java/clean/org/jruby/parser/DefaultRubyParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273, 1844, 18, 291, 2189, 1685, 5621, 3639, 1844, 18, 542, 2189, 1685, 12, 5743, 1769, 3639, 3300, 294, 3639, 364, 261, 31, 274, 262, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 4278, 368, 423, 1506, 7734, 648, 2337, 26565, 4278, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 4278, 368, 3602, 62, 7734, 648, 300, 21, 30, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 7734, 368, 9578, 7292, 7734, 648, 296, 4290, 7734, 648, 2337, 88, 4278, 7734, 648, 2337, 74, 4278, 7734, 648, 2337, 86, 4278, 7734, 648, 2337, 1611, 23, 4278, 368, 2337, 90, 11, 10792, 3476, 67, 15156, 273, 638, 31, 10792, 1324, 3300, 31, 7734, 648, 2946, 4278, 368, 518, 1807, 279, 2879, 10792, 1323, 14015, 71, 273, 1024, 71, 10756, 480, 2337, 82, 6134, 288, 13491, 309, 261, 71, 422, 300, 21, 13, 288, 18701, 327, 374, 31, 13491, 289, 10792, 289, 10792, 368, 4159, 3059, 7734, 648, 2337, 82, 4278, 10792, 1620, 261, 844, 18, 588, 14756, 1119, 10756, 288, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 5948, 43, 30, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 42, 1985, 30, 13491, 648, 15123, 1119, 18, 2294, 8025, 67, 17591, 30, 18701, 1324, 3300, 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, 377, 3238, 509, 677, 1362, 92, 1435, 288, 3639, 509, 276, 31, 3639, 1250, 3476, 67, 15156, 273, 629, 31, 3639, 1250, 1797, 67, 2019, 31, 3639, 5323, 2121, 5323, 31, 3639, 1797, 67, 2019, 273, 1844, 18, 291, 2189, 1685, 5621, 3639, 1844, 18, 542, 2189, 1685, 12, 5743, 1769, 3639, 3300, 294, 3639, 364, 261, 31, 274, 262, 288, 5411, 1620, 261, 71, 273, 1024, 71, 10756, 288, 7734, 648, 2337, 20, 4278, 368, 423, 1506, 7734, 648, 2337, 26565, 4278, 368, 3602, 40, 7734, 648, 2337, 20, 1578, 4278, 368, 3602, 62, 7734, 648, 300, 21, 30, 368, 409, 434, 2728, 18, 10792, 327, 374, 31, 7734, 368, 9578, 7292, 7734, 648, 296, 4290, 7734, 648, 2 ]
393, 401, 10, 41, 337, 91, 330, 10, 428, 342, 41, 59, 41, 337, 511, 44, 263, 264, 272, 516, 274, 275, 549, 311, 312, 522, 523, 358, 361, 290, 291, 431, 61, 93, 454, 428, 125, 554, 41, 454, 306, 44, 371, 10, 358, 340, 554, 313, 314, 574, 58, 59, 574, 453, 240, 44, 59, 358, 593, 358,
393, 401, 10, 319, 337, 91, 330, 10, 428, 342, 319, 59, 319, 337, 511, 41, 263, 264, 361, 516, 369, 370, 549, 311, 312, 522, 523, 358, 361, 339, 272, 431, 274, 275, 454, 428, 41, 554, 41, 454, 306, 44, 93, 10, 358, 340, 554, 313, 314, 574, 58, 59, 574, 453, 240, 125, 59, 358, 593, 358,
private static final short[] yyCheck1() { return new short[] { 15, 16, 215, 14, 19, 7, 247, 15, 16, 6, 378, 19, 15, 16, 21, 375, 19, 71, 6, 7, 392, 51, 27, 15, 16, 27, 342, 19, 43, 44, 10, 3, 398, 370, 49, 50, 10, 52, 53, 27, 44, 410, 50, 101, 21, 91, 292, 32, 47, 693, 296, 4, 5, 369, 10, 522, 523, 54, 50, 570, 571, 14, 10, 10, 106, 10, 54, 506, 507, 280, 41, 387, 11, 10, 11, 444, 666, 263, 693, 59, 695, 671, 10, 310, 58, 59, 402, 94, 44, 342, 61, 10, 342, 100, 10, 280, 10, 10, 51, 44, 361, 53, 2, 3, 4, 5, 113, 10, 8, 9, 10, 11, 59, 10, 14, 15, 16, 94, 310, 19, 15, 16, 32, 0, 19, 44, 26, 310, 93, 2, 58, 59, 71, 10, 10, 10, 310, 90, 454, 58, 59, 315, 44, 59, 371, 59, 10, 47, 48, 49, 361, 51, 10, 53, 49, 58, 59, 342, 10, 61, 125, 58, 59, 349, 218, 330, 41, 327, 269, 108, 271, 10, 337, 10, 47, 10, 361, 10, 125, 371, 308, 348, 59, 59, 10, 829, 369, 370, 371, 304, 90, 32, 44, 308, 91, 369, 370, 10, 358, 559, 58, 59, 10, 200, 41, 105, 41, 107, 545, 267, 377, 269, 200, 364, 829, 41, 231, 232, 233, 58, 59, 467, 590, 282, 59, 58, 59, 339, 565, 244, 41, 246, 247, 91, 107, 10, 244, 10, 246, 247, 10, 244, 681, 246, 247, 58, 59, 41, 339, 330, 61, 59, 244, 268, 246, 247, 337, 91, 91, 269, 41, 271, 41, 41, 263, 61, 41, 61, 41, 44, 737, 738, 783, 784, 61, 786, 256, 44, 91, 218, 61, 44, 61, 10, 330, 222, 223, 91, 269, 59, 271, 337, 262, 267, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 350, 264, 222, 223, 308, 310, 368, 342, 61, 301, 345, 346, 59, 348, 306, 59, 340, 352, 346, 267, 348, 91, 290, 291, 244, 856, 246, 247, 267, 244, 349, 246, 247, 341, 369, 279, 256, 339, 727, 725, 418, 419, 377, 263, 733, 302, 303, 304, 305, 377, 267, 91, 387, 388, 389, 390, 356, 279, 281, 394, 368, 439, 595, 256, 369, 370, 394, 402, 264, 630, 263, 406, 407, 345, 346, 410, 348, 350, 386, 414, 352, 301, 302, 303, 304, 305, 306, 307, 308, 267, 339, 414, 427, 401, 308, 407, 776, 432, 433, 434, 425, 340, 414, 425, 363, 340, 441, 799, 267, 444, 342, 799, 447, 330, 267, 772, 91, 425, 91, 454, 337, 44, 342, 431, 44, 345, 346, 342, 348, 349, 350, 269, 352, 271, 267, 330, 358, 361, 397, 398, 340, 341, 337, 343, 344, 453, 330, 280, 279, 369, 370, 371, 330, 337, 369, 319, 349, 319, 44, 337, 849, 319, 10, 383, 342, 279, 339, 387, 368, 826, 703, 391, 387, 393, 264, 553, 330, 330, 279, 269, 279, 340, 402, 337, 337, 385, 386, 402, 877, 516, 383, 526, 290, 291, 414, 290, 291, 330, 391, 835, 393, 401, 10, 41, 337, 91, 330, 10, 428, 342, 41, 59, 41, 337, 511, 44, 263, 264, 272, 516, 274, 275, 549, 311, 312, 522, 523, 358, 361, 290, 291, 431, 61, 93, 454, 428, 125, 554, 41, 454, 306, 44, 371, 10, 358, 340, 554, 313, 314, 574, 58, 59, 574, 453, 240, 44, 59, 358, 593, 358, 330, 794, 263, 264, 2, 3, 574, 337, 269, 308, 8, 9, 10, 11, 41, 371, 611, 15, 16, 310, 615, 19, 10, 542, 619, 311, 312, 544, 26, 346, 330, 16, 59, 269, 19, 630, 267, 337, 264, 41, 44, 41, 44, 10, 44, 268, 269, 566, 643, 47, 48, 49, 690, 41, 271, 53, 44, 41, 630, 61, 655, 61, 349, 350, 544, 545, 657, 662, 663, 263, 264, 59, 44, 668, 669, 41, 44, 125, 369, 370, 371, 319, 41, 678, 679, 565, 56, 57, 41, 91, 607, 91, 59, 32, 689, 330, 339, 330, 339, 579, 339, 93, 337, 741, 337, 339, 744, 105, 44, 107, 348, 41, 93, 10, 352, 353, 264, 712, 713, 714, 61, 44, 44, 91, 657, 720, 579, 607, 44, 44, 662, 663, 727, 279, 310, 304, 668, 732, 733, 304, 2, 3, 4, 5, 732, 340, 8, 263, 339, 732, 630, 339, 14, 633, 339, 630, 264, 264, 404, 93, 732, 269, 59, 271, 683, 10, 44, 627, 628, 702, 650, 44, 767, 310, 769, 91, 264, 657, 658, 349, 660, 661, 662, 663, 330, 47, 93, 44, 668, 51, 10, 337, 709, 369, 370, 371, 342, 650, 10, 267, 44, 796, 41, 798, 41, 658, 725, 660, 661, 804, 41, 93, 358, 808, 59, 2, 3, 812, 91, 125, 339, 8, 702, 264, 222, 223, 706, 14, 90, 709, 41, 264, 369, 370, 371, 767, 10, 339, 58, 59, 835, 721, 722, 723, 264, 107, 244, 59, 246, 247, 10, 264, 847, 706, 849, 41, 125, 358, 256, 244, 47, 246, 247, 264, 125, 263, 834, 264, 721, 722, 723, 91, 867, 41, 869, 847, 308, 279, 280, 279, 280, 44, 877, 44, 58, 59, 881, 767, 264, 264, 44, 771, 772, 41, 93, 262, 263, 264, 58, 59, 125, 264, 269, 301, 302, 303, 304, 305, 306, 307, 308, 279, 792, 264, 264, 44, 10, 91, 771, 125, 107, 2, 3, 4, 5, 6, 93, 8, 330, 271, 330, 91, 342, 14, 41, 337, 41, 337, 93, 792, 342, 93, 342, 125, 342, 44, 826, 345, 346, 41, 348, 349, 93, 125, 352, 835, 358, 837, 358, 361, 835, 361, 330, 279, 844, 59, 47, 41, 614, 337, 51, 369, 370, 371, 834, 264, 61, 5, 624, 293, 294, 295, 296, 297, 837, 383, 776, 10, 6, 387, 358, 844, 91, 391, 256, 393, 2, 3, 863, 10, 559, 263, 8, 657, 402, 78, 279, 304, 90, 90, 307, 308, 309, 836, 330, 247, 414, 0, 695, 264, 695, 337, 71, 268, 269, -1, 107, 304, -1, -1, 428, -1, -1, 330, -1, 58, 59, -1, -1, 301, 337, 47, 358, 310, 306, 342, -1, 267, 59, -1, 347, 348, 349, 350, -1, -1, 454, 330, 41, -1, 280, 9, 10, 11, 337, -1, -1, 310, 91, 256, 347, 348, 349, 350, -1, -1, 263, -1, 26, -1, 726, -1, 0, 729, 730, 358, 44, 349, 350, 49, -1, -1, 304, 267, -1, 307, 308, 309, -1, 0, 48, 107, 369, 370, 371, -1, 280, 267, 370, 10, 330, -1, -1, -1, 301, -1, -1, 337, 330, 306, -1, 383, 342, 41, -1, 337, 369, 370, 371, 391, 342, 393, -1, 91, -1, 347, 348, 349, 350, -1, 41, 361, 125, -1, -1, 304, 544, 545, 307, 308, 309, -1, 41, -1, -1, 44, 330, 105, 59, -1, -1, -1, 349, 337, 810, 811, 428, 565, 342, -1, 330, -1, 61, -1, -1, 256, -1, 337, -1, -1, 279, 579, 263, 370, -1, -1, -1, 361, 347, 348, 349, 350, -1, -1, -1, -1, 383, -1, -1, 845, 846, -1, 91, -1, 391, 851, 393, 125, -1, 607, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 301, -1, 868, -1, 125, 306, -1, -1, 10, -1, 876, 330, 630, 879, -1, 633, 330, 883, 337, 306, 307, 428, 309, 337, 267, -1, 313, 314, 342, -1, 256, -1, 650, 347, 348, 349, 350, 263, -1, 358, 658, -1, 660, 661, 662, 663, -1, -1, 349, 350, 668, -1, -1, -1, 222, 223, -1, 59, -1, 262, 263, 264, -1, 545, -1, 268, 269, -1, 271, 370, -1, -1, -1, 304, -1, 301, 307, 308, 309, 319, 306, -1, 383, 565, 231, 232, -1, 330, 706, -1, 391, 709, 393, -1, 337, 335, 336, 579, 44, 330, -1, 279, 280, 721, 722, 723, 337, -1, 348, -1, 350, 342, 352, 353, 354, 355, 347, 348, 349, 350, -1, -1, -1, 349, 262, 263, 264, 428, -1, -1, 268, 269, -1, 271, 302, 303, 304, 305, 545, 307, 308, 262, 263, 264, 370, 91, -1, 268, 269, 767, 271, -1, 330, 771, 772, -1, -1, 383, 565, 337, -1, -1, 342, -1, 342, 391, -1, 393, 650, 651, 279, 280, 579, -1, 792, 657, 658, 319, 660, 661, 358, -1, -1, 361, -1, 41, -1, -1, 44, 369, -1, 44, -1, 335, 336, -1, -1, 377, 378, 346, -1, 348, 428, 371, -1, 61, 348, 387, 826, -1, 352, 353, 354, 355, -1, -1, -1, 835, -1, 837, 702, 330, 402, -1, 706, -1, 844, -1, 337, -1, 377, -1, -1, 342, -1, 91, -1, -1, 91, 721, 722, 723, -1, 650, 545, -1, 414, 394, 319, 358, 657, 658, 361, 660, 661, -1, -1, -1, -1, 406, 407, -1, -1, 410, 565, -1, -1, 414, -1, -1, -1, -1, 41, 41, 454, 44, 44, 348, 579, -1, -1, 352, 353, 354, 355, -1, -1, -1, 41, 771, 772, 44, 61, 61, 441, 702, -1, 444, -1, 706, 447, -1, 304, -1, -1, 307, 308, 309, 61, 10, 792, -1, -1, -1, 721, 722, 723, -1, -1, 545, -1, 41, 91, 91, 44, 505, 506, 507, 330, -1, -1, 511, -1, 279, 280, 337, -1, -1, 91, 565, 342, 61, 522, 523, 826, 347, 348, 349, 350, 650, -1, -1, -1, 579, -1, 837, 657, 658, 59, 660, 661, -1, 844, -1, 771, 772, 546, -1, -1, -1, -1, 91, -1, -1, -1, -1, 544, -1, -1, 526, -1, -1, -1, -1, 330, 792, -1, 10, -1, -1, -1, 337, -1, -1, -1, -1, 342, -1, 578, -1, 580, 702, 582, -1, -1, 706, -1, -1, -1, -1, 590, -1, 358, -1, -1, 361, -1, -1, -1, 826, 721, 722, 723, 279, 650, -1, 279, 280, -1, -1, 837, -1, 658, -1, 660, 661, 59, 844, -1, 607, -1, -1, -1, -1, -1, -1, 593, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, 611, 633, -1, -1, 615, -1, 771, 772, 619, -1, 330, -1, -1, 330, -1, -1, 706, 337, -1, 630, 337, -1, 342, -1, 41, 342, 0, 792, -1, -1, -1, 721, 722, 723, -1, -1, 10, 681, 358, -1, -1, 358, 59, -1, 361, -1, 279, 279, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 826, 279, -1, -1, -1, -1, 41, 679, -1, 44, -1, 837, -1, -1, -1, -1, 709, 689, 844, -1, 771, 772, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, 737, 738, 279, -1, 330, 330, -1, -1, -1, 792, -1, 337, 337, -1, -1, 125, 720, -1, -1, -1, 330, -1, -1, 727, 91, -1, 93, 337, -1, 733, -1, 304, 358, 358, 307, 308, 309, -1, -1, -1, -1, -1, -1, 826, -1, -1, 304, -1, 358, 307, 308, 309, -1, 330, 837, -1, 0, -1, 125, -1, 337, 844, 799, -1, -1, 769, 10, -1, -1, 342, -1, -1, 330, -1, 347, 348, 349, 350, -1, 337, -1, 358, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, -1, 798, -1, -1, 41, 835, -1, 44, -1, -1, -1, 808, 319, -1, -1, 812, -1, -1, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 335, 336, 10, 304, -1, 863, 307, 308, 309, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, -1, 847, 358, 849, 360, 91, -1, 93, 330, -1, 262, 263, 264, -1, -1, 337, 268, 269, -1, 271, 342, 867, -1, 869, -1, 347, 348, 349, 350, -1, -1, 877, -1, -1, 63, 881, -1, -1, -1, 125, -1, 293, 294, 295, 296, 297, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, 63, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, 10, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, 59, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, -1, -1, 307, 308, 309, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 330, 58, 59, -1, 61, -1, 63, 337, -1, -1, -1, -1, 342, -1, -1, -1, -1, 347, 348, 349, 350, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, -1, 91, -1, 93, 335, 336, -1, -1, -1, -1, -1, 44, -1, -1, -1, -1, -1, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, 63, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, 58, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, 63, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, 348, 44, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, 58, 59, -1, 61, -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, 0, 335, 336, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 297, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, -1, -1, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, -1, 331, 332, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, 348, -1, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 58, 59, -1, 265, 266, 63, -1, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, 91, -1, 93, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 0, -1, 318, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, 347, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, 358, -1, 44, -1, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, 58, 59, -1, -1, -1, 63, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, 91, -1, 93, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, -1, 58, 59, 265, 266, -1, 63, -1, 270, -1, 272, 273, 274, 275, 276, 277, 278, -1, -1, -1, -1, 283, 284, 285, 286, 287, 288, 289, -1, -1, -1, -1, -1, -1, 91, -1, 93, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, -1, 0, 318, -1, -1, -1, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, -1, -1, -1, 335, -1, -1, 338, -1, -1, 341, -1, 343, 344, 345, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, 363, 364, 365, 366, 367, 368, 304, 305, -1, -1, 308, -1, 58, 59, -1, -1, -1, 63, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, 91, -1, 93, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, -1, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 0, 363, 364, 365, 366, 367, 368, -1, -1, -1, 10, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, -1, -1, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, 41, 324, 325, 44, -1, 328, -1, -1, -1, -1, 333, 334, 335, 336, -1, -1, -1, 58, 59, -1, 61, -1, 63, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, 304, 305, -1, -1, 308, -1, -1, 91, -1, 93, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, -1, -1, 328, -1, -1, -1, 0, 333, 334, 335, 336, -1, -1, -1, -1, -1, 10, -1, -1, 125, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, 362, -1, -1, -1, -1, -1, 304, 305, -1, -1, 308, 41, -1, -1, 44, -1, -1, -1, 316, 317, -1, 319, 320, 321, 322, -1, 324, 325, 58, 59, 328, -1, -1, 63, -1, 333, 334, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 347, 348, -1, 350, 351, 352, 353, 354, 355, 356, 357, 358, 91, 360, 93, 362, 319, 320, 321, 322, 323, 324, 325, 326, -1, 328, 329, -1, -1, -1, -1, -1, 335, 336, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 348, 125, 350, -1, 352, 353, 354, 355, 356, 357, 358, -1, 360, -1, -1, -1, -1, -1, -1, -1, -1, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, 312, 313, 314, -1, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, -1, -1, 335, 336, 337, 338, -1, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, -1, -1, 363, 364, 365, 366, 367, 368, 257, 258, 259, -1, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, -1, -1, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, -1, 293, 294, 295, 296, 297, -1, 299, -1, -1, 302, 303, 304, 305, 306, 307, 308, 309, -1, 311, }; }
47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/b1293eda8454686e846e2a9837b348e2983bb423/YyTables.java/buggy/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 4711, 16, 282, 2872, 16, 225, 576, 3600, 16, 282, 5045, 16, 282, 5342, 16, 565, 2371, 16, 225, 29460, 16, 282, 4711, 16, 282, 2872, 16, 565, 1666, 16, 6647, 890, 8285, 16, 282, 5342, 16, 282, 4711, 16, 282, 2872, 16, 282, 9035, 16, 225, 890, 5877, 16, 282, 5342, 16, 282, 26465, 16, 565, 1666, 16, 565, 2371, 16, 6647, 890, 9975, 16, 282, 21119, 16, 282, 12732, 16, 282, 4711, 16, 282, 2872, 16, 282, 12732, 16, 225, 890, 9452, 16, 282, 5342, 16, 282, 21193, 16, 282, 13291, 16, 5411, 1728, 16, 565, 890, 16, 225, 890, 10689, 16, 225, 890, 7301, 16, 282, 17160, 16, 282, 6437, 16, 282, 1728, 16, 282, 18106, 16, 282, 15935, 16, 282, 12732, 16, 5411, 13291, 16, 225, 1059, 2163, 16, 282, 6437, 16, 225, 13822, 16, 282, 9035, 16, 282, 26936, 16, 225, 576, 9975, 16, 282, 3847, 16, 282, 17495, 16, 225, 1666, 11180, 16, 6647, 576, 10525, 16, 565, 1059, 16, 565, 1381, 16, 225, 6580, 29, 16, 282, 1728, 16, 225, 1381, 3787, 16, 225, 1381, 4366, 16, 282, 22431, 16, 282, 6437, 16, 225, 1381, 7301, 16, 6647, 1381, 11212, 16, 282, 5045, 16, 282, 1728, 16, 282, 1728, 16, 225, 1728, 26, 16, 282, 1728, 16, 282, 22431, 16, 225, 6437, 26, 16, 225, 6437, 27, 16, 225, 576, 3672, 16, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1564, 21, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 6647, 4711, 16, 282, 2872, 16, 225, 576, 3600, 16, 282, 5045, 16, 282, 5342, 16, 565, 2371, 16, 225, 29460, 16, 282, 4711, 16, 282, 2872, 16, 565, 1666, 16, 6647, 890, 8285, 16, 282, 5342, 16, 282, 4711, 16, 282, 2872, 16, 282, 9035, 16, 225, 890, 5877, 16, 282, 5342, 16, 282, 26465, 16, 565, 1666, 16, 565, 2371, 16, 6647, 890, 9975, 16, 282, 21119, 16, 282, 12732, 16, 282, 4711, 16, 282, 2872, 16, 282, 12732, 16, 225, 890, 9452, 16, 282, 5342, 16, 282, 21193, 16, 282, 13291, 16, 5411, 1728, 16, 565, 890, 16, 225, 2 ]
MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2);
MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2);
public void testInterfaceReparented() { m_pollerConfig.setNodeOutageProcessingEnabled(true); MockNode node1 = m_network.getNode(1); MockNode node2 = m_network.getNode(2); MockInterface dotTwo = m_network.getInterface(1, "192.168.1.2"); MockInterface dotThree = m_network.getInterface(2, "192.168.1.3"); Event reparentEvent = MockUtil.createReparentEvent("Test", "192.168.1.2", 1, 2); // we are going to reparent to node 2 so when we bring down its only // current interface we expect an interface down not the whole node. anticipateDown(dotThree); startDaemons(); sleep(2000); // move the reparted interface and send a reparented event dotTwo.moveTo(node2); m_db.reparentInterface(dotTwo.getIpAddr(), node1.getNodeId(), node2.getNodeId()); // send the reparent event to the daemons m_eventMgr.sendEventToListeners(reparentEvent); // now bring down the other interface on the new node // System.err.println("Bring Down:"+node2Iface); dotThree.bringDown(); verifyAnticipated(2000); resetAnticipated(); anticipateDown(node2); // System.err.println("Bring Down:"+reparentedIface); dotTwo.bringDown(); //sleep(5000); verifyAnticipated(2000); }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/e3db1312e8cc2636034eb4d7b29db88850613e3b/PollerTest.java/clean/opennms-services/src/test/java/org/opennms/netmgt/poller/PollerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1358, 426, 2938, 329, 1435, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 3767, 1769, 3639, 7867, 907, 756, 21, 273, 312, 67, 5185, 18, 588, 907, 12, 21, 1769, 3639, 7867, 907, 756, 22, 273, 312, 67, 5185, 18, 588, 907, 12, 22, 1769, 3639, 7867, 1358, 3928, 11710, 273, 312, 67, 5185, 18, 588, 1358, 12, 21, 16, 315, 15561, 18, 23329, 18, 21, 18, 22, 8863, 3639, 7867, 1358, 3928, 28019, 273, 312, 67, 5185, 18, 588, 1358, 12, 22, 16, 315, 15561, 18, 23329, 18, 21, 18, 23, 8863, 7734, 2587, 2071, 817, 1133, 273, 7867, 1304, 18, 2640, 426, 2938, 1133, 2932, 4709, 3113, 315, 15561, 18, 23329, 18, 21, 18, 22, 3113, 404, 16, 576, 1769, 3639, 368, 732, 854, 8554, 358, 2071, 817, 358, 756, 576, 1427, 1347, 732, 5186, 310, 2588, 2097, 1338, 3639, 368, 783, 1560, 732, 4489, 392, 1560, 2588, 486, 326, 7339, 756, 18, 3639, 17841, 24629, 340, 4164, 12, 9811, 28019, 1769, 3639, 787, 12858, 87, 5621, 540, 202, 202, 19607, 12, 17172, 1769, 3639, 368, 3635, 326, 2071, 485, 329, 1560, 471, 1366, 279, 2071, 817, 329, 871, 3639, 3928, 11710, 18, 8501, 774, 12, 2159, 22, 1769, 3639, 312, 67, 1966, 18, 266, 2938, 1358, 12, 9811, 11710, 18, 588, 5273, 3178, 9334, 756, 21, 18, 588, 15883, 9334, 756, 22, 18, 588, 15883, 10663, 3639, 368, 1366, 326, 2071, 817, 871, 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, 1842, 1358, 426, 2938, 329, 1435, 288, 3639, 312, 67, 3915, 749, 809, 18, 542, 907, 1182, 410, 7798, 1526, 12, 3767, 1769, 3639, 7867, 907, 756, 21, 273, 312, 67, 5185, 18, 588, 907, 12, 21, 1769, 3639, 7867, 907, 756, 22, 273, 312, 67, 5185, 18, 588, 907, 12, 22, 1769, 3639, 7867, 1358, 3928, 11710, 273, 312, 67, 5185, 18, 588, 1358, 12, 21, 16, 315, 15561, 18, 23329, 18, 21, 18, 22, 8863, 3639, 7867, 1358, 3928, 28019, 273, 312, 67, 5185, 18, 588, 1358, 12, 22, 16, 315, 15561, 18, 23329, 18, 21, 18, 23, 8863, 7734, 2587, 2071, 817, 1133, 273, 7867, 1304, 18, 2640, 426, 2938, 1133, 2932, 4709, 2 ]
return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue());
return RubyBoolean.m_newBoolean( getRuby(), getLongValue() == ((RubyNumeric) other).getLongValue());
public RubyBoolean op_equal(RubyNumeric other) { if (other instanceof RubyFloat) { return RubyBoolean.m_newBoolean(getRuby(), getDoubleValue() == other.getDoubleValue()); } else { return RubyBoolean.m_newBoolean(getRuby(), getLongValue() == other.getLongValue()); } }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/962ce6ffe87d8c8388ef1c922b056aea9b6210db/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 1061, 67, 9729, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 327, 19817, 5507, 18, 81, 67, 2704, 5507, 12, 588, 54, 10340, 9334, 16097, 620, 1435, 422, 1308, 18, 588, 5265, 620, 10663, 3639, 289, 469, 288, 5411, 327, 19817, 5507, 18, 81, 67, 2704, 5507, 12, 4170, 10340, 9334, 11105, 620, 1435, 422, 14015, 54, 10340, 9902, 13, 1308, 2934, 588, 3708, 620, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 1061, 67, 9729, 12, 54, 10340, 9902, 1308, 13, 288, 3639, 309, 261, 3011, 1276, 19817, 4723, 13, 288, 5411, 327, 19817, 5507, 18, 81, 67, 2704, 5507, 12, 588, 54, 10340, 9334, 16097, 620, 1435, 422, 1308, 18, 588, 5265, 620, 10663, 3639, 289, 469, 288, 5411, 327, 19817, 5507, 18, 81, 67, 2704, 5507, 12, 4170, 10340, 9334, 11105, 620, 1435, 422, 14015, 54, 10340, 9902, 13, 1308, 2934, 588, 3708, 620, 10663, 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 ]
h.disableAll();
h.enable(Level.OFF);
void testDisable1() { CountingAppender caRoot = new CountingAppender(); Logger root = Category.getRoot(); root.addAppender(caRoot); Hierarchy h = Logger.getDefaultHierarchy(); h.disableDebug(); assertEquals(caRoot.counter, 0); root.debug(MSG); assertEquals(caRoot.counter, 0); root.info(MSG); assertEquals(caRoot.counter, 1); root.log(Level.WARN, MSG); assertEquals(caRoot.counter, 2); root.warn(MSG); assertEquals(caRoot.counter, 3); h.disableInfo(); root.debug(MSG); assertEquals(caRoot.counter, 3); root.info(MSG); assertEquals(caRoot.counter, 3); root.log(Level.WARN, MSG); assertEquals(caRoot.counter, 4); root.error(MSG); assertEquals(caRoot.counter, 5); root.log(Level.ERROR, MSG); assertEquals(caRoot.counter, 6); h.disableAll(); root.debug(MSG); assertEquals(caRoot.counter, 6); root.info(MSG); assertEquals(caRoot.counter, 6); root.log(Level.WARN, MSG); assertEquals(caRoot.counter, 6); root.error(MSG); assertEquals(caRoot.counter, 6); root.log(Level.FATAL, MSG); assertEquals(caRoot.counter, 6); root.log(Level.FATAL, MSG); assertEquals(caRoot.counter, 6); h.disable(Level.FATAL); root.debug(MSG); assertEquals(caRoot.counter, 6); root.info(MSG); assertEquals(caRoot.counter, 6); root.log(Level.WARN, MSG); assertEquals(caRoot.counter, 6); root.error(MSG); assertEquals(caRoot.counter, 6); root.log(Level.ERROR, MSG); assertEquals(caRoot.counter, 6); root.log(Level.FATAL, MSG); assertEquals(caRoot.counter, 6); }
45952 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45952/54b52ef2f2c1f375a477c955c0bfb6dc12a94765/UnitTestLogger.java/buggy/src/java/org/apache/log4j/test/UnitTestLogger.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 918, 1842, 11879, 21, 1435, 288, 565, 6974, 310, 17302, 3474, 2375, 273, 394, 6974, 310, 17302, 5621, 565, 4242, 1365, 273, 9856, 18, 588, 2375, 5621, 3639, 1365, 18, 1289, 17302, 12, 5353, 2375, 1769, 565, 670, 6000, 366, 273, 4242, 18, 588, 1868, 12074, 5621, 565, 366, 18, 8394, 2829, 5621, 565, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 374, 1769, 540, 1365, 18, 4148, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 374, 1769, 1377, 1365, 18, 1376, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 404, 1769, 1377, 1365, 18, 1330, 12, 2355, 18, 27999, 16, 13771, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 576, 1769, 1377, 1365, 18, 8935, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 890, 1769, 1377, 366, 18, 8394, 966, 5621, 565, 1365, 18, 4148, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 890, 1769, 1377, 1365, 18, 1376, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 890, 1769, 1377, 1365, 18, 1330, 12, 2355, 18, 27999, 16, 13771, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 1059, 1769, 1377, 1365, 18, 1636, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 1381, 1769, 1377, 1365, 18, 1330, 12, 2355, 18, 3589, 16, 13771, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 1666, 1769, 4202, 366, 18, 7589, 12, 2355, 18, 8797, 1769, 565, 1365, 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, 918, 1842, 11879, 21, 1435, 288, 565, 6974, 310, 17302, 3474, 2375, 273, 394, 6974, 310, 17302, 5621, 565, 4242, 1365, 273, 9856, 18, 588, 2375, 5621, 3639, 1365, 18, 1289, 17302, 12, 5353, 2375, 1769, 565, 670, 6000, 366, 273, 4242, 18, 588, 1868, 12074, 5621, 565, 366, 18, 8394, 2829, 5621, 565, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 374, 1769, 540, 1365, 18, 4148, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 374, 1769, 1377, 1365, 18, 1376, 12, 11210, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 404, 1769, 1377, 1365, 18, 1330, 12, 2355, 18, 27999, 16, 13771, 1769, 1815, 8867, 12, 5353, 2375, 18, 7476, 16, 576, 2 ]
handleMenuModified(e);
handleMenuModified();
private void addShortcutListeners() { menusCombo.addSelectionListener(new SelectionListener() { public void widgetDefaultSelected(SelectionEvent e) { // do nothing } public void widgetSelected(SelectionEvent e) { handleMenuSelected(e); } }); menusCombo.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { handleMenuModified(e); } }); menuCategoriesViewer .addSelectionChangedListener(new ISelectionChangedListener() { public void selectionChanged(SelectionChangedEvent event) { handleMenuCategorySelected(event); } }); menuCategoriesViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleMenuCategoryChecked(event); } }); menuItemsViewer.addCheckStateListener(new ICheckStateListener() { public void checkStateChanged(CheckStateChangedEvent event) { handleMenuItemChecked(event); } }); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/23cbb9b66f3df77f808e086e90482a516f0c469f/CustomizePerspectiveDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/CustomizePerspectiveDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 15576, 5583, 1435, 288, 3639, 21374, 16156, 18, 1289, 6233, 2223, 12, 2704, 12977, 2223, 1435, 288, 5411, 1071, 918, 3604, 1868, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 368, 741, 5083, 5411, 289, 5411, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1640, 4599, 7416, 12, 73, 1769, 5411, 289, 3639, 15549, 3639, 21374, 16156, 18, 1289, 11047, 2223, 12, 2704, 9518, 2223, 1435, 288, 5411, 1071, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 288, 7734, 1640, 4599, 4575, 5621, 5411, 289, 3639, 15549, 3639, 3824, 10487, 18415, 7734, 263, 1289, 6233, 5033, 2223, 12, 2704, 467, 6233, 5033, 2223, 1435, 288, 10792, 1071, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 13491, 1640, 4599, 4457, 7416, 12, 2575, 1769, 10792, 289, 7734, 15549, 3639, 3824, 10487, 18415, 18, 1289, 1564, 1119, 2223, 12, 2704, 467, 1564, 1119, 2223, 1435, 288, 5411, 1071, 918, 13632, 5033, 12, 1564, 1119, 27553, 871, 13, 288, 7734, 1640, 4599, 4457, 11454, 12, 2575, 1769, 5411, 289, 3639, 15549, 3639, 3824, 3126, 18415, 18, 1289, 1564, 1119, 2223, 12, 2704, 467, 1564, 1119, 2223, 1435, 288, 5411, 1071, 918, 13632, 5033, 12, 1564, 1119, 27553, 871, 13, 288, 7734, 1640, 12958, 11454, 12, 2575, 1769, 5411, 289, 3639, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 527, 15576, 5583, 1435, 288, 3639, 21374, 16156, 18, 1289, 6233, 2223, 12, 2704, 12977, 2223, 1435, 288, 5411, 1071, 918, 3604, 1868, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 368, 741, 5083, 5411, 289, 5411, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 1640, 4599, 7416, 12, 73, 1769, 5411, 289, 3639, 15549, 3639, 21374, 16156, 18, 1289, 11047, 2223, 12, 2704, 9518, 2223, 1435, 288, 5411, 1071, 918, 5612, 1528, 12, 11047, 1133, 425, 13, 288, 7734, 1640, 4599, 4575, 5621, 5411, 289, 3639, 15549, 3639, 3824, 10487, 18415, 7734, 263, 1289, 6233, 5033, 2223, 12, 2704, 467, 6233, 5033, 2223, 1435, 288, 10792, 1071, 918, 4421, 5033, 12, 6233, 2 ]
if (serviceContext == null) { serviceContext = new ServiceContext(messageContext.getServiceDescription(), serviceGroupContext); serviceGroupContext.registerServiceContext(serviceContext); }
public ServiceGroupContext fillServiceContextAndServiceGroupContext(MessageContext messageContext) throws AxisFault { String serviceGroupContextId = messageContext.getServiceGroupContextId(); ServiceGroupContext serviceGroupContext = null; ServiceContext serviceContext = null; if (!isNull(serviceGroupContextId) && serviceGroupContextMap.get(serviceGroupContextId) != null) { // SGC is already there serviceGroupContext = (ServiceGroupContext) serviceGroupContextMap.get(serviceGroupContextId); // check service context is there or not serviceContext = serviceGroupContext.getServiceContext(messageContext.getServiceDescription().getName(). getLocalPart()); if (serviceContext == null) { serviceContext = new ServiceContext(messageContext.getServiceDescription(), serviceGroupContext); serviceGroupContext.registerServiceContext(serviceContext); } } else { // either the key is null or no SGC is found from the give key if (isNull(serviceGroupContextId)) { serviceGroupContextId = UUIDGenerator.getUUID(); messageContext.setServiceGroupContextId(serviceGroupContextId); } serviceGroupContext = new ServiceGroupContext(this); this.registerServiceGroupContext(serviceGroupContext); serviceContext = new ServiceContext(messageContext.getServiceDescription(), serviceGroupContext); serviceGroupContext.registerServiceContext(serviceContext); } // when you come here operation context MUST already been assigned to the message context messageContext.getOperationContext().setParent(serviceContext); messageContext.setServiceContext(serviceContext); messageContext.setServiceGroupContext(serviceGroupContext); return serviceGroupContext; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/f7e4970b93b85f829dd6abff3c1a80a00ee1ce67/ConfigurationContext.java/buggy/modules/core/src/org/apache/axis2/context/ConfigurationContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1956, 1114, 1042, 3636, 1179, 1042, 1876, 1179, 1114, 1042, 12, 1079, 1042, 883, 1042, 13, 1216, 15509, 7083, 288, 3639, 514, 1156, 1114, 1042, 548, 273, 883, 1042, 18, 588, 1179, 1114, 1042, 548, 5621, 3639, 1956, 1114, 1042, 1156, 1114, 1042, 273, 446, 31, 3639, 1956, 1042, 1156, 1042, 273, 446, 31, 3639, 309, 16051, 291, 2041, 12, 3278, 1114, 1042, 548, 13, 597, 1156, 1114, 1042, 863, 18, 588, 12, 3278, 1114, 1042, 548, 13, 480, 446, 13, 288, 5411, 368, 348, 15396, 353, 1818, 1915, 5411, 1156, 1114, 1042, 273, 261, 1179, 1114, 1042, 13, 1156, 1114, 1042, 863, 18, 588, 12, 3278, 1114, 1042, 548, 1769, 5411, 368, 866, 1156, 819, 353, 1915, 578, 486, 5411, 1156, 1042, 273, 1156, 1114, 1042, 18, 588, 1179, 1042, 12, 2150, 1042, 18, 588, 1179, 3291, 7675, 17994, 7675, 10792, 6993, 1988, 10663, 5411, 309, 261, 3278, 1042, 422, 446, 13, 288, 7734, 1156, 1042, 273, 394, 1956, 1042, 12, 2150, 1042, 18, 588, 1179, 3291, 9334, 1156, 1114, 1042, 1769, 7734, 1156, 1114, 1042, 18, 4861, 1179, 1042, 12, 3278, 1042, 1769, 5411, 289, 3639, 289, 469, 288, 5411, 368, 3344, 326, 498, 353, 446, 578, 1158, 348, 15396, 353, 1392, 628, 326, 8492, 498, 5411, 309, 261, 291, 2041, 12, 3278, 1114, 1042, 548, 3719, 288, 7734, 1156, 1114, 1042, 548, 273, 5866, 3908, 18, 588, 5562, 5621, 7734, 883, 1042, 18, 542, 1179, 1114, 1042, 548, 12, 3278, 1114, 1042, 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, 1956, 1114, 1042, 3636, 1179, 1042, 1876, 1179, 1114, 1042, 12, 1079, 1042, 883, 1042, 13, 1216, 15509, 7083, 288, 3639, 514, 1156, 1114, 1042, 548, 273, 883, 1042, 18, 588, 1179, 1114, 1042, 548, 5621, 3639, 1956, 1114, 1042, 1156, 1114, 1042, 273, 446, 31, 3639, 1956, 1042, 1156, 1042, 273, 446, 31, 3639, 309, 16051, 291, 2041, 12, 3278, 1114, 1042, 548, 13, 597, 1156, 1114, 1042, 863, 18, 588, 12, 3278, 1114, 1042, 548, 13, 480, 446, 13, 288, 5411, 368, 348, 15396, 353, 1818, 1915, 5411, 1156, 1114, 1042, 273, 261, 1179, 1114, 1042, 13, 1156, 1114, 1042, 863, 18, 588, 12, 3278, 1114, 1042, 548, 1769, 5411, 368, 866, 1156, 819, 353, 2 ]
int tt = nextToken(0);
int tt = nextToken();
private Node nameOrQualifiedName(String name, boolean primaryContext) throws IOException, ParserException { colonColonCheck: if (matchToken(Token.COLONCOLON, 0)) { decompiler.addToken(Token.COLONCOLON); Node pn; int tt = nextToken(0); switch (tt) { // handles name::name case Token.NAME: { String s = ts.getString(); decompiler.addName(s); pn = nf.createQualifiedName(name, s); break; } // handles name::* case Token.MUL: decompiler.addName("*"); pn = nf.createQualifiedName(name, "*"); break; // handles name::[expr] case Token.LB: decompiler.addToken(Token.LB); pn = nf.createQualifiedExpr(name, expr(false)); mustMatchToken(Token.RB, "msg.no.bracket.index"); decompiler.addToken(Token.RB); break; default: reportError("msg.no.name.after.coloncolon"); break colonColonCheck; } if (primaryContext) { pn = nf.createXMLPrimary(pn); } return pn; } return nf.createName(name); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/eea0a0a79d27ae62fc3c9a3f98c2f0a02adaf2c4/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 26840, 12345, 12, 780, 508, 16, 1250, 3354, 1042, 13, 3639, 1216, 1860, 16, 27990, 565, 288, 1377, 13336, 19636, 1564, 30, 3639, 309, 261, 1916, 1345, 12, 1345, 18, 4935, 673, 4935, 673, 16, 374, 3719, 288, 5411, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 4935, 673, 4935, 673, 1769, 5411, 2029, 11059, 31, 5411, 509, 3574, 273, 9617, 5621, 5411, 1620, 261, 748, 13, 288, 2868, 368, 7372, 508, 2866, 529, 2868, 648, 3155, 18, 1985, 30, 288, 7734, 514, 272, 273, 3742, 18, 588, 780, 5621, 7734, 443, 9576, 18, 1289, 461, 12, 87, 1769, 7734, 11059, 273, 13958, 18, 2640, 12345, 12, 529, 16, 272, 1769, 7734, 898, 31, 2868, 289, 2868, 368, 7372, 508, 2866, 14, 2868, 648, 3155, 18, 49, 1506, 30, 7734, 443, 9576, 18, 1289, 461, 2932, 7388, 1769, 7734, 11059, 273, 13958, 18, 2640, 12345, 12, 529, 16, 10971, 1769, 7734, 898, 31, 2868, 368, 7372, 508, 2866, 63, 8638, 65, 2868, 648, 3155, 18, 12995, 30, 7734, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 12995, 1769, 7734, 11059, 273, 13958, 18, 2640, 8708, 4742, 12, 529, 16, 3065, 12, 5743, 10019, 7734, 1297, 2060, 1345, 12, 1345, 18, 19437, 16, 315, 3576, 18, 2135, 18, 21025, 18, 1615, 8863, 7734, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 19437, 1769, 7734, 898, 31, 2868, 805, 30, 7734, 17887, 2932, 3576, 18, 2135, 18, 529, 18, 5205, 18, 22667, 22667, 8863, 7734, 898, 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, 2029, 26840, 12345, 12, 780, 508, 16, 1250, 3354, 1042, 13, 3639, 1216, 1860, 16, 27990, 565, 288, 1377, 13336, 19636, 1564, 30, 3639, 309, 261, 1916, 1345, 12, 1345, 18, 4935, 673, 4935, 673, 16, 374, 3719, 288, 5411, 443, 9576, 18, 1289, 1345, 12, 1345, 18, 4935, 673, 4935, 673, 1769, 5411, 2029, 11059, 31, 5411, 509, 3574, 273, 9617, 5621, 5411, 1620, 261, 748, 13, 288, 2868, 368, 7372, 508, 2866, 529, 2868, 648, 3155, 18, 1985, 30, 288, 7734, 514, 272, 273, 3742, 18, 588, 780, 5621, 7734, 443, 9576, 18, 1289, 461, 12, 87, 1769, 7734, 11059, 273, 13958, 18, 2640, 12345, 12, 529, 16, 272, 1769, 7734, 898, 31, 2868, 289, 2 ]
} finally
} finally
protected void finalize( ) throws Throwable { try { __finalize( ); } finally { super.finalize( ); } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/5c8dd96b2b7249db362e597132210258101979a5/BaseAttributeBean.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/BaseAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 12409, 12, 262, 1216, 4206, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 972, 30343, 12, 11272, 202, 202, 97, 3095, 202, 202, 95, 1082, 202, 9565, 18, 30343, 12, 11272, 202, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 12409, 12, 262, 1216, 4206, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 972, 30343, 12, 11272, 202, 202, 97, 3095, 202, 202, 95, 1082, 202, 9565, 18, 30343, 12, 11272, 202, 202, 97, 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 ]
if ( input != null && input.size( ) > 0 )
if ( input != null && ( (List) input ).size( ) > 0 )
public void widgetSelected( SelectionEvent e ) { ClassFinder finder = new ClassFinder( ); String className = null; if ( input != null && input.size( ) > 0 ) {// if ( input.get( 0 ) instanceof ExtendedItemHandle// {// className = (String) ( EventHandlerWrapper.get( AttributeConstant.EVENT_HANDLER_CLASS_PROPERTY_KEY ) );// }// else if ( input.get( 0 ) instanceof DesignElementHandle ) { className = EventHandlerWrapper.getEventHandlerClassName( (DesignElementHandle) input.get( 0 ) ); } } if ( className != null ) { finder.setParentClassName( className ); GroupPropertyHandle handle = DEUtil.getMultiSelectionHandle( input ) .getPropertyHandle( ReportDesignHandle.EVENT_HANDLER_CLASS_PROP ); try { String finderClassName = finder.getFinderClassName( ); if(finderClassName != null && finderClassName.trim( ).length( ) > 0) { handle.setStringValue( finderClassName.trim( ) ); } } catch ( SemanticException e1 ) { ExceptionHandler.handle( e1 ); } } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e813e4939207f9a25da25a7791da1a881207e029/HandlerPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.ide/src/org/eclipse/birt/report/designer/internal/ui/ide/propertyeditor/HandlerPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 797, 8441, 7532, 273, 394, 1659, 8441, 12, 11272, 9506, 202, 780, 2658, 273, 446, 31, 9506, 202, 430, 261, 810, 480, 446, 597, 810, 18, 1467, 12, 262, 405, 374, 262, 9506, 202, 95, 759, 6862, 202, 430, 261, 810, 18, 588, 12, 374, 262, 1276, 14094, 1180, 3259, 759, 6862, 202, 95, 759, 25083, 202, 12434, 273, 261, 780, 13, 261, 26012, 3611, 18, 588, 12, 3601, 6902, 18, 10454, 67, 19937, 67, 5237, 67, 9900, 67, 3297, 262, 11272, 759, 6862, 202, 97, 759, 6862, 202, 12107, 9944, 202, 430, 261, 810, 18, 588, 12, 374, 262, 1276, 29703, 1046, 3259, 262, 6862, 202, 95, 25083, 202, 12434, 273, 26012, 3611, 18, 588, 16402, 3834, 12, 261, 15478, 1046, 3259, 13, 810, 18, 588, 12, 374, 262, 11272, 6862, 202, 97, 9506, 202, 97, 9506, 202, 430, 261, 2658, 480, 446, 262, 9506, 202, 95, 6862, 202, 15356, 18, 542, 3054, 3834, 12, 2658, 11272, 6862, 202, 1114, 1396, 3259, 1640, 273, 2030, 1304, 18, 588, 5002, 6233, 3259, 12, 810, 262, 6862, 1082, 202, 18, 588, 1396, 3259, 12, 8706, 15478, 3259, 18, 10454, 67, 19937, 67, 5237, 67, 15811, 11272, 6862, 202, 698, 6862, 202, 95, 25083, 202, 780, 7532, 3834, 273, 7532, 18, 588, 8441, 3834, 12, 11272, 25083, 202, 430, 12, 15356, 3834, 480, 446, 597, 7532, 3834, 18, 5290, 12, 262, 18, 2469, 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, 1875, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 1082, 202, 95, 9506, 202, 797, 8441, 7532, 273, 394, 1659, 8441, 12, 11272, 9506, 202, 780, 2658, 273, 446, 31, 9506, 202, 430, 261, 810, 480, 446, 597, 810, 18, 1467, 12, 262, 405, 374, 262, 9506, 202, 95, 759, 6862, 202, 430, 261, 810, 18, 588, 12, 374, 262, 1276, 14094, 1180, 3259, 759, 6862, 202, 95, 759, 25083, 202, 12434, 273, 261, 780, 13, 261, 26012, 3611, 18, 588, 12, 3601, 6902, 18, 10454, 67, 19937, 67, 5237, 67, 9900, 67, 3297, 262, 11272, 759, 6862, 202, 97, 759, 6862, 202, 12107, 9944, 202, 430, 261, 810, 18, 588, 12, 374, 262, 1276, 29703, 1046, 2 ]
public void setNodeAddress(String nodeAddress) {
public void setNodeAddress(final String nodeAddress) {
public void setNodeAddress(String nodeAddress) { this.nodeAddress = nodeAddress; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/FCPConnection.java/buggy/src/thaw/fcp/FCPConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 26250, 1887, 12, 780, 756, 1887, 13, 288, 202, 202, 2211, 18, 2159, 1887, 273, 756, 1887, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 26250, 1887, 12, 780, 756, 1887, 13, 288, 202, 202, 2211, 18, 2159, 1887, 273, 756, 1887, 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, -100 ]
log.error("src is of type " + obj.getClass().getName());
System.err.println("src is of type " + obj.getClass().getName());
public void run() { String comp_name; while(true) { try { AWTEvent evt=event_queue.getNextEvent(); Object obj=evt.getSource(); if(obj == null) { log.error("src is NULL"); continue; } if(obj instanceof Component) comp_name=((Component)obj).getName(); else if(obj instanceof MenuComponent) comp_name=((MenuComponent)obj).getName(); else { log.error("src is of type " + obj.getClass().getName()); continue; } if(evt instanceof FocusEvent || evt instanceof PaintEvent) { System.out.println(evt.getClass().getName() + " not copied"); processLocally(evt); continue; } System.out.println("MCasting "+evt.getClass().getName()+" event..."); MethodCall call = new MethodCall("processEvent", new Object[] {comp_name, evt}, new String[] {String.class.getName(), AWTEvent.class.getName()}); dispatcher.callRemoteMethods(null, call, GroupRequest.GET_NONE, 0); } catch(Exception e) { log.error(e); } } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/13de68466e3cf7fde6ee0bde0cee09a33e837e89/DrawRepl.java/buggy/src/org/jgroups/demos/DrawRepl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 202, 780, 1161, 67, 529, 31, 202, 202, 17523, 12, 3767, 13, 288, 202, 565, 775, 288, 202, 202, 37, 8588, 1133, 6324, 33, 2575, 67, 4000, 18, 588, 2134, 1133, 5621, 202, 202, 921, 1081, 33, 73, 11734, 18, 588, 1830, 5621, 202, 202, 430, 12, 2603, 422, 446, 13, 288, 1082, 565, 613, 18, 1636, 2932, 4816, 353, 3206, 8863, 1082, 565, 1324, 31, 202, 202, 97, 9506, 202, 430, 12, 2603, 1276, 5435, 13, 1082, 565, 1161, 67, 529, 33, 12443, 1841, 13, 2603, 2934, 17994, 5621, 202, 202, 12107, 309, 12, 2603, 1276, 9809, 1841, 13, 1082, 565, 1161, 67, 529, 33, 12443, 4599, 1841, 13, 2603, 2934, 17994, 5621, 202, 202, 12107, 288, 1082, 565, 613, 18, 1636, 2932, 4816, 353, 434, 618, 315, 397, 1081, 18, 588, 797, 7675, 17994, 10663, 1082, 565, 1324, 31, 202, 202, 97, 202, 202, 430, 12, 73, 11734, 1276, 478, 4560, 1133, 747, 6324, 1276, 30001, 1133, 13, 288, 1082, 565, 2332, 18, 659, 18, 8222, 12, 73, 11734, 18, 588, 797, 7675, 17994, 1435, 397, 315, 486, 9268, 8863, 1082, 565, 1207, 1333, 1230, 12, 73, 11734, 1769, 1082, 565, 1324, 31, 202, 202, 97, 202, 202, 3163, 18, 659, 18, 8222, 2932, 49, 9735, 310, 13773, 73, 11734, 18, 588, 797, 7675, 17994, 1435, 9078, 871, 7070, 1769, 202, 202, 12592, 745, 273, 394, 2985, 1477, 2932, 2567, 1133, 3113, 394, 1033, 8526, 288, 2919, 67, 529, 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, 1086, 1435, 288, 202, 780, 1161, 67, 529, 31, 202, 202, 17523, 12, 3767, 13, 288, 202, 565, 775, 288, 202, 202, 37, 8588, 1133, 6324, 33, 2575, 67, 4000, 18, 588, 2134, 1133, 5621, 202, 202, 921, 1081, 33, 73, 11734, 18, 588, 1830, 5621, 202, 202, 430, 12, 2603, 422, 446, 13, 288, 1082, 565, 613, 18, 1636, 2932, 4816, 353, 3206, 8863, 1082, 565, 1324, 31, 202, 202, 97, 9506, 202, 430, 12, 2603, 1276, 5435, 13, 1082, 565, 1161, 67, 529, 33, 12443, 1841, 13, 2603, 2934, 17994, 5621, 202, 202, 12107, 309, 12, 2603, 1276, 9809, 1841, 13, 1082, 565, 1161, 67, 529, 33, 12443, 4599, 1841, 13, 2603, 2934, 17994, 2 ]
public SequenceDBSearchSubHit(double score, double eValue, double pValue, Alignment alignment)
public SequenceDBSearchSubHit(final double score, final double eValue, final double pValue, final Alignment alignment)
public SequenceDBSearchSubHit(double score, double eValue, double pValue, Alignment alignment) { this.score = score; this.pValue = eValue; this.eValue = pValue; this.alignment = alignment; // Lock alignment by vetoing all changes this.alignment.addChangeListener(ChangeListener.ALWAYS_VETO); }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/73e6b2241c67db5615541c709f8d8c0c7536323a/SequenceDBSearchSubHit.java/buggy/src/org/biojava/bio/search/SequenceDBSearchSubHit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8370, 2290, 2979, 1676, 13616, 12, 9056, 565, 4462, 16, 6862, 225, 1645, 565, 425, 620, 16, 6862, 225, 1645, 565, 18326, 16, 6862, 225, 17804, 8710, 13, 565, 288, 202, 2211, 18, 6355, 377, 273, 4462, 31, 202, 2211, 18, 84, 620, 565, 273, 425, 620, 31, 202, 2211, 18, 73, 620, 565, 273, 18326, 31, 202, 2211, 18, 14409, 273, 8710, 31, 202, 759, 3488, 8710, 635, 331, 11453, 310, 777, 3478, 202, 2211, 18, 14409, 18, 1289, 15744, 12, 15744, 18, 1013, 29295, 67, 58, 1584, 51, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8370, 2290, 2979, 1676, 13616, 12, 9056, 565, 4462, 16, 6862, 225, 1645, 565, 425, 620, 16, 6862, 225, 1645, 565, 18326, 16, 6862, 225, 17804, 8710, 13, 565, 288, 202, 2211, 18, 6355, 377, 273, 4462, 31, 202, 2211, 18, 84, 620, 565, 273, 425, 620, 31, 202, 2211, 18, 73, 620, 565, 273, 18326, 31, 202, 2211, 18, 14409, 273, 8710, 31, 202, 759, 3488, 8710, 635, 331, 11453, 310, 777, 3478, 202, 2211, 18, 14409, 18, 1289, 15744, 12, 15744, 18, 1013, 29295, 67, 58, 1584, 51, 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 ]
asm.emitCALL_RegDisp(S0, idx << 2);
asm.emitCALL_RegDisp(S0, Offset.fromIntZeroExtend(idx << 2));
protected final void emit_invokeinterface(VM_MethodReference methodRef) { int count = methodRef.getParameterWords() + 1; // +1 for "this" parameter VM_Method resolvedMethod = null; resolvedMethod = methodRef.peekInterfaceMethod(); // (1) Emit dynamic type checking sequence if required to do so inline. if (VM.BuildForIMTInterfaceInvocation || (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables)) { if (resolvedMethod == null) { // Can't successfully resolve it at compile time. // Call uncommon case typechecking routine to do the right thing when this code actually executes. asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object asm.emitPUSH_Imm(methodRef.getId()); // dict id of target VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T1); asm.emitPUSH_Reg(S0); genParameterRegisterLoad(2); // pass 2 parameter word asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.unresolvedInvokeinterfaceImplementsTestMethod.getOffsetAsInt());// check that "this" class implements the interface } else { asm.emitMOV_Reg_RegDisp (T0, JTOC, resolvedMethod.getDeclaringClass().getTibOffset().toInt()); // tib of the interface method asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object asm.emitPUSH_RegDisp(T0, TIB_TYPE_INDEX << 2); // type of the interface method VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T1); asm.emitPUSH_Reg(S0); genParameterRegisterLoad(2); // pass 2 parameter word asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.invokeinterfaceImplementsTestMethod.getOffsetAsInt());// check that "this" class implements the interface } } // (2) Emit interface invocation sequence. if (VM.BuildForIMTInterfaceInvocation) { VM_InterfaceMethodSignature sig = VM_InterfaceMethodSignature.findOrCreate(methodRef); int offset = sig.getIMTOffset().toInt(); // squirrel away signature ID VM_ProcessorLocalState.emitMoveImmToField(asm, VM_Entrypoints.hiddenSignatureIdField.getOffsetAsInt(), sig.getId()); asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T1); if (VM.BuildForIndirectIMT) { // Load the IMT Base into S0 asm.emitMOV_Reg_RegDisp(S0, S0, TIB_IMT_TIB_INDEX << 2); } genParameterRegisterLoad(methodRef, true); asm.emitCALL_RegDisp(S0, offset); // the interface call } else if (VM.BuildForITableInterfaceInvocation && VM.DirectlyIndexedITables && resolvedMethod != null) { VM_Class I = resolvedMethod.getDeclaringClass(); asm.emitMOV_Reg_RegDisp (T1, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T1); asm.emitMOV_Reg_RegDisp (S0, S0, TIB_ITABLES_TIB_INDEX << 2); // iTables asm.emitMOV_Reg_RegDisp (S0, S0, I.getInterfaceId() << 2); // iTable genParameterRegisterLoad(methodRef, true); int idx = VM_InterfaceInvocation.getITableIndex(I, methodRef.getName(), methodRef.getDescriptor()); asm.emitCALL_RegDisp(S0, idx << 2); // the interface call } else { int itableIndex = -1; if (VM.BuildForITableInterfaceInvocation && resolvedMethod != null) { // get the index of the method in the Itable itableIndex = VM_InterfaceInvocation.getITableIndex(resolvedMethod.getDeclaringClass(), methodRef.getName(), methodRef.getDescriptor()); } if (itableIndex == -1) { // itable index is not known at compile-time. // call "invokeInterface" to resolve object + method id into // method address int methodRefId = methodRef.getId(); asm.emitPUSH_RegDisp(SP, (count-1)<<LG_WORDSIZE); // "this" parameter is obj asm.emitPUSH_Imm(methodRefId); // id of method to call genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, VM_Entrypoints.invokeInterfaceMethod.getOffsetAsInt()); // invokeinterface(obj, id) returns address to call asm.emitMOV_Reg_Reg (S0, T0); // S0 has address of method genParameterRegisterLoad(methodRef, true); asm.emitCALL_Reg(S0); // the interface method (its parameters are on stack) } else { // itable index is known at compile-time. // call "findITable" to resolve object + interface id into // itable address asm.emitMOV_Reg_RegDisp (T0, SP, (count-1) << 2); // "this" object VM_ObjectModel.baselineEmitLoadTIB(asm, S0, T0); asm.emitPUSH_Reg(S0); asm.emitPUSH_Imm (resolvedMethod.getDeclaringClass().getInterfaceId()); // interface id genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp (JTOC, VM_Entrypoints.findItableMethod.getOffsetAsInt()); // findItableOffset(tib, id) returns iTable asm.emitMOV_Reg_Reg (S0, T0); // S0 has iTable genParameterRegisterLoad(methodRef, true); asm.emitCALL_RegDisp (S0, itableIndex << 2); // the interface call } } genResultRegisterUnload(methodRef); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/607ce8428a60a1e2ea6aeee16fe403ddf08d4b83/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 14407, 5831, 12, 7397, 67, 1305, 2404, 707, 1957, 13, 288, 565, 509, 1056, 273, 707, 1957, 18, 588, 1662, 7363, 1435, 397, 404, 31, 368, 397, 21, 364, 315, 2211, 6, 1569, 565, 8251, 67, 1305, 4640, 1305, 273, 446, 31, 565, 4640, 1305, 273, 707, 1957, 18, 347, 3839, 1358, 1305, 5621, 565, 368, 261, 21, 13, 16008, 5976, 618, 6728, 3102, 309, 1931, 358, 741, 1427, 6370, 18, 565, 309, 261, 7397, 18, 3116, 1290, 3445, 56, 1358, 9267, 747, 540, 261, 7397, 18, 3116, 1290, 1285, 28628, 9267, 597, 8251, 18, 5368, 715, 15034, 1285, 1538, 3719, 288, 1377, 309, 261, 11792, 1305, 422, 446, 13, 288, 3639, 368, 4480, 1404, 4985, 2245, 518, 622, 4074, 813, 18, 3639, 368, 3049, 12704, 2586, 648, 618, 24609, 12245, 358, 741, 326, 2145, 7757, 1347, 333, 981, 6013, 11997, 18, 3639, 20415, 18, 18356, 5980, 58, 67, 1617, 67, 1617, 1669, 84, 261, 56, 21, 16, 11405, 16, 261, 1883, 17, 21, 13, 2296, 576, 1769, 15604, 368, 315, 2211, 6, 733, 3639, 20415, 18, 18356, 30348, 67, 1170, 81, 12, 2039, 1957, 18, 26321, 10663, 4766, 565, 368, 2065, 612, 434, 1018, 3639, 8251, 67, 921, 1488, 18, 27818, 17982, 2563, 56, 13450, 12, 23522, 16, 348, 20, 16, 399, 21, 1769, 3639, 20415, 18, 18356, 30348, 67, 1617, 12, 55, 20, 1769, 3639, 3157, 1662, 3996, 2563, 12, 22, 1769, 4766, 5411, 368, 1342, 576, 1569, 2076, 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, 4750, 727, 918, 3626, 67, 14407, 5831, 12, 7397, 67, 1305, 2404, 707, 1957, 13, 288, 565, 509, 1056, 273, 707, 1957, 18, 588, 1662, 7363, 1435, 397, 404, 31, 368, 397, 21, 364, 315, 2211, 6, 1569, 565, 8251, 67, 1305, 4640, 1305, 273, 446, 31, 565, 4640, 1305, 273, 707, 1957, 18, 347, 3839, 1358, 1305, 5621, 565, 368, 261, 21, 13, 16008, 5976, 618, 6728, 3102, 309, 1931, 358, 741, 1427, 6370, 18, 565, 309, 261, 7397, 18, 3116, 1290, 3445, 56, 1358, 9267, 747, 540, 261, 7397, 18, 3116, 1290, 1285, 28628, 9267, 597, 8251, 18, 5368, 715, 15034, 1285, 1538, 3719, 288, 1377, 309, 261, 11792, 1305, 422, 446, 13, 288, 3639, 368, 2 ]
return null;
public DefaultMutableTreeNode getNextLeaf() { if (parent == null) return null; // TODO: Fix implementation. return null; //return parent.getChildAfter(this); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/DefaultMutableTreeNode.java/clean/core/src/classpath/javax/javax/swing/tree/DefaultMutableTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2989, 19536, 12513, 6927, 9858, 1435, 225, 288, 565, 309, 261, 2938, 422, 446, 13, 1377, 368, 2660, 30, 12139, 4471, 18, 565, 368, 2463, 982, 18, 588, 1763, 4436, 12, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2989, 19536, 12513, 6927, 9858, 1435, 225, 288, 565, 309, 261, 2938, 422, 446, 13, 1377, 368, 2660, 30, 12139, 4471, 18, 565, 368, 2463, 982, 18, 588, 1763, 4436, 12, 2211, 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 ]
if (pack.id == null || pack.id.equals("")){
if (langpack == null || pack.id == null || pack.id.equals("")){
public Object getValueAt(int rowIndex, int columnIndex) { Pack pack = (Pack) packs.get(rowIndex); switch (columnIndex) { case 0 : int val = 0; if (pack.required) { val = -1; } else { val = (packsToInstall.contains(pack) ? 1 : 0); } return new Integer(val); case 1 : if (pack.id == null || pack.id.equals("")){ return pack.name; }else{ return langpack.getString(pack.id); } case 2 : return Pack.toByteUnitsString((int) pack.nbytes); default : return null; } }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/97af55405ebcecbed7b6ed9f6138e21b9b76ce0d/PacksPanel.java/clean/src/lib/com/izforge/izpack/panels/PacksPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 565, 288, 1377, 7930, 2298, 273, 261, 4420, 13, 2298, 87, 18, 588, 12, 492, 1016, 1769, 1377, 1620, 261, 2827, 1016, 13, 1377, 288, 3639, 648, 374, 294, 1850, 509, 1244, 273, 374, 31, 1850, 309, 261, 2920, 18, 4718, 13, 1850, 288, 5411, 1244, 273, 300, 21, 31, 1850, 289, 469, 1850, 288, 5411, 1244, 273, 261, 2920, 11634, 6410, 18, 12298, 12, 2920, 13, 692, 404, 294, 374, 1769, 1850, 289, 1850, 327, 394, 2144, 12, 1125, 1769, 3639, 648, 404, 294, 540, 202, 430, 261, 4936, 2920, 422, 446, 747, 2298, 18, 350, 422, 446, 747, 2298, 18, 350, 18, 14963, 2932, 6, 3719, 95, 540, 202, 202, 2463, 2298, 18, 529, 31, 540, 202, 97, 12107, 95, 540, 202, 202, 2463, 3303, 2920, 18, 588, 780, 12, 2920, 18, 350, 1769, 540, 202, 97, 3639, 648, 576, 294, 1850, 327, 7930, 18, 869, 3216, 7537, 780, 12443, 474, 13, 2298, 18, 82, 3890, 1769, 3639, 805, 294, 1850, 327, 446, 31, 1377, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 2366, 861, 12, 474, 15361, 16, 509, 14882, 13, 565, 288, 1377, 7930, 2298, 273, 261, 4420, 13, 2298, 87, 18, 588, 12, 492, 1016, 1769, 1377, 1620, 261, 2827, 1016, 13, 1377, 288, 3639, 648, 374, 294, 1850, 509, 1244, 273, 374, 31, 1850, 309, 261, 2920, 18, 4718, 13, 1850, 288, 5411, 1244, 273, 300, 21, 31, 1850, 289, 469, 1850, 288, 5411, 1244, 273, 261, 2920, 11634, 6410, 18, 12298, 12, 2920, 13, 692, 404, 294, 374, 1769, 1850, 289, 1850, 327, 394, 2144, 12, 1125, 1769, 3639, 648, 404, 294, 540, 202, 430, 261, 4936, 2920, 422, 446, 747, 2298, 18, 350, 422, 446, 747, 2298, 18, 350, 18, 14963, 2932, 6, 2 ]
public static void setInstance(DataCollectionConfigFactory instance) {
public static void setInstance(DataCollectionConfig instance) {
public static void setInstance(DataCollectionConfigFactory instance) { m_singleton = instance; m_loaded = true; }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/c7fb1c0267a7b284c70383a68c91521d57e9172c/DataCollectionConfigFactory.java/buggy/src/services/org/opennms/netmgt/config/DataCollectionConfigFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 444, 1442, 12, 751, 2532, 809, 791, 13, 288, 3639, 312, 67, 24487, 273, 791, 31, 3639, 312, 67, 4230, 273, 638, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 444, 1442, 12, 751, 2532, 809, 791, 13, 288, 3639, 312, 67, 24487, 273, 791, 31, 3639, 312, 67, 4230, 273, 638, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -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 (printToOut) { final String version = Main.bind("misc.version", new String[] { Main.bind("compiler.name"), Main.bind("compiler.version"), Main.bind("compiler.copyright") } ); this.out.println(version); }
public void logVersion() { this.printlnOut(Main.bind("misc.version", //$NON-NLS-1$ new String[] { Main.bind("compiler.name"), //$NON-NLS-1$ Main.bind("compiler.version"), //$NON-NLS-1$ Main.bind("compiler.copyright") //$NON-NLS-1$ } )); }
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/05a0f872d8ef1609f1817f5edabf70e0b1737e8d/Main.java/clean/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 613, 1444, 1435, 288, 1082, 202, 2211, 18, 8222, 1182, 12, 6376, 18, 4376, 2932, 23667, 18, 1589, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2704, 514, 8526, 288, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 529, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 1589, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 29187, 7923, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 97, 1082, 202, 10019, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 613, 1444, 1435, 288, 1082, 202, 2211, 18, 8222, 1182, 12, 6376, 18, 4376, 2932, 23667, 18, 1589, 3113, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 2704, 514, 8526, 288, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 529, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 1589, 6, 3631, 4329, 3993, 17, 5106, 17, 21, 8, 6862, 202, 6376, 18, 4376, 2932, 9576, 18, 29187, 7923, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 97, 1082, 202, 10019, 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 ]
if (adaptedResult != null) resultCache.put(adapted, adaptedResult);
public IStatus run(IProgressMonitor monitor) { if (shutdown)// Cancelled on shutdown return Status.CANCEL_STATUS; while(updatesPending()){ try { Thread.sleep(100); } catch (InterruptedException e) { //Cancel and try again if there was an error schedule(); return Status.CANCEL_STATUS; } } monitor.beginTask( WorkbenchMessages.DecorationScheduler_CalculatingTask, 100); // will block if there are no resources to be decorated DecorationReference reference; monitor.worked(5); int workCount = 5; while ((reference = nextElement()) != null) { // Count up to 90 to give the appearance of updating if (workCount < 90) { monitor.worked(1); workCount++; } DecorationBuilder cacheResult = new DecorationBuilder(); monitor.subTask(reference.getSubTask()); // Don't decorate if there is already a pending result Object element = reference.getElement(); Object adapted = reference.getAdaptedElement(); boolean elementIsCached = true; DecorationResult adaptedResult = null; // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. elementIsCached = resultCache.containsKey(element); if (elementIsCached) { pendingUpdate.add(element); } if (adapted != null) { adaptedResult = (DecorationResult) resultCache .get(adapted); } if (!elementIsCached) { // Just build for the resource first if (adapted != null) { if (adaptedResult == null) { decoratorManager.getLightweightManager() .getDecorations(adapted, cacheResult, true); if (cacheResult.hasValue()) { adaptedResult = cacheResult.createResult(); } } else { // If we already calculated the decoration // for the adapted element, reuse the result. cacheResult.applyResult(adaptedResult); // Set adaptedResult to null to indicate that // we do not need to cache the result again. adaptedResult = null; } } // Now add in the results for the main object decoratorManager.getLightweightManager() .getDecorations(element, cacheResult, false); // If we should update regardless then put a result // anyways if (cacheResult.hasValue() || reference.shouldForceUpdate()) { // Synchronize on the result lock as we want to // be sure that we do not try and decorate during // label update servicing. // Note: resultCache and pendingUpdate modifications // must be done atomically. if (adaptedResult != null) resultCache.put(adapted, adaptedResult); // Add the decoration even if it's empty in // order to indicate that the decoration is // ready resultCache .put(element, cacheResult.createResult()); // Add an update for only the original element // to // prevent multiple updates and clear the cache. pendingUpdate.add(element); } } // Only notify listeners when we have exhausted the // queue of decoration requests. if (awaitingDecoration.isEmpty()) { decorated(); } } monitor.worked(100 - workCount); monitor.done(); return Status.OK_STATUS; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/e4870ae566720c9a538c7ef68573b301746e6c42/DecorationScheduler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/decorators/DecorationScheduler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 261, 15132, 13, 759, 10347, 1259, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 17523, 12, 14703, 8579, 10756, 95, 6862, 25083, 202, 698, 288, 25083, 202, 3830, 18, 19607, 12, 6625, 1769, 6862, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 25083, 202, 759, 6691, 471, 775, 3382, 309, 1915, 1703, 392, 555, 25083, 202, 10676, 5621, 25083, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 202, 97, 9506, 202, 97, 9506, 202, 10259, 18, 10086, 2174, 12, 25083, 202, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 30238, 2174, 16, 25083, 202, 6625, 1769, 9506, 202, 759, 903, 1203, 309, 1915, 854, 1158, 2703, 358, 506, 13816, 9506, 202, 7859, 367, 2404, 2114, 31, 9506, 202, 10259, 18, 1252, 329, 12, 25, 1769, 9506, 202, 474, 1440, 1380, 273, 1381, 31, 9506, 202, 17523, 14015, 6180, 273, 14512, 10756, 480, 446, 13, 288, 6862, 202, 759, 6974, 731, 358, 8566, 358, 8492, 326, 9788, 1359, 434, 9702, 6862, 202, 430, 261, 1252, 1380, 411, 8566, 13, 288, 25083, 202, 10259, 18, 1252, 329, 12, 21, 1769, 25083, 202, 1252, 1380, 9904, 31, 6862, 202, 97, 6862, 202, 7859, 367, 1263, 1247, 1253, 273, 394, 3416, 22226, 1263, 5621, 6862, 202, 10259, 18, 1717, 2174, 12, 6180, 18, 588, 1676, 2174, 10663, 6862, 202, 759, 7615, 1404, 15752, 309, 1915, 353, 1818, 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, 1875, 202, 482, 467, 1482, 1086, 12, 45, 5491, 7187, 6438, 13, 288, 9506, 202, 430, 261, 15132, 13, 759, 10347, 1259, 603, 5731, 6862, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 9506, 202, 17523, 12, 14703, 8579, 10756, 95, 6862, 25083, 202, 698, 288, 25083, 202, 3830, 18, 19607, 12, 6625, 1769, 6862, 202, 97, 1044, 261, 24485, 503, 425, 13, 288, 25083, 202, 759, 6691, 471, 775, 3382, 309, 1915, 1703, 392, 555, 25083, 202, 10676, 5621, 25083, 202, 2463, 2685, 18, 25268, 67, 8608, 31, 6862, 202, 97, 9506, 202, 97, 9506, 202, 10259, 18, 10086, 2174, 12, 25083, 202, 2421, 22144, 5058, 18, 7859, 367, 11870, 67, 30238, 2174, 16, 25083, 202, 6625, 2 ]
text.setText(WorkbenchMessages.getString("FontsPreference.SampleText"));
text.setText(WorkbenchMessages.getString("FontsPreference.SampleText"));
public void setFont(FontData[] fontData) { if (font != null) font.dispose(); FontData bestData = JFaceResources.getFontRegistry(). bestData(fontData,text.getDisplay()); //If there are no specified values then return. if(bestData == null) return; font = new Font(text.getDisplay(), bestData); text.setFont(font); //Also set the text here text.setText(WorkbenchMessages.getString("FontsPreference.SampleText")); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/80cfecc0fb5392981e25acee0f567feb8ed55185/FontPreferencePage.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/FontPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20454, 12, 5711, 751, 8526, 3512, 751, 13, 288, 1082, 202, 430, 261, 5776, 480, 446, 13, 9506, 202, 5776, 18, 2251, 4150, 5621, 6862, 1082, 202, 5711, 751, 3796, 751, 273, 4697, 202, 46, 11824, 3805, 18, 588, 5711, 4243, 7675, 6862, 202, 12729, 751, 12, 5776, 751, 16, 955, 18, 588, 4236, 10663, 6862, 9506, 202, 759, 2047, 1915, 854, 1158, 1269, 924, 1508, 327, 18, 1082, 202, 430, 12, 12729, 751, 422, 446, 13, 9506, 202, 2463, 31, 6862, 1082, 202, 5776, 273, 394, 10063, 12, 955, 18, 588, 4236, 9334, 3796, 751, 1769, 1082, 202, 955, 18, 542, 5711, 12, 5776, 1769, 1082, 202, 759, 1067, 2048, 444, 326, 977, 2674, 1082, 202, 955, 18, 542, 1528, 12, 2421, 22144, 5058, 18, 588, 780, 2932, 5711, 87, 9624, 18, 8504, 1528, 7923, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 20454, 12, 5711, 751, 8526, 3512, 751, 13, 288, 1082, 202, 430, 261, 5776, 480, 446, 13, 9506, 202, 5776, 18, 2251, 4150, 5621, 6862, 1082, 202, 5711, 751, 3796, 751, 273, 4697, 202, 46, 11824, 3805, 18, 588, 5711, 4243, 7675, 6862, 202, 12729, 751, 12, 5776, 751, 16, 955, 18, 588, 4236, 10663, 6862, 9506, 202, 759, 2047, 1915, 854, 1158, 1269, 924, 1508, 327, 18, 1082, 202, 430, 12, 12729, 751, 422, 446, 13, 9506, 202, 2463, 31, 6862, 1082, 202, 5776, 273, 394, 10063, 12, 955, 18, 588, 4236, 9334, 3796, 751, 1769, 1082, 202, 955, 18, 542, 5711, 12, 5776, 1769, 1082, 202, 759, 1067, 2048, 444, 326, 977, 2674, 2 ]
addByteCode(ByteCode.DUP);
cfw.add(ByteCode.DUP);
private void generateInit(Context cx, String superClassName) { String methodName = (inFunction) ? "<init>" : "initScript"; classFile.startMethod(methodName, "(Lorg/mozilla/javascript/Scriptable;" +"Lorg/mozilla/javascript/Context;)V", ClassFileWriter.ACC_PUBLIC); final byte ALOAD_SCOPE = ByteCode.ALOAD_1; final byte ALOAD_CONTEXT = ByteCode.ALOAD_2; if (inFunction) { addByteCode(ByteCode.ALOAD_0); addSpecialInvoke(superClassName, "<init>", "()V"); addByteCode(ByteCode.ALOAD_0); addByteCode(ALOAD_SCOPE); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/ScriptableObject", "parent", "Lorg/mozilla/javascript/Scriptable;"); /* * Generate code to initialize functionName field with the name * of the function. */ String name = fnCurrent.getFunctionName(); if (name.length() != 0) { addByteCode(ByteCode.ALOAD_0); classFile.addLoadConstant(name); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "functionName", "Ljava/lang/String;"); } } /* * Generate code to initialize argNames string array with the names * of the parameters and the vars. Initialize argCount * to the number of formal parameters. */ int N = scriptOrFn.getParamAndVarCount(); if (N != 0) { push(N); addByteCode(ByteCode.ANEWARRAY, "java/lang/String"); for (int i = 0; i != N; i++) { addByteCode(ByteCode.DUP); push(i); push(scriptOrFn.getParamOrVarName(i)); addByteCode(ByteCode.AASTORE); } addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.SWAP); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argNames", "[Ljava/lang/String;"); } int parmCount = scriptOrFn.getParamCount(); if (parmCount != 0) { if (!inFunction) Context.codeBug(); addByteCode(ByteCode.ALOAD_0); push(parmCount); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "argCount", "S"); } // Initialize NativeFunction.version with Context's version. if (cx.getLanguageVersion() != 0) { addByteCode(ByteCode.ALOAD_0); push(cx.getLanguageVersion()); classFile.add(ByteCode.PUTFIELD, "org/mozilla/javascript/NativeFunction", "version", "S"); } // precompile all regexp literals int regexpCount = scriptOrFn.getRegexpCount(); if (regexpCount != 0) { for (int i = 0; i != regexpCount; ++i) { String fieldName = getRegexpFieldName(i); short flags = ClassFileWriter.ACC_PRIVATE; if (inFunction) { flags |= ClassFileWriter.ACC_FINAL; } classFile.addField( fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;", flags); addByteCode(ByteCode.ALOAD_0); // load 'this' addByteCode(ByteCode.NEW, "org/mozilla/javascript/regexp/NativeRegExp"); addByteCode(ByteCode.DUP); addByteCode(ALOAD_CONTEXT); addByteCode(ALOAD_SCOPE); push(scriptOrFn.getRegexpString(i)); String regexpFlags = scriptOrFn.getRegexpFlags(i); if (regexpFlags == null) { addByteCode(ByteCode.ACONST_NULL); } else { push(regexpFlags); } push(0); addSpecialInvoke("org/mozilla/javascript/regexp/NativeRegExp", "<init>", "(Lorg/mozilla/javascript/Context;" +"Lorg/mozilla/javascript/Scriptable;" +"Ljava/lang/String;Ljava/lang/String;" +"Z" +")V"); classFile.add(ByteCode.PUTFIELD, generatedClassName, fieldName, "Lorg/mozilla/javascript/regexp/NativeRegExp;"); } } classFile.addField(MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature, (short)0); // For top level script or function init scriptMaster to self if (isMainCodegen) { addByteCode(ByteCode.ALOAD_0); addByteCode(ByteCode.DUP); classFile.add(ByteCode.PUTFIELD, generatedClassName, MAIN_SCRIPT_FIELD, mainCodegen.generatedClassSignature); } addByteCode(ByteCode.RETURN); // 3 = this + scope + context classFile.stopMethod((short)3, null); // Add static method to return encoded source tree for decompilation // which will be called from OptFunction/OptScrript.getSourcesTree // via reflection. See NativeFunction.getSourcesTree for documentation. // Note that nested function decompilation currently depends on the // elements of the fns array being defined in source order. // (per function/script, starting from 0.) // Change Parser if changing ordering. if (mainCodegen.encodedSource != null) { // Override NativeFunction.getEncodedSourceg() with // public String getEncodedSource() // { // return main_class.getEncodedSourceImpl(START, END); // } short flags = ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_STATIC; String getSourceMethodStr = "getEncodedSourceImpl"; String mainImplSig = "(II)Ljava/lang/String;"; classFile.startMethod("getEncodedSource", "()Ljava/lang/Object;", ClassFileWriter.ACC_PUBLIC); push(scriptOrFn.getEncodedSourceStart()); push(scriptOrFn.getEncodedSourceEnd()); classFile.addInvoke(ByteCode.INVOKESTATIC, mainCodegen.generatedClassName, getSourceMethodStr, mainImplSig); addByteCode(ByteCode.ARETURN); // 1: this and no argument or locals classFile.stopMethod((short)1, null); if (isMainCodegen) { // generate // public static String getEncodedSourceImpl(int start, int end) // { // return ENCODED.substring(start, end); // } classFile.startMethod(getSourceMethodStr, mainImplSig, (short)flags); push(encodedSource); addByteCode(ByteCode.ILOAD_0); addByteCode(ByteCode.ILOAD_1); classFile.addInvoke(ByteCode.INVOKEVIRTUAL, "java/lang/String", "substring", "(II)Ljava/lang/String;"); addByteCode(ByteCode.ARETURN); classFile.stopMethod((short)2, null); } } }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/64dc04549cad044865eae2e65e775ddc0f292717/Codegen.java/buggy/src/org/mozilla/javascript/optimizer/Codegen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 2570, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 514, 4918, 273, 261, 267, 2083, 13, 692, 3532, 2738, 2984, 294, 225, 315, 2738, 3651, 14432, 3639, 29728, 18, 1937, 1305, 12, 2039, 461, 16, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 17311, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 30943, 58, 3113, 17311, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 727, 1160, 432, 7783, 67, 19444, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 21, 31, 3639, 727, 1160, 432, 7783, 67, 13181, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 22, 31, 3639, 309, 261, 267, 2083, 13, 288, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 527, 12193, 10969, 12, 9565, 3834, 16, 3532, 2738, 2984, 16, 25605, 58, 8863, 5411, 527, 3216, 1085, 12, 3216, 1085, 18, 1013, 51, 1880, 67, 20, 1769, 5411, 527, 3216, 1085, 12, 1013, 51, 1880, 67, 19444, 1769, 5411, 29728, 18, 1289, 12, 3216, 1085, 18, 4762, 6776, 16, 12900, 315, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 921, 3113, 12900, 315, 2938, 3113, 315, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 1769, 5411, 1748, 2398, 380, 6654, 981, 358, 4046, 14117, 652, 598, 326, 508, 2398, 380, 434, 326, 445, 18, 2398, 1195, 5411, 514, 508, 273, 2295, 3935, 18, 588, 25258, 5621, 5411, 309, 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, 2103, 2570, 12, 1042, 9494, 16, 514, 2240, 3834, 13, 565, 288, 3639, 514, 4918, 273, 261, 267, 2083, 13, 692, 3532, 2738, 2984, 294, 225, 315, 2738, 3651, 14432, 3639, 29728, 18, 1937, 1305, 12, 2039, 461, 16, 17311, 7751, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 3651, 429, 4868, 17311, 397, 6, 48, 3341, 19, 8683, 15990, 19, 11242, 19, 1042, 30943, 58, 3113, 17311, 30614, 2289, 18, 31414, 67, 14939, 1769, 3639, 727, 1160, 432, 7783, 67, 19444, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 21, 31, 3639, 727, 1160, 432, 7783, 67, 13181, 273, 3506, 1085, 18, 1013, 51, 1880, 67, 22, 31, 3639, 309, 261, 267, 2083, 13, 288, 2 ]
"member '[Gender].[All Genders].[M]' is not in the same hierarchy as level '[Store].[Store Country]'");
"member '[Gender].[All Gender].[M]' is not in the same hierarchy as level '[Store].[Store Country]'");
protected void defineFunctions() { // first char: p=Property, m=Method, i=Infix, P=Prefix // 2nd: // ARRAY FUNCTIONS if (false) define(new FunDefBase("SetToArray", "SetToArray(<Set>[, <Set>]...[, <Numeric Expression>])", "Converts one or more sets to an array for use in a user-if (false) defined function.", "fa*")); // // DIMENSION FUNCTIONS define(new FunDefBase("Dimension", "<Hierarchy>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getDimension(); } }); //??Had to add this to get <Hierarchy>.Dimension to work? define(new FunDefBase("Dimension", "<Dimension>.Dimension", "Returns the dimension that contains a specified hierarchy.", "pdd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension; } public void testDimensionHierarchy(FoodMartTestCase test) { String s = test.executeExpr("[Time].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Dimension", "<Level>.Dimension", "Returns the dimension that contains a specified level.", "pdl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getDimension(); } public void testLevelDimension(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[Year].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimension", "<Member>.Dimension", "Returns the dimension that contains a specified member.", "pdm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getDimension(); } public void testMemberDimension(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q2].Dimension"); test.assertEquals("[Time]", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<Numeric Expression>)", "Returns the dimension whose zero-based position within the cube is specified by a numeric expression.", "fdn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension[] dimensions = cube.getDimensions(); int n = getIntArg(evaluator, args, 0); if ((n > dimensions.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return dimensions[n - 1]; } public void testDimensionsNumeric(FoodMartTestCase test) { String s = test.executeExpr( "Dimensions(2).Name"); test.assertEquals("Store", s); } }); define(new FunDefBase("Dimensions", "Dimensions(<String Expression>)", "Returns the dimension whose name is specified by a string.", "fdS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String defValue = "Default Value"; String s = getStringArg(evaluator, args, 0, defValue); if (s.indexOf("[") == -1) { s = Util.quoteMdxIdentifier(s); } Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = Util.lookupCompound(cube, s, cube, fail); if (o == null) { throw newEvalException( this, "Dimensions '" + s + "' not found"); } else if (o instanceof Dimension) { return (Dimension) o; } else { throw newEvalException( this, "Dimensions(" + s + ") found " + o); } } public void testDimensionsString(FoodMartTestCase test) { String s = test.executeExpr( "Dimensions(\"Store\").UniqueName"); test.assertEquals("[Store]", s); } }); // // HIERARCHY FUNCTIONS define(new FunDefBase("Hierarchy", "<Level>.Hierarchy", "Returns a level's hierarchy.", "phl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getHierarchy(); } }); define(new FunDefBase("Hierarchy", "<Member>.Hierarchy", "Returns a member's hierarchy.", "phm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getHierarchy(); } public void testTime(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Hierarchy"); test.assertEquals("[Time]", s); } public void testBasic9(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].[F].Hierarchy"); test.assertEquals("[Gender]", s); } public void testFirstInLevel9(FoodMartTestCase test) { String s = test.executeExpr( "[Education Level].[All Education Levels].[Bachelors Degree].Hierarchy"); test.assertEquals("[Education Level]", s); } public void testHierarchyAll(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].Hierarchy"); test.assertEquals("[Gender]", s); } public void testHierarchyNull(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].[All Genders].Parent.Hierarchy"); test.assertEquals("[Gender]", s); // MSOLAP gives "#ERR" } }); // // LEVEL FUNCTIONS define(new FunDefBase("Level", "<Member>.Level", "Returns a member's level.", "plm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLevel(); } public void testMemberLevel(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].[Q1].[1].Level.UniqueName"); test.assertEquals("[Time].[Month]", s); } }); define(new FunDefBase("Levels", "<Hierarchy>.Levels(<Numeric Expression>)", "Returns the level whose position in a hierarchy is specified by a numeric expression.", "mlhn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); Level[] levels = hierarchy.getLevels(); int n = getIntArg(evaluator, args, 1); if ((n > levels.length) || (n < 1)) { throw newEvalException( this, "Index '" + n + "' out of bounds"); } return levels[n - 1]; } public void testLevelsNumeric(FoodMartTestCase test) { String s = test.executeExpr("[Time].Levels(2).Name"); test.assertEquals("Quarter", s); } public void testLevelsTooSmall(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(0).Name", "Index '0' out of bounds"); } public void testLevelsTooLarge(FoodMartTestCase test) { test.assertExprThrows( "[Time].Levels(8).Name", "Index '8' out of bounds"); } }); define(new FunDefBase("Levels", "Levels(<String Expression>)", "Returns the level whose name is specified by a string expression.", "flS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String s = getStringArg(evaluator, args, 0, null); Cube cube = evaluator.getCube(); boolean fail = false; OlapElement o = null; if (s.startsWith("[")) { o = Util.lookupCompound(cube, s, cube, fail); } else { // lookupCompound barfs if "s" doesn't have matching // brackets, so don't even try o = null; } if (o == null) { throw newEvalException( this, "could not find level '" + s + "'"); } else if (o instanceof Level) { return (Level) o; } else { throw newEvalException( this, "found '" + o.getDescription() + "', not a level"); } } public void testLevelsString(FoodMartTestCase test) { String s = test.executeExpr( "Levels(\"[Time].[Year]\").UniqueName"); test.assertEquals("[Time].[Year]", s); } public void testLevelsStringFail(FoodMartTestCase test) { test.assertExprThrows( "Levels(\"nonexistent\").UniqueName", "could not find level 'nonexistent'"); } }); // // LOGICAL FUNCTIONS define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbS")); define(new FunDefBase("IsEmpty", "IsEmpty(<Value Expression>)", "Determines if an expression evaluates to the empty cell value.", "fbn")); // // MEMBER FUNCTIONS // if (false) define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fm*"); define(new FunDefBase("Ancestor", "Ancestor(<Member>, <Level>)", "Returns the ancestor of a member at a specified level.", "fmml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, false); Level level = getLevelArg(evaluator, args, 1, false); if (member.getHierarchy() != level.getHierarchy()) { throw newEvalException( this, "member '" + member + "' is not in the same hierarchy as level '" + level + "'"); } if (member.getLevel().equals(level)) { return member; } Member[] members = member.getAncestorMembers(); for (int i = 0; i < members.length; i++) { if (members[i].getLevel().equals(level)) return members[i]; } return member.getHierarchy().getNullMember(); // not found } public void testAncestor(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA].[Los Angeles],[Store Country])"); test.assertEquals("USA", member.getName()); } public void testAncestorHigher(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA],[Store].[Store City])"); test.assertNull(member); // MSOLAP returns null } public void testAncestorSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[Canada],[Store].[Store Country])"); test.assertEquals("Canada", member.getName()); } public void testAncestorWrongHierarchy(FoodMartTestCase test) { // MSOLAP gives error "Formula error - dimensions are not // valid (they do not match) - in the Ancestor function" test.assertAxisThrows( "Ancestor([Gender].[M],[Store].[Store Country])", "member '[Gender].[All Genders].[M]' is not in the same hierarchy as level '[Store].[Store Country]'"); } public void testAncestorAllLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Ancestor([Store].[USA].[CA],[Store].Levels(1))"); test.assertTrue(member.isAll()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodNoArgs(FoodMartTestCase test) { // MSOLAP returns [1997].[Q4], because [Time].CurrentMember = // [1997]. Member member = test.executeAxis("ClosingPeriod()"); test.assertEquals("[Time].[1997].[Q4]", member.getUniqueName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fml") { public Object evaluate(Evaluator evaluator, Exp[] args) { Cube cube = evaluator.getCube(); Dimension timeDimension = cube.getYearLevel().getDimension(); Member member = evaluator.getContext(timeDimension); Level level = getLevelArg(evaluator, args, 0, true); return openClosingPeriod(this, member, level); } public void testClosingPeriodLevel(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodLevelNotInTimeFails(FoodMartTestCase test) { test.assertAxisThrows( "ClosingPeriod([Store].[Store City])", "member '[Time].[1997]' must be in same hierarchy as level '[Store].[Store City]'"); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = member.getLevel().getChildLevel(); return openClosingPeriod(this, member, level); } public void testClosingPeriodMember(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([USA])"); test.assertEquals("WA", member.getName()); } }); define(new FunDefBase("ClosingPeriod", "ClosingPeriod([<Level>[, <Member>]])", "Returns the last sibling among the descendants of a member at a level.", "fmlm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); Member member = getMemberArg(evaluator, args, 1, true); return openClosingPeriod(this, member, level); } public void testClosingPeriod(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Month],[1997])"); test.assertEquals("[Time].[1997].[Q4].[12]", member.getUniqueName()); } public void testClosingPeriodBelow(FoodMartTestCase test) { Member member = test.executeAxis( "ClosingPeriod([Quarter],[1997].[Q3].[8])"); test.assertNull(member); } }); define(new FunDefBase("Cousin", "Cousin(<Member1>, <Member2>)", "Returns the member with the same relative position under a member as the member specified.", "fmmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member1 = getMemberArg(evaluator, args, 0, true); Member member2 = getMemberArg(evaluator, args, 1, true); Member cousin = cousin(member1, member2); if (cousin == null) { cousin = member1.getHierarchy().getNullMember(); } return cousin; } private Member cousin(Member member1, Member member2) { if (member1.getHierarchy() != member2.getHierarchy()) { throw newEvalException( this, "Members '" + member1 + "' and '" + member2 + "' are not compatible as cousins"); } if (member1.getLevel().getDepth() < member2.getLevel().getDepth()) { return null; } return cousin2(member1, member2); } private Member cousin2(Member member1, Member member2) { if (member1.getLevel() == member2.getLevel()) { return member2; } Member uncle = cousin2(member1.getParentMember(), member2); if (uncle == null) { return null; } int ordinal = getOrdinalInParent(member1); Member[] cousins = uncle.getMemberChildren(); if (cousins.length < ordinal) { return null; } return cousins[ordinal]; } private int getOrdinalInParent(Member member) { Member parent = member.getParentMember(); Member[] siblings; if (parent == null) { siblings = member.getHierarchy().getRootMembers(); } else { siblings = parent.getMemberChildren(); } for (int i = 0; i < siblings.length; i++) { if (siblings[i] == member) { return i; } } throw Util.newInternal( "could not find member " + member + " amongst its siblings"); } public void testCousin1(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4],[1998])"); test.assertEquals("[Time].[1998].[Q4]", member.getUniqueName()); } public void testCousin2(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([1997].[Q4].[12],[1998].[Q1])"); test.assertEquals("[Time].[1998].[Q1].[3]", member.getUniqueName()); } public void testCousinOverrun(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[San Jose], [Customers].[USA].[OR])"); // CA has more cities than OR test.assertNull(member); } public void testCousinThreeDown(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Customers].[USA].[CA].[Berkeley].[Alma Shelton], [Customers].[Mexico])"); // Alma Shelton is the 3rd child // of the 4th child (Berkeley) // of the 1st child (CA) // of USA test.assertEquals("[Customers].[All Customers].[Mexico].[DF].[Tixapan].[Albert Clouse]", member.getUniqueName()); } public void testCousinSameLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Gender].[M], [Gender].[F])"); test.assertEquals("F", member.getName()); } public void testCousinHigherLevel(FoodMartTestCase test) { Member member = test.executeAxis( "Cousin([Time].[1997], [Time].[1998].[Q1])"); test.assertNull(member); } public void testCousinWrongHierarchy(FoodMartTestCase test) { test.assertAxisThrows( "Cousin([Time].[1997], [Gender].[M])", "Members '[Time].[1997]' and '[Gender].[All Genders].[M]' are not compatible as cousins"); } }); define(new FunDefBase("CurrentMember", "<Dimension>.CurrentMember", "Returns the current member along a dimension during an iteration.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return evaluator.getContext(dimension); } public void testCurrentMemberFromSlicer(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales where ([Gender].[F])"); test.assertEquals("F", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromDefaultMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Time].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("1997", result.getCell(new int[] {0}).getValue()); } public void testCurrentMemberFromAxis(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Gender].CurrentMember.Name || [Marital Status].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns," + nl + " CrossJoin({[Gender].children}, {[Marital Status].children}) on rows" + nl + "from Sales"); test.assertEquals("FM", result.getCell(new int[] {0,0}).getValue()); } /** * When evaluating a calculated member, MSOLAP regards that * calculated member as the current member of that dimension, so it * cycles in this case. But I disagree; it is the previous current * member, before the calculated member was expanded. */ public void testCurrentMemberInCalcMember(FoodMartTestCase test) { Result result = test.runQuery( "with member [Measures].[Foo] as '[Measures].CurrentMember.Name'" + nl + "select {[Measures].[Foo]} on columns" + nl + "from Sales"); test.assertEquals("Unit Sales", result.getCell(new int[] {0}).getValue()); } }); define(new FunDefBase("DefaultMember", "<Dimension>.DefaultMember", "Returns the default member of a dimension.", "pmd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getHierarchy().getDefaultMember(); } public void testDimensionDefaultMember(FoodMartTestCase test) { Member member = test.executeAxis( "[Measures].DefaultMember"); test.assertEquals("Unit Sales", member.getName()); } }); define(new FunDefBase("FirstChild", "<Member>.FirstChild", "Returns the first child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[0]; } } public void testFirstChildFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstChild"); test.assertEquals("10", member.getName()); } public void testFirstChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].FirstChild"); test.assertEquals("F", member.getName()); } public void testFirstChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].[F].FirstChild"); test.assertNull(member); } }); define(new FunDefBase("FirstSibling", "<Member>.FirstSibling", "Returns the first child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[0]; } public void testFirstSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstSibling"); test.assertEquals("F", member.getName()); } public void testFirstSiblingLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].FirstSibling"); test.assertEquals("Q1", member.getName()); } public void testFirstSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].FirstSibling"); test.assertTrue(member.isAll()); } public void testFirstSiblingRoot(FoodMartTestCase test) { // The [Measures] hierarchy does not have an 'all' member, so // [Unit Sales] does not have a parent. Member member = test.executeAxis( "[Measures].[Store Sales].FirstSibling"); test.assertEquals("Unit Sales", member.getName()); } public void testFirstSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.FirstSibling"); test.assertNull(member); } }); if (false) define(new FunDefBase("Item", "<Tuple>.Item(<Numeric Expression>)", "Returns a member from a tuple.", "mm*")); define(new MultiResolver( "Lag", "<Member>.Lag(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(-n); } public void testLag(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].[12].Lag(4)"); test.assertEquals("8", member.getName()); } public void testLagFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].Lag(1)"); test.assertNull(member); } public void testLagAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].DefaultMember.Lag(2)"); test.assertNull(member); } public void testLagRoot(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1998].Lag(1)"); test.assertEquals("1997", member.getName()); } public void testLagRootTooFar(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1998].Lag(2)"); test.assertNull(null); } })); define(new FunDefBase("LastChild", "<Member>.LastChild", "Returns the last child of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); if (children.length == 0) { return member.getHierarchy().getNullMember(); } else { return children[children.length - 1]; } } public void testLastChild(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q4].LastChild"); test.assertEquals("12", member.getName()); } public void testLastChildAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].LastChild"); test.assertEquals("M", member.getName()); } public void testLastChildOfChildless(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].LastChild"); test.assertNull(member); } }); define(new FunDefBase("LastSibling", "<Member>.LastSibling", "Returns the last child of the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); Member[] children; if (parent == null) { if (member.isNull()) { return member; } children = member.getHierarchy().getRootMembers(); } else { children = parent.getMemberChildren(); } return children[children.length - 1]; } public void testLastSibling(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].LastSibling"); test.assertEquals("M", member.getName()); } public void testLastSiblingFirstInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q1].LastSibling"); test.assertEquals("Q4", member.getName()); } public void testLastSiblingAll(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[All Genders].LastSibling"); test.assertTrue(member.isAll()); } public void testLastSiblingRoot(FoodMartTestCase test) { // The [Time] hierarchy does not have an 'all' member, so // [1997], [1998] do not have parents. Member member = test.executeAxis( "[Time].[1998].LastSibling"); test.assertEquals("1998", member.getName()); } public void testLastSiblingNull(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[F].FirstChild.LastSibling"); test.assertNull(member); } }); define(new MultiResolver( "Lead", "<Member>.Lead(<Numeric Expression>)", "Returns a member further along the specified member's dimension.", new String[]{"mmmn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); int n = getIntArg(evaluator, args, 1); return member.getLeadMember(n); } public void testLead(FoodMartTestCase test) { Member member = test.executeAxis( "[Time].[1997].[Q2].[4].Lead(4)"); test.assertEquals("8", member.getName()); } public void testLeadNegative(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(-1)"); test.assertEquals("F", member.getName()); } public void testLeadLastInLevel(FoodMartTestCase test) { Member member = test.executeAxis( "[Gender].[M].Lead(3)"); test.assertNull(member); } })); define(new FunDefBase("Members", "Members(<String Expression>)", "Returns the member whose name is specified by a string expression.", "fmS")); define(new FunDefBase( "NextMember", "<Member>.NextMember", "Returns the next member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(+1); } public void testBasic2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("M")); } public void testFirstInLevel2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].NextMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll2(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("OpeningPeriod", "OpeningPeriod([<Level>[, <Member>]])", "Returns the first sibling among the descendants of a member at a level.", "fm*")); if (false) define(new FunDefBase("ParallelPeriod", "ParallelPeriod([<Level>[, <Numeric Expression>[, <Member>]]])", "Returns a member from a prior period in the same relative position as a specified member.", "fm*")); define(new FunDefBase("Parent", "<Member>.Parent", "Returns the parent of a member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member parent = member.getParentMember(); if (parent == null) { parent = member.getHierarchy().getNullMember(); } return parent; } public void testBasic5(FoodMartTestCase test) { Result result = test.runQuery( "select{ [Product].[All Products].[Drink].Parent} on columns from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("All Products")); } public void testFirstInLevel5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].[4].Parent} on columns,{[Gender].[M]} on rows from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("Q2")); } public void testAll5(FoodMartTestCase test) { Result result = test.runQuery( "select {[Time].[1997].[Q2].Parent} on columns,{[Gender].[M]} on rows from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("1997")); } }); define(new FunDefBase("PrevMember", "<Member>.PrevMember", "Returns the previous member in the level that contains a specified member.", "pmm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getLeadMember(-1); } public void testBasic(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[M].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions[0].members[0].getName().equals("F")); } public void testFirstInLevel(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].[F].PrevMember} ON COLUMNS from Sales"); test.assertTrue(result.getAxes()[0].positions.length == 0); } public void testAll(FoodMartTestCase test) { Result result = test.runQuery( "select {[Gender].PrevMember} ON COLUMNS from Sales"); // previous to [Gender].[All] is null, so no members are returned test.assertTrue(result.getAxes()[0].positions.length == 0); } }); if (false) define(new FunDefBase("ValidMeasure", "ValidMeasure(<Tuple>)", "Returns a valid measure in a virtual cube by forcing inapplicable dimensions to their top level.", "fm*")); // // NUMERIC FUNCTIONS if (false) define(new FunDefBase("Aggregate", "Aggregate(<Set>[, <Numeric Expression>])", "Returns a calculated value using the appropriate aggregate function, based on the context of the query.", "fn*")); define(new MultiResolver( "Avg", "Avg(<Set>[, <Numeric Expression>])", "Returns the average value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return avg(evaluator.push(), members, exp); } public void testAvg(FoodMartTestCase test) { String result = test.executeExpr( "AVG({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("188412.71", result); } //todo: testAvgWithNulls })); if (false) define(new FunDefBase("Correlation", "Correlation(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the correlation of two series evaluated over a set.", "fn*")); define(new MultiResolver( "Count", "Count(<Set>[, EXCLUDEEMPTY | INCLUDEEMPTY])", "Returns the number of tuples in a set, empty cells included unless the optional EXCLUDEEMPTY flag is used.", new String[]{"fnx", "fnxy"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); String empties = (String) getArg(evaluator, args, 1, "INCLUDEEMPTY"); if (empties.equals("INCLUDEEMPTY")) { return new Double(members.size()); } else { int retval = 0; for (int i = 0; i < members.size(); i++) { if ((members.elementAt(i) != Util.nullValue) && (members.elementAt(i) != null)) { retval++; } } return new Double(retval); } } public void testCount(FoodMartTestCase test) { String result = test.executeExpr( "count({[Promotion Media].[Media Type].members})"); test.assertEquals("14.0", result); } //todo: testCountNull, testCountNoExp })); if (false) define(new FunDefBase("Covariance", "Covariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (biased).", "fn*")); if (false) define(new FunDefBase("CovarianceN", "CovarianceN(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Returns the covariance of two series evaluated over a set (unbiased).", "fn*")); define(new FunDefBase("IIf", "IIf(<Logical Expression>, <Numeric Expression1>, <Numeric Expression2>)", "Returns one of two numeric values determined by a logical test.", "fnbnn")); if (false) define(new FunDefBase("LinRegIntercept", "LinRegIntercept(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of b in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegPoint", "LinRegPoint(<Numeric Expression>, <Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of y in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegR2", "LinRegR2(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns R2 (the coefficient of determination).", "fn*")); if (false) define(new FunDefBase("LinRegSlope", "LinRegSlope(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the value of a in the regression line y = ax + b.", "fn*")); if (false) define(new FunDefBase("LinRegVariance", "LinRegVariance(<Set>, <Numeric Expression>[, <Numeric Expression>])", "Calculates the linear regression of a set and returns the variance associated with the regression line y = ax + b.", "fn*")); define(new MultiResolver( "Max", "Max(<Set>[, <Numeric Expression>])", "Returns the maximum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return max(evaluator.push(), members, exp); } public void testMax(FoodMartTestCase test) { String result = test.executeExpr( "MAX({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("263793.22", result); } })); define(new MultiResolver( "Median", "Median(<Set>[, <Numeric Expression>])", "Returns the median value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); //todo: ignore nulls, do we need to ignore the vector? return median(evaluator.push(), members, exp); } public void testMedian(FoodMartTestCase test) { String result = test.executeExpr( "MEDIAN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("159167.84", result); } })); define(new MultiResolver( "Min", "Min(<Set>[, <Numeric Expression>])", "Returns the minimum value of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return min(evaluator.push(), members, exp); } public void testMin(FoodMartTestCase test) { String result = test.executeExpr( "MIN({[Store].[All Stores].[USA].children},[Measures].[Store Sales])"); test.assertEquals("142277.07", result); } })); define(new FunDefBase("Ordinal", "<Level>.Ordinal", "Returns the zero-based ordinal value associated with a level.", "pnl")); if (false) define(new FunDefBase("Rank", "Rank(<Tuple>, <Set>)", "Returns the one-based rank of a tuple in a set.", "fn*")); if (false) define(new FunDefBase("Stddev", "Stddev(<Set>[, <Numeric Expression>])", "Alias for Stdev.", "fn*")); if (false) define(new FunDefBase("StddevP", "StddevP(<Set>[, <Numeric Expression>])", "Alias for StdevP.", "fn*")); if (false) define(new FunDefBase("Stdev", "Stdev(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (unbiased).", "fn*")); if (false) define(new FunDefBase("StdevP", "StdevP(<Set>[, <Numeric Expression>])", "Returns the standard deviation of a numeric expression evaluated over a set (biased).", "fn*")); define(new MultiResolver( "Sum", "Sum(<Set>[, <Numeric Expression>])", "Returns the sum of a numeric expression evaluated over a set.", new String[]{"fnx", "fnxN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); return sum(evaluator.push(), members, exp); } public void testSumNoExp(FoodMartTestCase test) { String result = test.executeExpr( "SUM({[Promotion Media].[Media Type].members})"); test.assertEquals("266773.0", result); } })); define(new FunDefBase("Value", "<Measure>.Value", "Returns the value of a measure.", "pnm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.evaluateScalar(evaluator); } }); define(new FunDefBase("_Value", "_Value(<Tuple>)", "Returns the value of the current measure within the context of a tuple.", "fvt") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member[] members = getTupleArg(evaluator, args, 0); Evaluator evaluator2 = evaluator.push(members); return evaluator2.evaluateCurrent(); } }); // _Value is a pseudo-function which evaluates a tuple to a number. // It needs a custom resolver. if (false) define(new ResolverBase("_Value", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length == 1 && args[0].getType() == FunCall.CatTuple) { return new ValueFunDef(new int[] {FunCall.CatTuple}); } for (int i = 0; i < args.length; i++) { Exp arg = args[i]; if (!canConvert(arg, FunCall.CatMember, conversionCount)) { return null; } } int[] argTypes = new int[args.length]; for (int i = 0; i < argTypes.length; i++) { argTypes[i] = FunCall.CatMember; } return new ValueFunDef(argTypes); } }); if (false) define(new FunDefBase("Var", "Var(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (unbiased).", "fn*")); if (false) define(new FunDefBase("Variance", "Variance(<Set>[, <Numeric Expression>])", "Alias for Var.", "fn*")); if (false) define(new FunDefBase("VarianceP", "VarianceP(<Set>[, <Numeric Expression>])", "Alias for VarP.", "fn*")); if (false) define(new FunDefBase("VarP", "VarP(<Set>[, <Numeric Expression>])", "Returns the variance of a numeric expression evaluated over a set (biased).", "fn*")); // // SET FUNCTIONS if (false) define(new FunDefBase("AddCalculatedMembers", "AddCalculatedMembers(<Set>)", "Adds calculated members to a set.", "fx*")); define(new MultiResolver( "BottomCount", "BottomCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the bottom of a set, optionally ordering the set first.", new String[]{"fxxnN", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = false, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testBottomCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test unordered })); define(new MultiResolver( "BottomPercent", "BottomPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, true, n.doubleValue()); } public void testBottomPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomPercent({[Promotion Media].[Media Type].members}, 1, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new MultiResolver( "BottomSum", "BottomSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the bottom N elements whose cumulative total is at least a specified value.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, false, false, n.doubleValue()); } public void testBottomSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "BottomSum({[Promotion Media].[Media Type].members}, 5000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[Radio]" + nl + "[Promotion Media].[All Promotion Media].[Sunday Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new FunDefBase("Children", "<Member>.Children", "Returns the children of a member.", "pxm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Member[] children = member.getMemberChildren(); return toVector(children); } }); define(new FunDefBase("Crossjoin", "Crossjoin(<Set1>, <Set2>)", "Returns the cross product of two sets.", "fxxx") { public Hierarchy getHierarchy(Exp[] args) { // CROSSJOIN(<Set1>,<Set2>) has Hierarchy [Hie1] x [Hie2], which we // can't represent, so we return null. return null; } public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set0 = (Vector) getArg(evaluator, args, 0), set1 = (Vector) getArg(evaluator, args, 1), result = new Vector(); for (int i = 0, m = set0.size(); i < m; i++) { Member o0 = (Member) set0.elementAt(i); for (int j = 0, n = set1.size(); j < n; j++) { Member o1 = (Member) set1.elementAt(j); result.addElement(new Member[]{o0, o1}); } } return result; } }); define(new MultiResolver( "Descendants", "Descendants(<Member>, <Level>[, <Desc_flag>])", "Returns the set of descendants of a member at a specified level, optionally including or excluding descendants in other levels.", new String[]{"fxml", "fxmls"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); Level level = getLevelArg(evaluator, args, 1, true);// String descFlag = getStringArg(evaluator, args, 2, ??); if (member.getLevel().getDepth() > level.getDepth()) { return new Member[0]; } // Expand member to its children, until we get to the right // level. We assume that all children are in the same // level. final Hierarchy hierarchy = member.getHierarchy(); Member[] children = {member}; while (children.length > 0 && children[0].getLevel().getDepth() < level.getDepth()) { children = hierarchy.getChildMembers(children); } return toVector(children); } })); if (false) define(new FunDefBase("Distinct", "Distinct(<Set>)", "Eliminates duplicate tuples from a set.", "fxx")); define(new MultiResolver("DrilldownLevel", "DrilldownLevel(<Set>[, <Level>]) or DrilldownLevel(<Set>, , <Index>)", "Drills down the members of a set, at a specified level, to one level below. Alternatively, drills down on a specified dimension in the set.", new String[]{"fxx", "fxxl"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { //todo add fssl functionality Vector set0 = (Vector) getArg(evaluator, args, 0); int[] depthArray = new int[set0.size()]; Vector drilledSet = new Vector(); for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); depthArray[i] = member.getDepth(); // Object o0 = set0.elementAt(i); // depthVector.addElement(new Object[] {o0}); } Arrays.sort(depthArray); int maxDepth = depthArray[depthArray.length - 1]; for (int i = 0, m = set0.size(); i < m; i++) { Member member = (Member) set0.elementAt(i); drilledSet.addElement(member); if (member.getDepth() == maxDepth) { Member[] childMembers = member.getMemberChildren(); for (int j = 0; j < childMembers.length; j++) { drilledSet.addElement(childMembers[j]); } } } return drilledSet; } } )); if (false) define(new FunDefBase("DrilldownLevelBottom", "DrilldownLevelBottom(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the bottom N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownLevelTop", "DrilldownLevelTop(<Set>, <Count>[, [<Level>][, <Numeric Expression>]])", "Drills down the top N members of a set, at a specified level, to one level below.", "fx*")); if (false) define(new FunDefBase("DrilldownMember", "DrilldownMember(<Set1>, <Set2>[, RECURSIVE])", "Drills down the members in a set that are present in a second specified set.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberBottom", "DrilldownMemberBottom(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the bottom N children.", "fx*")); if (false) define(new FunDefBase("DrilldownMemberTop", "DrilldownMemberTop(<Set1>, <Set2>, <Count>[, [<Numeric Expression>][, RECURSIVE]])", "Like DrilldownMember except that it includes only the top N children.", "fx*")); if (false) define(new FunDefBase("DrillupLevel", "DrillupLevel(<Set>[, <Level>])", "Drills up the members of a set that are below a specified level.", "fx*")); if (false) define(new FunDefBase("DrillupMember", "DrillupMember(<Set1>, <Set2>)", "Drills up the members in a set that are present in a second specified set.", "fx*")); define(new MultiResolver( "Except", "Except(<Set1>, <Set2>[, ALL])", "Finds the difference between two sets, optionally retaining duplicates.", new String[]{"fxxx", "fxxxs"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { // todo: implement ALL HashSet set2 = toHashSet((Vector) getArg(evaluator, args, 1)); Vector set1 = (Vector) getArg(evaluator, args, 0); Vector result = new Vector(); for (int i = 0, count = set1.size(); i < count; i++) { Object o = set1.elementAt(i); if (!set2.contains(o)) { result.addElement(o); } } return result; } })); if (false) define(new FunDefBase("Extract", "Extract(<Set>, <Dimension>[, <Dimension>...])", "Returns a set of tuples from extracted dimension elements. The opposite of Crossjoin.", "fx*")); define(new FunDefBase("Filter", "Filter(<Set>, <Search Condition>)", "Returns the set resulting from filtering a set based on a search condition.", "fxxb") { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); Exp exp = args[1]; Vector result = new Vector(); Evaluator evaluator2 = evaluator.push(); for (int i = 0, count = members.size(); i < count; i++) { Object o = members.elementAt(i); if (o instanceof Member) { evaluator2.setContext((Member) o); } else if (o instanceof Member[]) { evaluator2.setContext((Member[]) o); } else { throw Util.newInternal( "unexpected type in set: " + o.getClass()); } Boolean b = (Boolean) exp.evaluateScalar(evaluator2); if (b.booleanValue()) { result.add(o); } } return result; } /** * Make sure that slicer is in force when expression is applied * on axis, E.g. select filter([Customers].members, [Unit Sales] > 100) * from sales where ([Time].[1998]) **/ public void testFilterWithSilcer(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " filter([Customers].[USA].children," + nl + " [Measures].[Unit Sales] > 20000) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Axis rows = result.getAxes()[1]; // if slicer were ignored, there would be 3 rows test.assertEquals(1, rows.positions.length); Cell cell = result.getCell(new int[] {0,0}); test.assertEquals("30,114.00", cell.getFormattedValue()); } public void testFilterCompound(FoodMartTestCase test) { Result result = test.execute( "select {[Measures].[Unit Sales]} on columns," + nl + " Filter(" + nl + " CrossJoin(" + nl + " [Gender].Children," + nl + " [Customers].[USA].Children)," + nl + " [Measures].[Unit Sales] > 9500) on rows" + nl + "from Sales" + nl + "where ([Time].[1997].[Q1])"); Position[] rows = result.getAxes()[1].positions; test.assertTrue(rows.length == 3); test.assertEquals("F", rows[0].members[0].getName()); test.assertEquals("WA", rows[0].members[1].getName()); test.assertEquals("M", rows[1].members[0].getName()); test.assertEquals("OR", rows[1].members[1].getName()); test.assertEquals("M", rows[2].members[0].getName()); test.assertEquals("WA", rows[2].members[1].getName()); } }); if (false) define(new FunDefBase("Generate", "Generate(<Set1>, <Set2>[, ALL])", "Applies a set to each member of another set and joins the resulting sets by union.", "fx*")); if (false) define(new FunDefBase("Head", "Head(<Set>[, < Numeric Expression >])", "Returns the first specified number of elements in a set.", "fx*")); if (false) define(new FunDefBase("Hierarchize", "Hierarchize(<Set>)", "Orders the members of a set in a hierarchy.", "fx*")); if (false) define(new FunDefBase("Intersect", "Intersect(<Set1>, <Set2>[, ALL])", "Returns the intersection of two input sets, optionally retaining duplicates.", "fx*")); if (false) define(new FunDefBase("LastPeriods", "LastPeriods(<Index>[, <Member>])", "Returns a set of members prior to and including a specified member.", "fx*")); define(new FunDefBase("Members", "<Dimension>.Members", "Returns the set of all members in a dimension.", "pxd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = (Dimension) getArg(evaluator, args, 0); Hierarchy hierarchy = dimension.getHierarchy(); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Hierarchy>.Members", "Returns the set of all members in a hierarchy.", "pxh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = (Hierarchy) getArg(evaluator, args, 0); return addMembers(new Vector(), hierarchy); } }); define(new FunDefBase("Members", "<Level>.Members", "Returns the set of all members in a level.", "pxl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = (Level) getArg(evaluator, args, 0); return toVector(level.getMembers()); } }); define(new MultiResolver( "Mtd", "Mtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Month.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getMonthLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new MultiResolver( "Order", "Order(<Set>, <Value Expression>[, ASC | DESC | BASC | BDESC])", "Arranges members of a set, optionally preserving or breaking the hierarchy.", new String[]{"fxxvy", "fxxv"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); String order = (String) getArg(evaluator, args, 2, "ASC"); sort( evaluator, members, exp, order.equals("DESC") || order.equals("BDESC"), order.equals("BASC") || order.equals("BDESC")); return members; } })); define(new MultiResolver( "PeriodsToDate", "PeriodsToDate([<Level>[, <Member>]])", "Returns a set of periods (members) from a specified level starting with the first period and ending with a specified member.", new String[]{"fx", "fxl", "fxlm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, false); Member member = getMemberArg(evaluator, args, 1, false); return periodsToDate(evaluator, level, member); } })); define(new MultiResolver( "Qtd", "Qtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Quarter.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getQuarterLevel(), getMemberArg(evaluator, args, 0, false)); } })); if (false) define(new FunDefBase("StripCalculatedMembers", "StripCalculatedMembers(<Set>)", "Removes calculated members from a set.", "fx*")); define(new FunDefBase("StrToSet", "StrToSet(<String Expression>)", "Constructs a set from a string expression.", "fxS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToSet(s, <Hie1>, ... <HieN>) is of type [Hie1] x ... x [HieN]; // so, for example, So StrToTuple("[Time].[1997]", [Time]) is of type // [Time]. But if n > 1, we cannot represent the compound type, and we // return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); if (false) define(new FunDefBase("Subset", "Subset(<Set>, <Start>[, <Count>])", "Returns a subset of elements from a set.", "fx*")); if (false) define(new FunDefBase("Tail", "Tail(<Set>[, <Count>])", "Returns a subset from the end of a set.", "fx*")); define(new MultiResolver( "ToggleDrillState", "ToggleDrillState(<Set1>, <Set2>[, RECURSIVE])", "Toggles the drill state of members. This function is a combination of DrillupMember and DrilldownMember.", new String[]{"fxxx", "fxxx#"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector v0 = (Vector) getArg(evaluator, args, 0), v1 = (Vector) getArg(evaluator, args, 1); if (args.length > 2) { throw Util.newInternal( "ToggleDrillState(RECURSIVE) not supported"); } if (v1.isEmpty()) { return v0; } HashSet set1 = toHashSet(v1); Vector result = new Vector(); int i = 0, n = v0.size(); while (i < n) { Member m = (Member) v0.elementAt(i++); result.addElement(m); if (!set1.contains(m)) { continue; } boolean isDrilledDown = false; if (i < n) { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { isDrilledDown = true; } } if (isDrilledDown) { // skip descendants of this member do { Member next = (Member) v0.elementAt(i); boolean strict = true; if (isAncestorOf(m, next, strict)) { i++; } else { break; } } while (i < n); } else { Member[] children = m.getMemberChildren(); for (int j = 0; j < children.length; j++) { result.addElement(children[j]); } } } return result; } public void testToggleDrillState(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState({[Customers].[USA],[Customers].[Canada]},{[Customers].[USA],[Customers].[USA].[CA]})"); String expected = "[Customers].[All Customers].[USA]" + nl + "[Customers].[All Customers].[USA].[CA]" + nl + "[Customers].[All Customers].[USA].[OR]" + nl + "[Customers].[All Customers].[USA].[WA]" + nl + "[Customers].[All Customers].[Canada]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState2(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState([Product].[Product Department].members, {[Product].[All Products].[Food].[Snack Foods]})"); String expected = "[Product].[All Products].[Drink].[Alcoholic Beverages]" + nl + "[Product].[All Products].[Drink].[Beverages]" + nl + "[Product].[All Products].[Drink].[Dairy]" + nl + "[Product].[All Products].[Food].[Baked Goods]" + nl + "[Product].[All Products].[Food].[Baking Goods]" + nl + "[Product].[All Products].[Food].[Breakfast Foods]" + nl + "[Product].[All Products].[Food].[Canned Foods]" + nl + "[Product].[All Products].[Food].[Canned Products]" + nl + "[Product].[All Products].[Food].[Dairy]" + nl + "[Product].[All Products].[Food].[Deli]" + nl + "[Product].[All Products].[Food].[Eggs]" + nl + "[Product].[All Products].[Food].[Frozen Foods]" + nl + "[Product].[All Products].[Food].[Meat]" + nl + "[Product].[All Products].[Food].[Produce]" + nl + "[Product].[All Products].[Food].[Seafood]" + nl + "[Product].[All Products].[Food].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snack Foods].[Snack Foods]" + nl + "[Product].[All Products].[Food].[Snacks]" + nl + "[Product].[All Products].[Food].[Starchy Foods]" + nl + "[Product].[All Products].[Non-Consumable].[Carousel]" + nl + "[Product].[All Products].[Non-Consumable].[Checkout]" + nl + "[Product].[All Products].[Non-Consumable].[Health and Hygiene]" + nl + "[Product].[All Products].[Non-Consumable].[Household]" + nl + "[Product].[All Products].[Non-Consumable].[Periodicals]"; test.assertEquals(expected, test.toString(axis.positions)); } public void testToggleDrillState3(FoodMartTestCase test) { Axis axis = test.executeAxis2( "ToggleDrillState(" + "{[Time].[1997].[Q1]," + " [Time].[1997].[Q2]," + " [Time].[1997].[Q2].[4]," + " [Time].[1997].[Q2].[6]," + " [Time].[1997].[Q3]}," + "{[Time].[1997].[Q2]})"); String expected = "[Time].[1997].[Q1]" + nl + "[Time].[1997].[Q2]" + nl + "[Time].[1997].[Q3]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new MultiResolver( "TopCount", "TopCount(<Set>, <Count>[, <Numeric Expression>])", "Returns a specified number of items from the top of a set, optionally ordering the set first.", new String[]{"fxxnN", "fxxn"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector set = (Vector) getArg(evaluator, args, 0); int n = getIntArg(evaluator, args, 1); ExpBase exp = (ExpBase) getArg(evaluator, args, 2, null); if (exp != null) { boolean desc = true, brk = true; sort(evaluator, set, exp, desc, brk); } if (n < set.size()) { set.setSize(n); } return set; } public void testTopCount(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopCount({[Promotion Media].[Media Type].members}, 2, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]" + nl + "[Promotion Media].[All Promotion Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); define(new MultiResolver( "TopPercent", "TopPercent(<Set>, <Percentage>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified percentage.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, true, n.doubleValue()); } public void testTopPercent(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopPercent({[Promotion Media].[Media Type].members}, 70, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]"; test.assertEquals(expected, test.toString(axis.positions)); } //todo: test precision })); define(new MultiResolver( "TopSum", "TopSum(<Set>, <Value>, <Numeric Expression>)", "Sorts a set and returns the top N elements whose cumulative total is at least a specified value.", new String[]{"fxxnN"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 2); Double n = getDoubleArg(evaluator, args, 1); return topOrBottom(evaluator.push(), members, exp, true, false, n.doubleValue()); } public void testTopSum(FoodMartTestCase test) { Axis axis = test.executeAxis2( "TopSum({[Promotion Media].[Media Type].members}, 200000, [Measures].[Unit Sales])"); String expected = "[Promotion Media].[All Promotion Media].[No Media]" + nl + "[Promotion Media].[All Promotion Media].[Daily Paper, Radio, TV]"; test.assertEquals(expected, test.toString(axis.positions)); } })); if (false) define(new FunDefBase("Union", "Union(<Set1>, <Set2>[, ALL])", "Returns the union of two sets, optionally retaining duplicates.", "fx*")); if (false) define(new FunDefBase("VisualTotals", "VisualTotals(<Set>, <Pattern>)", "Dynamically totals child members specified in a set using a pattern for the total label in the result set.", "fx*")); define(new MultiResolver( "Wtd", "Wtd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Week.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getWeekLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new MultiResolver( "Ytd", "Ytd([<Member>])", "A shortcut function for the PeriodsToDate function that specifies the level to be Year.", new String[]{"fx", "fxm"}, new FunkBase() { public Object evaluate(Evaluator evaluator, Exp[] args) { return periodsToDate( evaluator, evaluator.getCube().getYearLevel(), getMemberArg(evaluator, args, 0, false)); } })); define(new FunDefBase(":", "<Member>:<Member>", "Infix colon operator returns the set of members between a given pair of members.", "ixmm")); // special resolver for the "{...}" operator define(new ResolverBase( "{}", "{<Member> [, <Member>]...}", "Brace operator constructs a set.", FunDef.TypeBraces) { protected FunDef resolve(Exp[] args, int[] conversionCount) { int[] parameterTypes = new int[args.length]; for (int i = 0; i < args.length; i++) { if (canConvert( args[i], Exp.CatMember, conversionCount)) { parameterTypes[i] = Exp.CatMember; continue; } if (canConvert( args[i], Exp.CatSet, conversionCount)) { parameterTypes[i] = Exp.CatSet; continue; } if (canConvert( args[i], Exp.CatTuple, conversionCount)) { parameterTypes[i] = Exp.CatTuple; continue; } return null; } return new SetFunDef(this, syntacticType, parameterTypes); } public void testSetContainingLevelFails(FoodMartTestCase test) { test.assertAxisThrows( "[Store].[Store City]", "no function matches signature '{<Level>}'"); } }); // // STRING FUNCTIONS define(new FunDefBase("IIf", "IIf(<Logical Expression>, <String Expression1>, <String Expression2>)", "Returns one of two string values determined by a logical test.", "f#b##") { public Object evaluate(Evaluator evaluator, Exp[] args) { boolean logical = getBooleanArg(evaluator, args, 0); return getStringArg(evaluator, args, logical ? 1 : 2, null); } public void testIIf(FoodMartTestCase test) { String s = test.executeExpr( "IIf(([Measures].[Unit Sales],[Product].[Drink].[Alcoholic Beverages].[Beer and Wine]) > 100, \"Yes\",\"No\")"); test.assertEquals("Yes", s); } }); define(new FunDefBase("Name", "<Dimension>.Name", "Returns the name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getName(); } public void testDimensionName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Dimension.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Hierarchy>.Name", "Returns the name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getName(); } public void testHierarchyName(FoodMartTestCase test) { String s = test.executeExpr( "[Time].[1997].Hierarchy.Name"); test.assertEquals("Time", s); } }); define(new FunDefBase("Name", "<Level>.Name", "Returns the name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getName(); } public void testLevelName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Level.Name"); test.assertEquals("Year", s); } }); define(new FunDefBase("Name", "<Member>.Name", "Returns the name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getName(); } public void testMemberName(FoodMartTestCase test) { String s = test.executeExpr("[Time].[1997].Name"); test.assertEquals("1997", s); } }); define(new FunDefBase("SetToStr", "SetToStr(<Set>)", "Constructs a string from a set.", "fSx")); define(new FunDefBase("TupleToStr", "TupleToStr(<Tuple>)", "Constructs a string from a tuple.", "fSt")); define(new FunDefBase("UniqueName", "<Dimension>.UniqueName", "Returns the unique name of a dimension.", "pSd") { public Object evaluate(Evaluator evaluator, Exp[] args) { Dimension dimension = getDimensionArg(evaluator, args, 0, true); return dimension.getUniqueName(); } public void testDimensionUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Dimension.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Hierarchy>.UniqueName", "Returns the unique name of a hierarchy.", "pSh") { public Object evaluate(Evaluator evaluator, Exp[] args) { Hierarchy hierarchy = getHierarchyArg(evaluator, args, 0, true); return hierarchy.getUniqueName(); } public void testHierarchyUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Hierarchy.UniqueName"); test.assertEquals("[Gender]", s); } }); define(new FunDefBase("UniqueName", "<Level>.UniqueName", "Returns the unique name of a level.", "pSl") { public Object evaluate(Evaluator evaluator, Exp[] args) { Level level = getLevelArg(evaluator, args, 0, true); return level.getUniqueName(); } public void testLevelUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.Level.UniqueName"); test.assertEquals("[Gender].[(All)]", s); } }); define(new FunDefBase("UniqueName", "<Member>.UniqueName", "Returns the unique name of a member.", "pSm") { public Object evaluate(Evaluator evaluator, Exp[] args) { Member member = getMemberArg(evaluator, args, 0, true); return member.getUniqueName(); } public void testMemberUniqueName(FoodMartTestCase test) { String s = test.executeExpr( "[Gender].DefaultMember.UniqueName"); test.assertEquals("[Gender].[All Genders]", s); } public void testMemberUniqueNameOfNull(FoodMartTestCase test) { String s = test.executeExpr( "[Measures].[Unit Sales].FirstChild.UniqueName"); test.assertEquals("[Measures].[#Null]", s); // MSOLAP gives "" here } }); // // TUPLE FUNCTIONS define(new FunDefBase("Current", "<Set>.Current", "Returns the current tuple from a set during an iteration.", "ptx")); if (false) define(new FunDefBase("Item", "<Set>.Item(<String Expression>[, <String Expression>...] | <Index>)", "Returns a tuple from a set.", "mt*")); define(new FunDefBase("StrToTuple", "StrToTuple(<String Expression>)", "Constructs a tuple from a string.", "ftS") { public void unparse(Exp[] args, PrintWriter pw, ElementCallback callback) { if (callback.isPlatoMdx()) { // omit extra args (they're for us, not Plato) super.unparse(new Exp[]{args[0]}, pw, callback); } else { super.unparse(args, pw, callback); } } public Hierarchy getHierarchy(Exp[] args) { // StrToTuple(s, <Hie1>, ... <HieN>) is of type [Hie1] x // ... x [HieN]; so, for example, So // StrToTuple("[Time].[1997]", [Time]) is of type [Time]. // But if n > 1, we cannot represent the compound type, and // we return null. return (args.length == 2) ? (Hierarchy) args[1] : null; } }); // special resolver for "()" define(new ResolverBase("()", null, null, FunDef.TypeParentheses) { public FunDef resolve(Exp[] args, int[] conversionCount) { // Compare with TupleFunDef.getReturnType(). For example, // ([Gender].members) is a set, // ([Gender].[M]) is a member, // (1 + 2) is a numeric, // but // ([Gender].[M], [Marital Status].[S]) is a tuple. if (args.length == 1) { return new ParenthesesFunDef(args[0].getType()); } else { return new TupleFunDef(ExpBase.getTypes(args)); } } }); // // GENERIC VALUE FUNCTIONS define(new ResolverBase( "CoalesceEmpty", "CoalesceEmpty(<Value Expression>[, <Value Expression>]...)", "Coalesces an empty cell value to a different value. All of the expressions must be of the same type (number or string).", FunDef.TypeFunction) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } final int[] types = {Exp.CatNumeric, Exp.CatString}; for (int j = 0; j < types.length; j++) { int type = types[j]; int matchingArgs = 0; conversionCount[0] = 0; for (int i = 0; i < args.length; i++) { if (canConvert(args[i], type, conversionCount)) { matchingArgs++; } } if (matchingArgs == args.length) { return new FunDefBase( this, FunDef.TypeFunction, type, ExpBase.getTypes(args)); } } return null; } }); define(new ResolverBase( "_CaseTest", "Case When <Logical Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various conditions, and returns the corresponding expression for the first which evaluates to true.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 1) { return null; } int j = 0, clauseCount = args.length / 2, mismatchingArgs = 0; int returnType = args[1].getType(); for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], Exp.CatLogical, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseTest(evaluator, args); } }; } else { return null; } } Object evaluateCaseTest(Evaluator evaluator, Exp[] args) { int clauseCount = args.length / 2, j = 0; for (int i = 0; i < clauseCount; i++) { boolean logical = getBooleanArg(evaluator, args, j++); if (logical) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseTestMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" WHEN 1=1 THEN \"second\" WHEN 1=2 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseTestMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseTestMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE WHEN 1=0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "_CaseMatch", "Case <Expression> When <Expression> Then <Expression> [...] [Else <Expression>] End", "Evaluates various expressions, and returns the corresponding expression for the first which matches a particular value.", FunDef.TypeCase) { protected FunDef resolve(Exp[] args, int[] conversionCount) { if (args.length < 3) { return null; } int valueType = args[0].getType(); int returnType = args[2].getType(); int j = 0, clauseCount = (args.length - 1) / 2, mismatchingArgs = 0; if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } for (int i = 0; i < clauseCount; i++) { if (!canConvert(args[j++], valueType, conversionCount)) { mismatchingArgs++; } if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } if (j < args.length) { if (!canConvert(args[j++], returnType, conversionCount)) { mismatchingArgs++; } } Util.assertTrue(j == args.length); if (mismatchingArgs == 0) { return new FunDefBase( this, FunDef.TypeFunction, returnType, ExpBase.getTypes(args)) { // implement FunDef public Object evaluate(Evaluator evaluator, Exp[] args) { return evaluateCaseMatch(evaluator, args); } }; } else { return null; } } Object evaluateCaseMatch(Evaluator evaluator, Exp[] args) { int clauseCount = (args.length - 1)/ 2, j = 0; Object value = getArg(evaluator, args, j++); for (int i = 0; i < clauseCount; i++) { Object match = getArg(evaluator, args, j++); if (match.equals(value)) { return getArg(evaluator, args, j); } else { j++; } } if (j < args.length) { return getArg(evaluator, args, j); // ELSE } else { return null; } } public void testCaseMatch(FoodMartTestCase test) { String s = test.executeExpr( "CASE 2 WHEN 1 THEN \"first\" WHEN 2 THEN \"second\" WHEN 3 THEN \"third\" ELSE \"fourth\" END"); test.assertEquals("second", s); } public void testCaseMatchElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 7 WHEN 1 THEN \"first\" ELSE \"fourth\" END"); test.assertEquals("fourth", s); } public void testCaseMatchNoElse(FoodMartTestCase test) { String s = test.executeExpr( "CASE 8 WHEN 0 THEN \"first\" END"); test.assertEquals("(null)", s); } }); define(new ResolverBase( "Properties", "<Member>.Properties(<String Expression>)", "Returns the value of a member property.", FunDef.TypeMethod) { public FunDef resolve(Exp[] args, int[] conversionCount) { final int[] argTypes = new int[]{Exp.CatMember, Exp.CatString | Exp.CatExpression}; if (args.length != 2 || args[0].getType() != Exp.CatMember || args[1].getType() != Exp.CatString) { return null; } int returnType; if (args[1] instanceof Literal) { String propertyName = (String) ((Literal) args[1]).getValue(); Hierarchy hierarchy = args[0].getHierarchy(); Level[] levels = hierarchy.getLevels(); Property property = lookupProperty( levels[levels.length - 1], propertyName); if (property == null) { // we'll likely get a runtime error returnType = Exp.CatValue; } else { switch (property.getType()) { case Property.TYPE_BOOLEAN: returnType = Exp.CatLogical; break; case Property.TYPE_NUMERIC: returnType = Exp.CatNumeric; break; case Property.TYPE_STRING: returnType = Exp.CatString; break; default: throw Util.newInternal("Unknown property type " + property.getType()); } } } else { returnType = Exp.CatValue; } return new PropertiesFunDef(name, signature, description, syntacticType, returnType, argTypes); } public void testPropertiesExpr(FoodMartTestCase test) { String s = test.executeExpr( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Store Type\")"); test.assertEquals("Gourmet Supermarket", s); } /** Tests that non-existent property throws an error. **/ public void testPropertiesNonExistent(FoodMartTestCase test) { test.assertExprThrows( "[Store].[USA].[CA].[Beverly Hills].[Store 6].Properties(\"Foo\")", "Property 'Foo' is not valid for"); } public void testPropertiesFilter(FoodMartTestCase test) { Result result = test.execute( "SELECT { [Store Sales] } ON COLUMNS," + nl + " TOPCOUNT( Filter( [Store].[Store Name].Members," + nl + " [Store].CurrentMember.Properties(\"Store Type\") = \"Supermarket\" )," + nl + " 10, [Store Sales]) ON ROWS" + nl + "FROM [Sales]"); test.assertEquals(8, result.getAxes()[1].positions.length); } public void testPropertyInCalculatedMember(FoodMartTestCase test) { Result result = test.execute( "WITH MEMBER [Measures].[Store Sales per Sqft]" + nl + "AS '[Measures].[Store Sales] / " + " [Store].CurrentMember.Properties(\"Store Sqft\")'" + nl + "SELECT " + nl + " {[Measures].[Unit Sales], [Measures].[Store Sales per Sqft]} ON COLUMNS," + nl + " {[Store].[Store Name].members} ON ROWS" + nl + "FROM Sales"); Member member; Cell cell; member = result.getAxes()[1].positions[17].members[0]; test.assertEquals("[Store].[All Stores].[USA].[WA].[Bellingham].[Store 2]", member.getUniqueName()); cell = result.getCell(new int[] {0,17}); test.assertEquals("2237.0", cell.getFormattedValue()); cell = result.getCell(new int[] {1,17}); test.assertEquals("0.16802205204566403", cell.getFormattedValue()); member = result.getAxes()[1].positions[3].members[0]; test.assertEquals("[Store].[All Stores].[Mexico].[DF].[San Andres].[Store 21]", member.getUniqueName()); cell = result.getCell(new int[] {0,3}); test.assertEquals("(null)", cell.getFormattedValue()); cell = result.getCell(new int[] {1,3}); test.assertEquals("NaN", cell.getFormattedValue()); } }); // // PARAMETER FUNCTIONS if (false) define(new FunDefBase("Parameter", "Parameter(<Name>, <Type>, <DefaultValue>, <Description>)", "Returns default value of parameter.", "f*")); if (false) define(new FunDefBase("ParamRef", "ParamRef(<Name>)", "Returns current value of parameter. If it's null, returns default.", "f*")); // // OPERATORS define(new FunDefBase("+", "<Numeric Expression> + <Numeric Expression>", "Adds two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() + o1.doubleValue()); } public void testPlus(FoodMartTestCase test) { String s = test.executeExpr("1+2"); test.assertEquals("3.0", s); } }); define(new FunDefBase("-", "<Numeric Expression> - <Numeric Expression>", "Subtracts two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() - o1.doubleValue()); } public void testMinus(FoodMartTestCase test) { String s = test.executeExpr("1-3"); test.assertEquals("-2.0", s); } public void testMinusAssociativity(FoodMartTestCase test) { String s = test.executeExpr("11-7-5"); // right-associative would give 11-(7-5) = 9, which is wrong test.assertEquals("-1.0", s); } }); define(new FunDefBase("*", "<Numeric Expression> * <Numeric Expression>", "Multiplies two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return new Double(o0.doubleValue() * o1.doubleValue()); } public void testMultiply(FoodMartTestCase test) { String s = test.executeExpr("4*7"); test.assertEquals("28.0", s); } public void testMultiplyPrecedence(FoodMartTestCase test) { String s = test.executeExpr("3 + 4 * 5 + 6"); test.assertEquals("29.0", s); } }); define(new FunDefBase("/", "<Numeric Expression> / <Numeric Expression>", "Divides two numbers.", "innn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); Double result = new Double(o0.doubleValue() / o1.doubleValue()); return result; } // todo: use this, via reflection public double evaluate(double d1, double d2) { return d1 / d2; } public void testDivide(FoodMartTestCase test) { String s = test.executeExpr("10 / 5"); test.assertEquals("2.0", s); } public void testDivideByZero(FoodMartTestCase test) { String s = test.executeExpr("-3 / (2 - 2)"); test.assertEquals("-Infinity", s); } public void testDividePrecedence(FoodMartTestCase test) { String s = test.executeExpr("24 / 4 / 2 * 10 - -1"); test.assertEquals("31.0", s); } }); define(new FunDefBase("-", "- <Numeric Expression>", "Returns the negative of a number.", "Pnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0); return new Double(- o0.doubleValue()); } public void testUnaryMinus(FoodMartTestCase test) { String s = test.executeExpr("-3"); test.assertEquals("-3.0", s); } public void testUnaryMinusMember(FoodMartTestCase test) { String s = test.executeExpr("- ([Measures].[Unit Sales],[Gender].[F])"); test.assertEquals("-131558.0", s); } public void testUnaryMinusPrecedence(FoodMartTestCase test) { String s = test.executeExpr("1 - -10.5 * 2 -3"); test.assertEquals("19.0", s); } }); define(new FunDefBase("||", "<String Expression> || <String Expression>", "Concatenates two strings.", "iSSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return o0 + o1; } public void testStringConcat(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || \"bar\" "); test.assertEquals("foobar", s); } public void testStringConcat2(FoodMartTestCase test) { String s = test.executeExpr(" \"foo\" || [Gender].[M].Name || \"\" "); test.assertEquals("fooM", s); } }); define(new FunDefBase("AND", "<Logical Expression> AND <Logical Expression>", "Returns the conjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean( getBooleanArg(evaluator, args, 0) && getBooleanArg(evaluator, args, 1)); } public void testAnd(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=2 "); test.assertEquals("true", s); } public void testAnd2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 2=0 "); test.assertEquals("false", s); } }); define(new FunDefBase("OR", "<Logical Expression> OR <Logical Expression>", "Returns the disjunction of two conditions.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { // Only evaluate 2nd if first is false. return toBoolean( getBooleanArg(evaluator, args, 0) || getBooleanArg(evaluator, args, 1)); } public void testOr(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 2=0 "); test.assertEquals("false", s); } public void testOr2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=0 OR 0=0 "); test.assertEquals("true", s); } public void testOrAssociativity1(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND 1=0 OR 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity2(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 OR 1=0 AND 1=1 "); // Would give 'false' if OR were stronger than AND (wrong!) test.assertEquals("true", s); } public void testOrAssociativity3(FoodMartTestCase test) { String s = test.executeBooleanExpr(" (1=0 OR 1=1) AND 1=1 "); test.assertEquals("true", s); } }); define(new FunDefBase("XOR", "<Logical Expression> XOR <Logical Expression>", "Returns whether two conditions are mutually exclusive.", "ibbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { final boolean b0 = getBooleanArg(evaluator, args, 0); final boolean b1 = getBooleanArg(evaluator, args, 1); return toBoolean(b0 != b1); } public void testXor(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 XOR 2=2 "); test.assertEquals("false", s); } public void testXorAssociativity(FoodMartTestCase test) { // Would give 'false' if XOR were stronger than AND (wrong!) String s = test.executeBooleanExpr(" 1 = 1 AND 1 = 1 XOR 1 = 0 "); test.assertEquals("true", s); } }); define(new FunDefBase("NOT", "NOT <Logical Expression>", "Returns the negation of a condition.", "Pbb") { public Object evaluate(Evaluator evaluator, Exp[] args) { return toBoolean(!getBooleanArg(evaluator, args, 0)); } public void testNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT 1=1 "); test.assertEquals("false", s); } public void testNotNot(FoodMartTestCase test) { String s = test.executeBooleanExpr(" NOT NOT 1=1 "); test.assertEquals("true", s); } public void testNotAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1=1 AND NOT 1=1 OR NOT 1=1 AND 1=1 "); test.assertEquals("false", s); } }); define(new FunDefBase("=", "<String Expression> = <String Expression>", "Returns whether two expressions are equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(o0.equals(o1)); } public void testStringEquals(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"bar\" "); test.assertEquals("false", s); } public void testStringEqualsAssociativity(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" = \"fo\" || \"o\" "); test.assertEquals("true", s); } public void testStringEqualsEmpty(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"\" = \"\" "); test.assertEquals("true", s); } }); define(new FunDefBase("=", "<Numeric Expression> = <Numeric Expression>", "Returns whether two expressions are equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.equals(o1)); } public void testEq(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 1.0 = 1 "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<String Expression> <> <String Expression>", "Returns whether two expressions are not equal.", "ibSS") { public Object evaluate(Evaluator evaluator, Exp[] args) { String o0 = getStringArg(evaluator, args, 0, null), o1 = getStringArg(evaluator, args, 1, null); return toBoolean(!o0.equals(o1)); } public void testStringNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" \"foo\" <> \"bar\" "); test.assertEquals("true", s); } }); define(new FunDefBase("<>", "<Numeric Expression> <> <Numeric Expression>", "Returns whether two expressions are not equal.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(!o0.equals(o1)); } public void testNe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <> 1.0 + 1.0 "); test.assertEquals("false", s); } public void testNeInfinity(FoodMartTestCase test) { String s = test.executeBooleanExpr("(1 / 0) <> (1 / 0)"); // Infinity does not equal itself test.assertEquals("false", s); } }); define(new FunDefBase("<", "<Numeric Expression> < <Numeric Expression>", "Returns whether an expression is less than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) < 0); } public void testLt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 < 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase("<=", "<Numeric Expression> <= <Numeric Expression>", "Returns whether an expression is less than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) <= 0); } public void testLe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 <= 1.0 + 1.0 "); test.assertEquals("true", s); } }); define(new FunDefBase(">", "<Numeric Expression> > <Numeric Expression>", "Returns whether an expression is greater than another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) > 0); } public void testGt(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); define(new FunDefBase(">=", "<Numeric Expression> >= <Numeric Expression>", "Returns whether an expression is greater than or equal to another.", "ibnn") { public Object evaluate(Evaluator evaluator, Exp[] args) { Double o0 = getDoubleArg(evaluator, args, 0), o1 = getDoubleArg(evaluator, args, 1); return toBoolean(o0.compareTo(o1) >= 0); } public void testGe(FoodMartTestCase test) { String s = test.executeBooleanExpr(" 2 > 1.0 + 1.0 "); test.assertEquals("false", s); } }); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/a99d355f461b0b321c9fb36c2ea44764ce9dfb05/BuiltinFunTable.java/clean/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4426, 7503, 1435, 288, 202, 202, 759, 1122, 1149, 30, 293, 33, 1396, 16, 312, 33, 1305, 16, 277, 33, 382, 904, 16, 453, 33, 2244, 202, 202, 759, 576, 4880, 30, 202, 202, 759, 14884, 13690, 55, 202, 202, 430, 261, 5743, 13, 4426, 12, 2704, 478, 318, 3262, 2171, 2932, 694, 11698, 3113, 315, 694, 11698, 12, 32, 694, 23224, 16, 411, 694, 34, 65, 2777, 63, 16, 411, 9902, 5371, 34, 65, 2225, 16, 315, 5692, 1245, 578, 1898, 1678, 358, 392, 526, 364, 999, 316, 279, 729, 17, 430, 261, 5743, 13, 2553, 445, 1199, 16, 315, 507, 7388, 10019, 202, 202, 759, 202, 202, 759, 463, 3114, 3156, 1146, 13690, 55, 202, 202, 11255, 12, 2704, 478, 318, 3262, 2171, 2932, 8611, 3113, 3532, 12074, 18652, 8611, 3113, 315, 1356, 326, 4968, 716, 1914, 279, 1269, 9360, 1199, 16, 315, 84, 19153, 7923, 288, 1082, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 9506, 202, 12074, 9360, 273, 7628, 6000, 4117, 12, 14168, 639, 16, 833, 16, 374, 16, 638, 1769, 9506, 202, 2463, 9360, 18, 588, 8611, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 759, 14646, 44, 361, 358, 527, 333, 358, 336, 411, 12074, 18652, 8611, 358, 1440, 35, 202, 202, 11255, 12, 2704, 478, 318, 3262, 2171, 2932, 8611, 3113, 3532, 8611, 18652, 8611, 3113, 315, 1356, 326, 4968, 716, 1914, 279, 1269, 9360, 1199, 16, 315, 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, 1117, 918, 4426, 7503, 1435, 288, 202, 202, 759, 1122, 1149, 30, 293, 33, 1396, 16, 312, 33, 1305, 16, 277, 33, 382, 904, 16, 453, 33, 2244, 202, 202, 759, 576, 4880, 30, 202, 202, 759, 14884, 13690, 55, 202, 202, 430, 261, 5743, 13, 4426, 12, 2704, 478, 318, 3262, 2171, 2932, 694, 11698, 3113, 315, 694, 11698, 12, 32, 694, 23224, 16, 411, 694, 34, 65, 2777, 63, 16, 411, 9902, 5371, 34, 65, 2225, 16, 315, 5692, 1245, 578, 1898, 1678, 358, 392, 526, 364, 999, 316, 279, 729, 17, 430, 261, 5743, 13, 2553, 445, 1199, 16, 315, 507, 7388, 10019, 202, 202, 759, 202, 202, 759, 463, 3114, 3156, 1146, 13690, 2 ]
if (w != 0 && h != 0)
if (width != 0 && height != 0)
public void paintEmptySpace(int x, int y, int w, int h, int border, Color backColor, Graphics2D graphics) { if (w != 0 && h != 0) { Color saveColor = graphics.getColor(); graphics.setColor(backColor); int[] coords = {x - border, y + border}; int[] bounds = {(int) getScreenSize(w + 2 * border), (int) getScreenSize(h + 2 * border)}; int[] screenCoords = getScreenCoordinates(coords); graphics.fillRect(screenCoords[0], screenCoords[1], bounds[0], bounds[1]); graphics.setColor(saveColor); } // else nothing to make empty }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/91efafae4baed78674b47d82c8ce604ad8155aa7/AbstractRenderer2D.java/buggy/src/org/openscience/cdk/renderer/AbstractRenderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 1921, 3819, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 509, 5795, 16, 1082, 202, 2957, 1473, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261, 91, 480, 374, 597, 366, 480, 374, 13, 202, 202, 95, 1082, 202, 2957, 1923, 2957, 273, 17313, 18, 588, 2957, 5621, 1082, 202, 31586, 18, 542, 2957, 12, 823, 2957, 1769, 1082, 202, 474, 8526, 6074, 273, 288, 92, 300, 5795, 16, 677, 397, 5795, 20451, 1082, 202, 474, 8526, 4972, 273, 288, 12, 474, 13, 22303, 1225, 12, 91, 397, 576, 380, 5795, 3631, 6862, 202, 12, 474, 13, 22303, 1225, 12, 76, 397, 576, 380, 5795, 16869, 31, 1082, 202, 474, 8526, 5518, 13089, 273, 22303, 13431, 12, 9076, 1769, 1082, 202, 31586, 18, 5935, 6120, 12, 9252, 13089, 63, 20, 6487, 5518, 13089, 63, 21, 6487, 6862, 202, 10576, 63, 20, 6487, 4972, 63, 21, 19226, 1082, 202, 31586, 18, 542, 2957, 12, 5688, 2957, 1769, 202, 202, 97, 202, 202, 759, 469, 5083, 358, 1221, 1008, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 12574, 1921, 3819, 12, 474, 619, 16, 509, 677, 16, 509, 341, 16, 509, 366, 16, 509, 5795, 16, 1082, 202, 2957, 1473, 2957, 16, 16830, 22, 40, 17313, 13, 202, 95, 202, 202, 430, 261, 91, 480, 374, 597, 366, 480, 374, 13, 202, 202, 95, 1082, 202, 2957, 1923, 2957, 273, 17313, 18, 588, 2957, 5621, 1082, 202, 31586, 18, 542, 2957, 12, 823, 2957, 1769, 1082, 202, 474, 8526, 6074, 273, 288, 92, 300, 5795, 16, 677, 397, 5795, 20451, 1082, 202, 474, 8526, 4972, 273, 288, 12, 474, 13, 22303, 1225, 12, 91, 397, 576, 380, 5795, 3631, 6862, 202, 12, 474, 13, 22303, 1225, 12, 76, 397, 576, 380, 5795, 2 ]
Object v = p.get(name, start);
Object v = p.getPkgProperty(name, start, false);
public Object get(String name, Scriptable start) { Object result = super.get(name, start); if (result == NOT_FOUND && importedPackages != null) { for (int i=0; i < importedPackages.size(); i++) { Object o = importedPackages.elementAt(i); NativeJavaPackage p = (NativeJavaPackage) o; Object v = p.get(name, start); if (!(v instanceof NativeJavaPackage)) { if (result == NOT_FOUND) result = v; else throw new EvaluatorException("Ambiguous import: " + result + " and " + v); } } } return result; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/4751b9866b26c6a5b283caf805a3e604957fbba9/ImporterTopLevel.java/buggy/js/rhino/src/org/mozilla/javascript/ImporterTopLevel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 508, 16, 22780, 787, 13, 288, 3639, 1033, 563, 273, 2240, 18, 588, 12, 529, 16, 787, 1769, 3639, 309, 261, 2088, 422, 4269, 67, 9294, 597, 9101, 11425, 480, 446, 13, 288, 5411, 364, 261, 474, 277, 33, 20, 31, 277, 411, 9101, 11425, 18, 1467, 5621, 277, 27245, 288, 7734, 1033, 320, 273, 9101, 11425, 18, 2956, 861, 12, 77, 1769, 7734, 16717, 5852, 2261, 293, 273, 261, 9220, 5852, 2261, 13, 320, 31, 7734, 1033, 331, 273, 293, 18, 588, 11264, 1396, 12, 529, 16, 787, 16, 629, 1769, 7734, 309, 16051, 12, 90, 1276, 16717, 5852, 2261, 3719, 288, 10792, 309, 261, 2088, 422, 4269, 67, 9294, 13, 13491, 563, 273, 331, 31, 10792, 469, 7682, 604, 394, 31956, 503, 2932, 30706, 10623, 1930, 30, 315, 397, 4766, 5397, 563, 397, 315, 471, 315, 397, 331, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 327, 563, 31, 2868, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 336, 12, 780, 508, 16, 22780, 787, 13, 288, 3639, 1033, 563, 273, 2240, 18, 588, 12, 529, 16, 787, 1769, 3639, 309, 261, 2088, 422, 4269, 67, 9294, 597, 9101, 11425, 480, 446, 13, 288, 5411, 364, 261, 474, 277, 33, 20, 31, 277, 411, 9101, 11425, 18, 1467, 5621, 277, 27245, 288, 7734, 1033, 320, 273, 9101, 11425, 18, 2956, 861, 12, 77, 1769, 7734, 16717, 5852, 2261, 293, 273, 261, 9220, 5852, 2261, 13, 320, 31, 7734, 1033, 331, 273, 293, 18, 588, 11264, 1396, 12, 529, 16, 787, 16, 629, 1769, 7734, 309, 16051, 12, 90, 1276, 16717, 5852, 2261, 3719, 288, 10792, 309, 261, 2088, 422, 4269, 67, 9294, 13, 13491, 2 ]
private void writeChromosomeFasta(File destinationDirectory, Chromosome chr) throws IOException, IllegalArgumentException, IllegalSymbolException { Sequence chromosomeSequence = chr.getSequence(); FileOutputStream fileStream = new FileOutputStream(chromosomeFastaFile(destinationDirectory, chr)); PrintStream printStream = new PrintStream(fileStream);// using BioJava - too slow!// FlyMineSequence sequence = FlyMineSequenceFactory.make(chr);// if (sequence != null) {// try {// sequence.getAnnotation().setProperty(FastaFormat.PROPERTY_DESCRIPTIONLINE,// chromosomeFileNamePrefix(chr));// } catch (ChangeVetoException e) {// throw new RuntimeException("failed to set a property", e);// }// SeqIOTools.writeFasta(outputStream, sequence);// } printStream.println(">" + chromosomeFileNamePrefix(chr)); String residues = chromosomeSequence.getResidues(); // code from BioJava's FastaFormat class: int length = residues.length(); for (int pos = 0; pos < length; pos += 60) { int end = Math.min(pos + 60, length); printStream.println(residues.substring(pos, end)); } printStream.close(); fileStream.close(); }
7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/e361bdcde99b5acd4d90209ed9daf5eee9ab49c5/WriteGFFTask.java/buggy/flymine/model/genomic/src/java/org/flymine/gbrowse/WriteGFFTask.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 6459, 2626, 30761, 16958, 12305, 69, 12, 812, 10590, 2853, 16, 30761, 16958, 15182, 13, 15069, 14106, 16, 31237, 16, 12195, 5335, 503, 95, 4021, 16298, 16958, 4021, 33, 15182, 18, 588, 4021, 5621, 812, 4632, 768, 1228, 33, 2704, 812, 4632, 12, 16298, 16958, 12305, 69, 812, 12, 10590, 2853, 16, 15182, 10019, 5108, 1228, 1188, 1228, 33, 2704, 5108, 1228, 12, 768, 1228, 1769, 759, 9940, 38, 1594, 5852, 17, 869, 538, 821, 5, 759, 42, 715, 49, 558, 21710, 73, 1890, 33, 42, 715, 49, 558, 4021, 1733, 18, 6540, 12, 15182, 1769, 759, 430, 12, 6178, 5, 33, 2011, 15329, 759, 698, 95, 759, 6178, 18, 588, 3257, 7675, 542, 1396, 12, 12305, 69, 1630, 18, 9900, 67, 15911, 5997, 16, 759, 16298, 16958, 4771, 2244, 12, 15182, 10019, 759, 97, 14683, 12, 3043, 58, 11453, 503, 73, 15329, 759, 12849, 2704, 11949, 2932, 7307, 14627, 278, 438, 303, 824, 3113, 73, 1769, 759, 97, 759, 6926, 4294, 10348, 18, 2626, 12305, 69, 12, 2844, 1228, 16, 6178, 1769, 759, 97, 1188, 1228, 18, 8222, 2932, 2984, 15, 16298, 16958, 4771, 2244, 12, 15182, 10019, 780, 15567, 3610, 33, 16298, 16958, 4021, 18, 588, 607, 350, 3610, 5621, 759, 710, 2080, 38, 1594, 5852, 1807, 12305, 69, 1630, 1106, 30, 474, 2469, 33, 15567, 3610, 18, 2469, 5621, 1884, 12, 474, 917, 33, 20, 31, 917, 32, 2469, 31, 917, 15, 33, 4848, 15329, 474, 409, 33, 10477, 18, 1154, 12, 917, 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, 6459, 2626, 30761, 16958, 12305, 69, 12, 812, 10590, 2853, 16, 30761, 16958, 15182, 13, 15069, 14106, 16, 31237, 16, 12195, 5335, 503, 95, 4021, 16298, 16958, 4021, 33, 15182, 18, 588, 4021, 5621, 812, 4632, 768, 1228, 33, 2704, 812, 4632, 12, 16298, 16958, 12305, 69, 812, 12, 10590, 2853, 16, 15182, 10019, 5108, 1228, 1188, 1228, 33, 2704, 5108, 1228, 12, 768, 1228, 1769, 759, 9940, 38, 1594, 5852, 17, 869, 538, 821, 5, 759, 42, 715, 49, 558, 21710, 73, 1890, 33, 42, 715, 49, 558, 4021, 1733, 18, 6540, 12, 15182, 1769, 759, 430, 12, 6178, 5, 33, 2011, 15329, 759, 698, 95, 759, 6178, 18, 588, 3257, 7675, 542, 1396, 12, 12305, 69, 2 ]
exceptionClass.defineMethod("set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyObject.class));
exceptionClass.defineMethod( "set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyObject.class));
public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineMethod("to_s", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("to_str", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("message", CallbackFactory.getMethod(RubyException.class, "to_s")); exceptionClass.defineMethod("inspect", CallbackFactory.getMethod(RubyException.class, "inspect")); exceptionClass.defineMethod("backtrace", CallbackFactory.getMethod(RubyException.class, "backtrace")); exceptionClass.defineMethod("set_backtrace", CallbackFactory.getMethod(RubyException.class, "set_backtrace", RubyObject.class)); // exceptionClass.defineSingletonMethod("load_class", getSingletonMethod("m_load_class", RubyString.class, true)); return exceptionClass; }
46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/7798138390a306a202dcec9bde45928dae2e852e/RubyException.java/buggy/org/jruby/RubyException.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 503, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 1520, 797, 273, 22155, 18, 11255, 797, 2932, 503, 3113, 22155, 18, 588, 4818, 7675, 588, 921, 797, 10663, 7734, 1520, 797, 18, 11255, 1305, 2932, 869, 67, 87, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 2932, 869, 67, 701, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 2932, 2150, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 2932, 12009, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 12009, 7923, 1769, 7734, 1520, 797, 18, 11255, 1305, 2932, 18728, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 18728, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 12, 315, 542, 67, 18728, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 542, 67, 18728, 3113, 19817, 921, 18, 1106, 10019, 7734, 368, 1520, 797, 18, 11255, 19571, 1305, 2932, 945, 67, 1106, 3113, 31662, 1305, 2932, 81, 67, 945, 67, 1106, 3113, 19817, 780, 18, 1106, 16, 638, 10019, 7734, 327, 1520, 797, 31, 565, 289, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 797, 752, 503, 797, 12, 54, 10340, 22155, 13, 288, 3639, 19817, 797, 1520, 797, 273, 22155, 18, 11255, 797, 2932, 503, 3113, 22155, 18, 588, 4818, 7675, 588, 921, 797, 10663, 7734, 1520, 797, 18, 11255, 1305, 2932, 869, 67, 87, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 2932, 869, 67, 701, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 7923, 1769, 3639, 1520, 797, 18, 11255, 1305, 2932, 2150, 3113, 8444, 1733, 18, 588, 1305, 12, 54, 10340, 503, 18, 1106, 16, 315, 869, 67, 87, 2 ]
public abstract ZActionResult setTagColor(String id, int color) throws ServiceException;
public abstract ZActionResult setTagColor(String id, TagColor color) throws ServiceException;
public abstract ZActionResult setTagColor(String id, int color) throws ServiceException;
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/507b3d0179af326d7dbc57890036461022615117/ZMailbox.java/clean/ZimbraServer/src/java/com/zimbra/cs/zclient/ZMailbox.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 2285, 1803, 1253, 31396, 2957, 12, 780, 612, 16, 509, 2036, 13, 1216, 16489, 31, 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 ]
[ 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 2285, 1803, 1253, 31396, 2957, 12, 780, 612, 16, 509, 2036, 13, 1216, 16489, 31, 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 ]
ProjectHelper.getProjectSourceFolder( (IProject) parentContainer);
wolipsJavaProject .getClasspathAccessor() .getProjectSourceFolder();
private void addAdditionalContents( IProgressMonitor monitor, IContainer parentContainer, File additionalResourcesDir) throws InvocationTargetException, InterruptedException { monitor.beginTask("Copying project contents", IProgressMonitor.UNKNOWN); CopyFileToResource copy; File projectFile = new File(additionalResourcesDir, PROJECT_FILE_NAME); // init directory scanner includes/excludes String[] resourcesIncludes; String[] resourcesExcludes = new String[] { PROJECT_FILE_NAME, "CVS", "*." + EXT_WOA, "*." + EXT_BUILD, "*." + EXT_SUBPROJECT, "*." + EXT_JAVA }; String[] classesIncludes; String[] classesExcludes = new String[] { PROJECT_FILE_NAME, "CVS", "*." + EXT_WOA, "*." + EXT_BUILD, "*." + EXT_SUBPROJECT }; String[] subprojectsIncludes; String[] subprojectsExcludes = new String[] { "CVS", "*." + EXT_WOA, "*." + EXT_BUILD }; PBProject pbProject = null; if (projectFile.exists()) { // try to set includes from PB.Project try { pbProject = new PBProject( projectFile, additionalResourcesDir.getName().endsWith( "." + EXT_FRAMEWORK)); List woAppResources = pbProject.getWoAppResources() != null ? pbProject.getWoAppResources() : new ArrayList(); List woComponents = pbProject.getWoComponents() != null ? pbProject.getWoComponents() : new ArrayList(); // wo app resources and wocomponents resourcesIncludes = new String[woAppResources.size() + woComponents.size()]; for (int i = 0; i < woAppResources.size(); i++) { resourcesIncludes[i] = (String) woAppResources.get(i); } for (int i = 0; i < woComponents.size(); i++) { resourcesIncludes[i + woAppResources.size()] = (String) woComponents.get(i); } // java files List classes = pbProject.getClasses() != null ? pbProject.getClasses() : new ArrayList(); classesIncludes = new String[classes.size()]; for (int i = 0; i < classes.size(); i++) { classesIncludes[i] = (String) classes.get(i); } // subprojects // java files List subprojects = pbProject.getSubprojects() != null ? pbProject.getSubprojects() : new ArrayList(); subprojectsIncludes = new String[subprojects.size()]; for (int i = 0; i < subprojects.size(); i++) { subprojectsIncludes[i] = (String) subprojects.get(i); } } catch (IOException e) { resourcesIncludes = new String[] { "*" }; classesIncludes = new String[] { "*." + EXT_JAVA }; subprojectsIncludes = new String[] { "*." + EXT_SUBPROJECT }; WOLipsLog.log(e); } } else { resourcesIncludes = new String[] { "*" }; classesIncludes = new String[] { "*." + EXT_JAVA }; subprojectsIncludes = new String[] { "*." + EXT_SUBPROJECT }; } // scan directory for non subproject resources DirectoryScanner ds = new DirectoryScanner(); ds.setBasedir(additionalResourcesDir); ds.setCaseSensitive(true); ds.setExcludes(resourcesExcludes); ds.setIncludes(resourcesIncludes); ds.scan(); String[] foundFiles = ds.getIncludedFiles(); // copy found files to actual project's parent container for (int i = 0; i < foundFiles.length; i++) { try { copy = new CopyFileToResource( additionalResourcesDir, parentContainer, foundFiles[i], monitor); } catch (FileNotFoundException e) { WOLipsLog.log(e); continue; } try { copy.execute(); } catch (CoreException e) { WOLipsLog.log(e); continue; } } String[] foundDirs = ds.getIncludedDirectories(); for (int i = 0; i < foundDirs.length; i++) { if (foundDirs[i].endsWith("." + EXT_COMPONENT) || foundDirs[i].endsWith("." + EXT_EOMODEL)) { try { copy = new CopyFileToResource( additionalResourcesDir, parentContainer, foundDirs[i], monitor); } catch (FileNotFoundException e) { WOLipsLog.log(e); continue; } try { copy.execute(); } catch (CoreException e) { WOLipsLog.log(e); continue; } } } // scan directory for java classes ds.setExcludes(classesExcludes); ds.setIncludes(classesIncludes); ds.scan(); String[] foundJavaFiles = ds.getIncludedFiles(); if (foundJavaFiles.length > 0) { IContainer sourceFolder = null; switch (parentContainer.getType()) { case IResource.PROJECT : sourceFolder = ProjectHelper.getProjectSourceFolder( (IProject) parentContainer); break; case IResource.FOLDER : sourceFolder = ProjectHelper.getSubprojectSourceFolder( (IFolder) parentContainer, true); break; } if (sourceFolder != null) { for (int i = 0; i < foundJavaFiles.length; i++) { try { copy = new CopyFileToResource( additionalResourcesDir, sourceFolder, foundJavaFiles[i], monitor); } catch (FileNotFoundException e) { WOLipsLog.log(e); continue; } try { copy.execute(); } catch (CoreException e) { WOLipsLog.log(e); continue; } } } } // scan directory for subproject resources ds.setExcludes(subprojectsExcludes); ds.setIncludes(subprojectsIncludes); ds.scan(); String[] foundSubprojects = ds.getIncludedDirectories(); WOSubprojectCreator currentSubprojectCreator; String currentSubprojectName; for (int i = 0; i < foundSubprojects.length; i++) { if (foundSubprojects[i].indexOf("." + EXT_SUBPROJECT) != -1) { currentSubprojectName = foundSubprojects[i].substring( 0, foundSubprojects[i].lastIndexOf("." + EXT_SUBPROJECT)); } else { currentSubprojectName = foundSubprojects[i]; } currentSubprojectCreator = new WOSubprojectCreator(parentContainer, currentSubprojectName); try { currentSubprojectCreator.createSubproject( new SubProgressMonitor(monitor, 1)); } catch (CoreException e) { throw new InvocationTargetException(e); } IContainer subprojectContainer = parentContainer.getFolder(new Path(foundSubprojects[i])); File additionalSubprojectResourcesFile = new File(additionalResourcesDir, foundSubprojects[i]); // recursively add subproject resources addAdditionalContents( new SubProgressMonitor(monitor, 1), subprojectContainer, additionalSubprojectResourcesFile); } }
50596 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50596/ca3f25bc75f304401b8e6187ffe71a9f580ec836/WOProjectCreator.java/clean/projects/wolips/plugins/org.objectstyle.wolips.wizards/java/org/objectstyle/wolips/wizards/WOProjectCreator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 527, 10552, 6323, 12, 202, 202, 45, 5491, 7187, 6438, 16, 202, 202, 45, 2170, 982, 2170, 16, 202, 202, 812, 3312, 3805, 1621, 13, 202, 202, 15069, 15342, 16, 7558, 288, 202, 202, 10259, 18, 10086, 2174, 2932, 2951, 310, 1984, 2939, 3113, 467, 5491, 7187, 18, 14737, 1769, 202, 202, 2951, 812, 774, 1420, 1610, 31, 202, 202, 812, 1984, 812, 273, 394, 1387, 12, 13996, 3805, 1621, 16, 22489, 67, 3776, 67, 1985, 1769, 202, 202, 759, 1208, 1867, 7683, 6104, 19, 338, 8993, 202, 202, 780, 8526, 2703, 16815, 31, 202, 202, 780, 8526, 2703, 30866, 273, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 17147, 67, 3776, 67, 1985, 16, 9506, 202, 6, 39, 14640, 3113, 9506, 202, 6, 14, 1199, 397, 11112, 67, 59, 28202, 16, 9506, 202, 6, 14, 1199, 397, 11112, 67, 20215, 16, 9506, 202, 6, 14, 1199, 397, 11112, 67, 8362, 17147, 16, 9506, 202, 6, 14, 1199, 397, 11112, 67, 27264, 289, 31, 202, 202, 780, 8526, 3318, 16815, 31, 202, 202, 780, 8526, 3318, 30866, 273, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 17147, 67, 3776, 67, 1985, 16, 9506, 202, 6, 39, 14640, 3113, 9506, 202, 6, 14, 1199, 397, 11112, 67, 59, 28202, 16, 9506, 202, 6, 14, 1199, 397, 11112, 67, 20215, 16, 9506, 202, 6, 14, 1199, 397, 11112, 67, 8362, 17147, 289, 31, 202, 202, 780, 8526, 720, 13582, 16815, 31, 202, 202, 780, 8526, 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, 527, 10552, 6323, 12, 202, 202, 45, 5491, 7187, 6438, 16, 202, 202, 45, 2170, 982, 2170, 16, 202, 202, 812, 3312, 3805, 1621, 13, 202, 202, 15069, 15342, 16, 7558, 288, 202, 202, 10259, 18, 10086, 2174, 2932, 2951, 310, 1984, 2939, 3113, 467, 5491, 7187, 18, 14737, 1769, 202, 202, 2951, 812, 774, 1420, 1610, 31, 202, 202, 812, 1984, 812, 273, 394, 1387, 12, 13996, 3805, 1621, 16, 22489, 67, 3776, 67, 1985, 1769, 202, 202, 759, 1208, 1867, 7683, 6104, 19, 338, 8993, 202, 202, 780, 8526, 2703, 16815, 31, 202, 202, 780, 8526, 2703, 30866, 273, 1082, 202, 2704, 514, 8526, 288, 9506, 202, 17147, 67, 3776, 67, 1985, 16, 2 ]
AspectJUIPlugin.getDefault().getWorkingCopyManager().connect(input);
JavaPlugin.getDefault().getWorkingCopyManager().connect(input);
public void doSetInput(IEditorInput input) throws CoreException { super.doSetInput(input); if (input instanceof IFileEditorInput) { IFileEditorInput fInput = (IFileEditorInput) input; //in case it is a .aj file, we need to register it in the // WorkingCopyManager if (ProjectProperties.ASPECTJ_SOURCE_ONLY_FILTER.accept(fInput .getFile().getName())) { AJCompilationUnit unit = AJCompilationUnitManager.INSTANCE .getAJCompilationUnitFromCache(fInput.getFile()); if (unit != null){ isEditingAjFile = true; //TODO: if we want to get errors/warnings markers from the //parser, pass the appropriate ProblemRequestor instead of null unit.becomeWorkingCopy(null, null); //CompilationUnitAnnotationModel model = new // CompilationUnitAnnotationModel(fInput.getFile()); //model.setIsActive(true); //IAnnotationModel model = // this.getDocumentProvider().getAnnotationModel(unit); ((IWorkingCopyManagerExtension) AspectJUIPlugin.getDefault() .getWorkingCopyManager()).setWorkingCopy(input, unit); } } if (currentFileInput != null) { removeAJDTMarkers(currentFileInput); } currentFileInput = fInput; AJDTEventTrace.editorOpened(fInput.getFile()); // Ensure any advice markers are created since they are not // persisted. updateActiveConfig(fInput); updateAdviceMarkers(fInput); activeEditorList.add(this); IDocument document = getDocumentProvider().getDocument(fInput); AspectJTextTools textTools = AspectJUIPlugin.getDefault() .getAspectJTextTools(); textTools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING); // Fix to bug 61679 - update the input to the outline view if (contentOutlinePage != null) { contentOutlinePage.setInput(fInput.getFile()); contentOutlinePage.update(); } if ("aj".equals(fInput.getFile().getFileExtension())) { AspectJUIPlugin.getDefault().getWorkingCopyManager().connect(input); } } }
13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/8ed35b9edd65e012ccd9c88769aa2ed254f06c7b/AspectJEditor.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/editor/AspectJEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 741, 28299, 12, 45, 6946, 1210, 810, 13, 1216, 30015, 288, 202, 202, 9565, 18, 2896, 28299, 12, 2630, 1769, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 45, 812, 6946, 1210, 284, 1210, 273, 261, 45, 812, 6946, 1210, 13, 810, 31, 1082, 202, 759, 267, 648, 518, 353, 279, 263, 4365, 585, 16, 732, 1608, 358, 1744, 518, 316, 326, 1082, 202, 759, 22732, 2951, 1318, 1082, 202, 430, 261, 4109, 2297, 18, 3033, 1423, 1268, 46, 67, 6537, 67, 10857, 67, 11126, 18, 9436, 12, 74, 1210, 6862, 202, 18, 29925, 7675, 17994, 1435, 3719, 288, 9506, 202, 37, 46, 19184, 2802, 2836, 273, 432, 46, 19184, 2802, 1318, 18, 13341, 25083, 202, 18, 588, 37, 46, 19184, 2802, 19800, 12, 74, 1210, 18, 29925, 10663, 9506, 202, 430, 261, 4873, 480, 446, 15329, 9506, 202, 291, 28029, 37, 78, 812, 273, 638, 31, 9506, 202, 759, 6241, 30, 309, 732, 2545, 358, 336, 1334, 19, 12103, 11754, 628, 326, 9506, 202, 759, 4288, 16, 1342, 326, 5505, 21685, 691, 280, 3560, 434, 446, 9506, 202, 4873, 18, 70, 557, 1742, 14836, 2951, 12, 2011, 16, 446, 1769, 9506, 202, 759, 19184, 2802, 3257, 1488, 938, 273, 394, 9506, 202, 759, 22416, 2802, 3257, 1488, 12, 74, 1210, 18, 29925, 10663, 9506, 202, 759, 2284, 18, 542, 2520, 3896, 12, 3767, 1769, 9506, 202, 759, 45, 3257, 1488, 938, 273, 9506, 202, 759, 333, 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, 741, 28299, 12, 45, 6946, 1210, 810, 13, 1216, 30015, 288, 202, 202, 9565, 18, 2896, 28299, 12, 2630, 1769, 202, 202, 430, 261, 2630, 1276, 467, 812, 6946, 1210, 13, 288, 1082, 202, 45, 812, 6946, 1210, 284, 1210, 273, 261, 45, 812, 6946, 1210, 13, 810, 31, 1082, 202, 759, 267, 648, 518, 353, 279, 263, 4365, 585, 16, 732, 1608, 358, 1744, 518, 316, 326, 1082, 202, 759, 22732, 2951, 1318, 1082, 202, 430, 261, 4109, 2297, 18, 3033, 1423, 1268, 46, 67, 6537, 67, 10857, 67, 11126, 18, 9436, 12, 74, 1210, 6862, 202, 18, 29925, 7675, 17994, 1435, 3719, 288, 9506, 202, 37, 46, 19184, 2802, 2836, 273, 432, 46, 2 ]
LOG.warn(errorMessage);
log.warn(errorMessage);
protected String handleInvalidToken(ActionInvocation invocation) throws Exception { Object action = invocation.getAction(); String errorMessage = LocalizedTextUtil.findText(this.getClass(), "webwork.messages.invalid.token", invocation.getInvocationContext().getLocale(), "The form has already been processed or no token was supplied, please try again.", new Object[0]); if (action instanceof ValidationAware) { ((ValidationAware) action).addActionError(errorMessage); } else { LOG.warn(errorMessage); } return INVALID_TOKEN_CODE; }
22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/6e50a22f3e1702b200109c52c2da0114d3e9ec2f/TokenInterceptor.java/buggy/src/java/com/opensymphony/webwork/interceptor/TokenInterceptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1640, 1941, 1345, 12, 1803, 9267, 9495, 13, 1216, 1185, 288, 3639, 1033, 1301, 273, 9495, 18, 588, 1803, 5621, 3639, 514, 9324, 273, 3566, 1235, 1528, 1304, 18, 4720, 1528, 12, 2211, 18, 588, 797, 9334, 315, 4875, 1252, 18, 6833, 18, 5387, 18, 2316, 3113, 7734, 9495, 18, 588, 9267, 1042, 7675, 588, 3916, 9334, 7734, 315, 1986, 646, 711, 1818, 2118, 5204, 578, 1158, 1147, 1703, 4580, 16, 9582, 775, 3382, 1199, 16, 394, 1033, 63, 20, 19226, 3639, 309, 261, 1128, 1276, 5684, 10155, 13, 288, 5411, 14015, 4354, 10155, 13, 1301, 2934, 1289, 1803, 668, 12, 1636, 1079, 1769, 3639, 289, 469, 288, 5411, 613, 18, 8935, 12, 1636, 1079, 1769, 3639, 289, 3639, 327, 10071, 67, 8412, 67, 5572, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 1640, 1941, 1345, 12, 1803, 9267, 9495, 13, 1216, 1185, 288, 3639, 1033, 1301, 273, 9495, 18, 588, 1803, 5621, 3639, 514, 9324, 273, 3566, 1235, 1528, 1304, 18, 4720, 1528, 12, 2211, 18, 588, 797, 9334, 315, 4875, 1252, 18, 6833, 18, 5387, 18, 2316, 3113, 7734, 9495, 18, 588, 9267, 1042, 7675, 588, 3916, 9334, 7734, 315, 1986, 646, 711, 1818, 2118, 5204, 578, 1158, 1147, 1703, 4580, 16, 9582, 775, 3382, 1199, 16, 394, 1033, 63, 20, 19226, 3639, 309, 261, 1128, 1276, 5684, 10155, 13, 288, 5411, 14015, 4354, 10155, 13, 1301, 2934, 1289, 1803, 668, 12, 1636, 1079, 1769, 3639, 289, 469, 288, 5411, 613, 18, 8935, 12, 1636, 1079, 1769, 2 ]
if((block.clientMetadata == null || block.clientMetadata.isTrivial()) && !insertAsArchiveManifest) {
if(((block.clientMetadata == null) || block.clientMetadata.isTrivial()) && !insertAsArchiveManifest) {
private void tryCompress() throws InserterException { // First, determine how small it needs to be Bucket origData = block.getData(); Bucket data = origData; int blockSize; boolean dontCompress = ctx.dontCompress; long origSize = data.size(); String type = block.desiredURI.getKeyType().toUpperCase(); if(type.equals("SSK") || type.equals("KSK") || type.equals("USK")) { blockSize = SSKBlock.DATA_LENGTH; } else if(type.equals("CHK")) { blockSize = CHKBlock.DATA_LENGTH; } else { throw new InserterException(InserterException.INVALID_URI, "Unknown key type: "+type, null); } Compressor bestCodec = null; Bucket bestCompressedData = null; if(origSize > blockSize && (!ctx.dontCompress) && (!dontCompress)) { // Try to compress the data. // Try each algorithm, starting with the fastest and weakest. // Stop when run out of algorithms, or the compressed data fits in a single block. int algos = Compressor.countCompressAlgorithms(); try { for(int i=0;i<algos;i++) { // Only produce if we are compressing *the original data* if(parent == cb) ctx.eventProducer.produceEvent(new StartedCompressionEvent(i)); Compressor comp = Compressor.getCompressionAlgorithmByDifficulty(i); Bucket result; result = comp.compress(origData, ctx.bf, Long.MAX_VALUE); if(result.size() < blockSize) { bestCodec = comp; data = result; if(bestCompressedData != null) ctx.bf.freeBucket(bestCompressedData); bestCompressedData = data; break; } if(bestCompressedData != null && result.size() < bestCompressedData.size()) { ctx.bf.freeBucket(bestCompressedData); bestCompressedData = result; data = result; bestCodec = comp; } else if(bestCompressedData == null && result.size() < data.size()) { bestCompressedData = result; bestCodec = comp; data = result; } } } catch (IOException e) { throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (CompressionOutputSizeException e) { // Impossible throw new Error(e); } } if(parent == cb) { ctx.eventProducer.produceEvent(new FinishedCompressionEvent(bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(), origSize, data.size())); Logger.minor(this, "Compressed "+origSize+" to "+data.size()+" on "+this); } // Compressed data // Insert it... short codecNumber = bestCodec == null ? -1 : bestCodec.codecNumberForMetadata(); if(block.getData().size() > Integer.MAX_VALUE) throw new InserterException(InserterException.INTERNAL_ERROR, "2GB+ should not encode to one block!", null); if((block.clientMetadata == null || block.clientMetadata.isTrivial()) && !insertAsArchiveManifest) { if(data.size() < blockSize) { // Just insert it ClientPutState bi = createInserter(parent, data, codecNumber, block.desiredURI, ctx, cb, metadata, (int)block.getData().size(), -1, getCHKOnly, true); cb.onTransition(this, bi); bi.schedule(); cb.onBlockSetFinished(this); return; } } if (data.size() < ClientCHKBlock.MAX_COMPRESSED_DATA_LENGTH) { // Insert single block, then insert pointer to it if(reportMetadataOnly) { SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, cb, metadata, (int)origSize, -1, getCHKOnly, true, true, token); Metadata meta = new Metadata(insertAsArchiveManifest ? Metadata.ZIP_MANIFEST : Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); cb.onMetadata(meta, this); cb.onTransition(this, dataPutter); dataPutter.schedule(); cb.onBlockSetFinished(this); } else { MultiPutCompletionCallback mcb = new MultiPutCompletionCallback(cb, parent, token); SingleBlockInserter dataPutter = new SingleBlockInserter(parent, data, codecNumber, FreenetURI.EMPTY_CHK_URI, ctx, mcb, metadata, (int)origSize, -1, getCHKOnly, true, false, token); Metadata meta = new Metadata(insertAsArchiveManifest ? Metadata.ZIP_MANIFEST : Metadata.SIMPLE_REDIRECT, dataPutter.getURI(), block.clientMetadata); Bucket metadataBucket; try { metadataBucket = BucketTools.makeImmutableBucket(ctx.bf, meta.writeToByteArray()); } catch (IOException e) { Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.BUCKET_ERROR, e, null); } catch (MetadataUnresolvedException e) { // Impossible, we're not inserting a manifest. Logger.error(this, "Caught "+e, e); throw new InserterException(InserterException.INTERNAL_ERROR, "Got MetadataUnresolvedException in SingleFileInserter: "+e.toString(), null); } ClientPutState metaPutter = createInserter(parent, metadataBucket, (short) -1, block.desiredURI, ctx, mcb, true, (int)origSize, -1, getCHKOnly, true); mcb.addURIGenerator(metaPutter); mcb.add(dataPutter); cb.onTransition(this, mcb); mcb.arm(); dataPutter.schedule(); metaPutter.schedule(); cb.onBlockSetFinished(this); } return; } // Otherwise the file is too big to fit into one block // We therefore must make a splitfile // Job of SplitHandler: when the splitinserter has the metadata, // insert it. Then when the splitinserter has finished, and the // metadata insert has finished too, tell the master callback. if(reportMetadataOnly) { SplitFileInserter sfi = new SplitFileInserter(parent, cb, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest); cb.onTransition(this, sfi); sfi.start(); } else { SplitHandler sh = new SplitHandler(); SplitFileInserter sfi = new SplitFileInserter(parent, sh, data, bestCodec, block.clientMetadata, ctx, getCHKOnly, metadata, token, insertAsArchiveManifest); sh.sfi = sfi; cb.onTransition(this, sh); sfi.start(); } return; }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621, 202, 202, 4103, 501, 273, 1647, 751, 31, 202, 202, 474, 13766, 31, 202, 202, 6494, 14046, 16552, 273, 1103, 18, 72, 1580, 16552, 31, 9506, 202, 5748, 1647, 1225, 273, 501, 18, 1467, 5621, 202, 202, 780, 618, 273, 1203, 18, 30458, 3098, 18, 588, 22100, 7675, 869, 8915, 5621, 202, 202, 430, 12, 723, 18, 14963, 2932, 1260, 47, 7923, 747, 618, 18, 14963, 2932, 47, 11129, 7923, 747, 618, 18, 14963, 2932, 3378, 47, 6, 3719, 288, 1082, 202, 2629, 1225, 273, 348, 11129, 1768, 18, 4883, 67, 7096, 31, 202, 202, 97, 469, 309, 12, 723, 18, 14963, 2932, 1792, 47, 6, 3719, 288, 1082, 202, 2629, 1225, 273, 6469, 47, 1768, 18, 4883, 67, 7096, 31, 202, 202, 97, 469, 288, 1082, 202, 12849, 394, 657, 550, 387, 503, 12, 382, 550, 387, 503, 18, 9347, 67, 3098, 16, 315, 4874, 498, 618, 30, 13773, 723, 16, 446, 1769, 202, 202, 97, 9506, 202, 16552, 280, 3796, 11008, 273, 446, 31, 202, 202, 4103, 3796, 16841, 751, 273, 446, 31, 202, 202, 430, 12, 4949, 1225, 405, 13766, 597, 16051, 5900, 18, 72, 1580, 16552, 13, 597, 16051, 72, 1580, 16552, 3719, 288, 1082, 202, 759, 6161, 358, 8099, 326, 501, 18, 1082, 202, 759, 6161, 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, 775, 16552, 1435, 1216, 657, 550, 387, 503, 288, 202, 202, 759, 5783, 16, 4199, 3661, 5264, 518, 4260, 358, 506, 202, 202, 4103, 1647, 751, 273, 1203, 18, 588, 751, 5621, 202, 202, 4103, 501, 273, 1647, 751, 31, 202, 202, 474, 13766, 31, 202, 202, 6494, 14046, 16552, 273, 1103, 18, 72, 1580, 16552, 31, 9506, 202, 5748, 1647, 1225, 273, 501, 18, 1467, 5621, 202, 202, 780, 618, 273, 1203, 18, 30458, 3098, 18, 588, 22100, 7675, 869, 8915, 5621, 202, 202, 430, 12, 723, 18, 14963, 2932, 1260, 47, 7923, 747, 618, 18, 14963, 2932, 47, 11129, 7923, 747, 618, 18, 14963, 2932, 3378, 47, 6, 3719, 288, 1082, 202, 2629, 2 ]
private void appendCodeList(WebContext ctx, CLDRFile file, String xpath, String subtype, Hashtable data) { if(data == null) { return; } for(Enumeration e = data.keys();e.hasMoreElements();) { String k = e.nextElement().toString(); if(k.endsWith(SUBVETTING)) { // we ONLY care about SUBVETTING items. ( String type = k.substring(0,k.length()-SUBVETTING.length()); String vet = (String)data.get(k); // Now, what's happening? NodeSet.NodeSetEntry nse = (NodeSet.NodeSetEntry)data.get(type); String newxpath; if(xpath != null) { newxpath = xpath + subtype + "[@type='" + type + "']"; if(nse.key != null) { newxpath = newxpath + "[@key='" + nse.key + "']"; } } else { newxpath = nse.xpath; if(type == null) { type = xpath + "/"; // FIXME: don't set the xpath this way! } } newxpath=newxpath.substring(1); // remove initial / if(vet.equals(DRAFT)) { if((nse.main != null) && nse.mainDraft) { file.add(newxpath, LDMLUtilities.getNodeValue(nse.main)); } else { file.addComment(newxpath, "Can't find draft data! " + type, XPathParts.Comments.POSTBLOCK); } } else if(vet.equals(CURRENT)) { if(nse.fallback != null) { file.add(newxpath, LDMLUtilities.getNodeValue(nse.fallback)); } else if((nse.main != null)&&!LDMLUtilities.isNodeDraft(nse.main)) { file.add(newxpath, LDMLUtilities.getNodeValue(nse.main)); } else { file.add(newxpath, type); } } else if(vet.startsWith(PROPOSED)) { String whichProposed = vet.substring(PROPOSED.length()); newxpath=newxpath+"[@alt='" + whichProposed + "']"; // append alt if user selected. file.add(newxpath, LDMLUtilities.getNodeValue((Node)nse.alts.get(whichProposed))); } else if(vet.equals(NEW)) { String newString = (String)data.get(type + SUBNEW); //type could be xpath here if(newString == null) { newString = ""; } if(nse.main != null) { // If there is already an existing main (which might be draft) newxpath = newxpath + "[@alt='proposed-new']"; } newxpath = newxpath + "[@draft='true']"; // always draft///*srl*/ ctx.println("<tt>CLDRFile.add(<b>" + newxpath + "</b>, \"\", blah);</tt><br/>"); file.add(newxpath, newString); if(newString.length() ==0) { file.addComment(newxpath, "Item marked as wrong: " + type, XPathParts.Comments.LINE);///*srl*/ ctx.println("<tt>CLDRFile.addComment(<b>" + newxpath + "</b>, blah, LINE);</tt><br/>"); } } else { // ignored: current, etc. } } } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/10ccfe126293a4e5e988763ac1f087943beb73b4/SurveyMain.java/clean/tools/java/org/unicode/cldr/web/SurveyMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 714, 1085, 682, 12, 4079, 1042, 1103, 16, 14934, 6331, 812, 585, 16, 514, 6748, 16, 514, 12308, 16, 18559, 501, 13, 288, 3639, 309, 12, 892, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 364, 12, 21847, 425, 273, 501, 18, 2452, 5621, 73, 18, 5332, 7417, 3471, 5621, 13, 288, 5411, 514, 417, 273, 425, 18, 4285, 1046, 7675, 10492, 5621, 5411, 309, 12, 79, 18, 5839, 1190, 12, 8362, 3412, 12239, 3719, 288, 368, 732, 20747, 7671, 2973, 10025, 3412, 12239, 1516, 18, 261, 7734, 514, 618, 273, 417, 18, 28023, 12, 20, 16, 79, 18, 2469, 1435, 17, 8362, 3412, 12239, 18, 2469, 10663, 7734, 514, 331, 278, 273, 261, 780, 13, 892, 18, 588, 12, 79, 1769, 7734, 368, 4494, 16, 4121, 1807, 5865, 310, 35, 1171, 2029, 694, 18, 907, 694, 1622, 290, 307, 273, 261, 907, 694, 18, 907, 694, 1622, 13, 892, 18, 588, 12, 723, 1769, 7734, 514, 394, 18644, 31, 7734, 309, 12, 18644, 480, 446, 13, 288, 10792, 394, 18644, 273, 6748, 397, 12308, 397, 5158, 36, 723, 13396, 397, 618, 397, 2491, 4279, 31, 10792, 309, 12, 82, 307, 18, 856, 480, 446, 13, 288, 13491, 394, 18644, 273, 394, 18644, 397, 5158, 36, 856, 13396, 397, 290, 307, 18, 856, 397, 2491, 4279, 31, 10792, 289, 7734, 289, 469, 288, 10792, 394, 18644, 273, 290, 307, 18, 18644, 31, 5397, 309, 12, 723, 422, 446, 13, 288, 13491, 618, 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, 714, 1085, 682, 12, 4079, 1042, 1103, 16, 14934, 6331, 812, 585, 16, 514, 6748, 16, 514, 12308, 16, 18559, 501, 13, 288, 3639, 309, 12, 892, 422, 446, 13, 288, 5411, 327, 31, 3639, 289, 3639, 364, 12, 21847, 425, 273, 501, 18, 2452, 5621, 73, 18, 5332, 7417, 3471, 5621, 13, 288, 5411, 514, 417, 273, 425, 18, 4285, 1046, 7675, 10492, 5621, 5411, 309, 12, 79, 18, 5839, 1190, 12, 8362, 3412, 12239, 3719, 288, 368, 732, 20747, 7671, 2973, 10025, 3412, 12239, 1516, 18, 261, 7734, 514, 618, 273, 417, 18, 28023, 12, 20, 16, 79, 18, 2469, 1435, 17, 8362, 3412, 12239, 18, 2469, 10663, 7734, 514, 331, 278, 273, 261, 2 ]
public boolean isSet(org.quickfix.field.EventType field)
public boolean isSet(quickfix.field.EventType field)
public boolean isSet(org.quickfix.field.EventType field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AssignmentReport.java/buggy/src/java/src/quickfix/fix44/AssignmentReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 16346, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 16346, 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, -100, -100, -100 ]
IParserEditStatus valid = (IParserEditStatus) getEditingDomain() .runExclusive(new RunnableWithResult.Impl() {
IParserEditStatus valid = (IParserEditStatus) getEditingDomain().runExclusive(new RunnableWithResult.Impl() {
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/InputPinName3EditPart.java/clean/plugins/org.eclipse.uml2.diagram.activity/src/org/eclipse/uml2/diagram/activity/edit/parts/InputPinName3EditPart.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 ]
if (!getServerProtocol().equals(matcher.getServerProtocol())) { return false; }
public boolean equals(Object o) { if ((o == null) || !(o instanceof CmsSiteMatcher)) { return false; } // if one of the object is the default matcher the result is true if ((this == C_DEFAULT_MATCHER) || (o == C_DEFAULT_MATCHER)) { return true; } if (o == this) { return true; } CmsSiteMatcher matcher = (CmsSiteMatcher)o; if (getServerPort() != matcher.getServerPort()) { return false; } if (! getServerName().equals(matcher.getServerName())) { return false; } if (! getServerProtocol().equals(matcher.getServerProtocol())) { return false; } return true; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/db4280bf6482aba6336f3971e638310a6e912376/CmsSiteMatcher.java/buggy/src/org/opencms/site/CmsSiteMatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 1071, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 1250, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 1606, 12, 921, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 320, 13, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 288, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 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, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 309, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 1071, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 5752, 1435, 3719, 288, 327, 629, 31, 289, 225, 1250, 430, 16051, 588, 2081, 5752, 7675, 14963, 12, 22761, 18, 588, 2081, 2 ]