rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
private void showTable(Event event) { TreeItem item = (TreeItem)event.item; if (item == null) return; if( item == rootNode ) return; if ( isSchemaNode( item ) ) { populateTableList( item.getText( ), item ); return; }//TODO String tableName = Utility.getTreeItemsName( item ); String catalogName = metaDataProvider.getCatalog(); String schemaName = null; String schemaSeparator = "."; if (metaDataProvider.isSchemaSupported()) { // remove the schema name from the fully qualified name int index = -1; if ((index = tableName.lastIndexOf(schemaSeparator)) != -1) { schemaName = tableName.substring(0, index); tableName = tableName.substring( index + 1); } } if ( item.getData( ) instanceof DbObject ) { DbObject obj = (DbObject) item.getData( ); if ( obj.getType( ) == DbObject.TABLE_TYPE || obj.getType( ) == DbObject.VIEW_TYPE ) { ArrayList columnList = metaDataProvider.getColumns( catalogName, schemaName, tableName, null ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, columnList, SWT.NONE, columnImage ); } else if ( obj.getType( ) == DbObject.PROCEDURE_TYPE ) { ArrayList procedureList = metaDataProvider.getAllProcedure( catalogName, schemaName, getTailoredSearchText( searchTxt.getText() ) ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, procedureList, SWT.NONE, columnImage ); //expand procedure TreeItem } } else if ( item.getData( ) instanceof Procedure ) { Procedure obj = (Procedure) item.getData( ); { ArrayList columnList = metaDataProvider.getProcedureColumns( obj.getCatalog( ), schemaName, tableName, getTailoredSearchText(null) ); TreeItem[] items = item.getItems( ); if ( items != null ) { for ( int i = 0; i < items.length; i++ ) { items[i].dispose( ); } } Utility.createTreeItems( item, columnList, SWT.NONE, columnImage ); } } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/8887f296b0d9adc032ae9020f3349938893f43a3/SQLDataSetEditorPage.java/buggy/data/org.eclipse.birt.report.data.oda.jdbc.ui/src/org/eclipse/birt/report/data/oda/jdbc/ui/editors/SQLDataSetEditorPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 1152, 6459, 4500, 1388, 12, 1133, 2575, 13, 1082, 202, 95, 9506, 202, 2471, 1180, 1726, 28657, 2471, 1180, 13, 2575, 18, 1726, 31, 9506, 202, 430, 12, 1726, 631, 2011, 13, 2463, 31, 6862, 9506, 202, 430, 12, 1726, 631, 3085, 907, 13, 6862, 202, 2463, 31, 6862, 9506, 202, 430, 12, 291, 3078, 907, 12, 1726, 3719, 9506, 202, 95, 6862, 202, 19936, 1388, 682, 12, 1726, 18, 588, 1528, 9334, 1726, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 759, 6241, 6862, 9506, 202, 780, 18033, 33, 6497, 18, 588, 2471, 3126, 461, 12, 1726, 1769, 9506, 202, 780, 7199, 461, 33, 3901, 20757, 18, 588, 9769, 5621, 9506, 202, 780, 4821, 461, 33, 2011, 31, 6862, 6862, 202, 780, 4821, 6581, 1546, 1199, 31, 6862, 6862, 202, 430, 12, 3901, 20757, 18, 291, 3078, 7223, 10756, 9506, 202, 95, 6862, 202, 759, 2764, 1527, 546, 281, 1036, 304, 339, 2080, 5787, 4095, 19724, 529, 6862, 202, 474, 1615, 29711, 21, 31, 6862, 202, 430, 12443, 1615, 33, 18033, 18, 2722, 31985, 12, 4821, 6581, 3719, 5, 29711, 21, 13, 6862, 202, 95, 25083, 202, 4821, 461, 33, 18033, 18, 28023, 12, 20, 16, 1615, 1769, 25083, 202, 18033, 33, 18033, 18, 28023, 12, 1615, 15, 21, 1769, 6862, 202, 97, 9506, 202, 97, 9506, 202, 430, 12, 1726, 18, 588, 751, 1435, 1336, 792, 4331, 921, 13, 9506, 202, 95, 6862, 202, 4331, 921, 2603, 28657, 4331, 921, 13, 1726, 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, 1875, 202, 1152, 6459, 4500, 1388, 12, 1133, 2575, 13, 1082, 202, 95, 9506, 202, 2471, 1180, 1726, 28657, 2471, 1180, 13, 2575, 18, 1726, 31, 9506, 202, 430, 12, 1726, 631, 2011, 13, 2463, 31, 6862, 9506, 202, 430, 12, 1726, 631, 3085, 907, 13, 6862, 202, 2463, 31, 6862, 9506, 202, 430, 12, 291, 3078, 907, 12, 1726, 3719, 9506, 202, 95, 6862, 202, 19936, 1388, 682, 12, 1726, 18, 588, 1528, 9334, 1726, 1769, 6862, 202, 2463, 31, 9506, 202, 97, 759, 6241, 6862, 9506, 202, 780, 18033, 33, 6497, 18, 588, 2471, 3126, 461, 12, 1726, 1769, 9506, 202, 780, 7199, 461, 33, 3901, 20757, 18, 588, 9769, 5621, 9506, 202, 780, 4821, 461, 33, 2 ]
ObjectFieldAccess ofa = _getObjectFieldAccessForField(field, context);
ObjectFieldAccess ofa = _getObjectFieldAccessForField(field, nameContext);
public Object visit(QualifiedName node) { try { return super.visit(node); } catch(ExecutionError e) { // This error is thrown only if this QualifiedName is not // a local variable or a class List ids = node.getIdentifiers(); Iterator iter = ids.iterator(); String field = ((IdentifierToken)iter.next()).image(); while (iter.hasNext()) { IdentifierToken t = (IdentifierToken)iter.next(); field += "$" + t.image(); } if (context.isDefined("this")) { // Check if it's a field or outer field if we're not in a // static context. ObjectFieldAccess ofa = _getObjectFieldAccessForField(field, context); if (ofa != null) { return ofa; } } else { // We're in a static context. StaticFieldAccess sfa = _getStaticFieldAccessForField(field, context); if (sfa != null) { return sfa; } else { // This is possibly a substring of our current context's class name. // (e.g. The user is trying to evaluate MonkeyOuter.someField and we // have to convert MonkeyOuter to MonkeyMostOuter$MonkeyOuter) // Try qualifying it. ReferenceType rt = _getReferenceTypeForField(field, context); if (rt != null) { return rt; } } } // Didn't find this field in any outer class. Throw original exception. throw e; } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/ba6205cad42ae00df3c37c5cbd4625770848df66/JavaDebugInterpreter.java/buggy/drjava/src/edu/rice/cs/drjava/model/repl/JavaDebugInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 1033, 3757, 12, 12345, 756, 13, 288, 3639, 775, 288, 1850, 327, 2240, 18, 11658, 12, 2159, 1769, 3639, 289, 3639, 1044, 12, 3210, 668, 425, 13, 288, 1850, 368, 1220, 555, 353, 6718, 1338, 309, 333, 28696, 353, 486, 6647, 368, 279, 1191, 2190, 578, 279, 667, 1850, 987, 3258, 273, 756, 18, 588, 12745, 5621, 1850, 4498, 1400, 273, 3258, 18, 9838, 5621, 1850, 514, 652, 273, 14015, 3004, 1345, 13, 2165, 18, 4285, 1435, 2934, 2730, 5621, 1850, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 10333, 1345, 268, 273, 261, 3004, 1345, 13, 2165, 18, 4285, 5621, 5411, 652, 1011, 24568, 397, 268, 18, 2730, 5621, 1850, 289, 1850, 309, 261, 2472, 18, 291, 8116, 2932, 2211, 6, 3719, 288, 5411, 368, 2073, 309, 518, 1807, 279, 652, 578, 6390, 652, 309, 732, 4565, 486, 316, 279, 5411, 368, 760, 819, 18, 5411, 1033, 974, 1862, 434, 69, 273, 389, 588, 921, 974, 1862, 1290, 974, 12, 1518, 16, 508, 1042, 1769, 5411, 309, 261, 83, 507, 480, 446, 13, 288, 2868, 327, 434, 69, 31, 5411, 289, 1850, 289, 1850, 469, 288, 5411, 368, 1660, 4565, 316, 279, 760, 819, 18, 5411, 10901, 974, 1862, 272, 507, 273, 389, 588, 5788, 974, 1862, 1290, 974, 12, 1518, 16, 819, 1769, 5411, 309, 261, 87, 507, 480, 446, 13, 288, 2868, 327, 272, 507, 31, 5411, 289, 5411, 469, 288, 2868, 368, 1220, 353, 10016, 279, 3019, 434, 3134, 783, 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, 4202, 1071, 1033, 3757, 12, 12345, 756, 13, 288, 3639, 775, 288, 1850, 327, 2240, 18, 11658, 12, 2159, 1769, 3639, 289, 3639, 1044, 12, 3210, 668, 425, 13, 288, 1850, 368, 1220, 555, 353, 6718, 1338, 309, 333, 28696, 353, 486, 6647, 368, 279, 1191, 2190, 578, 279, 667, 1850, 987, 3258, 273, 756, 18, 588, 12745, 5621, 1850, 4498, 1400, 273, 3258, 18, 9838, 5621, 1850, 514, 652, 273, 14015, 3004, 1345, 13, 2165, 18, 4285, 1435, 2934, 2730, 5621, 1850, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 5411, 10333, 1345, 268, 273, 261, 3004, 1345, 13, 2165, 18, 4285, 5621, 5411, 652, 1011, 24568, 397, 268, 18, 2730, 5621, 1850, 289, 1850, 309, 261, 2472, 2 ]
Driver.debug("supportsCatalogsInIndexDefinitions false");
if (Driver.logDebug) Driver.debug("supportsCatalogsInIndexDefinitions false");
public boolean supportsCatalogsInIndexDefinitions() throws SQLException { Driver.debug("supportsCatalogsInIndexDefinitions false"); return false; }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/3c0896638bbf35fd0d5888f8c50dae91759a8f12/DatabaseMetaData.java/buggy/org/postgresql/jdbc2/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 39, 21836, 382, 1016, 7130, 1435, 1216, 6483, 202, 95, 202, 202, 4668, 18, 4148, 2932, 28064, 39, 21836, 382, 1016, 7130, 629, 8863, 202, 202, 2463, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 6146, 39, 21836, 382, 1016, 7130, 1435, 1216, 6483, 202, 95, 202, 202, 4668, 18, 4148, 2932, 28064, 39, 21836, 382, 1016, 7130, 629, 8863, 202, 202, 2463, 629, 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 ]
int repeat = 0; if(e.getClickCount() != 1) repeat = 1;
public void mousePressed(MouseEvent e) { if (ren.VisibleActorCount() == 0) return; Lock(); rw.SetDesiredUpdateRate(5.0); lastX = e.getX(); lastY = e.getY(); ctrlPressed = (e.getModifiers() & InputEvent.CTRL_MASK) == InputEvent.CTRL_MASK ? 1:0; shiftPressed = (e.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK ? 1:0; iren.SetEventInformationFlipY(e.getX(), e.getY(), ctrlPressed, shiftPressed, '0', 0, "0"); if ((e.getModifiers() & InputEvent.BUTTON1_MASK) == InputEvent.BUTTON1_MASK) { iren.LeftButtonPressEvent(); } else if ((e.getModifiers() & InputEvent.BUTTON2_MASK) == InputEvent.BUTTON2_MASK) { { iren.MiddleButtonPressEvent(); } } else if ((e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK) { { iren.RightButtonPressEvent(); } } UnLock(); }
46824 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46824/3cb025f5bda4a371ee4b0dde6efb9b3889e406f8/vtkCanvas.java/buggy/Wrapping/Java/vtk/vtkCanvas.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 1071, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 918, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 7644, 24624, 12, 9186, 1133, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 425, 13, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 288, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 309, 509, 7666, 273, 374, 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, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 282, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 1071, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 918, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 7644, 24624, 12, 9186, 1133, 509, 7666, 273, 374, 31, 309, 12, 73, 18, 588, 6563, 1380, 1435, 480, 404, 13, 7666, 273, 404, 31, 225, 425, 13, 509, 7666, 273, 374, 2 ]
ModuleExp.evalModule(env, ctx, comp, null);
ModuleExp.evalModule(env, ctx, comp, null, null);
public static String eval(String expr) throws Throwable { CharArrayOutPort out = new CharArrayOutPort(); InPort in = new CharArrayInPort(expr); SourceMessages messages = new SourceMessages(); Compilation comp = interp.parse(in, messages, Language.PARSE_IMMEDIATE); SourceError firstError = messages.getErrors(); if (firstError != null) return "*** syntax error - " + firstError; CallContext ctx = CallContext.getInstance(); gnu.lists.Consumer save = ctx.consumer; try { ctx.consumer = interp.getOutputConsumer(out); ModuleExp mod = comp.getModule(); mod.setName("atInteractiveLevel"); // FIXME ModuleExp.evalModule(env, ctx, comp, null); } finally { ctx.consumer = save; } String result = new String(out.toCharArray()); out.close(); return result; }
41089 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41089/cbc785330ee7607c4cfbfbd1d8c969c630c5d5ae/TestMisc.java/buggy/gnu/xquery/testsuite/TestMisc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 5302, 12, 780, 3065, 13, 565, 1216, 4206, 225, 288, 565, 3703, 1076, 1182, 2617, 596, 273, 394, 3703, 1076, 1182, 2617, 5621, 565, 657, 2617, 316, 273, 394, 3703, 1076, 382, 2617, 12, 8638, 1769, 565, 4998, 5058, 2743, 273, 394, 4998, 5058, 5621, 565, 22416, 1161, 273, 8174, 18, 2670, 12, 267, 16, 2743, 16, 9889, 18, 21045, 67, 3445, 15971, 1777, 1769, 565, 4998, 668, 1122, 668, 273, 2743, 18, 588, 4229, 5621, 565, 309, 261, 3645, 668, 480, 446, 13, 1377, 327, 315, 14465, 6279, 555, 300, 315, 397, 1122, 668, 31, 565, 3049, 1042, 1103, 273, 3049, 1042, 18, 588, 1442, 5621, 565, 314, 13053, 18, 9772, 18, 5869, 1923, 273, 1103, 18, 13230, 31, 565, 775, 1377, 288, 202, 5900, 18, 13230, 273, 8174, 18, 588, 1447, 5869, 12, 659, 1769, 202, 3120, 2966, 681, 273, 1161, 18, 588, 3120, 5621, 202, 1711, 18, 542, 461, 2932, 270, 26442, 2355, 8863, 225, 368, 9852, 202, 3120, 2966, 18, 8622, 3120, 12, 3074, 16, 1103, 16, 1161, 16, 446, 16, 446, 1769, 1377, 289, 565, 3095, 1377, 288, 202, 5900, 18, 13230, 273, 1923, 31, 1377, 289, 565, 514, 563, 273, 394, 514, 12, 659, 18, 869, 15936, 10663, 565, 596, 18, 4412, 5621, 565, 327, 563, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 514, 5302, 12, 780, 3065, 13, 565, 1216, 4206, 225, 288, 565, 3703, 1076, 1182, 2617, 596, 273, 394, 3703, 1076, 1182, 2617, 5621, 565, 657, 2617, 316, 273, 394, 3703, 1076, 382, 2617, 12, 8638, 1769, 565, 4998, 5058, 2743, 273, 394, 4998, 5058, 5621, 565, 22416, 1161, 273, 8174, 18, 2670, 12, 267, 16, 2743, 16, 9889, 18, 21045, 67, 3445, 15971, 1777, 1769, 565, 4998, 668, 1122, 668, 273, 2743, 18, 588, 4229, 5621, 565, 309, 261, 3645, 668, 480, 446, 13, 1377, 327, 315, 14465, 6279, 555, 300, 315, 397, 1122, 668, 31, 565, 3049, 1042, 1103, 273, 3049, 1042, 18, 588, 1442, 5621, 565, 314, 13053, 18, 9772, 18, 5869, 1923, 2 ]
escaped = false;
public LineContext markTokens(LineContext prevContext, TokenHandler tokenHandler, Segment line, String noWordSep) { //{{{ Set up some instance variables // this is to avoid having to pass around lots and lots of // parameters. this.tokenHandler = tokenHandler; this.line = line; lastOffset = line.offset; lineLength = line.count + line.offset; context = new LineContext(); if(prevContext == null) context.rules = getMainRuleSet(); else { context.parent = prevContext.parent; context.inRule = prevContext.inRule; context.rules = prevContext.rules; } keywords = context.rules.getKeywords(); escaped = false; //}}} //{{{ Main parser loop ParserRule rule; int terminateChar = context.rules.getTerminateChar(); boolean terminated = false;main_loop: for(pos = line.offset; pos < lineLength; pos++) { //{{{ check if we have to stop parsing if(terminateChar >= 0 && pos >= terminateChar && !terminated) { terminated = true; context = new LineContext(ParserRuleSet .getStandardRuleSet(context.rules .getDefault()),context); keywords = context.rules.getKeywords(); } //}}} //{{{ check for end of delegate if(context.parent != null) { rule = context.parent.inRule; if(rule != null && rule.end != null) { if(checkDelegateEnd()) continue main_loop; } } //}}} //{{{ check every rule char ch = line.array[pos]; rule = context.rules.getRules(ch); while(rule != null) { // stop checking rules if there was a match if (handleRule(rule,false)) continue main_loop; rule = rule.next; } //}}} //{{{ check if current character is a word separator if(Character.isWhitespace(ch)) { handleSoftSpan(); if(keywords != null) markKeyword(false); if(lastOffset != pos) { tokenHandler.handleToken( context.rules.getDefault(), lastOffset - line.offset, pos - lastOffset, context); } tokenHandler.handleToken( (ch == '\t' ? Token.TAB : Token.WHITESPACE),pos - line.offset,1, context); lastOffset = pos + 1; } else { String noWordSep2 = (keywords == null ? "" : keywords.getNonAlphaNumericChars()); if(!Character.isLetterOrDigit(ch) && noWordSep.indexOf(ch) == -1 && noWordSep2.indexOf(ch) == -1) { handleSoftSpan(); markKeyword(true); tokenHandler.handleToken( context.rules.getDefault(), lastOffset - line.offset,1, context); lastOffset = pos + 1; } } //}}} escaped = false; } //}}} //{{{ Mark all remaining characters pos = lineLength; handleSoftSpan(); markKeyword(true); if(context.parent != null) { rule = context.parent.inRule; if((rule != null && (context.parent.inRule.action & ParserRule.NO_LINE_BREAK) == ParserRule.NO_LINE_BREAK) || terminated) { context = context.parent; keywords = context.rules.getKeywords(); context.inRule = null; } } //}}} tokenHandler.handleToken(Token.END,pos - line.offset,0,context); return context.intern(); } //}}}
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/cd53d47313307a5e170bdb9a93f0863b2c8d17aa/TokenMarker.java/clean/org/gjt/sp/jedit/syntax/TokenMarker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5377, 1042, 2267, 5157, 12, 1670, 1042, 2807, 1042, 16, 202, 202, 1345, 1503, 1147, 1503, 16, 10807, 980, 16, 202, 202, 780, 1158, 3944, 5097, 13, 202, 95, 202, 202, 759, 12187, 95, 1000, 731, 2690, 791, 3152, 202, 202, 759, 333, 353, 358, 4543, 7999, 358, 1342, 6740, 328, 6968, 471, 328, 6968, 434, 202, 202, 759, 1472, 18, 202, 202, 2211, 18, 2316, 1503, 273, 1147, 1503, 31, 202, 202, 2211, 18, 1369, 273, 980, 31, 202, 202, 2722, 2335, 273, 980, 18, 3348, 31, 202, 202, 1369, 1782, 273, 980, 18, 1883, 397, 980, 18, 3348, 31, 202, 202, 2472, 273, 394, 5377, 1042, 5621, 202, 202, 430, 12, 10001, 1042, 422, 446, 13, 1082, 202, 2472, 18, 7482, 273, 15011, 21474, 5621, 202, 202, 12107, 202, 202, 95, 1082, 202, 2472, 18, 2938, 273, 2807, 1042, 18, 2938, 31, 1082, 202, 2472, 18, 267, 2175, 273, 2807, 1042, 18, 267, 2175, 31, 1082, 202, 2472, 18, 7482, 273, 2807, 1042, 18, 7482, 31, 202, 202, 97, 202, 202, 11771, 273, 819, 18, 7482, 18, 588, 14149, 5621, 202, 202, 16502, 273, 629, 31, 202, 202, 759, 9090, 97, 202, 202, 759, 12187, 95, 12740, 2082, 2798, 202, 202, 2678, 2175, 1720, 31, 202, 202, 474, 10850, 2156, 273, 819, 18, 7482, 18, 588, 26106, 2156, 5621, 202, 202, 6494, 14127, 273, 629, 31, 5254, 67, 6498, 30, 202, 1884, 12, 917, 273, 980, 18, 3348, 31, 949, 411, 980, 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, 5377, 1042, 2267, 5157, 12, 1670, 1042, 2807, 1042, 16, 202, 202, 1345, 1503, 1147, 1503, 16, 10807, 980, 16, 202, 202, 780, 1158, 3944, 5097, 13, 202, 95, 202, 202, 759, 12187, 95, 1000, 731, 2690, 791, 3152, 202, 202, 759, 333, 353, 358, 4543, 7999, 358, 1342, 6740, 328, 6968, 471, 328, 6968, 434, 202, 202, 759, 1472, 18, 202, 202, 2211, 18, 2316, 1503, 273, 1147, 1503, 31, 202, 202, 2211, 18, 1369, 273, 980, 31, 202, 202, 2722, 2335, 273, 980, 18, 3348, 31, 202, 202, 1369, 1782, 273, 980, 18, 1883, 397, 980, 18, 3348, 31, 202, 202, 2472, 273, 394, 5377, 1042, 5621, 202, 202, 430, 12, 10001, 1042, 422, 2 ]
getOwner().markDirty(true, true);
getOwner().reLayout( );
public void run( ) { getOwner().markDirty(true, true); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ebb2f0a299e9a6818cbf61d858e1cd609f51ddfd/TableLayout.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/layout/TableLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4697, 202, 482, 918, 1086, 12, 262, 9506, 202, 95, 282, 6862, 202, 588, 5541, 7675, 3355, 10785, 12, 3767, 16, 638, 1769, 9506, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4697, 202, 482, 918, 1086, 12, 262, 9506, 202, 95, 282, 6862, 202, 588, 5541, 7675, 3355, 10785, 12, 3767, 16, 638, 1769, 9506, 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 ]
dX, dY, itm.getFullWidth( ),
dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ),
public void renderLegend( IPrimitiveRenderer ipr, Legend lg, Map htRenderers ) throws ChartException { if ( !lg.isVisible( ) ) // CHECK VISIBILITY { return; } renderBlock( ipr, lg, StructureSource.createLegend( lg ) ); final IDisplayServer xs = getDevice( ).getDisplayServer( ); final double dScale = getDeviceScale( ); Bounds bo = lg.getBounds( ).scaledInstance( dScale ); Size sz = null; /* --- Start bound computing --- */ // TODO Refactoring: create function double dX, dY; if ( lg.getPosition( ) != Position.INSIDE_LITERAL ) { try { sz = lg.getPreferredSize( xs, cm, rtc ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } sz.scale( dScale ); // validate legend size, restrict within the bounds. // TODO this is requried due to the 1/3 size constraints policy in // layoutManager, // should use better solution. if ( sz.getWidth( ) > bo.getWidth( ) ) { sz.setWidth( bo.getWidth( ) ); } if ( sz.getHeight( ) > bo.getHeight( ) ) { sz.setHeight( bo.getHeight( ) ); } // USE ANCHOR IN POSITIONING THE LEGEND CLIENT AREA WITHIN THE BLOCK // SLACK SPACE dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = 0; if ( lg.isSetAnchor( ) ) { int iAnchor = lg.getAnchor( ).getValue( ); // swap west/east if ( isRightToLeft( ) ) { if ( iAnchor == Anchor.EAST ) { iAnchor = Anchor.WEST; } else if ( iAnchor == Anchor.NORTH_EAST ) { iAnchor = Anchor.NORTH_WEST; } else if ( iAnchor == Anchor.SOUTH_EAST ) { iAnchor = Anchor.SOUTH_WEST; } else if ( iAnchor == Anchor.WEST ) { iAnchor = Anchor.EAST; } else if ( iAnchor == Anchor.NORTH_WEST ) { iAnchor = Anchor.NORTH_EAST; } else if ( iAnchor == Anchor.SOUTH_WEST ) { iAnchor = Anchor.SOUTH_EAST; } } switch ( iAnchor ) { case Anchor.NORTH : case Anchor.NORTH_EAST : case Anchor.NORTH_WEST : dY = bo.getTop( ); break; case Anchor.SOUTH : case Anchor.SOUTH_EAST : case Anchor.SOUTH_WEST : dY = bo.getTop( ) + bo.getHeight( ) - sz.getHeight( ); break; default : // CENTERED dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; break; } switch ( iAnchor ) { case Anchor.WEST : case Anchor.NORTH_WEST : case Anchor.SOUTH_WEST : dX = bo.getLeft( ); break; case Anchor.EAST : case Anchor.SOUTH_EAST : case Anchor.NORTH_EAST : dX = bo.getLeft( ) + bo.getWidth( ) - sz.getWidth( ); break; default : // CENTERED dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; break; } } else { dX = bo.getLeft( ) + ( bo.getWidth( ) - sz.getWidth( ) ) / 2; dY = bo.getTop( ) + ( bo.getHeight( ) - sz.getHeight( ) ) / 2; } } else { // USE PREVIOUSLY COMPUTED POSITION IN THE GENERATOR FOR LEGEND // 'INSIDE' PLOT dX = bo.getLeft( ); dY = bo.getTop( ); sz = SizeImpl.create( bo.getWidth( ), bo.getHeight( ) ); } // get cached legend info. final LegendLayoutHints lilh = rtc.getLegendLayoutHints( ); // consider legend title size. Label lgTitle = lg.getTitle( ); double lgTitleWidth = 0, lgTitleHeight = 0; double yOffset = 0, xOffset = 0, wOffset = 0, hOffset = 0; final boolean bRenderLegendTitle = lgTitle != null && lgTitle.isSetVisible( ) && lgTitle.isVisible( ); int iTitlePos = Position.ABOVE; if ( bRenderLegendTitle ) { lgTitle = LabelImpl.copyInstance( lgTitle ); // handle external resource string final String sPreviousValue = lgTitle.getCaption( ).getValue( ); lgTitle.getCaption( ) .setValue( rtc.externalizedMessage( sPreviousValue ) ); if ( lilh != null ) { // use cached value Size titleSize = lilh.getTitleSize( ); lgTitleWidth = titleSize.getWidth( ); lgTitleHeight = titleSize.getHeight( ); } else { BoundingBox bb = null; try { bb = Methods.computeBox( xs, IConstants.ABOVE, lgTitle, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } lgTitleWidth = bb.getWidth( ); lgTitleHeight = bb.getHeight( ); } iTitlePos = lg.getTitlePosition( ).getValue( ); // swap left/right if ( isRightToLeft( ) ) { if ( iTitlePos == Position.LEFT ) { iTitlePos = Position.RIGHT; } else if ( iTitlePos == Position.RIGHT ) { iTitlePos = Position.LEFT; } } switch ( iTitlePos ) { case Position.ABOVE : yOffset = lgTitleHeight; hOffset = -yOffset; break; case Position.BELOW : hOffset = -lgTitleHeight; break; case Position.LEFT : xOffset = lgTitleWidth; wOffset = -xOffset; break; case Position.RIGHT : wOffset = -lgTitleWidth; break; } } // RENDER THE LEGEND CLIENT AREA final ClientArea ca = lg.getClientArea( ); final Insets lgIns = lg.getInsets( ).scaledInstance( dScale ); LineAttributes lia = ca.getOutline( ); bo = BoundsImpl.create( dX, dY, sz.getWidth( ), sz.getHeight( ) ); bo = bo.adjustedInstance( lgIns ); dX = bo.getLeft( ); dY = bo.getTop( ); // Adjust bounds. bo.delta( xOffset, yOffset, wOffset, hOffset ); dX = bo.getLeft( ); dY = bo.getTop( ); /* --- End of bounds computing --- */ final double dBaseX = dX; final double dBaseY = dY; final RectangleRenderEvent rre = (RectangleRenderEvent) ( (EventObjectCache) ir ).getEventObject( StructureSource.createLegend( lg ), RectangleRenderEvent.class ); // render client area shadow. if ( ca.getShadowColor( ) != null ) { rre.setBounds( bo.translateInstance( 3, 3 ) ); rre.setBackground( ca.getShadowColor( ) ); ipr.fillRectangle( rre ); } // render client area rre.setBounds( bo ); rre.setOutline( lia ); rre.setBackground( ca.getBackground( ) ); ipr.fillRectangle( rre ); ipr.drawRectangle( rre ); lia = LineAttributesImpl.copyInstance( lia ); lia.setVisible( true ); // SEPARATOR LINES MUST BE VISIBLE LineAttributes liSep = lg.getSeparator( ) == null ? lia : lg.getSeparator( ); final SeriesDefinition[] seda = cm.getSeriesForLegend( ); // INITIALIZATION OF VARS USED IN FOLLOWING LOOPS final Orientation o = lg.getOrientation( ); final Direction d = lg.getDirection( ); final Label la = LabelImpl.create( ); la.setCaption( TextImpl.copyInstance( lg.getText( ) ) ); la.getCaption( ).setValue( "X" ); //$NON-NLS-1$ final ITextMetrics itm = xs.getTextMetrics( la ); final double maxWrappingSize = lg.getWrappingSize( ) * dScale; final double dItemHeight = itm.getFullHeight( ); final double dHorizontalSpacing = 4; final double dVerticalSpacing = 4; double dSeparatorThickness = lia.getThickness( ); Insets insCA = ca.getInsets( ).scaledInstance( dScale ); Series seBase; List al; LegendItemRenderingHints lirh; Palette pa; int iPaletteCount; EList elPaletteEntries; Fill fPaletteEntry; final boolean bPaletteByCategory = ( cm.getLegend( ) .getItemType( ) .getValue( ) == LegendItemType.CATEGORIES ); // Get available maximum block width/height. Block bl = cm.getBlock( ); Bounds boFull = bl.getBounds( ).scaledInstance( dScale ); Insets ins = bl.getInsets( ).scaledInstance( dScale ); double dMaxX = boFull.getLeft( ) + boFull.getWidth( ) - ins.getRight( ) - lgIns.getRight( ); double dMaxY = boFull.getTop( ) + boFull.getHeight( ) - ins.getBottom( ) - lgIns.getBottom( ); // Calculate if minSlice applicable. String sMinSliceLabel = null; boolean bMinSliceApplied = false; if ( lilh != null ) { // use cached value. sMinSliceLabel = lilh.getMinSliceText( ); bMinSliceApplied = lilh.isMinSliceApplied( ); } else { boolean bMinSliceDefined = false; double dMinSlice = 0; boolean bPercentageMinSlice = false; if ( cm instanceof ChartWithoutAxes ) { bMinSliceDefined = ( (ChartWithoutAxes) cm ).isSetMinSlice( ); dMinSlice = ( (ChartWithoutAxes) cm ).getMinSlice( ); bPercentageMinSlice = ( (ChartWithoutAxes) cm ).isMinSlicePercent( ); sMinSliceLabel = ( (ChartWithoutAxes) cm ).getMinSliceLabel( ); if ( sMinSliceLabel == null || sMinSliceLabel.length( ) == 0 ) { sMinSliceLabel = IConstants.UNDEFINED_STRING; } else { sMinSliceLabel = rtc.externalizedMessage( sMinSliceLabel ); } } // calculate if need an extra legend item when minSlice defined. if ( bMinSliceDefined && bPaletteByCategory && cm instanceof ChartWithoutAxes ) { if ( !( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS SeriesDefinition sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); SeriesDefinition[] sdOrtho = (SeriesDefinition[]) sdBase.getSeriesDefinitions( ) .toArray( ); DataSetIterator dsiOrtho = null; double dCurrentMinSlice = 0; for ( int i = 0; i < sdOrtho.length && !bMinSliceApplied; i++ ) { try { dsiOrtho = new DataSetIterator( ( (Series) sdOrtho[i].getRunTimeSeries( ) .get( 0 ) ).getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } // TODO Check dataset type, throw exception or ignore?. if ( bPercentageMinSlice ) { double total = 0; while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { total += ( (Number) obj ).doubleValue( ); } } dsiOrtho.reset( ); dCurrentMinSlice = total * dMinSlice / 100d; } else { dCurrentMinSlice = dMinSlice; } while ( dsiOrtho.hasNext( ) ) { Object obj = dsiOrtho.next( ); if ( obj instanceof Number ) { double val = ( (Number) obj ).doubleValue( ); if ( val < dCurrentMinSlice ) { bMinSliceApplied = true; break; } } } } } } } // COMPUTATIONS HERE MUST BE IN SYNC WITH THE ACTUAL RENDERER if ( o.getValue( ) == Orientation.VERTICAL ) { double dXOffset = 0, dMaxW = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; Map columnCache = searchMaxColumnWidth( liha ); for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. // render legend item. dY += insCA.getTop( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dY += insCA.getTop( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); if ( dY + itm.getFullHeight( ) + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, itm.getFullWidth( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, itm.getFullWidth( ), dItemHeight, itm.getFullHeight( ), 0, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += itm.getFullHeight( ) + insCA.getBottom( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dY += insCA.getTop( ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ) + insCA.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2, Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; Map columnCache = searchMaxColumnWidth( liha ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); double columnWidth = bo.getWidth( ); Double cachedWidth = (Double) columnCache.get( lih ); if ( cachedWidth != null ) { columnWidth = cachedWidth.doubleValue( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ); } renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), columnWidth, insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxW = 0; al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { dY += insCA.getTop( ); seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dY + dFHeight + valueHeight + 2 + insCA.getBottom( ) > dMaxY ) { dXOffset += dMaxW + insCA.getLeft( ) + insCA.getRight( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing; dMaxW = 0; dY = bo.getTop( ); dX = bo.getLeft( ) + dXOffset; } dMaxW = Math.max( dMaxW, dFWidth ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, bo.getWidth( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dY += dFHeight + insCA.getBottom( ) + valueHeight + 2; } // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + // MAX ITEM WIDTH + RIGHT INSETS dXOffset += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dX += insCA.getLeft( ) + ( 3 * dItemHeight / 2 ) + dHorizontalSpacing + dMaxW + insCA.getRight( ); dY = bo.getTop( ); // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, bo.getHeight( ), Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else if ( o.getValue( ) == Orientation.HORIZONTAL ) { double dYOffset = 0, dMaxH = 0; if ( bPaletteByCategory ) { SeriesDefinition sdBase = null; FormatSpecifier fs = null; if ( cm instanceof ChartWithAxes ) { // ONLY SUPPORT 1 BASE AXIS FOR NOW final Axis axPrimaryBase = ( (ChartWithAxes) cm ).getBaseAxes( )[0]; if ( axPrimaryBase.getSeriesDefinitions( ).isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) axPrimaryBase.getSeriesDefinitions( ) .get( 0 ); } else if ( cm instanceof ChartWithoutAxes ) { if ( ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .isEmpty( ) ) { // NOTHING TO RENDER (BASE AXIS HAS NO SERIES // DEFINITIONS) return; } // OK TO ASSUME THAT 1 BASE SERIES DEFINITION EXISTS sdBase = (SeriesDefinition) ( (ChartWithoutAxes) cm ).getSeriesDefinitions( ) .get( 0 ); } // OK TO ASSUME THAT 1 BASE RUNTIME SERIES EXISTS seBase = (Series) sdBase.getRunTimeSeries( ).get( 0 ); pa = sdBase.getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); if ( lilh != null && lilh.getLegendItemHints( ) != null ) { // use cached value LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; for ( int i = 0; i < liha.length; i++ ) { // render each legend item. lih = liha[i]; if ( ( lih.getType( ) & IConstants.LEGEND_ENTRY ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( lih.getCategoryIndex( ) % iPaletteCount ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); renderLegendItem( ipr, lg, la, null, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), 0, lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } } else { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, ex ); } if ( sdBase != null ) { fs = sdBase.getFormatSpecifier( ); } int i = 0; double dFullWidth = 0; dY += insCA.getTop( ); while ( dsiBase.hasNext( ) ) { Object obj = dsiBase.next( ); // TODO filter the not-used legend. dX += insCA.getLeft( ); String lgtext = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( i++ % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } // render the extra MinSlice legend item if applicable. if ( bMinSliceApplied ) { dX += insCA.getLeft( ); la.getCaption( ).setValue( sMinSliceLabel ); itm.reuse( la, maxWrappingSize ); // RECYCLED fPaletteEntry = (Fill) elPaletteEntries.get( dsiBase.size( ) % iPaletteCount ); // CYCLE THROUGH THE PALETTE lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); dFullWidth = itm.getFullWidth( ); if ( dX + dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, itm.getFullHeight( ) ); renderLegendItem( ipr, lg, la, null, dX, dY, dFullWidth, dItemHeight, itm.getFullHeight( ), 0, dFullWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += dFullWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ); } } } else if ( d.getValue( ) == Direction.TOP_BOTTOM ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); } } } } else { dSeparatorThickness += dVerticalSpacing; for ( int j = 0; j < seda.length; j++ ) { dMaxH = 0; dY += insCA.getTop( ); dX = bo.getLeft( ) + insCA.getLeft( ); al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + insCA.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dFWidth + insCA.getRight( ); } dYOffset += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dY += insCA.getTop( ) + insCA.getBottom( ) + dMaxH + dVerticalSpacing; dX = bo.getLeft( ) + insCA.getLeft( ); // SETUP HORIZONTAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX, dY + dSeparatorThickness / 2, bo.getWidth( ), Orientation.HORIZONTAL_LITERAL ); dY += dSeparatorThickness; } } } } else if ( d.getValue( ) == Direction.LEFT_RIGHT ) { if ( lilh != null && lilh.getLegendItemHints( ) != null ) { LegendItemHints[] liha = lilh.getLegendItemHints( ); LegendItemHints lih; int k = 0; for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); if ( !seBase.isVisible( ) ) { continue; } lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); lih = liha[k++]; if ( lih.getType( ) == IConstants.LEGEND_ENTRY ) { la.getCaption( ).setValue( lih.getText( ) ); Label valueLa = null; if ( lg.isShowValue( ) ) { valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ) .setValue( lih.getExtraText( ) ); } // CYCLE THROUGH THE PALETTE fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); renderLegendItem( ipr, lg, la, valueLa, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ) + insCA.getTop( ), lih.getWidth( ), dItemHeight, lih.getHeight( ), lih.getExtraHeight( ), lih.getWidth( ) + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); } } if ( j < seda.length - 1 && k < liha.length ) { lih = liha[k]; if ( lih.getType( ) == IConstants.LEGEND_SEPERATOR ) { k++; renderSeparator( ipr, lg, liSep, dBaseX + lih.getLeft( ), dBaseY + lih.getTop( ), lih.getHeight( ), Orientation.VERTICAL_LITERAL ); } } } } else { dSeparatorThickness += dHorizontalSpacing; dX += insCA.getLeft( ); dY += insCA.getTop( ); for ( int j = 0; j < seda.length; j++ ) { al = seda[j].getRunTimeSeries( ); pa = seda[j].getSeriesPalette( ); elPaletteEntries = pa.getEntries( ); iPaletteCount = elPaletteEntries.size( ); FormatSpecifier fs = seda[j].getFormatSpecifier( ); for ( int i = 0; i < al.size( ); i++ ) { seBase = (Series) al.get( i ); lirh = (LegendItemRenderingHints) htRenderers.get( seBase ); Object obj = seBase.getSeriesIdentifier( ); String lgtext = rtc.externalizedMessage( String.valueOf( obj ) ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, getRunTimeContext( ).getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } la.getCaption( ).setValue( lgtext ); itm.reuse( la, maxWrappingSize ); // RECYCLED double dFWidth = itm.getFullWidth( ); double dFHeight = itm.getFullHeight( ); Label valueLa = null; double valueHeight = 0; if ( lg.isShowValue( ) ) { DataSetIterator dsiBase = null; try { dsiBase = new DataSetIterator( seBase.getDataSet( ) ); } catch ( Exception ex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.GENERATION, ex ); } // Use first value for each series. if ( dsiBase.hasNext( ) ) { obj = dsiBase.next( ); String valueText = String.valueOf( obj ); if ( fs != null ) { try { lgtext = ValueFormatter.format( obj, fs, rtc.getULocale( ), null ); } catch ( ChartException e ) { // ignore, use original text. } } valueLa = LabelImpl.copyInstance( seBase.getLabel( ) ); valueLa.getCaption( ).setValue( valueText ); itm.reuse( valueLa ); dFWidth = Math.max( dFWidth, itm.getFullWidth( ) ); valueHeight = itm.getFullHeight( ); } } if ( dX + insCA.getLeft( ) + dFWidth + ( 3 * dItemHeight ) / 2 + insCA.getRight( ) > dMaxX ) { dYOffset += dMaxH + insCA.getTop( ) + insCA.getBottom( ) + dVerticalSpacing; dMaxH = 0; dX = bo.getLeft( ) + insCA.getLeft( ); dY = bo.getTop( ) + dYOffset; } dMaxH = Math.max( dMaxH, dFHeight + valueHeight + 2 ); fPaletteEntry = (Fill) elPaletteEntries.get( i % iPaletteCount ); // CYCLE THROUGH THE // PALETTE renderLegendItem( ipr, lg, la, valueLa, dX, dY, dFWidth, dItemHeight, dFHeight, valueHeight, dFWidth + 3 * dItemHeight / 2 + 2 * insCA.getLeft( ), insCA.getLeft( ), dHorizontalSpacing, seBase, fPaletteEntry, lirh, i ); // LEFT INSETS + LEGEND ITEM WIDTH + HORIZONTAL // SPACING // + MAX ITEM WIDTH + RIGHT INSETS dX += insCA.getLeft( ) + ( 3 * dItemHeight ) / 2 + dHorizontalSpacing + dFWidth + insCA.getRight( ); } // SETUP VERTICAL SEPARATOR SPACING if ( j < seda.length - 1 ) { renderSeparator( ipr, lg, liSep, dX + dSeparatorThickness / 2, dY, dMaxH, Orientation.VERTICAL_LITERAL ); dX += dSeparatorThickness; } } } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.direction", //$NON-NLS-1$ new Object[]{ d.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.illegal.legend.orientation", //$NON-NLS-1$ new Object[]{ o.getName( ) }, Messages.getResourceBundle( rtc.getULocale( ) ) ); } // Render legend title if defined. if ( bRenderLegendTitle ) { double lX = bo.getLeft( ); double lY = bo.getTop( ); switch ( iTitlePos ) { case Position.ABOVE : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) - lgTitleHeight; break; case Position.BELOW : lX = bo.getLeft( ) + ( bo.getWidth( ) - lgTitleWidth ) / 2d; lY = bo.getTop( ) + bo.getHeight( ); break; case Position.LEFT : lX = bo.getLeft( ) - lgTitleWidth; lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; case Position.RIGHT : lX = bo.getLeft( ) + bo.getWidth( ); lY = bo.getTop( ) + ( bo.getHeight( ) - lgTitleHeight ) / 2d; break; } final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ir ).getEventObject( WrappedStructureSource.createLegendTitle( lg, lgTitle ), TextRenderEvent.class ); tre.setBlockBounds( BoundsImpl.create( lX, lY, lgTitleWidth, lgTitleHeight ) ); TextAlignment ta = TextAlignmentImpl.create( ); ta.setHorizontalAlignment( HorizontalAlignment.CENTER_LITERAL ); ta.setVerticalAlignment( VerticalAlignment.CENTER_LITERAL ); tre.setBlockAlignment( ta ); tre.setLabel( lgTitle ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } itm.dispose( ); // DISPOSE RESOURCES AFTER USE }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/bdbe857d641e2e27600409e7bb20f1950ed1536b/BaseRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/BaseRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, 18, 291, 6207, 12, 262, 262, 368, 14565, 12596, 30310, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 5902, 1768, 12, 277, 683, 16, 15266, 16, 13348, 1830, 18, 2640, 16812, 12, 15266, 262, 11272, 202, 202, 6385, 1599, 291, 1601, 2081, 9280, 273, 19512, 12, 262, 18, 588, 4236, 2081, 12, 11272, 202, 202, 6385, 1645, 302, 5587, 273, 19512, 5587, 12, 11272, 202, 202, 5694, 800, 273, 15266, 18, 588, 5694, 12, 262, 18, 20665, 1442, 12, 302, 5587, 11272, 202, 202, 1225, 11262, 273, 446, 31, 202, 202, 20308, 9948, 3603, 2489, 20303, 9948, 1195, 202, 202, 759, 2660, 868, 3493, 6053, 30, 752, 445, 202, 202, 9056, 302, 60, 16, 302, 61, 31, 202, 202, 430, 261, 15266, 18, 588, 2555, 12, 262, 480, 11010, 18, 706, 26498, 67, 23225, 262, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 24575, 273, 15266, 18, 588, 16028, 1225, 12, 9280, 16, 5003, 16, 436, 5111, 11272, 1082, 202, 97, 1082, 202, 14683, 261, 1185, 431, 262, 1082, 202, 95, 9506, 202, 12849, 394, 14804, 503, 12, 14804, 4410, 3773, 18, 734, 16, 25083, 202, 7984, 503, 18, 25230, 1360, 16, 25083, 202, 338, 11272, 1082, 202, 97, 1082, 202, 24575, 18, 5864, 12, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1743, 16812, 12, 467, 9840, 6747, 277, 683, 16, 17167, 409, 15266, 16, 1635, 14049, 3420, 414, 262, 1082, 202, 15069, 14804, 503, 202, 95, 202, 202, 430, 261, 401, 23623, 18, 291, 6207, 12, 262, 262, 368, 14565, 12596, 30310, 202, 202, 95, 1082, 202, 2463, 31, 202, 202, 97, 202, 202, 5902, 1768, 12, 277, 683, 16, 15266, 16, 13348, 1830, 18, 2640, 16812, 12, 15266, 262, 11272, 202, 202, 6385, 1599, 291, 1601, 2081, 9280, 273, 19512, 12, 262, 18, 588, 4236, 2081, 12, 11272, 202, 202, 6385, 1645, 302, 5587, 273, 19512, 5587, 12, 11272, 202, 202, 5694, 800, 273, 15266, 18, 588, 5694, 12, 262, 18, 20665, 1442, 12, 302, 2 ]
asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, NO_SLOT);
asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, VM_Assembler.BYTE, NO_SLOT);
private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, NO_SLOT); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, NO_SLOT); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, NO_SLOT); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, ONE_SLOT); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, NO_SLOT); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, ONE_SLOT); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, THREE_SLOTS); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, TWO_SLOTS); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, ONE_SLOT, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { Offset offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffset(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { Offset offset = VM_Entrypoints.threadSwitchInstructionsField.getOffset(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { Offset offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffset(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); Offset offsetToJavaArg = THREE_SLOTS; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg.add(4)); asm.emitPUSH_RegDisp(SP, offsetToJavaArg.add(4)); offsetToJavaArg = offsetToJavaArg.add(16); paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg = offsetToJavaArg.add(8); paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffset()); asm.emitCALL_RegDisp(S0, ip.getOffset()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(NO_SLOT)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, Offset.fromIntSignExtend(STACKFRAME_FRAME_POINTER_OFFSET)); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, Offset.fromIntSignExtend(STACKFRAME_FRAME_POINTER_OFFSET), T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET)); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, Offset.fromIntSignExtend(STACKFRAME_METHOD_ID_OFFSET), T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, NO_SLOT); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, NO_SLOT); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, NO_SLOT); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, ONE_SLOT); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, NO_SLOT); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, TWO_SLOTS ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, THREE_SLOTS); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, NO_SLOT, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, ONE_SLOT ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, ONE_SLOT, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, Offset.fromIntZeroExtend(TIB_TYPE_INDEX<<LG_WORDSIZE)); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { Offset offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffset(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(NO_SLOT).toInt() - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffset()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffset()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffset(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffset()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/35bd01b7529801989a0cf74ba4bc2553fd6572ec/VM_Compiler.java/buggy/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 1250, 3157, 19289, 261, 7397, 67, 1305, 2404, 312, 13, 288, 565, 8251, 67, 3641, 4918, 273, 312, 18, 17994, 5621, 565, 309, 261, 81, 18, 588, 559, 1435, 422, 8251, 67, 7534, 18, 1887, 13, 288, 1377, 368, 5267, 8146, 1377, 8251, 67, 7534, 8526, 1953, 273, 312, 18, 588, 1662, 2016, 5621, 1377, 368, 4444, 87, 777, 4862, 326, 646, 30, 1377, 368, 1372, 16, 5267, 16, 306, 2335, 65, 317, 1372, 16, 1445, 1377, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 945, 1887, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 1887, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 22101, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 945, 3944, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 945, 22101, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 3944, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 945, 1702, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 1702, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 945, 4723, 13, 288, 3639, 309, 261, 2352, 18, 2469, 422, 374, 13, 288, 1850, 368, 2631, 1384, 1850, 20415, 18, 18356, 30374, 67, 1617, 12, 56, 20, 1769, 8227, 368, 1758, 1850, 20415, 18, 18356, 30348, 67, 1617, 3866, 12, 56, 20, 1769, 5375, 368, 27351, 306, 56, 20, 15, 20, 65, 3639, 289, 469, 288, 1850, 368, 4444, 622, 1384, 1850, 20415, 18, 18356, 30374, 67, 1617, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 727, 1250, 3157, 19289, 261, 7397, 67, 1305, 2404, 312, 13, 288, 565, 8251, 67, 3641, 4918, 273, 312, 18, 17994, 5621, 565, 309, 261, 81, 18, 588, 559, 1435, 422, 8251, 67, 7534, 18, 1887, 13, 288, 1377, 368, 5267, 8146, 1377, 8251, 67, 7534, 8526, 1953, 273, 312, 18, 588, 1662, 2016, 5621, 1377, 368, 4444, 87, 777, 4862, 326, 646, 30, 1377, 368, 1372, 16, 5267, 16, 306, 2335, 65, 317, 1372, 16, 1445, 1377, 309, 261, 2039, 461, 422, 8251, 67, 19289, 1557, 18, 945, 1887, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 1887, 747, 1850, 4918, 422, 8251, 67, 19289, 1557, 18, 9366, 22101, 747, 1850, 4918, 422, 8251, 2 ]
public TableRenderer(ColumnMetaData[] meta, PrintStream out) { this(meta, out, "|");
public TableRenderer(ColumnMetaData[] meta, PrintStream out, String separator) { this.meta = meta; this.out = out; /* * we cache the rows in order to dynamically determine the * output width of each column. */ this.cacheRows = new ArrayList( MAX_CACHE_ELEMENTS ); this.alreadyFlushed = false; this.writtenRows = 0; this.colSeparator = " " + separator; this.separatorWidth = separator.length();
public TableRenderer(ColumnMetaData[] meta, PrintStream out) { this(meta, out, "|"); }
9659 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9659/78f0dfe67ad38b25fcc7a30cb3baadd66bf67de1/TableRenderer.java/buggy/src/henplus/util/TableRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3555, 6747, 12, 1494, 6998, 8526, 2191, 16, 21677, 596, 13, 288, 3639, 333, 12, 3901, 16, 596, 16, 11747, 8863, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3555, 6747, 12, 1494, 6998, 8526, 2191, 16, 21677, 596, 13, 288, 3639, 333, 12, 3901, 16, 596, 16, 11747, 8863, 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 ]
quit();
trackDatabase.purge(); update();
public void widgetSelected(SelectionEvent e){ quit(); }
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/a8e1d2567c971c7e4af1545485c60ebb83d9a965/Client.java/clean/trunk/irate/irate/swt/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 15329, 3639, 3298, 4254, 18, 26422, 5621, 1089, 5621, 1377, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4202, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 15329, 3639, 3298, 4254, 18, 26422, 5621, 1089, 5621, 1377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
ProgressViewerContentProvider.this.remove(new Object[] { element });
if(element == null) refresh(); else ProgressViewerContentProvider.this.remove(new Object[] { element });
private KeptJobsListener getKeptJobListener() { keptJobListener = new KeptJobsListener() { /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.FinishedJobs.KeptJobsListener#finished(org.eclipse.ui.internal.progress.JobTreeElement) */ public void finished(JobTreeElement jte) { keptJobs.add(jte); final JobTreeElement element = jte; Job updateJob = new WorkbenchJob("Refresh finished") {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { refresh(new Object[] { element }); return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(); } /* * (non-Javadoc) * * @see org.eclipse.ui.internal.progress.FinishedJobs.KeptJobsListener#removed(org.eclipse.ui.internal.progress.JobTreeElement) */ public void removed(JobTreeElement jte) { keptJobs.remove(jte); final JobTreeElement element = jte; Job updateJob = new WorkbenchJob("Remove finished") {//$NON-NLS-1$ /* (non-Javadoc) * @see org.eclipse.ui.progress.UIJob#runInUIThread(org.eclipse.core.runtime.IProgressMonitor) */ public IStatus runInUIThread(IProgressMonitor monitor) { ProgressViewerContentProvider.this.remove(new Object[] { element }); return Status.OK_STATUS; } }; updateJob.setSystem(true); updateJob.schedule(); } }; return keptJobListener; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/976616861f09ac9e962d77c0c6c5a9fa9324abca/ProgressViewerContentProvider.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressViewerContentProvider.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1475, 73, 337, 7276, 2223, 16566, 73, 337, 2278, 2223, 1435, 288, 202, 202, 4491, 337, 2278, 2223, 273, 394, 1475, 73, 337, 7276, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 10577, 7276, 18, 47, 73, 337, 7276, 2223, 7, 13527, 12, 3341, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 2278, 2471, 1046, 13, 9506, 1195, 1082, 202, 482, 918, 6708, 12, 2278, 2471, 1046, 525, 736, 13, 288, 9506, 202, 4491, 337, 7276, 18, 1289, 12, 78, 736, 1769, 9506, 202, 6385, 3956, 2471, 1046, 930, 273, 525, 736, 31, 9506, 202, 2278, 1089, 2278, 273, 394, 4147, 22144, 2278, 2932, 8323, 6708, 7923, 288, 759, 8, 3993, 17, 5106, 17, 21, 8, 6862, 202, 20308, 261, 5836, 17, 24060, 13, 25083, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 8298, 18, 5370, 2278, 7, 2681, 382, 57, 1285, 76, 896, 12, 3341, 18, 20416, 18, 3644, 18, 9448, 18, 45, 5491, 7187, 13, 25083, 1195, 6862, 202, 482, 467, 1482, 1086, 382, 57, 1285, 76, 896, 12, 45, 5491, 7187, 6438, 13, 288, 25083, 202, 9144, 12, 2704, 1033, 8526, 288, 930, 15549, 25083, 202, 2463, 2685, 18, 3141, 67, 8608, 31, 6862, 202, 97, 9506, 202, 20451, 9506, 202, 2725, 2278, 18, 542, 3163, 12, 3767, 1769, 9506, 202, 2725, 2278, 18, 10676, 5621, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1475, 73, 337, 7276, 2223, 16566, 73, 337, 2278, 2223, 1435, 288, 202, 202, 4491, 337, 2278, 2223, 273, 394, 1475, 73, 337, 7276, 2223, 1435, 288, 1082, 202, 20308, 9506, 380, 261, 5836, 17, 24060, 13, 9506, 380, 4697, 380, 632, 5946, 2358, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 10577, 7276, 18, 47, 73, 337, 7276, 2223, 7, 13527, 12, 3341, 18, 20416, 18, 4881, 18, 7236, 18, 8298, 18, 2278, 2471, 1046, 13, 9506, 1195, 1082, 202, 482, 918, 6708, 12, 2278, 2471, 1046, 525, 736, 13, 288, 9506, 202, 4491, 337, 7276, 18, 1289, 12, 78, 736, 1769, 9506, 202, 6385, 3956, 2471, 1046, 930, 273, 525, 736, 31, 9506, 2 ]
indexer.indexItem(mbox, mId, mType, getTimestamp());
indexer.indexItem(mbox, mId, mType, getTimestamp(), getUnloggedReplay());
public void redo() throws Exception { int mboxId = getMailboxId(); Mailbox mbox = Mailbox.getMailboxById(mboxId); Indexer indexer = Indexer.GetInstance(); indexer.indexItem(mbox, mId, mType, getTimestamp()); }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/08650de5e4f902628b2f20a31d7080319cc9e188/IndexItem.java/buggy/ZimbraServer/src/java/com/zimbra/cs/redolog/op/IndexItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 24524, 1435, 1216, 1185, 288, 202, 202, 474, 312, 2147, 548, 273, 31991, 2147, 548, 5621, 202, 202, 30239, 312, 2147, 273, 11542, 2147, 18, 588, 30239, 5132, 12, 81, 2147, 548, 1769, 202, 202, 20877, 12635, 273, 3340, 264, 18, 967, 1442, 5621, 3639, 12635, 18, 1615, 1180, 12, 81, 2147, 16, 312, 548, 16, 312, 559, 16, 11940, 10663, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 24524, 1435, 1216, 1185, 288, 202, 202, 474, 312, 2147, 548, 273, 31991, 2147, 548, 5621, 202, 202, 30239, 312, 2147, 273, 11542, 2147, 18, 588, 30239, 5132, 12, 81, 2147, 548, 1769, 202, 202, 20877, 12635, 273, 3340, 264, 18, 967, 1442, 5621, 3639, 12635, 18, 1615, 1180, 12, 81, 2147, 16, 312, 548, 16, 312, 559, 16, 11940, 10663, 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 ]
if(selection != null) { if (selection instanceof IEditorPart) { page.setEditorAreaVisible(true); } page.activate(selection); }
activate(page,selection);
public void run() { boolean direction = forward; try { IWorkbenchPage page = getActivePage(); openDialog((WorkbenchPage)page); if(selection != null) { if (selection instanceof IEditorPart) { page.setEditorAreaVisible(true); } page.activate(selection); } } finally { forward = direction; }}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/c05df089dd3156cc94e3c4cfc58bd7e0244abd0d/CyclePartAction.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/CyclePartAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1086, 1435, 288, 202, 6494, 4068, 273, 5104, 31, 202, 698, 288, 202, 202, 45, 2421, 22144, 1964, 1363, 273, 11960, 1964, 5621, 202, 202, 3190, 6353, 12443, 2421, 22144, 1964, 13, 2433, 1769, 3196, 202, 430, 12, 10705, 480, 446, 13, 288, 1082, 202, 430, 261, 10705, 1276, 467, 6946, 1988, 13, 288, 9506, 202, 2433, 18, 542, 6946, 5484, 6207, 12, 3767, 1769, 1082, 202, 97, 1082, 202, 2433, 18, 10014, 12, 10705, 1769, 202, 202, 97, 202, 97, 3095, 288, 202, 202, 11565, 273, 4068, 31, 202, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1071, 918, 1086, 1435, 288, 202, 6494, 4068, 273, 5104, 31, 202, 698, 288, 202, 202, 45, 2421, 22144, 1964, 1363, 273, 11960, 1964, 5621, 202, 202, 3190, 6353, 12443, 2421, 22144, 1964, 13, 2433, 1769, 3196, 202, 430, 12, 10705, 480, 446, 13, 288, 1082, 202, 430, 261, 10705, 1276, 467, 6946, 1988, 13, 288, 9506, 202, 2433, 18, 542, 6946, 5484, 6207, 12, 3767, 1769, 1082, 202, 97, 1082, 202, 2433, 18, 10014, 12, 10705, 1769, 202, 202, 97, 202, 97, 3095, 288, 202, 202, 11565, 273, 4068, 31, 202, 9090, 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 ]
"'' as TABLE_CAT," + "'' AS TABLE_SCHEM," + "bc.relname AS TABLE_NAME," + "ic.relname AS COLUMN_NAME," + "'1' as KEY_SEQ,"+ "t.typname as PK_NAME " + " FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a, pg_type t " + " WHERE bc.relkind = 'r' " + " and bc.relname ~ '"+table+"'" + " and i.indrelid = bc.oid" + " and i.indexrelid = ic.oid" + " and i.indkey[0] = a.attnum" + " and i.indproc = '0'::oid" + " and a.attrelid = bc.oid" + " ORDER BY TABLE_NAME, COLUMN_NAME;"
" '' as TABLE_CAT," + " '' AS TABLE_SCHEM," + " bc.relname AS TABLE_NAME," + " a.attname AS COLUMN_NAME," + " a.attnum as KEY_SEQ," + " ic.relname as PK_NAME" + " from pg_class bc, pg_class ic, pg_index i, pg_attribute a, pg_type t" + " where bc.relkind = 'r'"+ " and upper(bc.relname) = upper('test')" + " and i.indrelid = bc.oid" + " and i.indexrelid = ic.oid and a.attrelid = ic.oid"+ " and i.indisprimary='t'"+ " order by table_name, pk_name,key_seq;"
public java.sql.ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { return connection.createStatement().executeQuery("SELECT " + "'' as TABLE_CAT," + "'' AS TABLE_SCHEM," + "bc.relname AS TABLE_NAME," + "ic.relname AS COLUMN_NAME," + "'1' as KEY_SEQ,"+ // -- fake it as a String for now "t.typname as PK_NAME " + " FROM pg_class bc, pg_class ic, pg_index i, pg_attribute a, pg_type t " + " WHERE bc.relkind = 'r' " + // -- not indices " and bc.relname ~ '"+table+"'" + " and i.indrelid = bc.oid" + " and i.indexrelid = ic.oid" + " and i.indkey[0] = a.attnum" + " and i.indproc = '0'::oid" + " and a.attrelid = bc.oid" + " ORDER BY TABLE_NAME, COLUMN_NAME;" ); }
52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/24c82830cf8e7cc6d378c622ef1028937a4ee488/DatabaseMetaData.java/buggy/src/interfaces/jdbc/postgresql/jdbc1/DatabaseMetaData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 11398, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 225, 288, 565, 327, 1459, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4803, 315, 397, 6862, 1082, 377, 2491, 11, 487, 7567, 67, 14130, 10837, 397, 6862, 1082, 377, 2491, 11, 5355, 7567, 67, 55, 10390, 10837, 397, 6862, 1082, 377, 315, 13459, 18, 2878, 529, 5355, 7567, 67, 1985, 10837, 397, 6862, 1082, 377, 315, 335, 18, 2878, 529, 5355, 13473, 67, 1985, 10837, 397, 6862, 1082, 377, 2491, 21, 11, 487, 5311, 67, 28114, 10837, 15, 368, 1493, 10517, 518, 487, 279, 514, 364, 2037, 6862, 1082, 377, 315, 88, 18, 12846, 529, 487, 11327, 67, 1985, 315, 397, 6862, 1082, 377, 315, 4571, 7184, 67, 1106, 6533, 16, 7184, 67, 1106, 13579, 16, 7184, 67, 1615, 277, 16, 7184, 67, 4589, 279, 16, 7184, 67, 723, 268, 315, 397, 6862, 1082, 377, 315, 4852, 6533, 18, 2878, 9224, 273, 296, 86, 11, 315, 397, 368, 565, 1493, 486, 4295, 6862, 1082, 377, 315, 225, 471, 6533, 18, 2878, 529, 4871, 2119, 15, 2121, 9078, 4970, 397, 6862, 1082, 377, 315, 225, 471, 277, 18, 728, 2878, 350, 273, 6533, 18, 839, 6, 397, 6862, 1082, 377, 315, 225, 471, 277, 18, 1615, 2878, 350, 273, 13579, 18, 839, 6, 397, 6862, 1082, 377, 315, 225, 471, 277, 18, 728, 856, 63, 20, 65, 273, 279, 18, 4558, 2107, 6, 397, 6862, 1082, 377, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2252, 18, 4669, 18, 13198, 11398, 2396, 12, 780, 6222, 16, 514, 1963, 16, 514, 1014, 13, 1216, 6483, 225, 288, 565, 327, 1459, 18, 2640, 3406, 7675, 8837, 1138, 2932, 4803, 315, 397, 6862, 1082, 377, 2491, 11, 487, 7567, 67, 14130, 10837, 397, 6862, 1082, 377, 2491, 11, 5355, 7567, 67, 55, 10390, 10837, 397, 6862, 1082, 377, 315, 13459, 18, 2878, 529, 5355, 7567, 67, 1985, 10837, 397, 6862, 1082, 377, 315, 335, 18, 2878, 529, 5355, 13473, 67, 1985, 10837, 397, 6862, 1082, 377, 2491, 21, 11, 487, 5311, 67, 28114, 10837, 15, 368, 1493, 10517, 518, 487, 279, 514, 364, 2037, 6862, 1082, 377, 315, 88, 18, 12846, 529, 487, 11327, 67, 2 ]
replaceStatement(forStatement, newExpression);
replaceStatementAndShortenClassNames(forStatement, newExpression);
public void doFix(Project project, ProblemDescriptor descriptor) throws IncorrectOperationException{ final PsiElement forElement = descriptor.getPsiElement(); final PsiForStatement forStatement = (PsiForStatement) forElement.getParent(); if(isArrayLoopStatement(forStatement)){ final String newExpression = createArrayIterationText(forStatement, project); replaceStatement(forStatement, newExpression); } else if(isCollectionLoopStatement(forStatement)){ final String newExpression = createCollectionIterationText(forStatement, project); replaceStatement(forStatement, newExpression); } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/19f8befdc5aef42b3de4f9a90fc26ac8b94cb010/ForCanBeForeachInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/jdk15/ForCanBeForeachInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 7734, 1216, 657, 6746, 10602, 95, 5411, 727, 453, 7722, 1046, 364, 1046, 273, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 1290, 3406, 364, 3406, 273, 10792, 261, 52, 7722, 1290, 3406, 13, 364, 1046, 18, 588, 3054, 5621, 5411, 309, 12, 291, 1076, 6452, 3406, 12, 1884, 3406, 3719, 95, 7734, 727, 514, 394, 2300, 273, 13491, 752, 1076, 10795, 1528, 12, 1884, 3406, 16, 1984, 1769, 7734, 1453, 3406, 1876, 4897, 275, 18127, 12, 1884, 3406, 16, 394, 2300, 1769, 5411, 289, 469, 309, 12, 291, 2532, 6452, 3406, 12, 1884, 3406, 3719, 95, 7734, 727, 514, 394, 2300, 273, 13491, 752, 2532, 10795, 1528, 12, 1884, 3406, 16, 1984, 1769, 7734, 1453, 3406, 1876, 4897, 275, 18127, 12, 1884, 3406, 16, 394, 2300, 1769, 5411, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 7734, 1216, 657, 6746, 10602, 95, 5411, 727, 453, 7722, 1046, 364, 1046, 273, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 1290, 3406, 364, 3406, 273, 10792, 261, 52, 7722, 1290, 3406, 13, 364, 1046, 18, 588, 3054, 5621, 5411, 309, 12, 291, 1076, 6452, 3406, 12, 1884, 3406, 3719, 95, 7734, 727, 514, 394, 2300, 273, 13491, 752, 1076, 10795, 1528, 12, 1884, 3406, 16, 1984, 1769, 7734, 1453, 3406, 1876, 4897, 275, 18127, 12, 1884, 3406, 16, 394, 2300, 1769, 5411, 289, 469, 309, 12, 291, 2532, 6452, 3406, 12, 1884, 3406, 3719, 95, 7734, 727, 514, 394, 2300, 273, 2 ]
getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP ) );
getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP, flag ) );
protected void setupDistinctStyleProperties( StyleDesign style, DesignElementHandle handle, DesignElementHandle parentHandle ) { // Background setStyleProperty( style, Style.BACKGROUND_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BACKGROUND_COLOR_PROP ) ); setStyleProperty( style, Style.BACKGROUND_IMAGE_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_IMAGE_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_X_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_X_PROP ) ); setStyleProperty( style, Style.BACKGROUND_POSITION_Y_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_POSITION_Y_PROP ) ); setStyleProperty( style, Style.BACKGROUND_REPEAT_PROP, getDistinctProperty( handle, parentHandle, Style.BACKGROUND_REPEAT_PROP ) ); // Text related setStyleProperty( style, Style.TEXT_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_ALIGN_PROP ) ); setStyleProperty( style, Style.TEXT_INDENT_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_INDENT_PROP ) ); setStyleProperty( style, Style.LETTER_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.LETTER_SPACING_PROP ) ); setStyleProperty( style, Style.LINE_HEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.LINE_HEIGHT_PROP ) ); setStyleProperty( style, Style.ORPHANS_PROP, getDistinctProperty( handle, parentHandle, Style.ORPHANS_PROP ) ); setStyleProperty( style, Style.TEXT_TRANSFORM_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_TRANSFORM_PROP ) ); setStyleProperty( style, Style.VERTICAL_ALIGN_PROP, getDistinctProperty( handle, parentHandle, Style.VERTICAL_ALIGN_PROP ) ); setStyleProperty( style, Style.WHITE_SPACE_PROP, getDistinctProperty( handle, parentHandle, Style.WHITE_SPACE_PROP ) ); setStyleProperty( style, Style.WIDOWS_PROP, getDistinctProperty( handle, parentHandle, Style.WIDOWS_PROP ) ); setStyleProperty( style, Style.WORD_SPACING_PROP, getDistinctProperty( handle, parentHandle, Style.WORD_SPACING_PROP ) ); // Section properties setStyleProperty( style, Style.DISPLAY_PROP, getDistinctProperty( handle, parentHandle, Style.DISPLAY_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, getDistinctProperty( handle, parentHandle, Style.MASTER_PAGE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_AFTER_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_AFTER_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_BEFORE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_BEFORE_PROP ) ); setStyleProperty( style, Style.PAGE_BREAK_INSIDE_PROP, getDistinctProperty( handle, parentHandle, Style.PAGE_BREAK_INSIDE_PROP ) ); /* * setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, * getDistinctProperty( handle, parentHandle, Style.SHOW_IF_BLANK_PROP ) ); * setStyleProperty( style, Style.CAN_SHRINK_PROP, * getDistinctProperty( handle, parentHandle, Style.CAN_SHRINK_PROP ) ); */ // Font related setStyleProperty( style, Style.FONT_FAMILY_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_FAMILY_PROP ) ); setStyleProperty( style, Style.COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.COLOR_PROP ) ); setStyleProperty( style, Style.FONT_SIZE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_SIZE_PROP ) ); setStyleProperty( style, Style.FONT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_STYLE_PROP ) ); setStyleProperty( style, Style.FONT_WEIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_WEIGHT_PROP ) ); setStyleProperty( style, Style.FONT_VARIANT_PROP, getDistinctProperty( handle, parentHandle, Style.FONT_VARIANT_PROP ) ); // Text decoration setStyleProperty( style, Style.TEXT_LINE_THROUGH_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_LINE_THROUGH_PROP ) ); setStyleProperty( style, Style.TEXT_OVERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_OVERLINE_PROP ) ); setStyleProperty( style, Style.TEXT_UNDERLINE_PROP, getDistinctProperty( handle, parentHandle, Style.TEXT_UNDERLINE_PROP ) ); // Border setStyleProperty( style, Style.BORDER_BOTTOM_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_BOTTOM_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_BOTTOM_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_BOTTOM_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_LEFT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_LEFT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_LEFT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_RIGHT_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_RIGHT_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_RIGHT_WIDTH_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_COLOR_PROP, getDistinctColorProperty( handle, parentHandle, Style.BORDER_TOP_COLOR_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_STYLE_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_STYLE_PROP ) ); setStyleProperty( style, Style.BORDER_TOP_WIDTH_PROP, getDistinctProperty( handle, parentHandle, Style.BORDER_TOP_WIDTH_PROP ) ); // Margin setStyleProperty( style, Style.MARGIN_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_TOP_PROP ) ); setStyleProperty( style, Style.MARGIN_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_LEFT_PROP ) ); setStyleProperty( style, Style.MARGIN_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_BOTTOM_PROP ) ); setStyleProperty( style, Style.MARGIN_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.MARGIN_RIGHT_PROP ) ); // Padding setStyleProperty( style, Style.PADDING_TOP_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_TOP_PROP ) ); setStyleProperty( style, Style.PADDING_LEFT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_LEFT_PROP ) ); setStyleProperty( style, Style.PADDING_BOTTOM_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_BOTTOM_PROP ) ); setStyleProperty( style, Style.PADDING_RIGHT_PROP, getDistinctProperty( handle, parentHandle, Style.PADDING_RIGHT_PROP ) ); // Data Formatting setStyleProperty( style, Style.NUMBER_ALIGN_PROP, handle.getProperty( Style.NUMBER_ALIGN_PROP ) ); Object value = handle.getProperty( Style.DATE_TIME_FORMAT_PROP ); if ( value != null && value instanceof DateTimeFormatValue ) { setStyleProperty( style, Style.DATE_TIME_FORMAT_PROP, ( (DateTimeFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.NUMBER_FORMAT_PROP ); if ( value != null && value instanceof NumberFormatValue ) { setStyleProperty( style, Style.NUMBER_FORMAT_PROP, ( (NumberFormatValue) value ).getPattern( ) ); } value = handle.getProperty( Style.STRING_FORMAT_PROP ); if ( value != null && value instanceof StringFormatValue ) { setStyleProperty( style, Style.STRING_FORMAT_PROP, ( (StringFormatValue) value ).getPattern( ) ); } //Others setStyleProperty( style, Style.CAN_SHRINK_PROP, handle.getProperty( Style.CAN_SHRINK_PROP ) ); setStyleProperty( style, Style.SHOW_IF_BLANK_PROP, handle.getProperty( Style.SHOW_IF_BLANK_PROP ) ); setStyleProperty( style, Style.MASTER_PAGE_PROP, handle.getProperty( Style.MASTER_PAGE_PROP ) ); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/26e720886eb20318d2dd7875ea22a8e430dd3bf6/EngineIRVisitor.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/parser/EngineIRVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3875, 23402, 2885, 2297, 12, 9767, 15478, 2154, 16, 1082, 202, 15478, 1046, 3259, 1640, 16, 29703, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 16, 9506, 202, 588, 23402, 2957, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 60, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 60, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 61, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 15258, 67, 61, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 862, 31804, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 862, 31804, 67, 15811, 262, 11272, 202, 202, 759, 3867, 3746, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 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, 3875, 23402, 2885, 2297, 12, 9767, 15478, 2154, 16, 1082, 202, 15478, 1046, 3259, 1640, 16, 29703, 1046, 3259, 982, 3259, 262, 202, 95, 202, 202, 759, 8977, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 16, 9506, 202, 588, 23402, 2957, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 10989, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 16, 9506, 202, 588, 23402, 1396, 12, 1640, 16, 982, 3259, 16, 9767, 18, 8720, 20166, 67, 13603, 67, 15811, 262, 11272, 202, 202, 542, 2885, 1396, 12, 2154, 16, 9767, 18, 2 ]
File file = new File(absolutPath + File.separator + (String) files[i]);
File file = new File(absolutPath + File.separator + files[i]);
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, String targetOs, ArrayList list, String casesensitive) throws Exception { boolean bCasesensitive = false; File test = new File(path); if (test.isDirectory()) { if (casesensitive != null) bCasesensitive = casesensitive.equalsIgnoreCase("Yes"); DirectoryScanner ds = new DirectoryScanner(); ds.setIncludes(includes); ds.setExcludes(excludes); ds.setBasedir(new File(path)); ds.setCaseSensitive(bCasesensitive); ds.scan(); String[] files = ds.getIncludedFiles(); String[] dirs = ds.getIncludedDirectories(); /* Old buggy code String newRelativePath = null; String absolutBasePath = test.getParentFile().getAbsolutePath(); String absolutPath = test.getAbsolutePath(); String absolutFilePath = null; int copyPathFrom = absolutBasePath.length() + 1; for (int i = 0; i < files.length; i++) { File file = new File(absolutPath + File.separator + (String) files[i]); absolutFilePath = file.getParentFile().getAbsolutePath(); newRelativePath = relPath + File.separator + absolutFilePath.substring(copyPathFrom); //FIX ME: the override for fileset is by default true, needs to be changed addFile(file, newRelativePath, targetOs, true, list); } */ // New working code (for files) String filePath, instPath, expPath; int pathLimit; File file; for (int i = 0; i < files.length; ++i) { filePath = path + File.separator + files[i]; expPath = relPath + File.separator + files[i]; file = new File(filePath); pathLimit = expPath.indexOf(file.getName()); if (pathLimit > 0) instPath = expPath.substring(0, pathLimit); else instPath = relPath; addFile(file, instPath, targetOs, true, list); } // Empty directories are left by the previous code section, so we need to // take care of them for (int i = 0; i < dirs.length; ++i) { expPath = path + File.separator + dirs[i]; File dir = new File(expPath); if (dir.list().length == 0) { instPath = relPath + File.separator + dirs[i]; pathLimit = instPath.indexOf(dir.getName()); instPath = instPath.substring(0, pathLimit); addFile(dir, instPath, targetOs, true, list); } } } else throw new Exception("\"dir\" attribute of fileset is not valid: " + path); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/85d99afd9a4052ba0a6796445a7aa6be8c4054c9/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 514, 1018, 15112, 16, 2407, 666, 16, 514, 6088, 6536, 13, 377, 1216, 1185, 225, 288, 565, 1250, 324, 30744, 6536, 273, 629, 31, 565, 1387, 1842, 273, 394, 1387, 12, 803, 1769, 565, 309, 261, 3813, 18, 291, 2853, 10756, 565, 288, 1377, 309, 261, 22186, 6536, 480, 446, 13, 3639, 324, 30744, 6536, 273, 6088, 6536, 18, 14963, 5556, 2932, 22352, 8863, 1377, 8930, 11338, 3780, 273, 394, 8930, 11338, 5621, 1377, 3780, 18, 542, 16815, 12, 18499, 1769, 1377, 3780, 18, 542, 30866, 12, 338, 8993, 1769, 1377, 3780, 18, 542, 2171, 1214, 12, 2704, 1387, 12, 803, 10019, 1377, 3780, 18, 542, 2449, 14220, 12, 70, 30744, 6536, 1769, 1377, 3780, 18, 9871, 5621, 1377, 514, 8526, 1390, 273, 3780, 18, 588, 19323, 2697, 5621, 3639, 514, 8526, 7717, 273, 3780, 18, 588, 19323, 13071, 5621, 1377, 1748, 18613, 324, 5696, 93, 981, 1377, 514, 394, 16519, 273, 446, 31, 1377, 514, 2417, 355, 322, 15912, 273, 1842, 18, 588, 3054, 812, 7675, 588, 10368, 743, 5621, 1377, 514, 2417, 355, 322, 743, 273, 1842, 18, 588, 10368, 743, 5621, 1377, 514, 2417, 355, 322, 5598, 273, 446, 31, 1377, 509, 1610, 743, 1265, 273, 2417, 355, 322, 15912, 18, 2469, 1435, 397, 404, 31, 1377, 364, 261, 474, 277, 273, 374, 31, 277, 411, 1390, 18, 2469, 31, 277, 27245, 1377, 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, 918, 18671, 694, 12, 780, 589, 16, 514, 8526, 6104, 16, 514, 8526, 13644, 16, 18701, 514, 20282, 16, 514, 1018, 15112, 16, 2407, 666, 16, 514, 6088, 6536, 13, 377, 1216, 1185, 225, 288, 565, 1250, 324, 30744, 6536, 273, 629, 31, 565, 1387, 1842, 273, 394, 1387, 12, 803, 1769, 565, 309, 261, 3813, 18, 291, 2853, 10756, 565, 288, 1377, 309, 261, 22186, 6536, 480, 446, 13, 3639, 324, 30744, 6536, 273, 6088, 6536, 18, 14963, 5556, 2932, 22352, 8863, 1377, 8930, 11338, 3780, 273, 394, 8930, 11338, 5621, 1377, 3780, 18, 542, 16815, 12, 18499, 1769, 1377, 3780, 18, 542, 30866, 12, 338, 8993, 1769, 1377, 3780, 18, 542, 2171, 1214, 12, 2704, 2 ]
if (fCurrentElementEntity != readerId) { fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_ELEMENT_ENTITY_MISMATCH, XMLMessages.P78_NOT_WELLFORMED, new Object[] { fStringPool.toString(elementType)}, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); }
if (fCurrentElementEntity != readerId) { fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_ELEMENT_ENTITY_MISMATCH, XMLMessages.P78_NOT_WELLFORMED, new Object[] { fStringPool.toString(elementType)}, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); }
public void callEndElement(int readerId) throws Exception { if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("=======EndElement : " + fStringPool.toString(fCurrentElement.localpart)+"\n"); int prefixIndex = fCurrentElement.prefix; int elementType = fCurrentElement.rawname; if (fCurrentElementEntity != readerId) { fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_ELEMENT_ENTITY_MISMATCH, XMLMessages.P78_NOT_WELLFORMED, new Object[] { fStringPool.toString(elementType)}, XMLErrorReporter.ERRORTYPE_FATAL_ERROR); } fElementDepth--; if (fValidating) { int elementIndex = fCurrentElementIndex; if (elementIndex != -1 && fCurrentContentSpecType != -1) { QName children[] = fElementChildren; int childrenOffset = fElementChildrenOffsetStack[fElementDepth + 1] + 1; int childrenLength = fElementChildrenLength - childrenOffset; if (DEBUG_ELEMENT_CHILDREN) { System.out.println("endElement("+fStringPool.toString(fCurrentElement.rawname)+')'); System.out.println("fCurrentContentSpecType : " + fCurrentContentSpecType ); System.out.print("offset: "); System.out.print(childrenOffset); System.out.print(", length: "); System.out.print(childrenLength); System.out.println(); printChildren(); printStack(); } int result = checkContent(elementIndex, children, childrenOffset, childrenLength); if ( DEBUG_SCHEMA_VALIDATION ) System.out.println("!!!!!!!!In XMLValidator, the return value from checkContent : " + result); if (result != -1) { int majorCode = result != childrenLength ? XMLMessages.MSG_CONTENT_INVALID : XMLMessages.MSG_CONTENT_INCOMPLETE; fGrammar.getElementDecl(elementIndex, fTempElementDecl); if (fTempElementDecl.type == XMLElementDecl.TYPE_EMPTY) { reportRecoverableXMLError(majorCode, 0, fStringPool.toString(elementType), "EMPTY"); } else reportRecoverableXMLError(majorCode, 0, fStringPool.toString(elementType), XMLContentSpec.toString(fGrammar, fStringPool, fTempElementDecl.contentSpecIndex)); } } fElementChildrenLength = fElementChildrenOffsetStack[fElementDepth + 1] + 1; } fDocumentHandler.endElement(fCurrentElement); if (fNamespacesEnabled) { fNamespacesScope.decreaseDepth(); } // now pop this element off the top of the element stack //if (fElementDepth-- < 0) { if (fElementDepth < -1) { throw new RuntimeException("FWK008 Element stack underflow"); } if (fElementDepth < 0) { fCurrentElement.clear(); fCurrentElementEntity = -1; fCurrentElementIndex = -1; fCurrentContentSpecType = -1; fInElementContent = false; // // Check after document is fully parsed // (1) check that there was an element with a matching id for every // IDREF and IDREFS attr (V_IDREF0) // if (fValidating ) { try { this.fValIDRef.validate( null, this.fValidateIDRef ); this.fValIDRefs.validate( null, this.fValidateIDRef ); } catch ( InvalidDatatypeValueException ex ) { reportRecoverableXMLError( ex.getMajorCode(), ex.getMinorCode(), ex.getMessage() ); } } try {//Reset datatypes state this.fValID.validate( null, this.fResetID ); this.fValIDRef.validate(null, this.fResetIDRef ); this.fValIDRefs.validate(null, this.fResetIDRef ); } catch ( InvalidDatatypeValueException ex ) { System.err.println("Error re-Initializing: ID,IDRef,IDRefs pools" ); } return; } //restore enclosing element to all the "current" variables // REVISIT: Validation. This information needs to be stored. fCurrentElement.prefix = -1; if (fNamespacesEnabled) { //If Namespace enable then localName != rawName fCurrentElement.localpart = fElementQNamePartsStack[fElementDepth].localpart; } else {//REVISIT - jeffreyr - This is so we still do old behavior when namespace is off fCurrentElement.localpart = fElementQNamePartsStack[fElementDepth].rawname; } fCurrentElement.rawname = fElementQNamePartsStack[fElementDepth].rawname; fCurrentElement.uri = fElementQNamePartsStack[fElementDepth].uri; fCurrentElement.prefix = fElementQNamePartsStack[fElementDepth].prefix; fCurrentElementEntity = fElementEntityStack[fElementDepth]; fCurrentElementIndex = fElementIndexStack[fElementDepth]; fCurrentContentSpecType = fContentSpecTypeStack[fElementDepth]; fValidating = fValidationFlagStack[fElementDepth] == 0 ? true : false; fCurrentScope = fScopeStack[fElementDepth]; //if ( DEBUG_SCHEMA_VALIDATION ) {/****System.out.println("+++++ currentElement : " + fStringPool.toString(elementType)+ "\n fCurrentElementIndex : " + fCurrentElementIndex + "\n fCurrentScope : " + fCurrentScope + "\n fCurrentContentSpecType : " + fCurrentContentSpecType + "\n++++++++++++++++++++++++++++++++++++++++++++++++" );/****/ //} // if enclosing element's Schema is different, need to switch "context" if ( fGrammarNameSpaceIndex != fGrammarNameSpaceIndexStack[fElementDepth] ) { fGrammarNameSpaceIndex = fGrammarNameSpaceIndexStack[fElementDepth]; if ( fValidating && fGrammarIsSchemaGrammar ) if ( !switchGrammar(fGrammarNameSpaceIndex) ) { reportRecoverableXMLError(XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, "Grammar with uri 1: " + fStringPool.toString(fGrammarNameSpaceIndex) + " , can not found"); } } if (fValidating) { fBufferDatatype = false; } fInElementContent = (fCurrentContentSpecType == XMLElementDecl.TYPE_CHILDREN); } // callEndElement(int)
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b36768aae85d6d13bc8c8289ca78efb212c8fb8f/XMLValidator.java/clean/src/org/apache/xerces/validators/common/XMLValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 745, 1638, 1046, 12, 474, 2949, 548, 13, 1216, 1185, 288, 3639, 309, 261, 6369, 67, 14233, 67, 5063, 2689, 262, 5411, 2332, 18, 659, 18, 8222, 2932, 894, 12275, 1638, 1046, 294, 315, 397, 284, 780, 2864, 18, 10492, 12, 74, 3935, 1046, 18, 3729, 2680, 13, 9078, 64, 82, 8863, 3639, 509, 1633, 1016, 273, 284, 3935, 1046, 18, 3239, 31, 3639, 509, 21427, 273, 284, 3935, 1046, 18, 1899, 529, 31, 3639, 309, 261, 74, 3935, 1046, 1943, 480, 2949, 548, 13, 288, 5411, 284, 668, 13289, 18, 6006, 668, 12, 74, 668, 13289, 18, 588, 5786, 9334, 4766, 4202, 3167, 5058, 18, 4201, 67, 18192, 16, 4766, 4202, 3167, 5058, 18, 11210, 67, 10976, 67, 11101, 67, 30062, 11793, 16, 4766, 4202, 3167, 5058, 18, 52, 8285, 67, 4400, 67, 59, 21943, 7473, 25773, 16, 4766, 4202, 394, 1033, 8526, 288, 284, 780, 2864, 18, 10492, 12, 2956, 559, 13, 5779, 4766, 4202, 3167, 668, 13289, 18, 3589, 2399, 67, 29891, 67, 3589, 1769, 3639, 289, 3639, 284, 1046, 6148, 413, 31, 3639, 309, 261, 74, 31496, 13, 288, 5411, 509, 930, 1016, 273, 284, 3935, 1046, 1016, 31, 5411, 309, 261, 2956, 1016, 480, 300, 21, 597, 284, 3935, 1350, 1990, 559, 480, 300, 21, 13, 288, 7734, 16723, 2325, 8526, 273, 284, 1046, 4212, 31, 7734, 509, 2325, 2335, 273, 284, 1046, 4212, 2335, 2624, 63, 74, 1046, 6148, 397, 404, 65, 397, 404, 31, 7734, 509, 2325, 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, 745, 1638, 1046, 12, 474, 2949, 548, 13, 1216, 1185, 288, 3639, 309, 261, 6369, 67, 14233, 67, 5063, 2689, 262, 5411, 2332, 18, 659, 18, 8222, 2932, 894, 12275, 1638, 1046, 294, 315, 397, 284, 780, 2864, 18, 10492, 12, 74, 3935, 1046, 18, 3729, 2680, 13, 9078, 64, 82, 8863, 3639, 509, 1633, 1016, 273, 284, 3935, 1046, 18, 3239, 31, 3639, 509, 21427, 273, 284, 3935, 1046, 18, 1899, 529, 31, 3639, 309, 261, 74, 3935, 1046, 1943, 480, 2949, 548, 13, 288, 5411, 284, 668, 13289, 18, 6006, 668, 12, 74, 668, 13289, 18, 588, 5786, 9334, 4766, 4202, 3167, 5058, 18, 4201, 67, 18192, 16, 4766, 4202, 3167, 5058, 18, 11210, 2 ]
if (ch == '\0') { ch = nextCharacter(inputStream); } skipWhitespace(inputStream); if (isLabelCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isLabelCharacter(ch)); return new Token(ID_TOKEN, sb.toString()); } else if (ch == '=') { ch = nextCharacter(inputStream); skipWhitespace(inputStream); if (isValueCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isValueCharacter(ch)); return new Token(VALUE_TOKEN, sb.toString().trim()); } } else if (ch == '[') { ch = nextCharacter(inputStream); Token id = getToken(inputStream); ch = nextCharacter(inputStream); return new Token(SECTION_TOKEN, id.getValue()); } else if (ch == '#') { do { ch = nextCharacter(inputStream); } while (!isNewLineCharacter(ch)); return getToken(inputStream); } return null; }
if (ch == '\0') { ch = nextCharacter(inputStream); } skipWhitespace(inputStream); if (isLabelCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isLabelCharacter(ch)); return new Token(ID_TOKEN, sb.toString()); } else if (ch == '=') { ch = nextCharacter(inputStream); skipWhitespace(inputStream); if (isValueCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isValueCharacter(ch)); return new Token(VALUE_TOKEN, sb.toString().trim()); } } else if (ch == '[') { ch = nextCharacter(inputStream); Token id = getToken(inputStream); ch = nextCharacter(inputStream); return new Token(SECTION_TOKEN, id.getValue()); } else if (ch == '#') { do { ch = nextCharacter(inputStream); } while (!isNewLineCharacter(ch)); return getToken(inputStream); } return null; }
private Token getToken(InputStream inputStream) throws IOException { if (ch == '\0') { ch = nextCharacter(inputStream); } skipWhitespace(inputStream); if (isLabelCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isLabelCharacter(ch)); return new Token(ID_TOKEN, sb.toString()); } else if (ch == '=') { ch = nextCharacter(inputStream); skipWhitespace(inputStream); if (isValueCharacter(ch)) { sb.setLength(0); do { sb.append(ch); ch = nextCharacter(inputStream); } while (isValueCharacter(ch)); return new Token(VALUE_TOKEN, sb.toString().trim()); } } else if (ch == '[') { ch = nextCharacter(inputStream); Token id = getToken(inputStream); // check ] ch = nextCharacter(inputStream); // skip ] return new Token(SECTION_TOKEN, id.getValue()); } else if (ch == '#') { do { ch = nextCharacter(inputStream); } while (!isNewLineCharacter(ch)); return getToken(inputStream); } return null; }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/a5c35649be3992d0143e934b0ce45a0dd00ace24/SessionSettings.java/buggy/src/quickfix/SessionSettings.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 1152, 3155, 9162, 12, 4348, 10010, 13, 1216, 1860, 288, 1082, 202, 430, 261, 343, 422, 2337, 20, 6134, 288, 9506, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 1082, 202, 97, 1082, 202, 7457, 9431, 12, 2630, 1228, 1769, 1082, 202, 430, 261, 291, 2224, 7069, 12, 343, 3719, 288, 9506, 202, 18366, 18, 542, 1782, 12, 20, 1769, 9506, 202, 2896, 288, 6862, 202, 18366, 18, 6923, 12, 343, 1769, 6862, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 9506, 202, 97, 1323, 261, 291, 2224, 7069, 12, 343, 10019, 9506, 202, 2463, 394, 3155, 12, 734, 67, 8412, 16, 2393, 18, 10492, 10663, 1082, 202, 97, 469, 309, 261, 343, 422, 5214, 13, 288, 9506, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 9506, 202, 7457, 9431, 12, 2630, 1228, 1769, 9506, 202, 430, 261, 291, 620, 7069, 12, 343, 3719, 288, 6862, 202, 18366, 18, 542, 1782, 12, 20, 1769, 6862, 202, 2896, 288, 25083, 202, 18366, 18, 6923, 12, 343, 1769, 25083, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 6862, 202, 97, 1323, 261, 291, 620, 7069, 12, 343, 10019, 6862, 202, 2463, 394, 3155, 12, 4051, 67, 8412, 16, 2393, 18, 10492, 7675, 5290, 10663, 9506, 202, 97, 1082, 202, 97, 469, 309, 261, 343, 422, 8375, 13, 288, 9506, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 9506, 202, 1345, 612, 273, 9162, 12, 2630, 1228, 1769, 9506, 202, 759, 866, 308, 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, 3196, 202, 1152, 3155, 9162, 12, 4348, 10010, 13, 1216, 1860, 288, 1082, 202, 430, 261, 343, 422, 2337, 20, 6134, 288, 9506, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 1082, 202, 97, 1082, 202, 7457, 9431, 12, 2630, 1228, 1769, 1082, 202, 430, 261, 291, 2224, 7069, 12, 343, 3719, 288, 9506, 202, 18366, 18, 542, 1782, 12, 20, 1769, 9506, 202, 2896, 288, 6862, 202, 18366, 18, 6923, 12, 343, 1769, 6862, 202, 343, 273, 1024, 7069, 12, 2630, 1228, 1769, 9506, 202, 97, 1323, 261, 291, 2224, 7069, 12, 343, 10019, 9506, 202, 2463, 394, 3155, 12, 734, 67, 8412, 16, 2393, 18, 10492, 10663, 1082, 202, 97, 469, 309, 261, 343, 422, 5214, 2 ]
public org.quickfix.field.HighPx getHighPx() throws FieldNotFound { org.quickfix.field.HighPx value = new org.quickfix.field.HighPx();
public quickfix.field.HighPx getHighPx() throws FieldNotFound { quickfix.field.HighPx value = new quickfix.field.HighPx();
public org.quickfix.field.HighPx getHighPx() throws FieldNotFound { org.quickfix.field.HighPx value = new org.quickfix.field.HighPx(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/SecurityStatus.java/buggy/src/java/src/quickfix/fix44/SecurityStatus.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 7628, 2031, 21776, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 7628, 2031, 21776, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8573, 21776, 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 ]
commonParent = ScopeUtils.moveOutOfLoops(commonParent, variableScope);
commonParent = ScopeUtils.moveOutOfLoops( commonParent, variableScope);
protected void doFix(Project project, ProblemDescriptor descriptor) throws IncorrectOperationException { final PsiElement variableIdentifier = descriptor.getPsiElement(); final PsiVariable variable = (PsiVariable)variableIdentifier.getParent(); assert variable != null; final PsiManager manager = variable.getManager(); final PsiSearchHelper searchHelper = manager.getSearchHelper(); final PsiReference[] references = searchHelper.findReferences(variable, variable.getUseScope(), false); final PsiReference firstReference = references[0]; final PsiElement referenceElement = firstReference.getElement(); PsiElement commonParent = ScopeUtils.getCommonParent(references); assert commonParent != null; final PsiExpression initializer = variable.getInitializer(); if (initializer != null) { final PsiElement variableScope = ScopeUtils.getParentOfTypes(variable, ScopeUtils.TYPES); assert variableScope != null; commonParent = ScopeUtils.moveOutOfLoops(commonParent, variableScope); if (commonParent == null) { return; } } final PsiElement firstReferenceScope = ScopeUtils.getParentOfTypes(referenceElement, ScopeUtils.TYPES); assert firstReferenceScope != null; final PsiElement location; PsiDeclarationStatement newDeclaration; if (firstReferenceScope.equals(commonParent)) { location = referenceElement; newDeclaration = moveDeclarationToLocation(variable, location); } else { final PsiElement commonParentChild = ScopeUtils.getChildWhichContainsElement( commonParent, referenceElement); assert commonParentChild != null; location = ScopeUtils.findInsertionPoint( commonParentChild, variable); assert location != null; newDeclaration = createNewDeclaration(variable, initializer); newDeclaration = (PsiDeclarationStatement)commonParent.addAfter(newDeclaration, location); } final CodeStyleManager codeStyleManager = CodeStyleManager.getInstance(project); newDeclaration = (PsiDeclarationStatement) codeStyleManager.reformat(newDeclaration); removeOldVariable(variable); highlightElement(newDeclaration); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/8063d30292128e0eeadcb10979ad838b691d95a2/TooBroadScopeInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/dataflow/TooBroadScopeInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 7734, 1216, 657, 6746, 10602, 3639, 288, 5411, 727, 453, 7722, 1046, 2190, 3004, 273, 10792, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 3092, 2190, 273, 10792, 261, 52, 7722, 3092, 13, 6105, 3004, 18, 588, 3054, 5621, 5411, 1815, 2190, 480, 446, 31, 5411, 727, 453, 7722, 1318, 3301, 273, 2190, 18, 588, 1318, 5621, 5411, 727, 453, 7722, 2979, 2276, 1623, 2276, 273, 3301, 18, 588, 2979, 2276, 5621, 5411, 727, 453, 7722, 2404, 8526, 5351, 273, 10792, 1623, 2276, 18, 4720, 8221, 12, 6105, 16, 4766, 7734, 2190, 18, 588, 3727, 3876, 9334, 4766, 7734, 629, 1769, 5411, 727, 453, 7722, 2404, 1122, 2404, 273, 5351, 63, 20, 15533, 5411, 727, 453, 7722, 1046, 2114, 1046, 273, 1122, 2404, 18, 21336, 5621, 5411, 453, 7722, 1046, 2975, 3054, 273, 5468, 1989, 18, 588, 6517, 3054, 12, 14353, 1769, 5411, 1815, 2975, 3054, 480, 446, 31, 5411, 727, 453, 7722, 2300, 12562, 273, 2190, 18, 588, 14729, 5621, 5411, 309, 261, 22181, 480, 446, 13, 5411, 288, 7734, 727, 453, 7722, 1046, 2190, 3876, 273, 13491, 5468, 1989, 18, 588, 3054, 951, 2016, 12, 6105, 16, 5468, 1989, 18, 10564, 1769, 7734, 1815, 2190, 3876, 480, 446, 31, 7734, 2975, 3054, 273, 5468, 1989, 18, 8501, 11224, 31409, 12, 6054, 3054, 16, 4766, 7682, 2190, 3876, 1769, 7734, 309, 261, 6054, 3054, 422, 446, 13, 7734, 288, 10792, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 4750, 918, 741, 8585, 12, 4109, 1984, 16, 21685, 3187, 4950, 13, 7734, 1216, 657, 6746, 10602, 3639, 288, 5411, 727, 453, 7722, 1046, 2190, 3004, 273, 10792, 4950, 18, 588, 52, 7722, 1046, 5621, 5411, 727, 453, 7722, 3092, 2190, 273, 10792, 261, 52, 7722, 3092, 13, 6105, 3004, 18, 588, 3054, 5621, 5411, 1815, 2190, 480, 446, 31, 5411, 727, 453, 7722, 1318, 3301, 273, 2190, 18, 588, 1318, 5621, 5411, 727, 453, 7722, 2979, 2276, 1623, 2276, 273, 3301, 18, 588, 2979, 2276, 5621, 5411, 727, 453, 7722, 2404, 8526, 5351, 273, 10792, 1623, 2276, 18, 4720, 8221, 12, 6105, 16, 4766, 7734, 2190, 18, 588, 3727, 3876, 9334, 4766, 7734, 629, 1769, 5411, 727, 2 ]
return null;
public Object validate(String content, Object state ) throws InvalidDatatypeValueException{ if (state!= null){ StateMessageDatatype message = (StateMessageDatatype) state; if (message.getDatatypeState() == IDREFDatatypeValidator.IDREF_CLEAR ){ if ( this.fTableOfId != null ){ fTableOfId.clear(); //This is pass to us through the state object fTableOfId = null; } if ( this.fTableIDRefs != null ){ fTableIDRefs.clear(); fTableIDRefs = null; } return null; } else if ( message.getDatatypeState() == IDREFDatatypeValidator.IDREF_VALIDATE ){ // Validate that all keyRef is a keyIds this.checkIdRefs(); return null; } else if ( message.getDatatypeState() == IDREFDatatypeValidator.IDREF_STORE ) { this.fTableOfId = (Hashtable) message.getDatatypeObject(); // use StringDatatypeValidator to validate content against facets super.validate(content, state); // check if content is a valid NCName try { fgStrValidator.validate(content, null); } catch (InvalidDatatypeValueException idve) { InvalidDatatypeValueException error = new InvalidDatatypeValueException( "ID is not valid: " + content ); error.setMinorCode(XMLMessages.MSG_IDREF_INVALID); error.setMajorCode(XMLMessages.VC_IDREF); throw error; } addIdRef( content, state);// We are storing IDs } } return null; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/fcee74fcb8fc14fc39be83ef66c73940f239f96b/IDREFDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/IDREFDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1954, 12, 780, 913, 16, 1033, 919, 262, 1216, 1962, 20228, 9738, 95, 3639, 309, 261, 2019, 5, 33, 446, 15329, 5411, 3287, 1079, 20228, 883, 273, 261, 1119, 1079, 20228, 13, 919, 31, 5411, 309, 261, 2150, 18, 588, 20228, 1119, 1435, 422, 1599, 10771, 20228, 5126, 18, 734, 10771, 67, 23181, 985, 262, 95, 7734, 309, 261, 333, 18, 74, 1388, 951, 548, 480, 446, 262, 95, 10792, 284, 1388, 951, 548, 18, 8507, 5621, 368, 2503, 353, 1342, 358, 584, 3059, 326, 919, 733, 10792, 284, 1388, 951, 548, 273, 446, 31, 7734, 289, 7734, 309, 261, 333, 18, 74, 1388, 734, 9837, 480, 446, 262, 95, 10792, 284, 1388, 734, 9837, 18, 8507, 5621, 10792, 284, 1388, 734, 9837, 273, 446, 31, 7734, 289, 21821, 289, 469, 309, 261, 883, 18, 588, 20228, 1119, 1435, 422, 1599, 10771, 20228, 5126, 18, 734, 10771, 67, 14687, 262, 95, 7734, 368, 3554, 716, 777, 498, 1957, 353, 279, 498, 2673, 7734, 333, 18, 1893, 548, 9837, 5621, 21821, 289, 2398, 469, 309, 261, 883, 18, 588, 20228, 1119, 1435, 422, 1599, 10771, 20228, 5126, 18, 734, 10771, 67, 13651, 262, 288, 7734, 333, 18, 74, 1388, 951, 548, 273, 261, 5582, 14544, 13, 883, 18, 588, 20228, 921, 5621, 3639, 368, 999, 514, 20228, 5126, 358, 1954, 913, 5314, 21681, 3639, 2240, 18, 5662, 12, 1745, 16, 919, 1769, 3639, 368, 866, 309, 913, 353, 279, 923, 423, 39, 461, 3639, 775, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1954, 12, 780, 913, 16, 1033, 919, 262, 1216, 1962, 20228, 9738, 95, 3639, 309, 261, 2019, 5, 33, 446, 15329, 5411, 3287, 1079, 20228, 883, 273, 261, 1119, 1079, 20228, 13, 919, 31, 5411, 309, 261, 2150, 18, 588, 20228, 1119, 1435, 422, 1599, 10771, 20228, 5126, 18, 734, 10771, 67, 23181, 985, 262, 95, 7734, 309, 261, 333, 18, 74, 1388, 951, 548, 480, 446, 262, 95, 10792, 284, 1388, 951, 548, 18, 8507, 5621, 368, 2503, 353, 1342, 358, 584, 3059, 326, 919, 733, 10792, 284, 1388, 951, 548, 273, 446, 31, 7734, 289, 7734, 309, 261, 333, 18, 74, 1388, 734, 9837, 480, 446, 262, 95, 10792, 284, 1388, 734, 9837, 18, 2 ]
case YIELDING: { }
case YIELDING: { }
final void wakeUpByScheduler() { switch (threadState) { case ASLEEP: case RUNNING: case YIELDING: { // Do nothing } break; case WAITING: { final Monitor mon = this.waitForMonitor; mon.removeThreadFromQueues(this); } break; default: { Unsafe.debug("Incorrect threadState in wakeUpByScheduler "); Unsafe.debug(threadState); } } threadState = RUNNING; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/cac0b47a8329d3094c8467598a4576704004e163/VmThread.java/buggy/core/src/core/org/jnode/vm/scheduler/VmThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 19891, 1211, 858, 11870, 1435, 288, 3639, 1620, 261, 5930, 1119, 13, 288, 3639, 648, 5355, 900, 10541, 30, 3639, 648, 23574, 30, 3639, 648, 1624, 45, 5192, 1360, 30, 5411, 288, 7734, 368, 2256, 5083, 5411, 289, 5411, 898, 31, 3639, 648, 26859, 1360, 30, 5411, 288, 7734, 727, 14086, 6921, 273, 333, 18, 7048, 1290, 7187, 31, 7734, 6921, 18, 4479, 3830, 1265, 17428, 12, 2211, 1769, 5411, 289, 5411, 898, 31, 3639, 805, 30, 5411, 288, 7734, 27476, 18, 4148, 2932, 16268, 2650, 1119, 316, 19891, 1211, 858, 11870, 315, 1769, 7734, 27476, 18, 4148, 12, 5930, 1119, 1769, 5411, 289, 3639, 289, 3639, 2650, 1119, 273, 23574, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 727, 918, 19891, 1211, 858, 11870, 1435, 288, 3639, 1620, 261, 5930, 1119, 13, 288, 3639, 648, 5355, 900, 10541, 30, 3639, 648, 23574, 30, 3639, 648, 1624, 45, 5192, 1360, 30, 5411, 288, 7734, 368, 2256, 5083, 5411, 289, 5411, 898, 31, 3639, 648, 26859, 1360, 30, 5411, 288, 7734, 727, 14086, 6921, 273, 333, 18, 7048, 1290, 7187, 31, 7734, 6921, 18, 4479, 3830, 1265, 17428, 12, 2211, 1769, 5411, 289, 5411, 898, 31, 3639, 805, 30, 5411, 288, 7734, 27476, 18, 4148, 2932, 16268, 2650, 1119, 316, 19891, 1211, 858, 11870, 315, 1769, 7734, 27476, 18, 4148, 12, 5930, 1119, 1769, 5411, 289, 3639, 289, 3639, 2650, 1119, 273, 23574, 31, 565, 289, 2, -100, -100 ]
state.remove(d, tx);
state.acknowledge(d, tx);
public void testRecoverableState_63() throws Throwable { if (!state.isRecoverable()) { // only recoverable state is tested now return; } MessageReference ref = ms.reference(MessageFactory.createMessage("message0", false, "payload0")); Delivery d = new SimpleDelivery(channel, ref, false); state.add(d); Transaction tx = tr.createTransaction(); // recoverable state, unreliable delivery, transactional remove state.remove(d, tx); List l = state.delivering(null); assertEquals(1, l.size()); assertEquals("message0", ((MessageReference)l.get(0)).getMessageID()); assertTrue(state.undelivered(null).isEmpty()); l = state.browse(null); assertEquals(1, l.size()); assertEquals("message0", ((MessageReference)l.get(0)).getMessageID()); tx.commit(); assertTrue(state.delivering(null).isEmpty()); assertTrue(state.undelivered(null).isEmpty()); assertTrue(state.browse(null).isEmpty()); log.info("ok"); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/b808cf059a2bd5d2b256a4cae82cef505669b216/StateTestBase.java/clean/tests/src/org/jboss/test/messaging/core/base/StateTestBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 426, 17399, 1119, 67, 4449, 1435, 1216, 4206, 282, 288, 1377, 309, 16051, 2019, 18, 291, 426, 17399, 10756, 1377, 288, 540, 368, 1338, 29218, 919, 353, 18432, 2037, 540, 327, 31, 1377, 289, 1377, 2350, 2404, 1278, 273, 4086, 18, 6180, 12, 1079, 1733, 18, 2640, 1079, 2932, 2150, 20, 3113, 629, 16, 315, 7648, 20, 7923, 1769, 1377, 17390, 302, 273, 394, 4477, 8909, 12, 4327, 16, 1278, 16, 629, 1769, 1377, 919, 18, 1289, 12, 72, 1769, 1377, 5947, 2229, 273, 433, 18, 2640, 3342, 5621, 1377, 368, 29218, 919, 16, 640, 266, 549, 429, 7912, 16, 25078, 1206, 1377, 919, 18, 484, 14390, 12, 72, 16, 2229, 1769, 1377, 987, 328, 273, 919, 18, 26672, 310, 12, 2011, 1769, 1377, 1815, 8867, 12, 21, 16, 328, 18, 1467, 10663, 1377, 1815, 8867, 2932, 2150, 20, 3113, 14015, 1079, 2404, 13, 80, 18, 588, 12, 20, 13, 2934, 24906, 734, 10663, 1377, 1815, 5510, 12, 2019, 18, 1074, 292, 1667, 329, 12, 2011, 2934, 291, 1921, 10663, 1377, 328, 273, 919, 18, 25731, 12, 2011, 1769, 1377, 1815, 8867, 12, 21, 16, 328, 18, 1467, 10663, 1377, 1815, 8867, 2932, 2150, 20, 3113, 14015, 1079, 2404, 13, 80, 18, 588, 12, 20, 13, 2934, 24906, 734, 10663, 1377, 2229, 18, 7371, 5621, 1377, 1815, 5510, 12, 2019, 18, 26672, 310, 12, 2011, 2934, 291, 1921, 10663, 1377, 1815, 5510, 12, 2019, 18, 1074, 292, 1667, 329, 12, 2011, 2934, 291, 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, 1071, 918, 1842, 426, 17399, 1119, 67, 4449, 1435, 1216, 4206, 282, 288, 1377, 309, 16051, 2019, 18, 291, 426, 17399, 10756, 1377, 288, 540, 368, 1338, 29218, 919, 353, 18432, 2037, 540, 327, 31, 1377, 289, 1377, 2350, 2404, 1278, 273, 4086, 18, 6180, 12, 1079, 1733, 18, 2640, 1079, 2932, 2150, 20, 3113, 629, 16, 315, 7648, 20, 7923, 1769, 1377, 17390, 302, 273, 394, 4477, 8909, 12, 4327, 16, 1278, 16, 629, 1769, 1377, 919, 18, 1289, 12, 72, 1769, 1377, 5947, 2229, 273, 433, 18, 2640, 3342, 5621, 1377, 368, 29218, 919, 16, 640, 266, 549, 429, 7912, 16, 25078, 1206, 1377, 919, 18, 484, 14390, 12, 72, 16, 2229, 1769, 1377, 987, 328, 2 ]
setModified(true);
public void setPrivateLayout(boolean privateLayout) { if (privateLayout != _privateLayout) { _privateLayout = privateLayout; setModified(true); } }
53908 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53908/f4d6afc6707f57fd84bf6b624f0c119657b0a766/LayoutSetModel.java/buggy/portal-ejb/src/com/liferay/portal/model/LayoutSetModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6014, 3744, 12, 6494, 3238, 3744, 13, 288, 202, 202, 430, 261, 1152, 3744, 480, 389, 1152, 3744, 13, 288, 1082, 202, 67, 1152, 3744, 273, 3238, 3744, 31, 1082, 202, 542, 4575, 12, 3767, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6014, 3744, 12, 6494, 3238, 3744, 13, 288, 202, 202, 430, 261, 1152, 3744, 480, 389, 1152, 3744, 13, 288, 1082, 202, 67, 1152, 3744, 273, 3238, 3744, 31, 1082, 202, 542, 4575, 12, 3767, 1769, 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 ]
f = new Formatter("notexist", null);
f = new Formatter(notExist.getPath(), null);
public void test_ConstructorLjava_lang_StringLjava_lang_String() throws IOException { Formatter f = null; try { f = new Formatter((String) null, Charset.defaultCharset().name()); fail("should throw NullPointerException"); } catch (NullPointerException e1) { // expected } try { f = new Formatter("notexist", null); fail("should throw NullPointerException"); } catch (NullPointerException e2) { // expected } f = new Formatter("notexist", Charset.defaultCharset().name()); assertEquals(f.locale(), Locale.getDefault()); f.close(); try { f = new Formatter("notexist", "ISO 1111-1"); fail("should throw UnsupportedEncodingException"); } catch (UnsupportedEncodingException e1) { // expected } f = new Formatter(fileWithContent.getPath(), "UTF-16BE"); assertEquals(0, fileWithContent.length()); f.close(); try { f = new Formatter(readOnly.getPath(), "UTF-16BE"); fail("should throw FileNotFoundException"); } catch (FileNotFoundException e) { // expected } SecurityManager oldsm = System.getSecurityManager(); try { System.setSecurityManager(new MockSecurityManager()); f = new Formatter(secret.getPath(), "UTF-16BE"); fail("should throw UnsupportedEncodingException"); } catch (SecurityException se) { // expected } finally { System.setSecurityManager(oldsm); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/237eac70f2970bc83ef1674f1b8a991f130e72ab/FormatterTest.java/clean/modules/luni/src/test/java/tests/api/java/util/FormatterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 21159, 67, 4936, 67, 780, 1435, 1082, 202, 15069, 1860, 288, 202, 202, 5074, 284, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 74, 273, 394, 14924, 12443, 780, 13, 446, 16, 12080, 18, 1886, 9652, 7675, 529, 10663, 1082, 202, 6870, 2932, 13139, 604, 10108, 8863, 202, 202, 97, 1044, 261, 2041, 9992, 425, 21, 13, 288, 1082, 202, 759, 2665, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 74, 273, 394, 14924, 2932, 902, 7398, 3113, 446, 1769, 1082, 202, 6870, 2932, 13139, 604, 10108, 8863, 202, 202, 97, 1044, 261, 2041, 9992, 425, 22, 13, 288, 1082, 202, 759, 2665, 202, 202, 97, 202, 202, 74, 273, 394, 14924, 2932, 902, 7398, 3113, 12080, 18, 1886, 9652, 7675, 529, 10663, 202, 202, 11231, 8867, 12, 74, 18, 6339, 9334, 6458, 18, 588, 1868, 10663, 202, 202, 74, 18, 4412, 5621, 202, 202, 698, 288, 1082, 202, 74, 273, 394, 14924, 2932, 902, 7398, 3113, 315, 12609, 16344, 21, 17, 21, 8863, 1082, 202, 6870, 2932, 13139, 604, 15367, 8863, 202, 202, 97, 1044, 261, 8544, 13836, 425, 21, 13, 288, 1082, 202, 759, 2665, 202, 202, 97, 202, 202, 74, 273, 394, 14924, 12, 768, 1190, 1350, 18, 588, 743, 9334, 315, 5159, 17, 2313, 5948, 8863, 202, 202, 11231, 8867, 12, 20, 16, 585, 1190, 1350, 18, 2469, 10663, 202, 202, 74, 18, 4412, 5621, 202, 202, 698, 288, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 6293, 21159, 67, 4936, 67, 780, 21159, 67, 4936, 67, 780, 1435, 1082, 202, 15069, 1860, 288, 202, 202, 5074, 284, 273, 446, 31, 202, 202, 698, 288, 1082, 202, 74, 273, 394, 14924, 12443, 780, 13, 446, 16, 12080, 18, 1886, 9652, 7675, 529, 10663, 1082, 202, 6870, 2932, 13139, 604, 10108, 8863, 202, 202, 97, 1044, 261, 2041, 9992, 425, 21, 13, 288, 1082, 202, 759, 2665, 202, 202, 97, 202, 202, 698, 288, 1082, 202, 74, 273, 394, 14924, 2932, 902, 7398, 3113, 446, 1769, 1082, 202, 6870, 2932, 13139, 604, 10108, 8863, 202, 202, 97, 1044, 261, 2041, 9992, 425, 22, 13, 288, 1082, 202, 759, 2665, 202, 202, 2 ]
if (downCacheSize < 0)
if (downCacheSize <= 0)
public ChannelState(Channel channel, PersistenceManager pm, boolean acceptReliableMessages, boolean recoverable, int fullSize, int pageSize, int downCacheSize) { if (pm == null) { throw new IllegalArgumentException("ChannelState requires a " + "non-null persistence manager"); } if (channel == null) { throw new IllegalArgumentException("ChannelState requires a " + "non-null Channel"); } if (pageSize >= fullSize) { throw new IllegalArgumentException("pageSize must be less than full size"); } if (downCacheSize > pageSize) { throw new IllegalArgumentException("pageSize cannot be smaller than downCacheSize"); } if (pageSize <= 0) { throw new IllegalArgumentException("pageSize must be greater than zero"); } if (downCacheSize < 0) { throw new IllegalArgumentException("downCacheSize cannot be less than zero"); } this.channel = channel; this.pm = pm; this.acceptReliableMessages = acceptReliableMessages; this.recoverable = recoverable; messageRefs = new BasicPrioritizedDeque(10); deliveries = new HashSet(); downCache = new ArrayList(); this.fullSize = fullSize; this.pageSize = pageSize; this.downCacheSize = downCacheSize; refLock = new Object(); deliveryLock = new Object(); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/c7133c9662c41fb385b863c92214187907f2d1b0/ChannelState.java/clean/src/main/org/jboss/messaging/core/ChannelState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 5307, 1119, 12, 2909, 1904, 16, 13381, 1318, 7430, 16, 15604, 1250, 2791, 1971, 2214, 5058, 16, 1250, 29218, 16, 15604, 509, 1983, 1225, 16, 509, 13387, 16, 509, 2588, 24019, 13, 282, 288, 1377, 309, 261, 7755, 422, 446, 13, 1377, 288, 1850, 604, 394, 2754, 2932, 2909, 1119, 4991, 279, 315, 397, 4766, 2398, 315, 5836, 17, 2011, 9756, 3301, 8863, 1377, 289, 1377, 309, 261, 4327, 422, 446, 13, 1377, 288, 1850, 604, 394, 2754, 2932, 2909, 1119, 4991, 279, 315, 397, 4766, 2398, 315, 5836, 17, 2011, 5307, 8863, 1377, 289, 1377, 309, 261, 26165, 1545, 1983, 1225, 13, 1377, 288, 540, 604, 394, 2754, 2932, 26165, 1297, 506, 5242, 2353, 1983, 963, 8863, 1377, 289, 1377, 309, 261, 2378, 24019, 405, 13387, 13, 1377, 288, 540, 604, 394, 2754, 2932, 26165, 2780, 506, 10648, 2353, 2588, 24019, 8863, 9079, 289, 1377, 309, 261, 26165, 1648, 374, 13, 1377, 288, 540, 604, 394, 2754, 2932, 26165, 1297, 506, 6802, 2353, 3634, 8863, 1377, 289, 1377, 309, 261, 2378, 24019, 1648, 374, 13, 1377, 288, 540, 604, 394, 2754, 2932, 2378, 24019, 2780, 506, 5242, 2353, 3634, 8863, 1377, 289, 8227, 333, 18, 4327, 273, 1904, 31, 5411, 333, 18, 7755, 273, 7430, 31, 5411, 333, 18, 9436, 1971, 2214, 5058, 273, 2791, 1971, 2214, 5058, 31, 5411, 333, 18, 25864, 273, 29218, 31, 5411, 883, 9837, 273, 394, 7651, 25355, 305, 1235, 30873, 12, 2163, 1769, 5411, 11795, 606, 273, 394, 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, 1071, 5307, 1119, 12, 2909, 1904, 16, 13381, 1318, 7430, 16, 15604, 1250, 2791, 1971, 2214, 5058, 16, 1250, 29218, 16, 15604, 509, 1983, 1225, 16, 509, 13387, 16, 509, 2588, 24019, 13, 282, 288, 1377, 309, 261, 7755, 422, 446, 13, 1377, 288, 1850, 604, 394, 2754, 2932, 2909, 1119, 4991, 279, 315, 397, 4766, 2398, 315, 5836, 17, 2011, 9756, 3301, 8863, 1377, 289, 1377, 309, 261, 4327, 422, 446, 13, 1377, 288, 1850, 604, 394, 2754, 2932, 2909, 1119, 4991, 279, 315, 397, 4766, 2398, 315, 5836, 17, 2011, 5307, 8863, 1377, 289, 1377, 309, 261, 26165, 1545, 1983, 1225, 13, 1377, 288, 540, 604, 394, 2754, 2932, 26165, 1297, 506, 5242, 2353, 1983, 963, 2 ]
}
}
URLStreamHandler tryToGetHandler(ClassLoader loader, String pkgs, String proto) { // XXX: implement me to support several packages try { Class handlerClass = Class.forName(pkgs+"."+proto+".Handler", true, loader); if (URLStreamHandler.class.isAssignableFrom(handlerClass)) { Constructor c = handlerClass.getDeclaredConstructor(new Class[]{}); return (URLStreamHandler)c.newInstance(new Object[]{}); } } catch (Exception e) { // do nothing here - nothing special happened //e.printStackTrace(); } return null;}
51275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51275/efc7c81088d33f91cfa1164586e34ca04eda358e/PluggableJVM.java/clean/java/pluggable-jvm/wf/java/sun/jvmp/PluggableJVM.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1976, 1228, 1503, 775, 774, 967, 1503, 12, 7805, 4088, 16, 4405, 377, 514, 1377, 16922, 16, 4405, 377, 514, 1377, 3760, 13, 565, 288, 202, 759, 11329, 30, 2348, 1791, 358, 2865, 11392, 5907, 202, 698, 288, 202, 565, 1659, 1838, 797, 273, 1659, 18, 1884, 461, 12, 25376, 9078, 1199, 15, 9393, 9078, 18, 1503, 3113, 25083, 4202, 638, 16, 25083, 4202, 4088, 1769, 202, 377, 202, 565, 309, 261, 1785, 1228, 1503, 18, 1106, 18, 291, 7961, 1265, 12, 4176, 797, 3719, 3196, 202, 95, 1082, 565, 11417, 276, 273, 1875, 202, 4176, 797, 18, 588, 18888, 6293, 12, 2704, 1659, 8526, 2916, 1769, 1082, 565, 327, 261, 1785, 1228, 1503, 13, 71, 18, 2704, 1442, 12, 2704, 1033, 8526, 2916, 1769, 202, 1377, 289, 202, 225, 289, 1044, 261, 503, 425, 13, 288, 202, 1377, 368, 741, 5083, 2674, 300, 5083, 4582, 17497, 202, 1377, 368, 73, 18, 1188, 6332, 5621, 202, 377, 202, 225, 289, 202, 2463, 446, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1976, 1228, 1503, 775, 774, 967, 1503, 12, 7805, 4088, 16, 4405, 377, 514, 1377, 16922, 16, 4405, 377, 514, 1377, 3760, 13, 565, 288, 202, 759, 11329, 30, 2348, 1791, 358, 2865, 11392, 5907, 202, 698, 288, 202, 565, 1659, 1838, 797, 273, 1659, 18, 1884, 461, 12, 25376, 9078, 1199, 15, 9393, 9078, 18, 1503, 3113, 25083, 4202, 638, 16, 25083, 4202, 4088, 1769, 202, 377, 202, 565, 309, 261, 1785, 1228, 1503, 18, 1106, 18, 291, 7961, 1265, 12, 4176, 797, 3719, 3196, 202, 95, 1082, 565, 11417, 276, 273, 1875, 202, 4176, 797, 18, 588, 18888, 6293, 12, 2704, 1659, 8526, 2916, 1769, 1082, 565, 327, 261, 1785, 1228, 1503, 13, 71, 18, 2704, 2 ]
Point position = DragUtil.getEventLoc(event);
Point position = DragUtil.getEventLoc(event);
public void handleEvent(Event event) { Point position = DragUtil.getEventLoc(event); startDragging(position, false); }
13822 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13822/1b18c4111a9bdd6d059092d4cb5971693a9544b2/IntroLaunchBar.java/clean/org.eclipse.ui.intro/src/org/eclipse/ui/internal/intro/impl/presentations/IntroLaunchBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 1640, 1133, 12, 1133, 871, 13, 288, 9506, 202, 2148, 1754, 273, 28425, 1304, 18, 588, 1133, 1333, 12, 2575, 1769, 9506, 202, 1937, 11728, 1998, 12, 3276, 16, 629, 1769, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 1640, 1133, 12, 1133, 871, 13, 288, 9506, 202, 2148, 1754, 273, 28425, 1304, 18, 588, 1133, 1333, 12, 2575, 1769, 9506, 202, 1937, 11728, 1998, 12, 3276, 16, 629, 1769, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Object args[] = { objectCode, studentGroupCode, groupPropertiesCode }; try {
Object args[] = {objectCode, studentGroupCode, groupPropertiesCode}; try {
public ActionForward unEnrollStudentGroupShift(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); Integer objectCode = getObjectCode(request); UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); String studentGroupCodeString = request.getParameter("studentGroupCode"); Integer studentGroupCode = new Integer(studentGroupCodeString); String groupPropertiesCodeString = request.getParameter("groupPropertiesCode"); Integer groupPropertiesCode = new Integer(groupPropertiesCodeString); Object args[] = { objectCode, studentGroupCode, groupPropertiesCode }; try { ServiceManagerServiceFactory.executeService(userView, "UnEnrollStudentGroupShift", args); } catch (ExistingServiceException e) { ActionErrors actionErrors = new ActionErrors(); ActionError error = null; error = new ActionError("error.noGroupProperties"); actionErrors.add("error.noGroupProperties", error); saveErrors(request, actionErrors); return prepareViewExecutionCourseProjects(mapping, form, request, response); } catch (InvalidArgumentsServiceException e) { ActionErrors actionErrors = new ActionErrors(); ActionError error = null; error = new ActionError("error.noGroup"); actionErrors.add("error.noGroup", error); saveErrors(request, actionErrors); return viewShiftsAndGroups(mapping, form, request, response); } catch (InvalidChangeServiceException e) { ActionErrors actionErrors = new ActionErrors(); ActionError error = null; error = new ActionError("error.UnEnrollStudentGroupShift"); actionErrors.add("error.UnEnrollStudentGroupShift", error); saveErrors(request, actionErrors); return viewShiftsAndGroups(mapping, form, request, response); } catch (FenixServiceException e) { throw new FenixActionException(e); } return viewShiftsAndGroups(mapping, form, request, response); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4382, 8514, 640, 664, 2693, 19943, 319, 1114, 10544, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 5411, 478, 275, 697, 1586, 503, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 12, 5743, 1769, 3639, 2144, 733, 1085, 273, 6455, 1085, 12, 2293, 1769, 3639, 2177, 1767, 729, 1767, 273, 261, 1299, 1767, 13, 1339, 18, 588, 1499, 12, 2157, 2918, 18, 57, 67, 12145, 1769, 3639, 514, 18110, 1114, 1085, 780, 273, 590, 18, 588, 1662, 2932, 26240, 1114, 1085, 8863, 3639, 2144, 18110, 1114, 1085, 273, 394, 2144, 12, 26240, 1114, 1085, 780, 1769, 3639, 514, 1041, 2297, 1085, 780, 273, 590, 18, 588, 1662, 2932, 1655, 2297, 1085, 8863, 3639, 2144, 1041, 2297, 1085, 273, 394, 2144, 12, 1655, 2297, 1085, 780, 1769, 3639, 1033, 833, 8526, 273, 288, 733, 1085, 16, 18110, 1114, 1085, 16, 1041, 2297, 1085, 289, 31, 3639, 775, 288, 5411, 1956, 1318, 1179, 1733, 18, 8837, 1179, 12, 1355, 1767, 16, 315, 984, 664, 2693, 19943, 319, 1114, 10544, 3113, 833, 1769, 3639, 289, 1044, 261, 9895, 15133, 425, 13, 288, 5411, 4382, 4229, 1301, 4229, 273, 394, 4382, 4229, 5621, 5411, 4382, 668, 555, 273, 446, 31, 5411, 555, 273, 394, 4382, 668, 2932, 1636, 18, 2135, 1114, 2297, 8863, 5411, 1301, 4229, 18, 1289, 2932, 1636, 18, 2135, 1114, 2297, 3113, 555, 1769, 5411, 1923, 4229, 12, 2293, 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, 377, 1071, 4382, 8514, 640, 664, 2693, 19943, 319, 1114, 10544, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 5411, 9984, 590, 16, 12446, 766, 13, 1216, 478, 275, 697, 1803, 503, 16, 5411, 478, 275, 697, 1586, 503, 288, 3639, 26166, 1339, 273, 590, 18, 588, 2157, 12, 5743, 1769, 3639, 2144, 733, 1085, 273, 6455, 1085, 12, 2293, 1769, 3639, 2177, 1767, 729, 1767, 273, 261, 1299, 1767, 13, 1339, 18, 588, 1499, 12, 2157, 2918, 18, 57, 67, 12145, 1769, 3639, 514, 18110, 1114, 1085, 780, 273, 590, 18, 588, 1662, 2932, 26240, 1114, 1085, 8863, 3639, 2144, 18110, 1114, 1085, 273, 394, 2144, 12, 26240, 1114, 1085, 780, 1769, 3639, 514, 1041, 2297, 1085, 2 ]
Logger.trace("Kobold::Kobold","D","Created Kobold: "+this.toString());
logger.debug("Created Kobold: "+this);
public Kobold() throws AttributeNotFoundException { super(); put("class","kobold"); put("x",0); put("y",0); setATK(ATK); setDEF(DEF); setXP(XP); setbaseHP(HP); setLevel(Level.getLevel(getXP())); stop(); Logger.trace("Kobold::Kobold","D","Created Kobold: "+this.toString()); }
4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/5032255cbc6322ed19134d0417d2ef3bbb056e19/Kobold.java/buggy/src/games/stendhal/server/entity/creature/Kobold.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1475, 947, 1673, 1435, 1216, 3601, 3990, 565, 288, 565, 2240, 5621, 565, 1378, 2932, 1106, 15937, 79, 947, 1673, 8863, 565, 1378, 2932, 92, 3113, 20, 1769, 565, 1378, 2932, 93, 3113, 20, 1769, 565, 444, 789, 47, 12, 789, 47, 1769, 565, 444, 12904, 12, 12904, 1769, 565, 23733, 52, 12, 60, 52, 1769, 565, 444, 1969, 2500, 12, 2500, 1769, 565, 14355, 12, 2355, 18, 588, 2355, 12, 588, 60, 52, 1435, 10019, 565, 2132, 5621, 565, 1194, 18, 4148, 2932, 6119, 1475, 947, 1673, 30, 13773, 2211, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 1475, 947, 1673, 1435, 1216, 3601, 3990, 565, 288, 565, 2240, 5621, 565, 1378, 2932, 1106, 15937, 79, 947, 1673, 8863, 565, 1378, 2932, 92, 3113, 20, 1769, 565, 1378, 2932, 93, 3113, 20, 1769, 565, 444, 789, 47, 12, 789, 47, 1769, 565, 444, 12904, 12, 12904, 1769, 565, 23733, 52, 12, 60, 52, 1769, 565, 444, 1969, 2500, 12, 2500, 1769, 565, 14355, 12, 2355, 18, 588, 2355, 12, 588, 60, 52, 1435, 10019, 565, 2132, 5621, 565, 1194, 18, 4148, 2932, 6119, 1475, 947, 1673, 30, 13773, 2211, 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 ]
OneAxis oaxAncillaryBase = aax.getAncillaryBase( ); iAxisType = getAxisType( axAncillaryBase ); oaData = null; if ( iAxisType == TEXT || oaxAncillaryBase.isCategoryScale( ) ) { oaData = getAncillaryDataSet( axAncillaryBase, axPrimaryOrthogonal, iAxisType ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW;
dStart = dZ; dEnd = dZ + dWZ;
public void compute( Bounds bo ) throws ChartException, IllegalArgumentException { bo = bo.scaledInstance( dPointToPixel ); // CONVERSION // TODO compute seriesThickness as per rotation. // dSeriesThickness = // MAINTAIN IN LOCAL VARIABLES FOR PERFORMANCE/CONVENIENCE // TODO initial bounding box constraint, may compute as per the rotation // angle. // Always use zero as start point. double dX = 0;// bo.getLeft( ) + insCA.getLeft( ); double dY = 0;// bo.getTop( ) + insCA.getTop( ); double dW = bo.getWidth( ) - insCA.getLeft( ) - insCA.getRight( ); double dH = bo.getHeight( ) - insCA.getTop( ) - insCA.getBottom( ); // MUST BE 3-D DIMENSION ONLY HERE. iDimension = getDimension( cwa.getDimension( ) ); assert iDimension == IConstants.THREE_D; dXAxisPlotSpacing = cwa.getPlot( ).getHorizontalSpacing( ) * dPointToPixel; // CONVERSION dYAxisPlotSpacing = cwa.getPlot( ).getVerticalSpacing( ) * dPointToPixel; // CONVERSION dZAxisPlotSpacing = dXAxisPlotSpacing; double dStart, dEnd; final Axis[] axa = cwa.getPrimaryBaseAxes( ); final Axis axPrimaryBase = axa[0]; final Axis axPrimaryOrthogonal = cwa.getPrimaryOrthogonalAxis( axPrimaryBase ); final Axis axAncillaryBase = cwa.getAncillaryBaseAxis( axPrimaryBase ); // COMPUTE PRIMARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryBase = null; OneAxis oaxPrimaryBase = aax.getPrimaryBase( ); int iAxisType = getAxisType( axPrimaryBase ); Object oaData = null; if ( iAxisType == TEXT || oaxPrimaryBase.isCategoryScale( ) ) { oaData = getTypedDataSet( axPrimaryBase, iAxisType, 0 ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axPrimaryBase, iAxisType ); } DataSetIterator dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; Scale sc = axPrimaryBase.getScale( ); scPrimaryBase = AutoScale.computeScale( ids, oaxPrimaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryBase.getFormatSpecifier( ), rtc, FORWARD ); oaxPrimaryBase.set( scPrimaryBase ); // UPDATE SCALE ON PRIMARY-BASE // AXIS // COMPUTE ANCILLARY-BASE-AXIS PROPERTIES AND ITS SCALE AutoScale scAncillaryBase = null; OneAxis oaxAncillaryBase = aax.getAncillaryBase( ); iAxisType = getAxisType( axAncillaryBase ); oaData = null; if ( iAxisType == TEXT || oaxAncillaryBase.isCategoryScale( ) ) { oaData = getAncillaryDataSet( axAncillaryBase, axPrimaryOrthogonal, iAxisType ); } else if ( ( iAxisType & NUMERICAL ) == NUMERICAL ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } else if ( ( iAxisType & DATE_TIME ) == DATE_TIME ) { oaData = getMinMax( axAncillaryBase, iAxisType ); } dsi = ( oaData instanceof DataSetIterator ) ? (DataSetIterator) oaData : new DataSetIterator( oaData, iAxisType ); oaData = null; // TODO compute 3d start end point, use the same setting as primary base // axis here. dStart = ( aax.areAxesSwapped( ) ) ? dY : dX; dEnd = ( aax.areAxesSwapped( ) ) ? dY + dH : dX + dW; sc = axAncillaryBase.getScale( ); scAncillaryBase = AutoScale.computeScale( ids, oaxAncillaryBase, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axAncillaryBase.getFormatSpecifier( ), rtc, FORWARD ); oaxAncillaryBase.set( scAncillaryBase ); // UPDATE SCALE ON // ANCILLARY-BASE AXIS // COMPUTE PRIMARY-ORTHOGONAL-AXIS PROPERTIES AND ITS SCALE AutoScale scPrimaryOrthogonal = null; OneAxis oaxPrimaryOrthogonal = aax.getPrimaryOrthogonal( ); iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = null; if ( ( iAxisType & NUMERICAL ) == NUMERICAL || ( iAxisType & DATE_TIME ) == DATE_TIME ) { dsi = new DataSetIterator( getMinMax( axPrimaryOrthogonal, iAxisType ), iAxisType ); } else { throw new ChartException( ChartEnginePlugin.ID, ChartException.DATA_FORMAT, "exception.orthogonal.axis.numerical.datetime", //$NON-NLS-1$ Messages.getResourceBundle( rtc.getULocale( ) ) ); } // TODO compute 3d start end point. dStart = ( aax.areAxesSwapped( ) ) ? dX : dY; dEnd = ( aax.areAxesSwapped( ) ) ? dX + dW : dY + dH; sc = axPrimaryOrthogonal.getScale( ); scPrimaryOrthogonal = AutoScale.computeScale( ids, oaxPrimaryOrthogonal, dsi, iAxisType, dStart, dEnd, sc.getMin( ), sc.getMax( ), sc.isSetStep( ) ? new Double( sc.getStep( ) ) : null, axPrimaryOrthogonal.getFormatSpecifier( ), rtc, FORWARD ); oaxPrimaryOrthogonal.set( scPrimaryOrthogonal ); // UPDATE SCALE ON // PRIMARY-ORTHOGONAL AXIS // TODO here we should ignore the intersection Value/Max setting, always // use the Intersection.Min for 3D chart. the adjustVerticalXXX() should // return a double[] to // indicate a coordinate value. // ITERATIVELY ADJUST THE PRIMARY ORTHOGONAL AXIS POSITION DUE TO THE // SCALE, START/END LABELS double dYAxisLocationOnX = adjustHorizontal( dX, dW, aax ); // Iteratively adjust the ancillary base axis position due to the scale, // start/end // labels. double dYAxisLocationOnZ = adjustAncillary( dX, dW, aax ); // ITERATIVELY ADJUST THE PRIMARY BASE AXIS POSITION DUE TO THE SCALE, // START/END LABELS double dXAxisLocation = adjustVerticalDueToHorizontalPlane( dY, dH, aax ); // TODO Just use XAxisLocation as the ZAxisLocation now. double dZAxisLocation = dXAxisLocation; // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryOrthogonal ); oaData = getTypedDataSet( axPrimaryOrthogonal, iAxisType, 0 ); scPrimaryOrthogonal.setData( dsi ); // Setup the full dataset for the ancillary base axis. iAxisType = getAxisType( axAncillaryBase ); if ( iAxisType != IConstants.TEXT ) { scAncillaryBase.setData( getTypedDataSet( axAncillaryBase, iAxisType, 0 ) ); } // SETUP THE FULL DATASET FOR THE PRIMARY ORTHOGONAL AXIS iAxisType = getAxisType( axPrimaryBase ); if ( iAxisType != IConstants.TEXT ) { scPrimaryBase.setData( getTypedDataSet( axPrimaryBase, iAxisType, 0 ) ); } scPrimaryBase.resetShifts( ); scAncillaryBase.resetShifts( ); scPrimaryOrthogonal.resetShifts( ); // UPDATE FOR OVERLAYS final OneAxis axPH = aax.areAxesSwapped( ) ? aax.getPrimaryOrthogonal( ) : aax.getPrimaryBase( ); final OneAxis axPV = aax.areAxesSwapped( ) ? aax.getPrimaryBase( ) : aax.getPrimaryOrthogonal( ); final OneAxis axAB = aax.getAncillaryBase( ); // keep old invocation to ensure compatibility. axPH.setAxisCoordinate( dXAxisLocation ); axPV.setAxisCoordinate( dYAxisLocationOnX ); axAB.setAxisCoordinate( dZAxisLocation ); // set new 3D axis coordinate. this coordinate has been normalized to // Zero-coordinates. axPH.setAxisCoordinate3D( Location3DImpl.create( 0, dXAxisLocation, dYAxisLocationOnZ ) ); axPV.setAxisCoordinate3D( Location3DImpl.create( dYAxisLocationOnX, 0, dYAxisLocationOnZ ) ); axAB.setAxisCoordinate3D( Location3DImpl.create( dYAxisLocationOnX, dZAxisLocation, 0 ) ); boPlotBackground = BoundsImpl.copyInstance( bo ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/088a907c90518d3b343babbab14770d00e175c7b/PlotWith3DAxes.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/computation/withaxes/PlotWith3DAxes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3671, 12, 20382, 800, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 1075, 273, 800, 18, 20665, 1442, 12, 302, 2148, 774, 9037, 11272, 368, 3492, 5757, 202, 202, 759, 2660, 3671, 4166, 1315, 19517, 487, 1534, 6752, 18, 202, 202, 759, 302, 6485, 1315, 19517, 273, 202, 202, 759, 19316, 3217, 6964, 2120, 15234, 22965, 55, 12108, 10950, 4983, 4722, 19, 2248, 58, 1157, 45, 7535, 202, 202, 759, 2660, 2172, 7552, 3919, 4954, 16, 2026, 3671, 487, 1534, 326, 6752, 202, 202, 759, 5291, 18, 202, 202, 759, 14178, 999, 3634, 487, 787, 1634, 18, 202, 202, 9056, 302, 60, 273, 374, 31, 759, 800, 18, 588, 3910, 12, 262, 397, 2763, 3587, 18, 588, 3910, 12, 11272, 202, 202, 9056, 302, 61, 273, 374, 31, 759, 800, 18, 588, 3401, 12, 262, 397, 2763, 3587, 18, 588, 3401, 12, 11272, 202, 202, 9056, 302, 59, 273, 800, 18, 588, 2384, 12, 262, 300, 2763, 3587, 18, 588, 3910, 12, 262, 300, 2763, 3587, 18, 588, 4726, 12, 11272, 202, 202, 9056, 302, 44, 273, 800, 18, 588, 2686, 12, 262, 300, 2763, 3587, 18, 588, 3401, 12, 262, 300, 2763, 3587, 18, 588, 10393, 12, 11272, 202, 202, 759, 10685, 9722, 890, 17, 40, 463, 3114, 3156, 1146, 20747, 670, 29340, 18, 202, 202, 77, 8611, 273, 20283, 12, 14098, 69, 18, 588, 8611, 12, 262, 11272, 202, 202, 11231, 277, 8611, 422, 467, 2918, 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, 3671, 12, 20382, 800, 262, 1216, 14804, 503, 16, 1082, 202, 31237, 202, 95, 202, 202, 1075, 273, 800, 18, 20665, 1442, 12, 302, 2148, 774, 9037, 11272, 368, 3492, 5757, 202, 202, 759, 2660, 3671, 4166, 1315, 19517, 487, 1534, 6752, 18, 202, 202, 759, 302, 6485, 1315, 19517, 273, 202, 202, 759, 19316, 3217, 6964, 2120, 15234, 22965, 55, 12108, 10950, 4983, 4722, 19, 2248, 58, 1157, 45, 7535, 202, 202, 759, 2660, 2172, 7552, 3919, 4954, 16, 2026, 3671, 487, 1534, 326, 6752, 202, 202, 759, 5291, 18, 202, 202, 759, 14178, 999, 3634, 487, 787, 1634, 18, 202, 202, 9056, 302, 60, 273, 374, 31, 759, 800, 18, 588, 3910, 12, 2 ]
if(this.getActivePage() != 0) { this.switchToJava();
IEditorPart editorPart = this.getActiveEditor(); if(editorPart == null || !(this.getActiveEditor() instanceof ITextEditor)) { return null;
public IAction getAction(String actionId) { if(this.getActivePage() != 0) { this.switchToJava(); } ITextEditor textEditor = (ITextEditor)compilationUnitEditor; return textEditor.getAction(actionId); }
46678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46678/7f5fba2ae90ca2a9e7d29f9d5522b9264fa6c613/ComponentEditor.java/clean/projects/wolips/plugins/org.objectstyle.wolips.componenteditor/java/org/objectstyle/wolips/componenteditor/part/ComponentEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1803, 12473, 12, 780, 1301, 548, 13, 288, 202, 202, 430, 12, 2211, 18, 588, 3896, 1964, 1435, 480, 374, 13, 288, 1082, 202, 2211, 18, 9610, 774, 5852, 5621, 202, 202, 97, 202, 202, 1285, 408, 6946, 977, 6946, 273, 261, 1285, 408, 6946, 13, 2919, 6613, 2802, 6946, 31, 202, 202, 2463, 977, 6946, 18, 588, 1803, 12, 1128, 548, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 1803, 12473, 12, 780, 1301, 548, 13, 288, 202, 202, 430, 12, 2211, 18, 588, 3896, 1964, 1435, 480, 374, 13, 288, 1082, 202, 2211, 18, 9610, 774, 5852, 5621, 202, 202, 97, 202, 202, 1285, 408, 6946, 977, 6946, 273, 261, 1285, 408, 6946, 13, 2919, 6613, 2802, 6946, 31, 202, 202, 2463, 977, 6946, 18, 588, 1803, 12, 1128, 548, 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 ]
return false;
return FuzzyBoolean.MAYBE;
private boolean matchesExactlyConstructor(JoinPointSignature aConstructor, World world) { if (!declaringType.matchesStatically(aConstructor.getDeclaringType().resolve(world))) return false; ResolvedType[] resolvedParameters = world.resolve(aConstructor.getParameterTypes()); if (!parameterTypes.matches(resolvedParameters, TypePattern.STATIC).alwaysTrue()) { // It could still be a match based on the generic sig parameter types of a parameterized type if (!parameterTypes.matches(world.resolve(aConstructor.getGenericParameterTypes()),TypePattern.STATIC).alwaysTrue()) { return false; // It could STILL be a match based on the erasure of the parameter types?? // to be determined via test cases... } } // check that varargs specifications match if (!matchesVarArgs(aConstructor,world)) return false; // Check the throws pattern if (!throwsPattern.matches(aConstructor.getExceptions(), world)) return false; // passed all the guards.. return true; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/a4a9090d88bd1a79d87f0bc08aff7fa627e81f99/SignaturePattern.java/buggy/weaver/src/org/aspectj/weaver/patterns/SignaturePattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1885, 14332, 715, 6293, 12, 4572, 2148, 5374, 279, 6293, 16, 21820, 9117, 13, 288, 202, 202, 430, 16051, 8840, 5968, 559, 18, 8436, 5788, 1230, 12, 69, 6293, 18, 588, 3456, 5968, 559, 7675, 10828, 12, 18179, 20349, 327, 629, 31, 202, 202, 12793, 559, 8526, 4640, 2402, 273, 9117, 18, 10828, 12, 69, 6293, 18, 588, 1662, 2016, 10663, 202, 202, 430, 16051, 6775, 2016, 18, 8436, 12, 11792, 2402, 16, 1412, 3234, 18, 22741, 2934, 17737, 5510, 10756, 288, 1082, 202, 759, 2597, 3377, 4859, 506, 279, 845, 2511, 603, 326, 5210, 3553, 1569, 1953, 434, 279, 17629, 618, 1082, 202, 430, 16051, 6775, 2016, 18, 8436, 12, 18179, 18, 10828, 12, 69, 6293, 18, 588, 7014, 1662, 2016, 1435, 3631, 559, 3234, 18, 22741, 2934, 17737, 5510, 10756, 288, 9506, 202, 2463, 629, 31, 9506, 202, 759, 2597, 3377, 2347, 15125, 506, 279, 845, 2511, 603, 326, 6445, 3619, 434, 326, 1569, 1953, 14646, 9506, 202, 759, 358, 506, 11383, 3970, 1842, 6088, 2777, 1082, 202, 97, 202, 202, 97, 9506, 202, 759, 866, 716, 19732, 21950, 845, 202, 202, 430, 16051, 8436, 1537, 2615, 12, 69, 6293, 16, 18179, 3719, 327, 629, 31, 9506, 202, 759, 2073, 326, 1216, 1936, 202, 202, 430, 16051, 15069, 3234, 18, 8436, 12, 69, 6293, 18, 588, 11416, 9334, 9117, 3719, 327, 629, 31, 9506, 202, 759, 2275, 777, 326, 11026, 87, 838, 202, 202, 2463, 638, 31, 1082, 202, 97, 2, 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, 1, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 1885, 14332, 715, 6293, 12, 4572, 2148, 5374, 279, 6293, 16, 21820, 9117, 13, 288, 202, 202, 430, 16051, 8840, 5968, 559, 18, 8436, 5788, 1230, 12, 69, 6293, 18, 588, 3456, 5968, 559, 7675, 10828, 12, 18179, 20349, 327, 629, 31, 202, 202, 12793, 559, 8526, 4640, 2402, 273, 9117, 18, 10828, 12, 69, 6293, 18, 588, 1662, 2016, 10663, 202, 202, 430, 16051, 6775, 2016, 18, 8436, 12, 11792, 2402, 16, 1412, 3234, 18, 22741, 2934, 17737, 5510, 10756, 288, 1082, 202, 759, 2597, 3377, 4859, 506, 279, 845, 2511, 603, 326, 5210, 3553, 1569, 1953, 434, 279, 17629, 618, 1082, 202, 430, 16051, 6775, 2016, 18, 8436, 12, 18179, 18, 10828, 12, 2 ]
if(cache != null) {
if (cache != null) {
protected MModelElement getModelElementAt(int index) { MModelElement element = null; java.util.List cache = getCache(); if(cache != null) { element = (MModelElement) cache.get(index); } return element; }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLModelElementCachedListModel.java/clean/src_new/org/argouml/uml/ui/UMLModelElementCachedListModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 490, 1488, 1046, 7454, 1046, 861, 12, 474, 770, 13, 288, 3639, 490, 1488, 1046, 930, 273, 446, 31, 3639, 2252, 18, 1367, 18, 682, 1247, 273, 8577, 5621, 3639, 309, 261, 2493, 480, 446, 13, 288, 5411, 930, 273, 261, 49, 1488, 1046, 13, 1247, 18, 588, 12, 1615, 1769, 3639, 289, 3639, 327, 930, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 490, 1488, 1046, 7454, 1046, 861, 12, 474, 770, 13, 288, 3639, 490, 1488, 1046, 930, 273, 446, 31, 3639, 2252, 18, 1367, 18, 682, 1247, 273, 8577, 5621, 3639, 309, 261, 2493, 480, 446, 13, 288, 5411, 930, 273, 261, 49, 1488, 1046, 13, 1247, 18, 588, 12, 1615, 1769, 3639, 289, 3639, 327, 930, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case Game.PHASE_EXCHANGE :
case IGame.PHASE_EXCHANGE :
protected void changePhase(int phase) { game.setPhase(phase); // Handle phase-specific items. switch (phase) { case Game.PHASE_STARTING_SCENARIO : sendDone(true); break; case Game.PHASE_EXCHANGE : sendDone(true); break; case Game.PHASE_DEPLOYMENT : memDump("entering deployment phase"); //$NON-NLS-1$ break; case Game.PHASE_TARGETING : memDump("entering targeting phase"); //$NON-NLS-1$ break; case Game.PHASE_MOVEMENT : memDump("entering movement phase"); //$NON-NLS-1$ break; case Game.PHASE_OFFBOARD : memDump("entering offboard phase"); //$NON-NLS-1$ break; case Game.PHASE_FIRING : memDump("entering firing phase"); //$NON-NLS-1$ break; case Game.PHASE_PHYSICAL : memDump("entering physical phase"); //$NON-NLS-1$ break; } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/db64c0778bbea1399999fd25b589d242f8842761/Client.java/clean/megamek/src/megamek/client/Client.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 2549, 11406, 12, 474, 6855, 13, 288, 3639, 7920, 18, 542, 11406, 12, 13961, 1769, 3639, 368, 5004, 6855, 17, 12524, 1516, 18, 3639, 1620, 261, 13961, 13, 288, 3639, 648, 14121, 18, 8939, 4429, 67, 7570, 1360, 67, 2312, 1157, 985, 4294, 294, 5411, 1366, 7387, 12, 3767, 1769, 5411, 898, 31, 3639, 648, 467, 12496, 18, 8939, 4429, 67, 2294, 14473, 294, 5411, 1366, 7387, 12, 3767, 1769, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 1639, 22971, 3212, 294, 5411, 1663, 10628, 2932, 2328, 310, 6314, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 16374, 1360, 294, 5411, 1663, 10628, 2932, 2328, 310, 31490, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 16537, 3212, 294, 5411, 1663, 10628, 2932, 2328, 310, 26017, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 8797, 5315, 8085, 294, 5411, 1663, 10628, 2932, 2328, 310, 3397, 3752, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 1653, 54, 1360, 294, 5411, 1663, 10628, 2932, 2328, 310, 30253, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 8939, 61, 2320, 7913, 294, 5411, 1663, 10628, 2932, 2328, 310, 11640, 6855, 8863, 4329, 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, 2549, 11406, 12, 474, 6855, 13, 288, 3639, 7920, 18, 542, 11406, 12, 13961, 1769, 3639, 368, 5004, 6855, 17, 12524, 1516, 18, 3639, 1620, 261, 13961, 13, 288, 3639, 648, 14121, 18, 8939, 4429, 67, 7570, 1360, 67, 2312, 1157, 985, 4294, 294, 5411, 1366, 7387, 12, 3767, 1769, 5411, 898, 31, 3639, 648, 467, 12496, 18, 8939, 4429, 67, 2294, 14473, 294, 5411, 1366, 7387, 12, 3767, 1769, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 1639, 22971, 3212, 294, 5411, 1663, 10628, 2932, 2328, 310, 6314, 6855, 8863, 4329, 3993, 17, 5106, 17, 21, 8, 5411, 898, 31, 3639, 648, 14121, 18, 8939, 4429, 67, 16374, 1360, 294, 5411, 1663, 10628, 2 ]
int d, i, r, tr, llow;
int d, i, r, llow;
private static void qsort(vValue x[], int l, int u){ int d, i, r, tr, llow; vValue t, v; if (l >= u) { return; } r = l + (int) ((u - l) * Math.random()); // don't perturb &random swap(x, l, r); t = x[l]; tr = t.rank(); llow = l; for (i = l + 1; i <= u; i++) { v = x[i]; d = v.rank() - tr; if (d == 0) { d = v.compareTo(t); } if (d < 0) { llow++; swap(x, llow, i); } } swap(x, l, llow); qsort(x, l, llow-1); qsort(x, llow+1, u);}
4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/05f42fe4e3b2eef4c7c03149798a822b4cc4a28b/iUtil.java/buggy/jcon/iUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 760, 918, 1043, 3804, 12, 90, 620, 619, 63, 6487, 509, 328, 16, 509, 582, 15329, 565, 509, 302, 16, 277, 16, 436, 16, 328, 821, 31, 565, 331, 620, 268, 16, 331, 31, 565, 309, 261, 80, 1545, 582, 13, 288, 377, 202, 2463, 31, 565, 289, 565, 436, 273, 328, 397, 261, 474, 13, 14015, 89, 300, 328, 13, 380, 2361, 18, 9188, 10663, 202, 759, 2727, 1404, 24445, 15850, 473, 9188, 565, 7720, 12, 92, 16, 328, 16, 436, 1769, 565, 268, 273, 619, 63, 80, 15533, 565, 433, 273, 268, 18, 11500, 5621, 565, 328, 821, 273, 328, 31, 565, 364, 261, 77, 273, 328, 397, 404, 31, 277, 1648, 582, 31, 277, 27245, 288, 202, 90, 273, 619, 63, 77, 15533, 202, 72, 273, 331, 18, 11500, 1435, 300, 433, 31, 202, 430, 261, 72, 422, 374, 13, 288, 202, 565, 302, 273, 331, 18, 9877, 774, 12, 88, 1769, 202, 97, 377, 202, 430, 261, 72, 411, 374, 13, 288, 202, 565, 328, 821, 9904, 31, 202, 565, 7720, 12, 92, 16, 328, 821, 16, 277, 1769, 202, 97, 565, 289, 565, 7720, 12, 92, 16, 328, 16, 328, 821, 1769, 565, 1043, 3804, 12, 92, 16, 328, 16, 328, 821, 17, 21, 1769, 565, 1043, 3804, 12, 92, 16, 328, 821, 15, 21, 16, 582, 1769, 97, 2, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 760, 918, 1043, 3804, 12, 90, 620, 619, 63, 6487, 509, 328, 16, 509, 582, 15329, 565, 509, 302, 16, 277, 16, 436, 16, 328, 821, 31, 565, 331, 620, 268, 16, 331, 31, 565, 309, 261, 80, 1545, 582, 13, 288, 377, 202, 2463, 31, 565, 289, 565, 436, 273, 328, 397, 261, 474, 13, 14015, 89, 300, 328, 13, 380, 2361, 18, 9188, 10663, 202, 759, 2727, 1404, 24445, 15850, 473, 9188, 565, 7720, 12, 92, 16, 328, 16, 436, 1769, 565, 268, 273, 619, 63, 80, 15533, 565, 433, 273, 268, 18, 11500, 5621, 565, 328, 821, 273, 328, 31, 565, 364, 261, 77, 273, 328, 397, 404, 31, 277, 1648, 582, 31, 277, 27245, 2 ]
I2NPMessage msg = readMessage(buf, message, handler); long afterRead = System.currentTimeMillis(); if (msg != null) _transport.messageReceived(msg, null, message.getFrom(), message.getLifetime(), size);
long afterRead = -1; try { I2NPMessage msg = readMessage(buf, message, handler); afterRead = System.currentTimeMillis(); if (msg != null) _transport.messageReceived(msg, null, message.getFrom(), message.getLifetime(), size); } catch (RuntimeException re) { _log.error("b0rked receiving a message.. wazza huzza hmm?", re); continue; }
public void loop(I2NPMessageHandler handler) { InboundMessageState message = null; ByteArray buf = _cache.acquire(); while (_alive) { int expired = 0; long expiredLifetime = 0; int remaining = 0; try { synchronized (_completeMessages) { while (message == null) { if (_completeMessages.size() > 0) // grab the tail for lowest latency message = (InboundMessageState)_completeMessages.remove(_completeMessages.size()-1); else _completeMessages.wait(5000); if ( (message != null) && (message.isExpired()) ) { expiredLifetime += message.getLifetime(); message = null; expired++; } remaining = _completeMessages.size(); } } } catch (InterruptedException ie) {} if (expired > 0) _context.statManager().addRateData("udp.inboundExpired", expired, expiredLifetime); if (message != null) { long before = System.currentTimeMillis(); if (remaining > 0) _context.statManager().addRateData("udp.inboundRemaining", remaining, 0); int size = message.getCompleteSize(); if (_log.shouldLog(Log.INFO)) _log.info("Full message received (" + message.getMessageId() + ") after " + message.getLifetime()); I2NPMessage msg = readMessage(buf, message, handler); long afterRead = System.currentTimeMillis(); if (msg != null) _transport.messageReceived(msg, null, message.getFrom(), message.getLifetime(), size); message = null; long after = System.currentTimeMillis(); if (afterRead - before > 100) _context.statManager().addRateData("udp.inboundReadTime", afterRead - before, remaining); if (after - afterRead > 100) _context.statManager().addRateData("udp.inboundReceiveProcessTime", after - afterRead, remaining); } } // no need to zero it out, as these buffers are only used with an explicit getCompleteSize _cache.release(buf, false); }
45677 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45677/c5ddfabfe95f67f7349f2f4f3aca700bf98415fb/MessageReceiver.java/clean/router/java/src/net/i2p/router/transport/udp/MessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2798, 12, 45, 22, 23430, 1079, 1503, 1838, 13, 288, 3639, 657, 3653, 1079, 1119, 883, 273, 446, 31, 3639, 7964, 1681, 273, 389, 2493, 18, 1077, 1039, 5621, 3639, 1323, 261, 67, 11462, 13, 288, 5411, 509, 7708, 273, 374, 31, 5411, 1525, 7708, 19259, 273, 374, 31, 5411, 509, 4463, 273, 374, 31, 5411, 775, 288, 7734, 3852, 261, 67, 6226, 5058, 13, 288, 10792, 1323, 261, 2150, 422, 446, 13, 288, 13491, 309, 261, 67, 6226, 5058, 18, 1467, 1435, 405, 374, 13, 368, 11086, 326, 5798, 364, 11981, 19518, 18701, 883, 273, 261, 20571, 1079, 1119, 13, 67, 6226, 5058, 18, 4479, 24899, 6226, 5058, 18, 1467, 1435, 17, 21, 1769, 13491, 469, 18701, 389, 6226, 5058, 18, 7048, 12, 25, 3784, 1769, 13491, 309, 261, 261, 2150, 480, 446, 13, 597, 261, 2150, 18, 291, 10556, 10756, 262, 288, 18701, 7708, 19259, 1011, 883, 18, 588, 19259, 5621, 18701, 883, 273, 446, 31, 18701, 7708, 9904, 31, 13491, 289, 13491, 4463, 273, 389, 6226, 5058, 18, 1467, 5621, 10792, 289, 7734, 289, 5411, 289, 1044, 261, 24485, 503, 9228, 13, 2618, 13491, 309, 261, 15820, 405, 374, 13, 7734, 389, 2472, 18, 5642, 1318, 7675, 1289, 4727, 751, 2932, 26029, 18, 267, 3653, 10556, 3113, 7708, 16, 7708, 19259, 1769, 13491, 309, 261, 2150, 480, 446, 13, 288, 7734, 1525, 1865, 273, 2332, 18, 2972, 28512, 5621, 7734, 309, 261, 17956, 405, 374, 13, 10792, 389, 2472, 18, 5642, 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, 2798, 12, 45, 22, 23430, 1079, 1503, 1838, 13, 288, 3639, 657, 3653, 1079, 1119, 883, 273, 446, 31, 3639, 7964, 1681, 273, 389, 2493, 18, 1077, 1039, 5621, 3639, 1323, 261, 67, 11462, 13, 288, 5411, 509, 7708, 273, 374, 31, 5411, 1525, 7708, 19259, 273, 374, 31, 5411, 509, 4463, 273, 374, 31, 5411, 775, 288, 7734, 3852, 261, 67, 6226, 5058, 13, 288, 10792, 1323, 261, 2150, 422, 446, 13, 288, 13491, 309, 261, 67, 6226, 5058, 18, 1467, 1435, 405, 374, 13, 368, 11086, 326, 5798, 364, 11981, 19518, 18701, 883, 273, 261, 20571, 1079, 1119, 13, 67, 6226, 5058, 18, 4479, 24899, 6226, 5058, 18, 1467, 1435, 17, 21, 1769, 13491, 2 ]
msg = pg_stream.ReceiveString(8192);
msg = pg_stream.ReceiveString(receive_sbuf,8192,getEncoding());
public java.sql.ResultSet ExecSQL(String sql) throws SQLException { // added Oct 7 1998 to give us thread safety. synchronized(pg_stream) { Field[] fields = null; Vector tuples = new Vector(); byte[] buf = null; int fqp = 0; boolean hfr = false; String recv_status = null, msg; int update_count = 1; int insert_oid = 0; SQLException final_error = null; // Commented out as the backend can now handle queries // larger than 8K. Peter June 6 2000 //if (sql.length() > 8192) //throw new PSQLException("postgresql.con.toolong",sql); if (getEncoding() == null) buf = sql.getBytes(); else { try { buf = sql.getBytes(getEncoding()); } catch (UnsupportedEncodingException unse) { throw new PSQLException("postgresql.con.encoding", unse); } } try { pg_stream.SendChar('Q'); buf = sql.getBytes(); pg_stream.Send(buf); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } while (!hfr || fqp > 0) { Object tup=null; // holds rows as they are recieved int c = pg_stream.ReceiveChar(); switch (c) { case 'A': // Asynchronous Notify pid = pg_stream.ReceiveInteger(4); msg = pg_stream.ReceiveString(8192); break; case 'B': // Binary Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, true); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'C': // Command Status recv_status = pg_stream.ReceiveString(8192); // Now handle the update count correctly. if(recv_status.startsWith("INSERT") || recv_status.startsWith("UPDATE") || recv_status.startsWith("DELETE")) { try { update_count = Integer.parseInt(recv_status.substring(1+recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } if(recv_status.startsWith("INSERT")) { try { insert_oid = Integer.parseInt(recv_status.substring(1+recv_status.indexOf(' '),recv_status.lastIndexOf(' '))); } catch(NumberFormatException nfe) { throw new PSQLException("postgresql.con.fathom",recv_status); } } } if (fields != null) hfr = true; else { try { pg_stream.SendChar('Q'); pg_stream.SendChar(' '); pg_stream.SendChar(0); pg_stream.flush(); } catch (IOException e) { throw new PSQLException("postgresql.con.ioerror",e); } fqp++; } break; case 'D': // Text Data Transfer if (fields == null) throw new PSQLException("postgresql.con.tuple"); tup = pg_stream.ReceiveTuple(fields.length, false); // This implements Statement.setMaxRows() if(maxrows==0 || tuples.size()<maxrows) tuples.addElement(tup); break; case 'E': // Error Message msg = pg_stream.ReceiveString(4096); final_error = new SQLException(msg); hfr = true; break; case 'I': // Empty Query int t = pg_stream.ReceiveChar(); if (t != 0) throw new PSQLException("postgresql.con.garbled"); if (fqp > 0) fqp--; if (fqp == 0) hfr = true; break; case 'N': // Error Notification addWarning(pg_stream.ReceiveString(4096)); break; case 'P': // Portal Name String pname = pg_stream.ReceiveString(8192); break; case 'T': // MetaData Field Description if (fields != null) throw new PSQLException("postgresql.con.multres"); fields = ReceiveFields(); break; case 'Z': // backend ready for query, ignore for now :-) break; default: throw new PSQLException("postgresql.con.type",new Character((char)c)); } } if (final_error != null) throw final_error; return getResultSet(this, fields, tuples, recv_status, update_count, insert_oid); } }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/f41dcbe4d810f0906f43d1b345cf506d72c792ac/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 446, 31, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 565, 509, 1089, 67, 1883, 273, 404, 31, 202, 565, 509, 2243, 67, 839, 273, 374, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 377, 202, 565, 368, 9821, 329, 596, 487, 326, 4221, 848, 2037, 1640, 6218, 202, 565, 368, 10974, 2353, 1725, 47, 18, 453, 847, 804, 7556, 1666, 16291, 202, 565, 368, 430, 261, 4669, 18, 2469, 1435, 405, 26730, 13, 202, 565, 368, 12849, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 6738, 932, 3113, 4669, 1769, 3639, 309, 261, 588, 4705, 1435, 422, 446, 13, 5411, 1681, 273, 1847, 18, 588, 2160, 5621, 3639, 469, 288, 5411, 775, 288, 7734, 1681, 273, 1847, 18, 588, 2160, 12, 588, 4705, 10663, 5411, 289, 1044, 261, 8544, 13836, 640, 307, 13, 288, 1171, 604, 394, 453, 23116, 2932, 2767, 24330, 18, 591, 18, 5999, 3113, 4766, 3639, 640, 307, 1769, 5411, 289, 3639, 289, 202, 565, 775, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2252, 18, 4669, 18, 13198, 3889, 3997, 12, 780, 1847, 13, 1216, 6483, 565, 288, 202, 759, 3096, 29482, 2371, 23673, 28, 358, 8492, 584, 2650, 24179, 18, 202, 22043, 12, 8365, 67, 3256, 13, 288, 202, 377, 202, 565, 2286, 8526, 1466, 273, 446, 31, 202, 565, 5589, 10384, 273, 394, 5589, 5621, 202, 565, 1160, 8526, 1681, 273, 446, 31, 202, 565, 509, 8508, 84, 273, 374, 31, 202, 565, 1250, 366, 4840, 273, 629, 31, 202, 565, 514, 10665, 67, 2327, 273, 446, 16, 1234, 31, 202, 565, 509, 1089, 67, 1883, 273, 404, 31, 202, 565, 509, 2243, 67, 839, 273, 374, 31, 202, 565, 6483, 727, 67, 1636, 273, 446, 31, 202, 2 ]
if (currentWord == null)
if (!hasNext())
public Word next() {//{{{ if (currentWord == null) throw new WordNotFoundException("No more words found."); currentWord.copy(nextWord); setSentenceIterator(currentWord); int i = currentWord.getEnd(); boolean finished = false; boolean started = false; search: while (i < text.length() && !finished) {//{{{ Find words. if (!started && isWordChar(i)) { nextWord.setStart(i++); started = true; continue search; } else if (started) { if (isWordChar(i)) { i++; continue search; } else { nextWord.setText(text.substring(nextWord.getStart(), i)); finished = true; break search; } } //}}}// Ignore Comments: i = ignore(i, '%', '\n');// Ignore Maths: i = ignore(i, "$$", "$$"); i = ignore(i, '$', '$');// Ignore environment names. i = ignore(i, "\\begin{", "}"); i = ignore(i, "\\end{", "}");// Ignore commands. i = ignore(i, '\\'); i++; } if (!started) { nextWord = null; } else if (!finished) { nextWord.setText(text.substring(nextWord.getStart(), i)); } return currentWord; }
2469 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2469/f065bce117e7454526b6147d91a36414cefe4516/TeXWordFinder.java/buggy/src/com/swabunga/spell/event/TeXWordFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9926, 1024, 1435, 288, 759, 12187, 95, 565, 309, 16051, 5332, 2134, 10756, 1377, 604, 394, 9926, 3990, 2932, 2279, 1898, 4511, 1392, 1199, 1769, 565, 783, 3944, 18, 3530, 12, 4285, 3944, 1769, 565, 444, 17923, 3198, 12, 2972, 3944, 1769, 565, 509, 277, 273, 783, 3944, 18, 588, 1638, 5621, 565, 1250, 6708, 273, 629, 31, 565, 1250, 5746, 273, 629, 31, 565, 1623, 30, 1377, 1323, 261, 77, 411, 977, 18, 2469, 1435, 597, 401, 13527, 13, 288, 759, 12187, 95, 4163, 4511, 18, 3639, 309, 16051, 14561, 597, 353, 3944, 2156, 12, 77, 3719, 288, 1850, 1024, 3944, 18, 542, 1685, 12, 77, 9904, 1769, 1850, 5746, 273, 638, 31, 1850, 1324, 1623, 31, 3639, 289, 469, 309, 261, 14561, 13, 288, 1850, 309, 261, 291, 3944, 2156, 12, 77, 3719, 288, 5411, 277, 9904, 31, 5411, 1324, 1623, 31, 1850, 289, 469, 288, 5411, 1024, 3944, 18, 542, 1528, 12, 955, 18, 28023, 12, 4285, 3944, 18, 588, 1685, 9334, 277, 10019, 5411, 6708, 273, 638, 31, 5411, 898, 1623, 31, 1850, 289, 3639, 289, 225, 368, 9090, 97, 759, 8049, 23452, 30, 3639, 277, 273, 2305, 12, 77, 16, 1995, 2187, 2337, 82, 8284, 759, 8049, 2361, 87, 30, 3639, 277, 273, 2305, 12, 77, 16, 4662, 8, 3113, 4662, 8, 8863, 3639, 277, 273, 2305, 12, 77, 16, 3365, 2187, 3365, 8284, 759, 8049, 3330, 1257, 18, 3639, 277, 273, 2305, 12, 77, 16, 8422, 10086, 95, 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, 282, 1071, 9926, 1024, 1435, 288, 759, 12187, 95, 565, 309, 16051, 5332, 2134, 10756, 1377, 604, 394, 9926, 3990, 2932, 2279, 1898, 4511, 1392, 1199, 1769, 565, 783, 3944, 18, 3530, 12, 4285, 3944, 1769, 565, 444, 17923, 3198, 12, 2972, 3944, 1769, 565, 509, 277, 273, 783, 3944, 18, 588, 1638, 5621, 565, 1250, 6708, 273, 629, 31, 565, 1250, 5746, 273, 629, 31, 565, 1623, 30, 1377, 1323, 261, 77, 411, 977, 18, 2469, 1435, 597, 401, 13527, 13, 288, 759, 12187, 95, 4163, 4511, 18, 3639, 309, 16051, 14561, 597, 353, 3944, 2156, 12, 77, 3719, 288, 1850, 1024, 3944, 18, 542, 1685, 12, 77, 9904, 1769, 1850, 5746, 273, 638, 31, 1850, 1324, 1623, 2 ]
Adventure skiAdventure = SampleData.WINTER_HOLIDAY; cviewer.setLabelProvider(lodgingLabelProvider); getDbc().bind2(cviewer, new PropertyDescription(catalog, "lodgings"), null); assertEquals(catalog.getLodgings(), getViewerContent(cviewer)); assertEquals(getColumn(catalog.getLodgings(), "name"), getComboContent()); getDbc().bind2(new PropertyDescription(cviewer, SWTBindingConstants.SELECTION), new PropertyDescription(skiAdventure ,"defaultLodging"), null); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); for (Iterator iter = catalog.getLodgings().iterator(); iter.hasNext();) { Object selection = iter.next(); cviewer.setSelection(new StructuredSelection(selection)); assertEquals(selection, skiAdventure.getDefaultLodging()); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); } }
Adventure skiAdventure = SampleData.WINTER_HOLIDAY; cviewer.setLabelProvider(lodgingLabelProvider); getDbc().bind2(cviewer, new PropertyDescription(catalog, "lodgings"), null); assertEquals(catalog.getLodgings(), getViewerContent(cviewer)); assertEquals(getColumn(catalog.getLodgings(), "name"), getComboContent()); getDbc() .bind2( new PropertyDescription(cviewer, SWTBindingConstants.SELECTION), new PropertyDescription(skiAdventure, "defaultLodging"), null); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); for (Iterator iter = catalog.getLodgings().iterator(); iter.hasNext();) { Object selection = iter.next(); cviewer.setSelection(new StructuredSelection(selection)); assertEquals(selection, skiAdventure.getDefaultLodging()); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); } }
public void test_ROCombo_Scenario03_vanilla() throws BindingException { Adventure skiAdventure = SampleData.WINTER_HOLIDAY; // selection will // change its defaultLodging cviewer.setLabelProvider(lodgingLabelProvider); // Bind the ComboViewer's content to the available lodging getDbc().bind2(cviewer, new PropertyDescription(catalog, "lodgings"), null); // Ensure that cv's content now has the catalog's lodgings assertEquals(catalog.getLodgings(), getViewerContent(cviewer)); // Ensure that the cv's labels are the same as the lodging descriptions assertEquals(getColumn(catalog.getLodgings(), "name"), getComboContent()); // Bind the ComboViewer's selection to the Adventure's default lodging. getDbc().bind2(new PropertyDescription(cviewer, SWTBindingConstants.SELECTION), new PropertyDescription(skiAdventure ,"defaultLodging"), null); // Check to see that the initial selection is the currentDefault Lodging assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); // Change the selection of the ComboViewer to all possible lodgings, and // verify that skiAdventure's default lodging was changed accordingly for (Iterator iter = catalog.getLodgings().iterator(); iter.hasNext();) { Object selection = iter.next(); cviewer.setSelection(new StructuredSelection(selection)); assertEquals(selection, skiAdventure.getDefaultLodging()); assertEquals(getViewerSelection(), skiAdventure.getDefaultLodging()); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1530c33800c89b3fbc6a32b79c9729ecf7967272/ReadOnlyComboScenarios.java/clean/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/binding/scenarios/ReadOnlyComboScenarios.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 1071, 918, 1842, 67, 1457, 16156, 67, 21390, 4630, 67, 90, 26476, 1435, 1216, 15689, 503, 288, 6862, 1082, 4052, 616, 594, 4343, 77, 1871, 616, 594, 273, 11474, 751, 18, 59, 9125, 67, 44, 1741, 734, 5255, 31, 368, 4421, 903, 1082, 368, 2549, 2097, 805, 48, 369, 1998, 1082, 1875, 276, 25256, 18, 542, 2224, 2249, 12, 80, 369, 1998, 2224, 2249, 1769, 202, 377, 368, 6936, 326, 1286, 1075, 18415, 1807, 913, 358, 326, 2319, 328, 369, 1998, 202, 21114, 11188, 71, 7675, 4376, 22, 12, 71, 25256, 16, 394, 4276, 3291, 12, 7199, 16, 315, 80, 369, 75, 899, 6, 3631, 446, 1769, 6862, 1082, 368, 7693, 716, 8951, 1807, 913, 2037, 711, 326, 6222, 1807, 328, 369, 75, 899, 1082, 1815, 8867, 12, 7199, 18, 588, 48, 369, 75, 899, 9334, 8893, 264, 1350, 12, 71, 25256, 10019, 6862, 1082, 368, 7693, 716, 326, 8951, 1807, 3249, 854, 326, 1967, 487, 326, 328, 369, 1998, 15550, 1082, 1815, 8867, 12, 588, 1494, 12, 7199, 18, 588, 48, 369, 75, 899, 9334, 315, 529, 6, 3631, 336, 16156, 1350, 10663, 6862, 6862, 1082, 368, 6936, 326, 1286, 1075, 18415, 1807, 4421, 358, 326, 4052, 616, 594, 1807, 805, 328, 369, 1998, 18, 1082, 11188, 71, 7675, 4376, 22, 12, 2704, 4276, 3291, 12, 71, 25256, 16, 348, 8588, 5250, 2918, 18, 1090, 15445, 3631, 4405, 4202, 394, 4276, 3291, 12, 7771, 77, 1871, 616, 594, 269, 6, 1886, 48, 369, 1998, 6, 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, 3196, 1071, 918, 1842, 67, 1457, 16156, 67, 21390, 4630, 67, 90, 26476, 1435, 1216, 15689, 503, 288, 6862, 1082, 4052, 616, 594, 4343, 77, 1871, 616, 594, 273, 11474, 751, 18, 59, 9125, 67, 44, 1741, 734, 5255, 31, 368, 4421, 903, 1082, 368, 2549, 2097, 805, 48, 369, 1998, 1082, 1875, 276, 25256, 18, 542, 2224, 2249, 12, 80, 369, 1998, 2224, 2249, 1769, 202, 377, 368, 6936, 326, 1286, 1075, 18415, 1807, 913, 358, 326, 2319, 328, 369, 1998, 202, 21114, 11188, 71, 7675, 4376, 22, 12, 71, 25256, 16, 394, 4276, 3291, 12, 7199, 16, 315, 80, 369, 75, 899, 6, 3631, 446, 1769, 6862, 1082, 368, 7693, 716, 8951, 1807, 913, 2037, 711, 326, 2 ]
super(p); ofs = DATA_OFFSET + msg_offset;
super(p, DATA_OFFSET + msg_offset);
JVModel(Patch p, int tone, int msg_offset) { super(p); ofs = DATA_OFFSET + msg_offset; if (tone >= 0) ofs += ((RolandJV80PatchDriver)p.getDriver()).patchToneOffsets[tone]; }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/fafa7b10279bcb2ea5709ea8df89f9b3bb076b8f/RolandJV80PatchEditor.java/clean/JSynthLib/synthdrivers/RolandJV80/RolandJV80PatchEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 565, 804, 58, 1488, 12, 7332, 293, 16, 509, 30600, 16, 509, 1234, 67, 3348, 13, 288, 202, 3639, 2240, 12, 84, 1769, 202, 3639, 26927, 273, 8730, 67, 11271, 397, 1234, 67, 3348, 31, 202, 3639, 309, 261, 88, 476, 1545, 374, 13, 202, 5411, 26927, 1011, 14015, 4984, 464, 46, 58, 3672, 7332, 4668, 13, 84, 18, 588, 4668, 1435, 2934, 2272, 56, 476, 13830, 63, 88, 476, 15533, 202, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3196, 565, 804, 58, 1488, 12, 7332, 293, 16, 509, 30600, 16, 509, 1234, 67, 3348, 13, 288, 202, 3639, 2240, 12, 84, 1769, 202, 3639, 26927, 273, 8730, 67, 11271, 397, 1234, 67, 3348, 31, 202, 3639, 309, 261, 88, 476, 1545, 374, 13, 202, 5411, 26927, 1011, 14015, 4984, 464, 46, 58, 3672, 7332, 4668, 13, 84, 18, 588, 4668, 1435, 2934, 2272, 56, 476, 13830, 63, 88, 476, 15533, 202, 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 ]
else if ( !isQName.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)||
else if ( !formStr.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( formStr.equals(SchemaSymbols.ATTVAL_QUALIFIED)||
private QName traverseElementDecl(Element elementDecl) throws Exception { // General Attribute Checking int scope = isTopLevel(elementDecl)? GeneralAttrCheck.ELE_CONTEXT_GLOBAL: GeneralAttrCheck.ELE_CONTEXT_LOCAL; Hashtable attrValues = fGeneralAttrCheck.checkAttributes(elementDecl, scope); int contentSpecType = -1; int contentSpecNodeIndex = -1; int typeNameIndex = -1; int scopeDefined = -2; //signal a error if -2 gets gets through //cause scope can never be -2. DatatypeValidator dv = null; String name = elementDecl.getAttribute(SchemaSymbols.ATT_NAME); if ( DEBUGGING ) System.out.println("traversing element decl : " + name ); String ref = elementDecl.getAttribute(SchemaSymbols.ATT_REF); String type = elementDecl.getAttribute(SchemaSymbols.ATT_TYPE); String minOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MINOCCURS); String maxOccurs = elementDecl.getAttribute(SchemaSymbols.ATT_MAXOCCURS); String dflt = elementDecl.getAttribute(SchemaSymbols.ATT_DEFAULT); String fixed = elementDecl.getAttribute(SchemaSymbols.ATT_FIXED); if(!(dflt.equals("") || fixed.equals(""))) // REVISIT: localize reportGenericSchemaError("an element cannot have both \"fixed\" and \"default\" present at the same time"); String substitutionGroup = elementDecl.getAttribute(SchemaSymbols.ATT_SUBSTITUTIONGROUP); // form attribute String isQName = elementDecl.getAttribute(SchemaSymbols.ATT_FORM); String fromAnotherSchema = null; if (isTopLevel(elementDecl)) { if(name.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element must have a name"); else if (!ref.equals("")) // REVISIT: localize reportGenericSchemaError("globally-declared element " + name + " cannot have a ref attribute"); int nameIndex = fStringPool.addSymbol(name); int eltKey = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, nameIndex,TOP_LEVEL_SCOPE); if (eltKey > -1 ) { return new QName(-1,nameIndex,nameIndex,fTargetNSURI); } } // parse out 'block', 'final', 'nillable', 'abstract' String blockSetStr = null; Attr blockAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_BLOCK ); if (blockAttr != null) blockSetStr = blockAttr.getValue(); int blockSet = parseBlockSet(blockSetStr); if( (blockSetStr != null) && !blockSetStr.equals("") && (!blockSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((blockSet & SchemaSymbols.RESTRICTION) == 0) && (((blockSet & SchemaSymbols.EXTENSION) == 0) && ((blockSet & SchemaSymbols.SUBSTITUTION) == 0))))) reportGenericSchemaError("The values of the 'block' attribute of an element must be either #all or a list of 'substitution', 'restriction' and 'extension'; " + blockSetStr + " was found"); String finalSetStr = null; Attr finalAttr = elementDecl.getAttributeNode( SchemaSymbols.ATT_FINAL ); if (finalAttr != null) finalSetStr = finalAttr.getValue(); int finalSet = parseFinalSet(finalSetStr); if( (finalSetStr != null) && !finalSetStr.equals("") && (!finalSetStr.equals(SchemaSymbols.ATTVAL_POUNDALL) && (((finalSet & SchemaSymbols.RESTRICTION) == 0) && ((finalSet & SchemaSymbols.EXTENSION) == 0)))) reportGenericSchemaError("The values of the 'final' attribute of an element must be either #all or a list of 'restriction' and 'extension'; " + finalSetStr + " was found"); boolean isNillable = elementDecl.getAttribute (SchemaSymbols.ATT_NILLABLE).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; boolean isAbstract = elementDecl.getAttribute (SchemaSymbols.ATT_ABSTRACT).equals(SchemaSymbols.ATTVAL_TRUE)? true:false; int elementMiscFlags = 0; if (isNillable) { elementMiscFlags += SchemaSymbols.NILLABLE; } if (isAbstract) { elementMiscFlags += SchemaSymbols.ABSTRACT; } // make the property of the element's value being fixed also appear in elementMiscFlags if(!fixed.equals("")) elementMiscFlags += SchemaSymbols.FIXED; //if this is a reference to a global element if (!ref.equals("")) { //REVISIT top level check for ref if (!type.equals("") || (elementMiscFlags > 0) || (finalSetStr != null && finalSet > 0) || (blockSetStr != null && blockSet > 0) || !dflt.equals("") || !fixed.equals("")) reportSchemaError(SchemaMessageProvider.BadAttWithRef, null); if (!name.equals("")) // REVISIT: Localize reportGenericSchemaError("element " + name + " cannot also have a ref attribute"); Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { if (XUtil.getNextSiblingElement(child) != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); else traverseAnnotationDecl(child); } else if (child != null) reportSchemaError(SchemaMessageProvider.NoContentForRef, null); String prefix = ""; String localpart = ref; int colonptr = ref.indexOf(":"); if ( colonptr > 0) { prefix = ref.substring(0,colonptr); localpart = ref.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String uriString = resolvePrefixToURI(prefix); QName eltName = new QName(prefix != null ? fStringPool.addSymbol(prefix) : -1, localpartIndex, fStringPool.addSymbol(ref), uriString != null ? fStringPool.addSymbol(uriString) : StringPool.EMPTY_STRING); //if from another schema, just return the element QName if (! uriString.equals(fTargetNSURIString) ) { return eltName; } int elementIndex = fSchemaGrammar.getElementDeclIndex(eltName, TOP_LEVEL_SCOPE); //if not found, traverse the top level element that if referenced if (elementIndex == -1 ) { Element targetElement = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT,localpart); if (targetElement == null ) { // REVISIT: Localize reportGenericSchemaError("Element " + localpart + " not found in the Schema"); //REVISIT, for now, the QName anyway return eltName; //return new QName(-1,fStringPool.addSymbol(localpart), -1, fStringPool.addSymbol(uriString)); } else { // do nothing here, other wise would cause infinite loop for // <element name="recur"><complexType><element ref="recur"> ... //eltName= traverseElementDecl(targetElement); } } return eltName; } else if (name.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element must have a name or a ref attribute present"); // Handle the substitutionGroup Element substitutionGroupElementDecl = null; int substitutionGroupElementDeclIndex = -1; boolean noErrorSoFar = true; String substitutionGroupUri = null; String substitutionGroupLocalpart = null; String substitutionGroupFullName = null; ComplexTypeInfo substitutionGroupEltTypeInfo = null; DatatypeValidator substitutionGroupEltDV = null; if ( substitutionGroup.length() > 0 ) { if(!ref.equals("")) // REVISIT: Localize reportGenericSchemaError("a local element cannot have a substitutionGroup"); substitutionGroupUri = resolvePrefixToURI(getPrefix(substitutionGroup)); substitutionGroupLocalpart = getLocalPart(substitutionGroup); substitutionGroupFullName = substitutionGroupUri+","+substitutionGroupLocalpart; if ( !substitutionGroupUri.equals(fTargetNSURIString) ) { substitutionGroupEltTypeInfo = getElementDeclTypeInfoFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltTypeInfo == null) { substitutionGroupEltDV = getElementDeclTypeValidatorFromNS(substitutionGroupUri, substitutionGroupLocalpart); if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } else { substitutionGroupElementDecl = getTopLevelComponentByName(SchemaSymbols.ELT_ELEMENT, substitutionGroupLocalpart); if (substitutionGroupElementDecl == null) { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("unable to locate substitutionGroup affiliation element " +substitutionGroup +" in element declaration " +name); } } else { substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); if ( substitutionGroupElementDeclIndex == -1) { traverseElementDecl(substitutionGroupElementDecl); substitutionGroupElementDeclIndex = fSchemaGrammar.getElementDeclIndex(fTargetNSURI, getLocalPartIndex(substitutionGroup),TOP_LEVEL_SCOPE); } } if (substitutionGroupElementDeclIndex != -1) { substitutionGroupEltTypeInfo = fSchemaGrammar.getElementComplexTypeInfo( substitutionGroupElementDeclIndex ); if (substitutionGroupEltTypeInfo == null) { fSchemaGrammar.getElementDecl(substitutionGroupElementDeclIndex, fTempElementDecl); substitutionGroupEltDV = fTempElementDecl.datatypeValidator; if (substitutionGroupEltDV == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type for element '" +substitutionGroupLocalpart + "' in schema '" + substitutionGroupUri+"'"); } } } } } // // resolving the type for this element right here // ComplexTypeInfo typeInfo = null; // element has a single child element, either a datatype or a type, null if primitive Element child = XUtil.getFirstChildElement(elementDecl); if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) { traverseAnnotationDecl(child); child = XUtil.getNextSiblingElement(child); } if(child != null && child.getLocalName().equals(SchemaSymbols.ELT_ANNOTATION)) // REVISIT: Localize reportGenericSchemaError("element declarations can contain at most one annotation Element Information Item"); boolean haveAnonType = false; // Handle Anonymous type if there is one if (child != null) { String childName = child.getLocalName(); if (childName.equals(SchemaSymbols.ELT_COMPLEXTYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous complexType in element '" + name +"' has a name attribute"); } else { // Determine what the type name will be String anonTypeName = genAnonTypeName(child); if (fCurrentTypeNameStack.search((Object)anonTypeName) > - 1) { // A recursing element using an anonymous type int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, anonTypeName); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl(child); if (typeNameIndex != -1 ) { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse complexType error in element '" + name +"'"); } } } haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (childName.equals(SchemaSymbols.ELT_SIMPLETYPE)) { if (child.getAttribute(SchemaSymbols.ATT_NAME).length() > 0) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("anonymous simpleType in element '" + name +"' has a name attribute"); } else typeNameIndex = traverseSimpleTypeDecl(child); if (typeNameIndex != -1) { dv = fDatatypeRegistry.getDatatypeValidator(fStringPool.toString(typeNameIndex)); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("traverse simpleType error in element '" + name +"'"); } contentSpecType = XMLElementDecl.TYPE_SIMPLE; haveAnonType = true; child = XUtil.getNextSiblingElement(child); } else if (type.equals("")) { // "ur-typed" leaf contentSpecType = XMLElementDecl.TYPE_ANY; //REVISIT: is this right? //contentSpecType = fStringPool.addSymbol("UR_TYPE"); // set occurrence count contentSpecNodeIndex = -1; } // see if there's something here; it had better be key, keyref or unique. if (child != null) childName = child.getLocalName(); while ((child != null) && ((childName.equals(SchemaSymbols.ELT_KEY)) || (childName.equals(SchemaSymbols.ELT_KEYREF)) || (childName.equals(SchemaSymbols.ELT_UNIQUE)))) { child = XUtil.getNextSiblingElement(child); if (child != null) { childName = child.getLocalName(); } } if (child != null) { // REVISIT: Localize noErrorSoFar = false; reportGenericSchemaError("the content of an element information item must match (annotation?, (simpleType | complexType)?, (unique | key | keyref)*)"); } } // handle type="" here if (haveAnonType && (type.length()>0)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError( "Element '"+ name + "' have both a type attribute and a annoymous type child" ); } // type specified as an attribute and no child is type decl. else if (!type.equals("")) { String prefix = ""; String localpart = type; int colonptr = type.indexOf(":"); if ( colonptr > 0) { prefix = type.substring(0,colonptr); localpart = type.substring(colonptr+1); } String typeURI = resolvePrefixToURI(prefix); // check if the type is from the same Schema if ( !typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && typeURI.length() != 0) { // REVISIT, only needed because of resolvePrifixToURI. fromAnotherSchema = typeURI; typeInfo = getTypeInfoFromNS(typeURI, localpart); if (typeInfo == null) { dv = getTypeValidatorFromNS(typeURI, localpart); if (dv == null) { //TO DO: report error here; noErrorSoFar = false; reportGenericSchemaError("Could not find type " +localpart + " in schema " + typeURI); } } } else { typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(typeURI+","+localpart); if (typeInfo == null) { dv = getDatatypeValidator(typeURI, localpart); if (dv == null ) if (typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) && !fTargetNSURIString.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA)) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } else { Element topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (topleveltype != null) { if (fCurrentTypeNameStack.search((Object)localpart) > - 1) { //then we found a recursive element using complexType. // REVISIT: this will be broken when recursing happens between 2 schemas int uriInd = StringPool.EMPTY_STRING; if ( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified) { uriInd = fTargetNSURI; } int nameIndex = fStringPool.addSymbol(name); QName tempQName = new QName(fCurrentScope, nameIndex, nameIndex, uriInd); fElementRecurseComplex.put(tempQName, localpart); return new QName(-1, nameIndex, nameIndex, uriInd); } else { typeNameIndex = traverseComplexTypeDecl( topleveltype ); typeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(typeNameIndex)); } } else { topleveltype = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (topleveltype != null) { typeNameIndex = traverseSimpleTypeDecl( topleveltype ); dv = getDatatypeValidator(typeURI, localpart); } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("type not found : " + typeURI+":"+localpart); } } } } } } // now we need to make sure that our substitution (if any) // is valid, now that we have all the requisite type-related info. if(substitutionGroup.length() > 0) { checkSubstitutionGroupOK(elementDecl, substitutionGroupElementDecl, noErrorSoFar, substitutionGroupElementDeclIndex, typeInfo, substitutionGroupEltTypeInfo, dv, substitutionGroupEltDV); } // this element is ur-type, check its substitutionGroup affiliation. // if there is substitutionGroup affiliation and not type definition found for this element, // then grab substitutionGroup affiliation's type and give it to this element if ( noErrorSoFar && typeInfo == null && dv == null ) { typeInfo = substitutionGroupEltTypeInfo; dv = substitutionGroupEltDV; } if (typeInfo == null && dv==null) { if (noErrorSoFar) { // Actually this Element's type definition is ur-type; contentSpecType = XMLElementDecl.TYPE_ANY; // REVISIT, need to wait till we have wildcards implementation. // ADD attribute wildcards here } else { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError ("untyped element : " + name ); } } // if element belongs to a compelx type if (typeInfo!=null) { contentSpecNodeIndex = typeInfo.contentSpecHandle; contentSpecType = typeInfo.contentType; scopeDefined = typeInfo.scopeDefined; dv = typeInfo.datatypeValidator; } // if element belongs to a simple type if (dv!=null) { contentSpecType = XMLElementDecl.TYPE_SIMPLE; if (typeInfo == null) { fromAnotherSchema = null; // not to switch schema in this case } } // Now we can handle validation etc. of default and fixed attributes, // since we finally have all the type information. if(!fixed.equals("")) dflt = fixed; if(!dflt.equals("")) { if(dv == null) { // in this case validate according to xs:string new StringDatatypeValidator().validate(dflt, null); } else { dv.validate(dflt, null); } if(typeInfo != null && (typeInfo.contentType != XMLElementDecl.TYPE_MIXED_SIMPLE && typeInfo.contentType != XMLElementDecl.TYPE_MIXED_COMPLEX && typeInfo.contentType != XMLElementDecl.TYPE_SIMPLE)) { // REVISIT: Localize reportGenericSchemaError ("element " + name + " has a fixed or default value and must have a mixed or simple content model"); } } // // Create element decl // int elementNameIndex = fStringPool.addSymbol(name); int localpartIndex = elementNameIndex; int uriIndex = StringPool.EMPTY_STRING; int enclosingScope = fCurrentScope; //refer to 4.3.2 in "XML Schema Part 1: Structures" if ( isTopLevel(elementDecl)) { uriIndex = fTargetNSURI; enclosingScope = TOP_LEVEL_SCOPE; } else if ( !isQName.equals(SchemaSymbols.ATTVAL_UNQUALIFIED) && (( isQName.equals(SchemaSymbols.ATTVAL_QUALIFIED)|| fElementDefaultQualified ))) { uriIndex = fTargetNSURI; } //There can never be two elements with the same name and different type in the same scope. int existSuchElementIndex = fSchemaGrammar.getElementDeclIndex(uriIndex, localpartIndex, enclosingScope); if ( existSuchElementIndex > -1) { fSchemaGrammar.getElementDecl(existSuchElementIndex, fTempElementDecl); DatatypeValidator edv = fTempElementDecl.datatypeValidator; ComplexTypeInfo eTypeInfo = fSchemaGrammar.getElementComplexTypeInfo(existSuchElementIndex); if ( ((eTypeInfo != null)&&(eTypeInfo!=typeInfo)) || ((edv != null)&&(edv != dv)) ) { noErrorSoFar = false; // REVISIT: Localize reportGenericSchemaError("duplicate element decl in the same scope : " + fStringPool.toString(localpartIndex)); } } QName eltQName = new QName(-1,localpartIndex,elementNameIndex,uriIndex); // add element decl to pool int attrListHead = -1 ; // copy up attribute decls from type object if (typeInfo != null) { attrListHead = typeInfo.attlistHead; } int elementIndex = fSchemaGrammar.addElementDecl(eltQName, enclosingScope, scopeDefined, contentSpecType, contentSpecNodeIndex, attrListHead, dv); if ( DEBUGGING ) { /***/ System.out.println("########elementIndex:"+elementIndex+" ("+fStringPool.toString(eltQName.uri)+"," + fStringPool.toString(eltQName.localpart) + ")"+ " eltType:"+type+" contentSpecType:"+contentSpecType+ " SpecNodeIndex:"+ contentSpecNodeIndex +" enclosingScope: " +enclosingScope + " scopeDefined: " +scopeDefined+"\n"); /***/ } fSchemaGrammar.setElementComplexTypeInfo(elementIndex, typeInfo); // REVISIT: should we report error if typeInfo was null? // mark element if its type belongs to different Schema. fSchemaGrammar.setElementFromAnotherSchemaURI(elementIndex, fromAnotherSchema); // set BlockSet, FinalSet, Nillable and Abstract for this element decl fSchemaGrammar.setElementDeclBlockSet(elementIndex, blockSet); fSchemaGrammar.setElementDeclFinalSet(elementIndex, finalSet); fSchemaGrammar.setElementDeclMiscFlags(elementIndex, elementMiscFlags); fSchemaGrammar.setElementDefault(elementIndex, dflt); // setSubstitutionGroupElementFullName fSchemaGrammar.setElementDeclSubstitutionGroupElementFullName(elementIndex, substitutionGroupFullName); // // key/keyref/unique processing // Element ic = XUtil.getFirstChildElementNS(elementDecl, IDENTITY_CONSTRAINTS); if (ic != null) { Integer elementIndexObj = new Integer(elementIndex); Vector identityConstraints = (Vector)fIdentityConstraints.get(elementIndexObj); if (identityConstraints == null) { identityConstraints = new Vector(); fIdentityConstraints.put(elementIndexObj, identityConstraints); } while (ic != null) { if (DEBUG_IC_DATATYPES) { System.out.println("<ICD>: adding ic for later traversal: "+ic); } identityConstraints.addElement(ic); ic = XUtil.getNextSiblingElementNS(ic, IDENTITY_CONSTRAINTS); } } return eltQName; }// end of method traverseElementDecl(Element)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/4b15408b2bb5849e7aaa7eb9ecdf5c512ca7e25f/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 2956, 3456, 9945, 10792, 9544, 3843, 1564, 18, 41, 900, 67, 13181, 67, 20402, 30, 10792, 9544, 3843, 1564, 18, 41, 900, 67, 13181, 67, 14922, 31, 3639, 18559, 1604, 1972, 273, 284, 12580, 3843, 1564, 18, 1893, 2498, 12, 2956, 3456, 16, 2146, 1769, 3639, 509, 29617, 559, 1377, 273, 300, 21, 31, 3639, 509, 29617, 907, 1016, 273, 300, 21, 31, 3639, 509, 8173, 1016, 273, 300, 21, 31, 3639, 509, 2146, 8116, 273, 300, 22, 31, 368, 10420, 279, 555, 309, 300, 22, 5571, 5571, 3059, 4766, 368, 2700, 2146, 848, 5903, 506, 300, 22, 18, 3639, 21168, 5126, 12494, 273, 446, 31, 3639, 514, 508, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 1985, 1769, 3639, 309, 261, 6369, 19066, 262, 5411, 2332, 18, 659, 18, 8222, 2932, 31750, 310, 930, 3496, 294, 315, 397, 508, 11272, 3639, 514, 1278, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 10771, 1769, 3639, 514, 618, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 2399, 1769, 3639, 514, 1131, 31084, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 67, 6236, 51, 6743, 1099, 55, 1769, 3639, 514, 943, 31084, 273, 930, 3456, 18, 588, 1499, 12, 3078, 14821, 18, 789, 56, 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, 16723, 10080, 1046, 3456, 12, 1046, 930, 3456, 13, 1216, 1185, 288, 3639, 368, 9544, 3601, 24471, 3639, 509, 2146, 273, 353, 27046, 12, 2956, 3456, 9945, 10792, 9544, 3843, 1564, 18, 41, 900, 67, 13181, 67, 20402, 30, 10792, 9544, 3843, 1564, 18, 41, 900, 67, 13181, 67, 14922, 31, 3639, 18559, 1604, 1972, 273, 284, 12580, 3843, 1564, 18, 1893, 2498, 12, 2956, 3456, 16, 2146, 1769, 3639, 509, 29617, 559, 1377, 273, 300, 21, 31, 3639, 509, 29617, 907, 1016, 273, 300, 21, 31, 3639, 509, 8173, 1016, 273, 300, 21, 31, 3639, 509, 2146, 8116, 273, 300, 22, 31, 368, 10420, 279, 555, 309, 300, 22, 5571, 5571, 3059, 4766, 368, 2700, 2146, 2 ]
void restoreFrozenState(InternalFrozenNode freeze, VersionSelector vsel, boolean removeExisting) throws RepositoryException { // check uuid if (isNodeType(NodeTypeRegistry.MIX_REFERENCEABLE)) { String uuid = freeze.getFrozenUUID(); if (uuid != null && !uuid.equals(getUUID())) { throw new ItemExistsException("Unable to restore version of " + safeGetJCRPath() + ". UUID changed."); } } // check primarty type if (!freeze.getFrozenPrimaryType().equals(nodeType.getQName())) { // todo: check with spec what should happen here throw new ItemExistsException("Unable to restore version of " + safeGetJCRPath() + ". PrimaryType changed."); } // adjust mixins QName[] values = freeze.getFrozenMixinTypes(); NodeType[] mixins = getMixinNodeTypes(); for (int i = 0; i < values.length; i++) { boolean found = false; for (int j = 0; j < mixins.length; j++) { if (values[i].equals(((NodeTypeImpl) mixins[j]).getQName())) { // clear mixins[j] = null; found = true; break; } } if (!found) { try { addMixin(values[i].toJCRName(session.getNamespaceResolver())); } catch (NoPrefixDeclaredException e) { String msg = "Unable to add mixin for restored node: " + e.getMessage(); log.error(msg); throw new RepositoryException(msg); } } } // remove additional for (int i = 0; i < mixins.length; i++) { if (mixins[i] != null) { removeMixin(mixins[i].getName()); } } // copy frozen properties PropertyState[] props = freeze.getFrozenProperties(); HashSet propNames = new HashSet(); for (int i = 0; i < props.length; i++) { PropertyState prop = props[i]; propNames.add(prop.getName()); if (prop.isMultiValued()) { internalSetProperty(props[i].getName(), prop.getValues()); } else { internalSetProperty(props[i].getName(), prop.getValues()[0]); } } // remove properties that do not exist the the frozen representation PropertyIterator piter = getProperties(); while (piter.hasNext()) { PropertyImpl prop = (PropertyImpl) piter.nextProperty(); // ignore some props that are not well guarded by the OPV if (prop.getQName().equals(VersionManager.PROPNAME_VERSION_HISTORY)) { continue; } else if (prop.getQName().equals(VersionManager.PROPNAME_PREDECESSORS)) { continue; } if (prop.getDefinition().getOnParentVersion() == OnParentVersionAction.COPY || prop.getDefinition().getOnParentVersion() == OnParentVersionAction.VERSION) { if (!propNames.contains(prop.getQName())) { removeChildProperty(prop.getQName()); } } } // restore the frozen nodes InternalFreeze[] frozenNodes = freeze.getFrozenChildNodes(); // first delete all non frozen version histories NodeIterator iter = getNodes(); while (iter.hasNext()) { NodeImpl n = (NodeImpl) iter.nextNode(); // this is a bit lousy boolean found = false; for (int i=0; i<frozenNodes.length; i++) { InternalFreeze child = frozenNodes[i]; if (child instanceof InternalFrozenVersionHistory) { if (n.internalGetUUID().equals(child.getId())) { found = true; break; } } } if (!found) { n.remove(); } } for (int i = 0; i < frozenNodes.length; i++) { InternalFreeze child = frozenNodes[i]; if (child instanceof InternalFrozenNode) { InternalFrozenNode f = (InternalFrozenNode) child; NodeImpl n = addNode(f.getName(), f); n.restoreFrozenState(f, vsel, removeExisting); } else if (child instanceof InternalFrozenVersionHistory) { InternalFrozenVersionHistory f = (InternalFrozenVersionHistory) child; VersionHistoryImpl history = (VersionHistoryImpl) session.getNodeByUUID(f.getVersionHistoryId()); String nodeId = history.getVersionedUUID(); // check if representing vh already exists somewhere if (itemMgr.itemExists(new NodeId(nodeId))) { NodeImpl n = (NodeImpl) session.getNodeByUUID(nodeId); if (hasNode(n.getQName())) { // so order at end orderBefore(n.getName(), ""); } else { session.move(n.getPath(), getPath()+ "/" + n.getName()); } } else { // get desired version from version selector InternalVersion v = ((VersionImpl) vsel.select(history)).getInternalVersion(); NodeImpl node = addNode(child.getName(), v.getFrozenNode()); node.internalRestore(v, vsel, removeExisting); } } } }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/0df94f60382ac74e5081e9fb532d2502bf3a5a48/NodeImpl.java/buggy/src/java/org/apache/jackrabbit/core/NodeImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 5217, 42, 9808, 1119, 12, 3061, 42, 9808, 907, 16684, 16, 4049, 4320, 331, 1786, 16, 1250, 1206, 9895, 13, 5411, 1216, 13367, 288, 3639, 368, 866, 3822, 3639, 309, 261, 291, 15101, 12, 15101, 4243, 18, 7492, 60, 67, 14617, 2782, 3719, 288, 5411, 514, 3822, 273, 16684, 18, 588, 42, 9808, 5562, 5621, 5411, 309, 261, 7080, 480, 446, 597, 401, 7080, 18, 14963, 12, 588, 5562, 1435, 3719, 288, 7734, 604, 394, 4342, 4002, 503, 2932, 3370, 358, 5217, 1177, 434, 315, 397, 4183, 967, 46, 5093, 743, 1435, 397, 3552, 5866, 3550, 1199, 1769, 5411, 289, 3639, 289, 3639, 368, 866, 15610, 7325, 618, 3639, 309, 16051, 29631, 18, 588, 42, 9808, 6793, 559, 7675, 14963, 12, 2159, 559, 18, 588, 13688, 1435, 3719, 288, 5411, 368, 10621, 30, 866, 598, 857, 4121, 1410, 5865, 2674, 5411, 604, 394, 4342, 4002, 503, 2932, 3370, 358, 5217, 1177, 434, 315, 397, 4183, 967, 46, 5093, 743, 1435, 397, 3552, 15884, 559, 3550, 1199, 1769, 3639, 289, 3639, 368, 5765, 26805, 3639, 16723, 8526, 924, 273, 16684, 18, 588, 42, 9808, 14439, 2016, 5621, 3639, 20896, 8526, 26805, 273, 2108, 10131, 907, 2016, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 924, 18, 2469, 31, 277, 27245, 288, 5411, 1250, 1392, 273, 629, 31, 5411, 364, 261, 474, 525, 273, 374, 31, 525, 411, 26805, 18, 2469, 31, 525, 27245, 288, 7734, 309, 261, 2372, 63, 77, 8009, 14963, 12443, 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, 5217, 42, 9808, 1119, 12, 3061, 42, 9808, 907, 16684, 16, 4049, 4320, 331, 1786, 16, 1250, 1206, 9895, 13, 5411, 1216, 13367, 288, 3639, 368, 866, 3822, 3639, 309, 261, 291, 15101, 12, 15101, 4243, 18, 7492, 60, 67, 14617, 2782, 3719, 288, 5411, 514, 3822, 273, 16684, 18, 588, 42, 9808, 5562, 5621, 5411, 309, 261, 7080, 480, 446, 597, 401, 7080, 18, 14963, 12, 588, 5562, 1435, 3719, 288, 7734, 604, 394, 4342, 4002, 503, 2932, 3370, 358, 5217, 1177, 434, 315, 397, 4183, 967, 46, 5093, 743, 1435, 397, 3552, 5866, 3550, 1199, 1769, 5411, 289, 3639, 289, 3639, 368, 866, 15610, 7325, 618, 3639, 309, 16051, 29631, 18, 588, 42, 9808, 6793, 2 ]
Rectangle clip = gfx.getClipBounds().intersection(bounds);
Rectangle oldClip = gfx.getClipBounds(); if (oldClip == null) oldClip = bounds; Rectangle clip = oldClip.intersection(bounds);
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds); if (clip.isEmpty()) return; Graphics gfx2 = gfx.create(); try { gfx2.setClip(clip.x, clip.y, clip.width, clip.height); gfx2.translate(bounds.x, bounds.y); visitor.visit(comp, gfx2); } finally { gfx2.dispose (); } }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/c14d0b5012b2ce216735dae263f02f6d93543f7c/Container.java/clean/libjava/java/awt/Container.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3757, 1763, 12, 17558, 30940, 16, 611, 19595, 7413, 8000, 16, 12900, 5435, 1161, 13, 225, 288, 565, 13264, 4972, 273, 1161, 18, 588, 5694, 5621, 565, 13264, 1592, 15339, 273, 30940, 18, 588, 15339, 5694, 5621, 309, 261, 1673, 15339, 422, 446, 13, 1592, 15339, 273, 4972, 31, 13264, 6807, 273, 1592, 15339, 18, 30231, 12, 10576, 1769, 565, 309, 261, 14161, 18, 291, 1921, 10756, 327, 31, 565, 16830, 30940, 22, 273, 30940, 18, 2640, 5621, 565, 775, 1377, 288, 202, 75, 19595, 22, 18, 542, 15339, 12, 14161, 18, 92, 16, 6807, 18, 93, 16, 6807, 18, 2819, 16, 6807, 18, 4210, 1769, 202, 75, 19595, 22, 18, 13929, 12, 10576, 18, 92, 16, 4972, 18, 93, 1769, 202, 3516, 1811, 18, 11658, 12, 2919, 16, 30940, 22, 1769, 1377, 289, 565, 3095, 1377, 288, 202, 75, 19595, 22, 18, 2251, 4150, 261, 1769, 1377, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3757, 1763, 12, 17558, 30940, 16, 611, 19595, 7413, 8000, 16, 12900, 5435, 1161, 13, 225, 288, 565, 13264, 4972, 273, 1161, 18, 588, 5694, 5621, 565, 13264, 1592, 15339, 273, 30940, 18, 588, 15339, 5694, 5621, 309, 261, 1673, 15339, 422, 446, 13, 1592, 15339, 273, 4972, 31, 13264, 6807, 273, 1592, 15339, 18, 30231, 12, 10576, 1769, 565, 309, 261, 14161, 18, 291, 1921, 10756, 327, 31, 565, 16830, 30940, 22, 273, 30940, 18, 2640, 5621, 565, 775, 1377, 288, 202, 75, 19595, 22, 18, 542, 15339, 12, 14161, 18, 92, 16, 6807, 18, 93, 16, 6807, 18, 2819, 16, 6807, 18, 4210, 1769, 202, 75, 19595, 22, 18, 13929, 12, 10576, 18, 92, 2 ]
if (inputState.guessing==0) { tmp55_AST = astFactory.create(LT(1)); }
tmp55_AST = astFactory.create(LT(1));
public final void declarationStart() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST declarationStart_AST = null; switch ( LA(1)) { case LITERAL_def: { match(LITERAL_def); break; } case FINAL: case ABSTRACT: case STRICTFP: case LITERAL_static: case LITERAL_private: case LITERAL_public: case LITERAL_protected: case LITERAL_transient: case LITERAL_native: case LITERAL_threadsafe: case LITERAL_synchronized: case LITERAL_volatile: { modifier(); break; } case AT: { AST tmp53_AST = null; if (inputState.guessing==0) { tmp53_AST = astFactory.create(LT(1)); } match(AT); AST tmp54_AST = null; if (inputState.guessing==0) { tmp54_AST = astFactory.create(LT(1)); } match(IDENT); break; } case IDENT: case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: { { switch ( LA(1)) { case IDENT: { upperCaseIdent(); break; } case LITERAL_void: case LITERAL_boolean: case LITERAL_byte: case LITERAL_char: case LITERAL_short: case LITERAL_int: case LITERAL_float: case LITERAL_long: case LITERAL_double: case LITERAL_any: { builtInType(); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } { _loop24: do { if ((LA(1)==LBRACK)) { AST tmp55_AST = null; if (inputState.guessing==0) { tmp55_AST = astFactory.create(LT(1)); } match(LBRACK); balancedTokens(); AST tmp56_AST = null; if (inputState.guessing==0) { tmp56_AST = astFactory.create(LT(1)); } match(RBRACK); } else { break _loop24; } } while (true); } AST tmp57_AST = null; if (inputState.guessing==0) { tmp57_AST = astFactory.create(LT(1)); } match(IDENT); break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = declarationStart_AST; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 8266, 1685, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9053, 8266, 1685, 67, 9053, 273, 446, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 511, 18454, 67, 536, 30, 202, 202, 95, 1082, 202, 1916, 12, 23225, 67, 536, 1769, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 17563, 1013, 30, 202, 202, 3593, 10336, 21398, 30, 202, 202, 3593, 2347, 2259, 1268, 30246, 30, 202, 202, 3593, 511, 18454, 67, 3845, 30, 202, 202, 3593, 511, 18454, 67, 1152, 30, 202, 202, 3593, 511, 18454, 67, 482, 30, 202, 202, 3593, 511, 18454, 67, 1117, 30, 202, 202, 3593, 511, 18454, 67, 22670, 30, 202, 202, 3593, 511, 18454, 67, 13635, 30, 202, 202, 3593, 511, 18454, 67, 5930, 4626, 30, 202, 202, 3593, 511, 18454, 67, 22043, 30, 202, 202, 3593, 511, 18454, 67, 15416, 20295, 30, 202, 202, 95, 1082, 202, 20597, 5621, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 14464, 30, 202, 202, 95, 1082, 202, 9053, 1853, 8643, 67, 9053, 273, 446, 31, 1082, 202, 430, 261, 2630, 1119, 18, 20885, 310, 631, 20, 13, 288, 9506, 202, 5645, 8643, 67, 9053, 273, 3364, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 1082, 202, 97, 1082, 202, 1916, 12, 789, 1769, 1082, 202, 9053, 1853, 6564, 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, 8266, 1685, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 9053, 8266, 1685, 67, 9053, 273, 446, 31, 9506, 202, 9610, 261, 2928, 12, 21, 3719, 288, 202, 202, 3593, 511, 18454, 67, 536, 30, 202, 202, 95, 1082, 202, 1916, 12, 23225, 67, 536, 1769, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 17563, 1013, 30, 202, 202, 3593, 10336, 21398, 30, 202, 202, 3593, 2347, 2259, 1268, 30246, 30, 202, 202, 3593, 511, 18454, 67, 3845, 30, 202, 202, 3593, 511, 18454, 67, 1152, 30, 202, 202, 3593, 511, 18454, 2 ]
weapon.tdbName = "Clan Heavy Small Laser";
weapon.tdbName = "Clan Small Heavy Laser";
public static WeaponType createCLHeavySmallLaser() { WeaponType weapon = new WeaponType(); weapon.name = "Heavy Small Laser"; weapon.internalName = "CLHeavySmallLaser"; weapon.mepName = "N/A"; weapon.mtfName = "CLHeavySmallLaser"; weapon.tdbName = "Clan Heavy Small Laser"; weapon.heat = 3; weapon.damage = 6; weapon.toHitModifier = 1; weapon.ammoType = AmmoType.T_NA; weapon.minimumRange = WEAPON_NA; weapon.shortRange = 1; weapon.mediumRange = 2; weapon.longRange = 3; weapon.tonnage = 0.5f; weapon.criticals = 1; weapon.flags |= F_LASER | F_DIRECT_FIRE; weapon.bv = 15; return weapon; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/55dc64373a69cd438493037332ae01350ce3c4c7/WeaponType.java/buggy/megamek/src/megamek/common/WeaponType.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 5256, 23935, 19187, 48, 14558, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 5256, 23935, 9425, 454, 511, 14558, 14432, 3639, 732, 28629, 18, 7236, 461, 273, 315, 5017, 5256, 23935, 19187, 48, 14558, 14432, 3639, 732, 28629, 18, 81, 881, 461, 273, 315, 50, 19, 37, 14432, 3639, 732, 28629, 18, 1010, 74, 461, 273, 315, 5017, 5256, 23935, 19187, 48, 14558, 14432, 3639, 732, 28629, 18, 88, 1966, 461, 273, 315, 2009, 304, 9425, 454, 8264, 23935, 511, 14558, 14432, 3639, 732, 28629, 18, 580, 270, 273, 890, 31, 3639, 732, 28629, 18, 72, 301, 410, 273, 1666, 31, 3639, 732, 28629, 18, 869, 13616, 9829, 273, 404, 31, 3639, 732, 28629, 18, 301, 8683, 559, 273, 3986, 8683, 559, 18, 56, 67, 11277, 31, 3639, 732, 28629, 18, 15903, 2655, 273, 13880, 2203, 673, 67, 11277, 31, 3639, 732, 28629, 18, 6620, 2655, 273, 404, 31, 3639, 732, 28629, 18, 19011, 2655, 273, 576, 31, 3639, 732, 28629, 18, 5748, 2655, 273, 890, 31, 3639, 732, 28629, 18, 1917, 82, 410, 273, 374, 18, 25, 74, 31, 3639, 732, 28629, 18, 27826, 335, 1031, 273, 404, 31, 3639, 732, 28629, 18, 7133, 5626, 478, 67, 2534, 2123, 571, 478, 67, 17541, 67, 1653, 862, 31, 3639, 732, 28629, 18, 70, 90, 273, 4711, 31, 3639, 327, 732, 28629, 31, 565, 289, 2, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 760, 1660, 28629, 559, 752, 5017, 5256, 23935, 19187, 48, 14558, 1435, 288, 3639, 1660, 28629, 559, 732, 28629, 273, 394, 1660, 28629, 559, 5621, 3639, 732, 28629, 18, 529, 273, 315, 5256, 23935, 9425, 454, 511, 14558, 14432, 3639, 732, 28629, 18, 7236, 461, 273, 315, 5017, 5256, 23935, 19187, 48, 14558, 14432, 3639, 732, 28629, 18, 81, 881, 461, 273, 315, 50, 19, 37, 14432, 3639, 732, 28629, 18, 1010, 74, 461, 273, 315, 5017, 5256, 23935, 19187, 48, 14558, 14432, 3639, 732, 28629, 18, 88, 1966, 461, 273, 315, 2009, 304, 9425, 454, 8264, 23935, 511, 14558, 14432, 3639, 732, 28629, 18, 580, 270, 273, 890, 31, 3639, 732, 28629, 18, 72, 301, 410, 2 ]
int i=0, p1=0, p2=s.indexOf(ch); do { res[i++] = s.substring(p1, p2==-1 ? s.length() : p2); p1=p2+1; p2=s.indexOf(ch, p1); } while( p1 != 0 );
int i = 0; int p1 = 0; int p2 = s.indexOf(ch); do { res[i++] = s.substring(p1, p2 == -1 ? s.length() : p2); p1 = p2 + 1; p2 = s.indexOf(ch, p1); } while (p1 != 0);
public static String[] split(String s, int ch) { int size = 0; for( int pos=0; pos!=-1; pos=s.indexOf(ch, pos+1), size++ ); String res[] = new String[size]; int i=0, p1=0, p2=s.indexOf(ch); do { res[i++] = s.substring(p1, p2==-1 ? s.length() : p2); p1=p2+1; p2=s.indexOf(ch, p1); } while( p1 != 0 ); return res; }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/c48c25bb38a5ee111490064c0098957f3dea379b/MSSqlServerInfo.java/clean/trunk/jtds/src/main/net/sourceforge/jtds/jdbc/MSSqlServerInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1416, 12, 780, 272, 16, 509, 462, 13, 565, 288, 3639, 509, 963, 273, 374, 31, 3639, 364, 12, 509, 949, 33, 20, 31, 949, 5, 29711, 21, 31, 949, 33, 87, 18, 31806, 12, 343, 16, 949, 15, 21, 3631, 963, 9904, 11272, 3639, 514, 400, 8526, 273, 394, 514, 63, 1467, 15533, 3639, 509, 277, 33, 20, 16, 293, 21, 33, 20, 16, 293, 22, 33, 87, 18, 31806, 12, 343, 1769, 3639, 741, 3639, 288, 5411, 400, 63, 77, 9904, 65, 273, 272, 18, 28023, 12, 84, 21, 16, 293, 22, 631, 17, 21, 692, 272, 18, 2469, 1435, 294, 293, 22, 1769, 5411, 293, 21, 33, 84, 22, 15, 21, 31, 5411, 293, 22, 33, 87, 18, 31806, 12, 343, 16, 293, 21, 1769, 3639, 289, 3639, 1323, 12, 293, 21, 480, 374, 11272, 3639, 327, 400, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 8526, 1416, 12, 780, 272, 16, 509, 462, 13, 565, 288, 3639, 509, 963, 273, 374, 31, 3639, 364, 12, 509, 949, 33, 20, 31, 949, 5, 29711, 21, 31, 949, 33, 87, 18, 31806, 12, 343, 16, 949, 15, 21, 3631, 963, 9904, 11272, 3639, 514, 400, 8526, 273, 394, 514, 63, 1467, 15533, 3639, 509, 277, 33, 20, 16, 293, 21, 33, 20, 16, 293, 22, 33, 87, 18, 31806, 12, 343, 1769, 3639, 741, 3639, 288, 5411, 400, 63, 77, 9904, 65, 273, 272, 18, 28023, 12, 84, 21, 16, 293, 22, 631, 17, 21, 692, 272, 18, 2469, 1435, 294, 293, 22, 1769, 5411, 293, 21, 33, 84, 22, 15, 21, 2 ]
if(slowMatch_) { beginPat_ = makePatternCDataOrMark(beginMark_); endPat_ = makePatternCDataOrMark(endMark_);
if (slowMatch_) { beginPat_ = makePatternCDataOrMark(beginMark_); endPat_ = makePatternCDataOrMark(endMark_);
public StreamXmlRecordReader( FSDataInputStream in, FileSplit split, Reporter reporter, JobConf job, FileSystem fs) throws IOException { super(in, split, reporter, job, fs); beginMark_ = checkJobGet(CONF_NS + "begin"); endMark_ = checkJobGet(CONF_NS + "end"); maxRecSize_= job_.getInt(CONF_NS + "maxrec", 50*1000); lookAhead_ = job_.getInt(CONF_NS + "lookahead", 2*maxRecSize_); synched_ = false; slowMatch_ = job_.getBoolean(CONF_NS + "slowmatch", false); if(slowMatch_) { beginPat_ = makePatternCDataOrMark(beginMark_); endPat_ = makePatternCDataOrMark(endMark_); } }
48130 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48130/e10b40e8014547113799b2653164e8c990d41209/StreamXmlRecordReader.java/clean/src/contrib/streaming/src/java/org/apache/hadoop/streaming/StreamXmlRecordReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3961, 4432, 2115, 2514, 12, 565, 9247, 751, 4348, 316, 16, 1387, 5521, 1416, 16, 25585, 11528, 16, 3956, 3976, 1719, 16, 10931, 2662, 13, 565, 1216, 1860, 225, 288, 565, 2240, 12, 267, 16, 1416, 16, 11528, 16, 1719, 16, 2662, 1769, 3639, 2376, 3882, 67, 273, 866, 2278, 967, 12, 14497, 67, 3156, 397, 315, 10086, 8863, 565, 679, 3882, 67, 282, 273, 866, 2278, 967, 12, 14497, 67, 3156, 397, 315, 409, 8863, 565, 943, 5650, 1225, 67, 33, 1719, 27799, 588, 1702, 12, 14497, 67, 3156, 397, 315, 1896, 3927, 3113, 6437, 14, 18088, 1769, 565, 2324, 24250, 67, 273, 1719, 27799, 588, 1702, 12, 14497, 67, 3156, 397, 315, 7330, 11617, 3113, 576, 14, 1896, 5650, 1225, 67, 1769, 565, 6194, 2049, 67, 273, 629, 31, 3639, 11816, 2060, 67, 273, 1719, 27799, 588, 5507, 12, 14497, 67, 3156, 397, 315, 87, 821, 1916, 3113, 629, 1769, 565, 309, 12, 87, 821, 2060, 67, 13, 288, 1377, 2376, 22834, 67, 225, 273, 1221, 3234, 39, 751, 1162, 3882, 12, 10086, 3882, 67, 1769, 1377, 679, 22834, 67, 565, 273, 1221, 3234, 39, 751, 1162, 3882, 12, 409, 3882, 67, 1769, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3961, 4432, 2115, 2514, 12, 565, 9247, 751, 4348, 316, 16, 1387, 5521, 1416, 16, 25585, 11528, 16, 3956, 3976, 1719, 16, 10931, 2662, 13, 565, 1216, 1860, 225, 288, 565, 2240, 12, 267, 16, 1416, 16, 11528, 16, 1719, 16, 2662, 1769, 3639, 2376, 3882, 67, 273, 866, 2278, 967, 12, 14497, 67, 3156, 397, 315, 10086, 8863, 565, 679, 3882, 67, 282, 273, 866, 2278, 967, 12, 14497, 67, 3156, 397, 315, 409, 8863, 565, 943, 5650, 1225, 67, 33, 1719, 27799, 588, 1702, 12, 14497, 67, 3156, 397, 315, 1896, 3927, 3113, 6437, 14, 18088, 1769, 565, 2324, 24250, 67, 273, 1719, 27799, 588, 1702, 12, 14497, 67, 3156, 397, 315, 7330, 11617, 3113, 2 ]
}
}
public static void setCurrentManager(FocusManager manager) { // TODO } // setCurrentManager()
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/c5671ff077399b85034dffa0f9635da50cef54a9/FocusManager.java/clean/core/src/classpath/javax/javax/swing/FocusManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 12589, 1318, 12, 9233, 1318, 3301, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 12589, 1318, 1435, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 12589, 1318, 12, 9233, 1318, 3301, 13, 288, 202, 202, 759, 2660, 202, 97, 368, 12589, 1318, 1435, 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 ]
this.application = application; }
this.application = application; }
public void setGrailsApplication(GrailsApplication application) { this.application = application; }
50465 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50465/9319b2487e82433202c4b7e86c557193a7ad2ae3/SimpleGrailsController.java/buggy/src/web/org/codehaus/groovy/grails/web/servlet/mvc/SimpleGrailsController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 14571, 14573, 3208, 12, 14571, 14573, 3208, 2521, 13, 288, 202, 202, 2211, 18, 3685, 273, 2521, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 14571, 14573, 3208, 12, 14571, 14573, 3208, 2521, 13, 288, 202, 202, 2211, 18, 3685, 273, 2521, 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 ]
return value; }
return value; }
private int parseUnsignedInt() throws NumberFormatException { if (index >= length) throw new NumberFormatException(); int start = index; int value = 0; for (; index < length; index++) { int d = Character.digit(chars[index], 10); if (d < 0) break; value *= 10; value += d; } if (index == start) throw new NumberFormatException(); return value; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b2ed890086e708f00d163f3e8514bfa8b353f662/VMDouble.java/clean/core/src/classpath/vm/java/lang/VMDouble.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 13290, 1702, 1435, 1216, 12100, 288, 202, 202, 430, 261, 1615, 1545, 769, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 474, 787, 273, 770, 31, 202, 202, 474, 460, 273, 374, 31, 202, 202, 1884, 261, 31, 770, 411, 769, 31, 770, 27245, 288, 1082, 202, 474, 302, 273, 6577, 18, 11052, 12, 7549, 63, 1615, 6487, 1728, 1769, 1082, 202, 430, 261, 72, 411, 374, 13, 9506, 202, 8820, 31, 1082, 202, 1132, 6413, 1728, 31, 1082, 202, 1132, 1011, 302, 31, 202, 202, 97, 202, 202, 430, 261, 1615, 422, 787, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 2463, 460, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 509, 1109, 13290, 1702, 1435, 1216, 12100, 288, 202, 202, 430, 261, 1615, 1545, 769, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 474, 787, 273, 770, 31, 202, 202, 474, 460, 273, 374, 31, 202, 202, 1884, 261, 31, 770, 411, 769, 31, 770, 27245, 288, 1082, 202, 474, 302, 273, 6577, 18, 11052, 12, 7549, 63, 1615, 6487, 1728, 1769, 1082, 202, 430, 261, 72, 411, 374, 13, 9506, 202, 8820, 31, 1082, 202, 1132, 6413, 1728, 31, 1082, 202, 1132, 1011, 302, 31, 202, 202, 97, 202, 202, 430, 261, 1615, 422, 787, 13, 1082, 202, 12849, 394, 12100, 5621, 202, 202, 2463, 460, 31, 202, 97, 2, -100, -100, -100, -100, -100 ]
case IDialogConstants.OK_ID : { okPressed(); return; } case IDialogConstants.CANCEL_ID : { cancelPressed(); return; } case IDialogConstants.HELP_ID : { helpPressed(); return; }
case IDialogConstants.OK_ID : { okPressed(); return; } case IDialogConstants.CANCEL_ID : { cancelPressed(); return; } case IDialogConstants.HELP_ID : { helpPressed(); return; }
protected void buttonPressed(int buttonId) { switch (buttonId) { case IDialogConstants.OK_ID : { okPressed(); return; } case IDialogConstants.CANCEL_ID : { cancelPressed(); return; } case IDialogConstants.HELP_ID : { helpPressed(); return; } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/be95edd129a1deef61176d5d63fd605f9dfe18a5/PreferenceDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3568, 24624, 12, 474, 3568, 548, 13, 288, 202, 202, 9610, 261, 5391, 548, 13, 288, 1082, 202, 3593, 1599, 3529, 2918, 18, 3141, 67, 734, 294, 9506, 202, 95, 6862, 202, 601, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 1082, 202, 3593, 1599, 3529, 2918, 18, 25268, 67, 734, 294, 9506, 202, 95, 6862, 202, 10996, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 1082, 202, 3593, 1599, 3529, 2918, 18, 27396, 67, 734, 294, 9506, 202, 95, 6862, 202, 5201, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3568, 24624, 12, 474, 3568, 548, 13, 288, 202, 202, 9610, 261, 5391, 548, 13, 288, 1082, 202, 3593, 1599, 3529, 2918, 18, 3141, 67, 734, 294, 9506, 202, 95, 6862, 202, 601, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 1082, 202, 3593, 1599, 3529, 2918, 18, 25268, 67, 734, 294, 9506, 202, 95, 6862, 202, 10996, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 1082, 202, 3593, 1599, 3529, 2918, 18, 27396, 67, 734, 294, 9506, 202, 95, 6862, 202, 5201, 24624, 5621, 6862, 202, 2463, 31, 9506, 202, 97, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
removeChildItem(Item.SIGNAL_MEMORY);
removeChild(Item.SIGNAL_MEMORY);
public void deglobalize() throws Exception { removeChildItem(Item.SIGNAL_MEMORY); super.deglobalize(); }
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/9ea22ccfd933137bb2df841c826a929612a47b55/SystemItem.java/clean/trunk/src/core/cybop/core/system/SystemItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5843, 1820, 554, 1435, 1216, 1185, 288, 3639, 14213, 12, 1180, 18, 11260, 1013, 67, 24329, 1769, 3639, 2240, 18, 323, 6347, 554, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 5843, 1820, 554, 1435, 1216, 1185, 288, 3639, 14213, 12, 1180, 18, 11260, 1013, 67, 24329, 1769, 3639, 2240, 18, 323, 6347, 554, 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 ]
System.out.println(parser.getGDBType());
System.out.println(parser.getGDBType().verbose());
public static void main(String[] args) { GDBTypeParser parser = new GDBTypeParser(); System.out.println("struct link { int i; int j; struct link * next} *"); parser.parse("struct link { int i; int j; struct link * next} *"); System.out.println(parser.getGDBType()); System.out.println("char **argv"); parser.parse("unsigned long long int **argv"); System.out.println(parser.getGDBType()); System.out.println("int (*daytab)[13]"); parser.parse("int (*daytab)[13]"); System.out.println(parser.getGDBType()); System.out.println("int *daytab[13]"); parser.parse("int *daytab[13]"); System.out.println(parser.getGDBType()); System.out.println("void *comp()"); parser.parse("void *comp()"); System.out.println(parser.getGDBType()); System.out.println("void (*comp)()"); parser.parse("void (*comp)()"); System.out.println(parser.getGDBType()); System.out.println("int (*func[15])()"); parser.parse("int (*func[15])()"); System.out.println(parser.getGDBType()); System.out.println("char (*(*x())[])()"); parser.parse("char (*(*x())[])()"); System.out.println(parser.getGDBType()); System.out.println("char (*(*x[3])())[5]"); parser.parse("char (*(*x[3])())[5]"); System.out.println(parser.getGDBType()); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/3978b0bf209d6474ec9eaed8b00907d38d442ac9/GDBTypeParser.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/GDBTypeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 43, 2290, 559, 2678, 2082, 273, 394, 611, 2290, 559, 2678, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1697, 1692, 288, 509, 277, 31, 509, 525, 31, 1958, 1692, 380, 1024, 97, 380, 8863, 202, 202, 4288, 18, 2670, 2932, 1697, 1692, 288, 509, 277, 31, 509, 525, 31, 1958, 1692, 380, 1024, 97, 380, 8863, 202, 202, 3163, 18, 659, 18, 8222, 12, 4288, 18, 588, 43, 2290, 559, 10663, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3001, 2826, 19485, 8863, 202, 202, 4288, 18, 2670, 2932, 22297, 1525, 1525, 509, 2826, 19485, 8863, 202, 202, 3163, 18, 659, 18, 8222, 12, 4288, 18, 588, 43, 2290, 559, 10663, 202, 202, 3163, 18, 659, 18, 8222, 2932, 474, 261, 14, 2881, 7032, 25146, 3437, 4279, 1769, 202, 202, 4288, 18, 2670, 2932, 474, 261, 14, 2881, 7032, 25146, 3437, 4279, 1769, 202, 202, 3163, 18, 659, 18, 8222, 12, 4288, 18, 588, 43, 2290, 559, 10663, 202, 202, 3163, 18, 659, 18, 8222, 2932, 474, 380, 2881, 7032, 63, 3437, 4279, 1769, 202, 202, 4288, 18, 2670, 2932, 474, 380, 2881, 7032, 63, 3437, 4279, 1769, 202, 202, 3163, 18, 659, 18, 8222, 12, 4288, 18, 588, 43, 2290, 559, 10663, 202, 202, 3163, 18, 659, 18, 8222, 2932, 6459, 380, 2919, 1435, 8863, 202, 202, 4288, 18, 2670, 2932, 6459, 380, 2919, 1435, 8863, 202, 202, 3163, 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, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 202, 202, 43, 2290, 559, 2678, 2082, 273, 394, 611, 2290, 559, 2678, 5621, 202, 202, 3163, 18, 659, 18, 8222, 2932, 1697, 1692, 288, 509, 277, 31, 509, 525, 31, 1958, 1692, 380, 1024, 97, 380, 8863, 202, 202, 4288, 18, 2670, 2932, 1697, 1692, 288, 509, 277, 31, 509, 525, 31, 1958, 1692, 380, 1024, 97, 380, 8863, 202, 202, 3163, 18, 659, 18, 8222, 12, 4288, 18, 588, 43, 2290, 559, 10663, 202, 202, 3163, 18, 659, 18, 8222, 2932, 3001, 2826, 19485, 8863, 202, 202, 4288, 18, 2670, 2932, 22297, 1525, 1525, 509, 2826, 19485, 8863, 202, 202, 3163, 18, 659, 18, 8222, 2 ]
public static boolean areDisjoint(FeatureFilter a, FeatureFilter b) { // System.err.println("Disjunction test of " + a + " | " + b); // Preconditions if (a == null) { throw new NullPointerException("Null FeatureFilter: a"); } if (b == null) { throw new NullPointerException("Null FeatureFilter: b"); } // Body if(a.equals(b)) { return false; } if(a == none() || b == none()) { return true; } if (a == all()) { return areProperSubset(b, FeatureFilter.none); } else if(b == all()) { return areProperSubset(a, FeatureFilter.none); } else if (a == none() || b == none()) { return true; } if (a instanceof FeatureFilter.And) { FeatureFilter.And and_a = (FeatureFilter.And) a; return areDisjoint(and_a.getChild1(), b) || areDisjoint(and_a.getChild2(), b); } else if (b instanceof FeatureFilter.And) { FeatureFilter.And and_b = (FeatureFilter.And) b; return areDisjoint(a, and_b.getChild1()) || areDisjoint(a, and_b.getChild2()); } else if (a instanceof FeatureFilter.Or) { FeatureFilter.Or or_a = (FeatureFilter.Or) a; return areDisjoint(or_a.getChild1(), b) && areDisjoint(or_a.getChild2(), b); } else if (b instanceof FeatureFilter.Or) { FeatureFilter.Or or_b = (FeatureFilter.Or) b; return areDisjoint(a, or_b.getChild1()) && areDisjoint(a, or_b.getChild2()); } else if (a instanceof FeatureFilter.Not) { FeatureFilter not_a = ((FeatureFilter.Not) a).getChild(); return areProperSubset(b, not_a); } else if (b instanceof FeatureFilter.Not) { FeatureFilter not_b = ((FeatureFilter.Not) b).getChild(); return areProperSubset(a, not_b); } else if (a instanceof FeatureFilter.ByFeature) { return ((FeatureFilter.ByFeature) a).isDisjoint(b); } else if (b instanceof FeatureFilter.ByFeature) { return ((FeatureFilter.ByFeature) b).isDisjoint(a); } else if (a instanceof FeatureFilter.ByAncestor) { return ((OptimizableFilter) a).isDisjoint(b); } else if (b instanceof FeatureFilter.ByAncestor) { return ((OptimizableFilter) b).isDisjoint(a); } else if (a instanceof FeatureFilter.ByParent) { return ((OptimizableFilter) a).isDisjoint(b); } else if (b instanceof FeatureFilter.ByParent) { return ((OptimizableFilter) b).isDisjoint(a); } else if (a instanceof OptimizableFilter) { return ((OptimizableFilter) a).isDisjoint(b); } else if (b instanceof OptimizableFilter) { return ((OptimizableFilter) b).isDisjoint(a); } // *SIGH* we don't have a proof here... return false; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/a749c215e903dcbc73d736bb404bb7e69e3afa30/FilterUtils.java/clean/src/org/biojava/bio/seq/FilterUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 854, 1669, 16452, 12, 4595, 1586, 279, 16, 7881, 1586, 324, 13, 288, 3639, 368, 2332, 18, 370, 18, 8222, 2932, 1669, 18323, 1842, 434, 315, 397, 279, 397, 315, 571, 315, 397, 324, 1769, 2868, 368, 9248, 5411, 309, 261, 69, 422, 446, 13, 288, 3639, 604, 394, 10108, 2932, 2041, 7881, 1586, 30, 279, 8863, 1377, 289, 1377, 309, 261, 70, 422, 446, 13, 288, 3639, 604, 394, 10108, 2932, 2041, 7881, 1586, 30, 324, 8863, 1377, 289, 5411, 368, 5652, 5411, 309, 12, 69, 18, 14963, 12, 70, 3719, 288, 3639, 327, 629, 31, 1377, 289, 1377, 309, 12, 69, 422, 6555, 1435, 747, 324, 422, 6555, 10756, 288, 3639, 327, 638, 31, 1377, 289, 5411, 309, 261, 69, 422, 777, 10756, 288, 3639, 327, 854, 626, 457, 20315, 12, 70, 16, 7881, 1586, 18, 6102, 1769, 1377, 289, 469, 309, 12, 70, 422, 777, 10756, 288, 3639, 327, 854, 626, 457, 20315, 12, 69, 16, 7881, 1586, 18, 6102, 1769, 1377, 289, 469, 309, 261, 69, 422, 6555, 1435, 747, 324, 422, 6555, 10756, 288, 3639, 327, 638, 31, 1377, 289, 309, 261, 69, 1276, 7881, 1586, 18, 1876, 13, 288, 3639, 7881, 1586, 18, 1876, 471, 67, 69, 273, 261, 4595, 1586, 18, 1876, 13, 279, 31, 3639, 327, 854, 1669, 16452, 12, 464, 67, 69, 18, 588, 1763, 21, 9334, 324, 13, 747, 854, 1669, 16452, 12, 464, 67, 69, 18, 588, 1763, 22, 9334, 324, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 854, 1669, 16452, 12, 4595, 1586, 279, 16, 7881, 1586, 324, 13, 288, 3639, 368, 2332, 18, 370, 18, 8222, 2932, 1669, 18323, 1842, 434, 315, 397, 279, 397, 315, 571, 315, 397, 324, 1769, 2868, 368, 9248, 5411, 309, 261, 69, 422, 446, 13, 288, 3639, 604, 394, 10108, 2932, 2041, 7881, 1586, 30, 279, 8863, 1377, 289, 1377, 309, 261, 70, 422, 446, 13, 288, 3639, 604, 394, 10108, 2932, 2041, 7881, 1586, 30, 324, 8863, 1377, 289, 5411, 368, 5652, 5411, 309, 12, 69, 18, 14963, 12, 70, 3719, 288, 3639, 327, 629, 31, 1377, 289, 1377, 309, 12, 69, 422, 6555, 1435, 747, 324, 422, 6555, 10756, 288, 3639, 327, 638, 2 ]
protected void doStore() { String encoding = getSelectedEncoding(); //Clear the value if nothing is selected if(isDefaultSelected()) encoding = null; //Don't update if the same thing is selected if (hasSameEncoding(encoding)) return; String descriptionCharset = getCharsetFromDescription(); if (descriptionCharset != null && !(descriptionCharset.equals(encoding))) { Shell shell = null; DialogPage page = getPage(); if(page != null) shell = page.getShell(); MessageDialog dialog = new MessageDialog( shell, IDEWorkbenchMessages.ResourceEncodingFieldEditor_EncodingConflictTitle, null, NLS.bind(IDEWorkbenchMessages.ResourceEncodingFieldEditor_EncodingConflictMessage, encoding, descriptionCharset), MessageDialog.WARNING, new String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL }, 0); // yes is the default if (dialog.open() > 0) return; } IDEEncoding.addIDEEncoding(encoding); final String finalEncoding = encoding; Job charsetJob = new Job(IDEWorkbenchMessages.IDEEncoding_EncodingJob) { /* (non-Javadoc) * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor) */ protected IStatus run(IProgressMonitor monitor) { try { if (resource instanceof IContainer) ((IContainer) resource).setDefaultCharset(finalEncoding, monitor); else ((IFile) resource).setCharset(finalEncoding, monitor); return Status.OK_STATUS; } catch (CoreException e) {//If there is an error return the default IDEWorkbenchPlugin.log(IDEWorkbenchMessages.ResourceEncodingFieldEditor_ErrorStoringMessage, e.getStatus()); return e.getStatus(); } } }; charsetJob.schedule(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3d3b6350e58f7038bc33f0a8af57d3a0cb8aab78/ResourceEncodingFieldEditor.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/ide/dialogs/ResourceEncodingFieldEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 741, 2257, 1435, 288, 202, 202, 780, 2688, 273, 16625, 4705, 5621, 202, 202, 759, 9094, 326, 460, 309, 5083, 353, 3170, 202, 202, 430, 12, 291, 1868, 7416, 10756, 1082, 202, 5999, 273, 446, 31, 202, 202, 759, 22293, 1404, 1089, 309, 326, 1967, 7757, 353, 3170, 202, 202, 430, 261, 5332, 8650, 4705, 12, 5999, 3719, 1082, 202, 2463, 31, 202, 202, 780, 2477, 9652, 273, 30428, 1265, 3291, 5621, 202, 202, 430, 261, 3384, 9652, 480, 446, 597, 401, 12, 3384, 9652, 18, 14963, 12, 5999, 20349, 288, 1082, 202, 13220, 5972, 273, 446, 31, 1082, 202, 6353, 1964, 1363, 273, 8957, 5621, 1082, 202, 430, 12, 2433, 480, 446, 13, 9506, 202, 10304, 273, 1363, 18, 588, 13220, 5621, 25083, 202, 1079, 6353, 6176, 273, 394, 2350, 6353, 12, 6862, 202, 10304, 16, 6862, 202, 10385, 2421, 22144, 5058, 18, 1420, 4705, 974, 6946, 67, 4705, 10732, 4247, 16, 6862, 202, 2011, 16, 6862, 202, 5106, 18, 4376, 12, 10385, 2421, 22144, 5058, 18, 1420, 4705, 974, 6946, 67, 4705, 10732, 1079, 16, 2688, 16, 2477, 9652, 3631, 6862, 202, 1079, 6353, 18, 9511, 16, 394, 514, 8526, 288, 1599, 3529, 2918, 18, 29081, 67, 13545, 16, 6862, 1082, 202, 734, 3529, 2918, 18, 3417, 67, 13545, 19879, 374, 1769, 368, 12465, 353, 326, 805, 1082, 202, 430, 261, 12730, 18, 3190, 1435, 405, 374, 13, 9506, 202, 2463, 31, 202, 202, 97, 202, 202, 10385, 4705, 18, 1289, 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, 741, 2257, 1435, 288, 202, 202, 780, 2688, 273, 16625, 4705, 5621, 202, 202, 759, 9094, 326, 460, 309, 5083, 353, 3170, 202, 202, 430, 12, 291, 1868, 7416, 10756, 1082, 202, 5999, 273, 446, 31, 202, 202, 759, 22293, 1404, 1089, 309, 326, 1967, 7757, 353, 3170, 202, 202, 430, 261, 5332, 8650, 4705, 12, 5999, 3719, 1082, 202, 2463, 31, 202, 202, 780, 2477, 9652, 273, 30428, 1265, 3291, 5621, 202, 202, 430, 261, 3384, 9652, 480, 446, 597, 401, 12, 3384, 9652, 18, 14963, 12, 5999, 20349, 288, 1082, 202, 13220, 5972, 273, 446, 31, 1082, 202, 6353, 1964, 1363, 273, 8957, 5621, 1082, 202, 430, 12, 2433, 480, 446, 13, 9506, 2 ]
suite.addTest(new ResolveTests_1_5("test0075"));
suite.addTest(new ResolveTests_1_5("test0093"));
public static Test suite() { TestSuite suite = new Suite(ResolveTests_1_5.class.getName()); if (true) { Class c = ResolveTests_1_5.class; Method[] methods = c.getMethods(); for (int i = 0, max = methods.length; i < max; i++) { if (methods[i].getName().startsWith("test")) { //$NON-NLS-1$ suite.addTest(new ResolveTests_1_5(methods[i].getName())); } } return suite; } suite.addTest(new ResolveTests_1_5("test0075")); return suite;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/d5d86df0121fb5c2bb6df3f92578f1379c6e5fff/ResolveTests_1_5.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ResolveTests_1_5.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 7766, 11371, 1435, 288, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 8460, 14650, 67, 21, 67, 25, 18, 1106, 18, 17994, 10663, 1082, 202, 430, 261, 3767, 13, 288, 202, 202, 797, 276, 273, 9910, 14650, 67, 21, 67, 25, 18, 1106, 31, 202, 202, 1305, 8526, 2590, 273, 276, 18, 588, 4712, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 16, 943, 273, 2590, 18, 2469, 31, 277, 411, 943, 31, 277, 27245, 288, 1082, 202, 430, 261, 5163, 63, 77, 8009, 17994, 7675, 17514, 1190, 2932, 3813, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 30676, 18, 1289, 4709, 12, 2704, 9910, 14650, 67, 21, 67, 25, 12, 5163, 63, 77, 8009, 17994, 1435, 10019, 1082, 202, 97, 202, 202, 97, 202, 202, 2463, 11371, 31, 202, 97, 202, 30676, 18, 1289, 4709, 12, 2704, 9910, 14650, 67, 21, 67, 25, 2932, 3813, 713, 5877, 7923, 1769, 9506, 202, 2463, 11371, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 760, 7766, 11371, 1435, 288, 202, 4709, 13587, 11371, 273, 394, 348, 9519, 12, 8460, 14650, 67, 21, 67, 25, 18, 1106, 18, 17994, 10663, 1082, 202, 430, 261, 3767, 13, 288, 202, 202, 797, 276, 273, 9910, 14650, 67, 21, 67, 25, 18, 1106, 31, 202, 202, 1305, 8526, 2590, 273, 276, 18, 588, 4712, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 16, 943, 273, 2590, 18, 2469, 31, 277, 411, 943, 31, 277, 27245, 288, 1082, 202, 430, 261, 5163, 63, 77, 8009, 17994, 7675, 17514, 1190, 2932, 3813, 6, 3719, 288, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 30676, 18, 1289, 4709, 12, 2704, 9910, 14650, 67, 21, 67, 25, 12, 2 ]
this.ipaddress = addr;
this.ipaddress = this.addr;
Inet6Address(byte[] addr, String host) { super(addr, host); this.ipaddress = addr; }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/9a462ff512940843e371046aecd7fc25a73d8383/Inet6Address.java/buggy/libraries/javalib/java/net/Inet6Address.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 10040, 26, 1887, 12, 7229, 8526, 3091, 16, 514, 1479, 13, 225, 288, 565, 2240, 12, 4793, 16, 1479, 1769, 377, 333, 18, 625, 2867, 273, 333, 18, 4793, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 10040, 26, 1887, 12, 7229, 8526, 3091, 16, 514, 1479, 13, 225, 288, 565, 2240, 12, 4793, 16, 1479, 1769, 377, 333, 18, 625, 2867, 273, 333, 18, 4793, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
org.exist.xquery.parser.XQueryAST tmp313_AST = null; tmp313_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp313_AST);
org.exist.xquery.parser.XQueryAST tmp312_AST = null; tmp312_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp312_AST);
public final void compXmlComment() throws RecognitionException, TokenStreamException, XPathException { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST compXmlComment_AST = null; org.exist.xquery.parser.XQueryAST e_AST = null; org.exist.xquery.parser.XQueryAST tmp313_AST = null; tmp313_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp313_AST); match(LITERAL_comment); match(LCURLY); expr(); e_AST = (org.exist.xquery.parser.XQueryAST)returnAST; astFactory.addASTChild(currentAST, returnAST); match(RCURLY); if ( inputState.guessing==0 ) { compXmlComment_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; compXmlComment_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(COMP_COMMENT_CONSTRUCTOR,"comment")).add(e_AST)); currentAST.root = compXmlComment_AST; currentAST.child = compXmlComment_AST!=null &&compXmlComment_AST.getFirstChild()!=null ? compXmlComment_AST.getFirstChild() : compXmlComment_AST; currentAST.advanceChildToEnd(); } compXmlComment_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; returnAST = compXmlComment_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/a591df0eed7c1c55bc716a7d445195572abcc4e7/XQueryParser.java/clean/src/org/exist/xquery/parser/XQueryParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1161, 4432, 4469, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1161, 4432, 4469, 67, 9053, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 425, 67, 9053, 273, 446, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23, 3437, 67, 9053, 273, 446, 31, 202, 202, 5645, 23, 3437, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 689, 1733, 18, 2640, 12, 12050, 12, 21, 10019, 202, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 1853, 23, 3437, 67, 9053, 1769, 202, 202, 1916, 12, 23225, 67, 3469, 1769, 202, 202, 1916, 12, 13394, 1785, 61, 1769, 202, 202, 8638, 5621, 202, 202, 73, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 2463, 9053, 31, 202, 202, 689, 1733, 18, 1289, 9053, 1763, 12, 2972, 9053, 16, 327, 9053, 1769, 202, 202, 1916, 12, 11529, 1785, 61, 1769, 202, 202, 430, 261, 810, 1119, 18, 20885, 310, 631, 20, 262, 288, 1082, 202, 2919, 4432, 4469, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 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, 727, 918, 1161, 4432, 4469, 1435, 1216, 9539, 16, 3155, 1228, 503, 16, 10172, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1161, 4432, 4469, 67, 9053, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 425, 67, 9053, 273, 446, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1853, 23, 3437, 67, 9053, 273, 446, 31, 202, 202, 5645, 23, 3437, 67, 9053, 273, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 2 ]
public boolean getAutoCommit() throws SQLException
public boolean getAutoCommit()
public boolean getAutoCommit() throws SQLException { return this.autoCommit; }
45534 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45534/7ecb6ede284fdf9f138028cc9db042c316e2f65e/AbstractJdbc1Connection.java/buggy/src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 26707, 5580, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 333, 18, 6079, 5580, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 26707, 5580, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 333, 18, 6079, 5580, 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 ]
this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
private void buildGUI() { // Sets the frame icon setIconImage(icons.getImageIcon("JFrameIcon").getImage()); // Prepares the glass pane to block the gui interaction when needed JPanel glassPane = (JPanel) getGlassPane(); glassPane.addMouseListener(new MouseAdapter() {}); glassPane.addMouseMotionListener(new MouseMotionAdapter() {}); glassPane.addKeyListener(new KeyAdapter() {}); glassPane.addFocusListener(new FocusAdapter() {}); // We set the layout & prepare the constraint object contentPane = (JPanel) getContentPane(); contentPane.setLayout(new BorderLayout()); // layout); // We add the panels container panelsContainer = new JPanel(); panelsContainer.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10)); panelsContainer.setLayout(new GridLayout(1, 1)); contentPane.add(panelsContainer, BorderLayout.CENTER); // We put the first panel installdata.curPanelNumber = 0; IzPanel panel_0 = (IzPanel) installdata.panels.get(0); panelsContainer.add(panel_0); // We add the navigation buttons & labels NavigationHandler navHandler = new NavigationHandler(); JPanel navPanel = new JPanel(); navPanel.setLayout(new BoxLayout(navPanel, BoxLayout.X_AXIS)); navPanel.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8), BorderFactory.createTitledBorder(new EtchedLineBorder(), langpack .getString("installer.madewith") + " "))); navPanel.add(Box.createHorizontalGlue()); prevButton = ButtonFactory.createButton(langpack.getString("installer.prev"), icons .getImageIcon("stepback"), installdata.buttonsHColor); navPanel.add(prevButton); prevButton.addActionListener(navHandler); navPanel.add(Box.createRigidArea(new Dimension(5, 0))); nextButton = ButtonFactory.createButton(langpack.getString("installer.next"), icons .getImageIcon("stepforward"), installdata.buttonsHColor); navPanel.add(nextButton); nextButton.addActionListener(navHandler); navPanel.add(Box.createRigidArea(new Dimension(5, 0))); quitButton = ButtonFactory.createButton(langpack.getString("installer.quit"), icons .getImageIcon("stop"), installdata.buttonsHColor); navPanel.add(quitButton); quitButton.addActionListener(navHandler); contentPane.add(navPanel, BorderLayout.SOUTH); try { ResourceManager rm = ResourceManager.getInstance(); ImageIcon icon; try { icon = rm.getImageIconResource("Installer.image"); } catch (Exception e) // This is not that clean ... { icon = rm.getImageIconResource("Installer.image.0"); } if (icon != null) { JPanel imgPanel = new JPanel(); imgPanel.setLayout(new BorderLayout()); imgPanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 0)); iconLabel = new JLabel(icon); iconLabel.setBorder(BorderFactory.createLoweredBevelBorder()); imgPanel.add(iconLabel, BorderLayout.NORTH); contentPane.add(imgPanel, BorderLayout.WEST); } } catch (Exception e) { // ignore } loadImage(0); getRootPane().setDefaultButton(nextButton); }
46579 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46579/00efe4c6c731d1255e91d5c05cf89d1e08d52364/InstallerFrame.java/clean/src/lib/com/izforge/izpack/installer/InstallerFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 6015, 270, 546, 291, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 918, 2211, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 1361, 43, 5370, 1435, 2211, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 288, 2211, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 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, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 333, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 6015, 270, 546, 291, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 3191, 67, 4400, 44, 1360, 67, 673, 67, 13384, 1769, 225, 918, 2211, 18, 542, 1868, 4605, 2988, 12, 3829, 2918, 18, 2 ]
public final void initScriptObject(int version, String[] varNames)
public final void initScriptObject()
public final void initScriptObject(int version, String[] varNames) { if (varNames == null) { throw new IllegalArgumentException(); } if (!(this.argNames == null)) { // Initialization can only be done once throw new IllegalStateException(); } this.functionName = ""; this.argNames = varNames; this.argCount = 0; this.version = version; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/08f0cfede0b5665f6b5139b8993251dc3a80ec16/NativeFunction.java/buggy/src/org/mozilla/javascript/NativeFunction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1208, 3651, 921, 1435, 565, 288, 3639, 309, 261, 1401, 1557, 422, 446, 13, 288, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 16051, 12, 2211, 18, 3175, 1557, 422, 446, 3719, 288, 5411, 368, 26586, 848, 1338, 506, 2731, 3647, 5411, 604, 394, 5477, 5621, 3639, 289, 3639, 333, 18, 915, 461, 273, 1408, 31, 3639, 333, 18, 3175, 1557, 273, 569, 1557, 31, 3639, 333, 18, 3175, 1380, 273, 374, 31, 3639, 333, 18, 1589, 273, 1177, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1208, 3651, 921, 1435, 565, 288, 3639, 309, 261, 1401, 1557, 422, 446, 13, 288, 5411, 604, 394, 2754, 5621, 3639, 289, 3639, 309, 16051, 12, 2211, 18, 3175, 1557, 422, 446, 3719, 288, 5411, 368, 26586, 848, 1338, 506, 2731, 3647, 5411, 604, 394, 5477, 5621, 3639, 289, 3639, 333, 18, 915, 461, 273, 1408, 31, 3639, 333, 18, 3175, 1557, 273, 569, 1557, 31, 3639, 333, 18, 3175, 1380, 273, 374, 31, 3639, 333, 18, 1589, 273, 1177, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
name = BasisLibrary.replace(name, ".-", new String[] { "$dot$", "$dash$" });
name = BasisLibrary.mapQNameToJavaName (name);
public final Object addParameter(String name, Object value) { name = BasisLibrary.replace(name, ".-", new String[] { "$dot$", "$dash$" }); return addParameter(name, value, false); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/5474113c23509da987f9080a62b3ee5cdff33f06/AbstractTranslet.java/clean/src/org/apache/xalan/xsltc/runtime/AbstractTranslet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 1033, 14436, 12, 780, 508, 16, 1033, 460, 13, 288, 202, 529, 273, 605, 17247, 9313, 18, 2079, 12, 529, 16, 3552, 17, 3113, 4405, 565, 394, 514, 8526, 288, 4662, 9811, 8, 3113, 4662, 21817, 12911, 15549, 202, 2463, 14436, 12, 529, 16, 460, 16, 629, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 377, 1071, 727, 1033, 14436, 12, 780, 508, 16, 1033, 460, 13, 288, 202, 529, 273, 605, 17247, 9313, 18, 2079, 12, 529, 16, 3552, 17, 3113, 4405, 565, 394, 514, 8526, 288, 4662, 9811, 8, 3113, 4662, 21817, 12911, 15549, 202, 2463, 14436, 12, 529, 16, 460, 16, 629, 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 ]
public TA_RetCode CDLCOUNTERATTACK( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double EqualPeriodTotal; double []BodyLongPeriodTotal = new double[2]; ; int i, outIdx, totIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLCOUNTERATTACK_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } EqualPeriodTotal = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) ; BodyLongPeriodTotal[1] = 0; BodyLongPeriodTotal[0] = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; i = EqualTrailingIdx; while( i < startIdx ) { EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = BodyLongTrailingIdx; while( i < startIdx ) { BodyLongPeriodTotal[1] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; BodyLongPeriodTotal[0] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == - ( inClose[i] >= inOpen[i] ? 1 : -1 ) && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal[1] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( Math.abs ( inClose[i] - inOpen[i] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal[0] / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i] - inOpen[i] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i] - inLow[i] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i] - ( inClose[i] >= inOpen[i] ? inClose[i] : inOpen[i] ) ) + ( ( inClose[i] >= inOpen[i] ? inOpen[i] : inClose[i] ) - inLow[i] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inClose[i] <= inClose[i-1] + ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) != 0.0? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inClose[i] >= inClose[i-1] - ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) != 0.0? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) ) outInteger[outIdx++] = ( inClose[i] >= inOpen[i] ? 1 : -1 ) * 100; else outInteger[outIdx++] = 0; EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[EqualTrailingIdx-1] - inOpen[EqualTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[EqualTrailingIdx-1] - inLow[EqualTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[EqualTrailingIdx-1] - ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inClose[EqualTrailingIdx-1] : inOpen[EqualTrailingIdx-1] ) ) + ( ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inOpen[EqualTrailingIdx-1] : inClose[EqualTrailingIdx-1] ) - inLow[EqualTrailingIdx-1] ) : 0 ) ) ) ; for (totIdx = 1; totIdx >= 0; --totIdx) BodyLongPeriodTotal[totIdx] += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-totIdx] - inOpen[i-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-totIdx] - inLow[i-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-totIdx] - ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inClose[i-totIdx] : inOpen[i-totIdx] ) ) + ( ( inClose[i-totIdx] >= inOpen[i-totIdx] ? inOpen[i-totIdx] : inClose[i-totIdx] ) - inLow[i-totIdx] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx-totIdx] - inOpen[BodyLongTrailingIdx-totIdx] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx-totIdx] - inLow[BodyLongTrailingIdx-totIdx] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx-totIdx] - ( inClose[BodyLongTrailingIdx-totIdx] >= inOpen[BodyLongTrailingIdx-totIdx] ? inClose[BodyLongTrailingIdx-totIdx] : inOpen[BodyLongTrailingIdx-totIdx] ) ) + ( ( inClose[BodyLongTrailingIdx-totIdx] >= inOpen[BodyLongTrailingIdx-totIdx] ? inOpen[BodyLongTrailingIdx-totIdx] : inClose[BodyLongTrailingIdx-totIdx] ) - inLow[BodyLongTrailingIdx-totIdx] ) : 0 ) ) ) ; i++; EqualTrailingIdx++; BodyLongTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;}
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 385, 8914, 7240, 654, 789, 56, 3649, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 8526, 262, 95, 1645, 9057, 5027, 5269, 31, 225, 1645, 5378, 2250, 3708, 5027, 5269, 273, 394, 1645, 63, 22, 15533, 274, 509, 277, 16, 596, 4223, 16, 9997, 4223, 16, 9057, 16808, 4223, 16, 5652, 3708, 16808, 4223, 16, 2324, 823, 5269, 31, 309, 12, 27108, 411, 374, 262, 327, 225, 399, 37, 67, 7055, 1085, 18, 399, 37, 67, 5069, 67, 3932, 67, 15928, 67, 7570, 67, 9199, 31, 309, 12, 261, 409, 4223, 411, 374, 13, 747, 261, 409, 4223, 411, 27108, 3719, 327, 225, 399, 37, 67, 7055, 1085, 18, 399, 37, 67, 5069, 67, 3932, 67, 15928, 67, 4415, 67, 9199, 31, 2324, 823, 5269, 273, 225, 385, 8914, 7240, 654, 789, 56, 3649, 67, 9794, 823, 261, 1769, 309, 12, 27108, 411, 2324, 823, 5269, 262, 27108, 273, 2324, 823, 5269, 31, 309, 12, 27108, 405, 679, 4223, 262, 288, 225, 596, 24059, 4223, 18, 1132, 273, 374, 274, 225, 596, 22816, 1046, 18, 1132, 273, 374, 274, 327, 225, 399, 37, 67, 7055, 1085, 18, 399, 37, 67, 12778, 31, 289, 9057, 5027, 5269, 273, 374, 31, 9057, 16808, 4223, 273, 27108, 300, 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, 1071, 399, 37, 67, 7055, 1085, 385, 8914, 7240, 654, 789, 56, 3649, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 490, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 509, 596, 4522, 8526, 262, 95, 1645, 9057, 5027, 5269, 31, 225, 1645, 5378, 2250, 3708, 5027, 5269, 273, 394, 1645, 63, 22, 15533, 274, 509, 277, 16, 596, 4223, 16, 9997, 4223, 16, 9057, 16808, 4223, 16, 5652, 3708, 16808, 4223, 16, 2324, 823, 5269, 31, 309, 12, 27108, 411, 374, 262, 327, 225, 399, 37, 67, 7055, 1085, 18, 399, 37, 67, 5069, 2 ]
viewer.setSorter(ListUtil.PLUGIN_SORTER);
viewer.setComparator(ListUtil.PLUGIN_COMPARATOR);
protected void createViewer(Composite parent) { Composite composite = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.numColumns = 3; layout.marginHeight = 0; layout.marginWidth = 0; composite.setLayout(layout); composite.setLayoutData(new GridData(GridData.FILL_BOTH)); fExportPart.createControl(composite); GridData gd = (GridData) fExportPart.getControl().getLayoutData(); gd.heightHint = 125; gd.widthHint = 150; gd.horizontalSpan = 2; TableViewer viewer = fExportPart.getTableViewer(); viewer.setContentProvider(new ExportListProvider()); viewer.setLabelProvider(PDEPlugin.getDefault().getLabelProvider()); viewer.setSorter(ListUtil.PLUGIN_SORTER); fExportPart.getTableViewer().setInput(PDECore.getDefault().getWorkspaceModelManager()); }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/2c99ec563b6fa17cebdc7c80d292285e73ec04c2/BaseExportWizardPage.java/clean/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/BaseExportWizardPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 15193, 264, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 10107, 2686, 273, 374, 31, 202, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 6741, 1769, 202, 202, 27676, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 9506, 202, 74, 6144, 1988, 18, 2640, 3367, 12, 27676, 1769, 202, 202, 6313, 751, 15551, 273, 261, 6313, 751, 13, 284, 6144, 1988, 18, 588, 3367, 7675, 588, 3744, 751, 5621, 202, 202, 19016, 18, 4210, 7002, 273, 30616, 31, 202, 202, 19016, 18, 2819, 7002, 273, 18478, 31, 202, 202, 19016, 18, 18396, 6952, 273, 576, 31, 9506, 202, 1388, 18415, 14157, 273, 284, 6144, 1988, 18, 588, 1388, 18415, 5621, 202, 202, 25256, 18, 542, 1350, 2249, 12, 2704, 11054, 682, 2249, 10663, 202, 202, 25256, 18, 542, 2224, 2249, 12, 52, 1639, 3773, 18, 588, 1868, 7675, 588, 2224, 2249, 10663, 202, 202, 25256, 18, 542, 24952, 12, 682, 1304, 18, 19415, 67, 55, 916, 2560, 1769, 202, 202, 74, 6144, 1988, 18, 588, 1388, 18415, 7675, 542, 1210, 12, 52, 1639, 4670, 18, 588, 1868, 7675, 588, 8241, 1488, 1318, 10663, 202, 97, 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, 225, 202, 1117, 918, 15193, 264, 12, 9400, 982, 13, 288, 202, 202, 9400, 9635, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 202, 6741, 18, 2107, 3380, 273, 890, 31, 202, 202, 6741, 18, 10107, 2686, 273, 374, 31, 202, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 202, 27676, 18, 542, 3744, 12, 6741, 1769, 202, 202, 27676, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 38, 18307, 10019, 9506, 202, 74, 6144, 1988, 18, 2640, 3367, 12, 27676, 1769, 202, 202, 6313, 751, 15551, 273, 261, 6313, 751, 13, 284, 6144, 1988, 18, 588, 3367, 2 ]
int c; try { c=System.in.read(); } catch(Exception ex) { System.err.println("InterruptTest.SleeperThread.runRead(): " + ex); } }
try { System.in.read(); } catch(Exception ex) { System.err.println("InterruptTest.SleeperThread.runRead(): " + ex); } }
void runRead() { int c; try { c=System.in.read(); } catch(Exception ex) { System.err.println("InterruptTest.SleeperThread.runRead(): " + ex); } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/71d1a8f8cae34adf83ab37b3564bb1511c06a198/InterruptTest.java/clean/tests/junit/org/jgroups/tests/InterruptTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1086, 1994, 1435, 288, 202, 565, 509, 276, 31, 202, 565, 775, 288, 202, 202, 71, 33, 3163, 18, 267, 18, 896, 5621, 202, 565, 289, 202, 565, 1044, 12, 503, 431, 13, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 14126, 4709, 18, 55, 11182, 457, 3830, 18, 2681, 1994, 13332, 315, 397, 431, 1769, 202, 565, 289, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 1086, 1994, 1435, 288, 202, 565, 509, 276, 31, 202, 565, 775, 288, 202, 202, 71, 33, 3163, 18, 267, 18, 896, 5621, 202, 565, 289, 202, 565, 1044, 12, 503, 431, 13, 288, 202, 202, 3163, 18, 370, 18, 8222, 2932, 14126, 4709, 18, 55, 11182, 457, 3830, 18, 2681, 1994, 13332, 315, 397, 431, 1769, 202, 565, 289, 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 ]
throw new TypeError(runtime, "time + time ?");
throw getRuntime().newTypeError("time + time ?");
public IRubyObject op_plus(IRubyObject other) { long time = getTimeInMillis(); if (other instanceof RubyTime) { throw new TypeError(runtime, "time + time ?"); } time += ((RubyNumeric) other).getDoubleValue() * 1000; RubyTime newTime = new RubyTime(runtime, getMetaClass()); newTime.cal = Calendar.getInstance(); newTime.cal.setTime(new Date(time)); return newTime; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyTime.java/clean/src/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 10103, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 6135, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 957, 397, 813, 692, 8863, 3639, 289, 202, 202, 957, 1011, 14015, 54, 10340, 9902, 13, 1308, 2934, 588, 5265, 620, 1435, 380, 4336, 31, 202, 202, 54, 10340, 950, 394, 950, 273, 394, 19817, 950, 12, 9448, 16, 11312, 797, 10663, 202, 202, 2704, 950, 18, 771, 273, 5542, 18, 588, 1442, 5621, 202, 202, 2704, 950, 18, 771, 18, 542, 950, 12, 2704, 2167, 12, 957, 10019, 202, 202, 2463, 394, 950, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 10103, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 6135, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 604, 18814, 7675, 2704, 19030, 2932, 957, 397, 813, 692, 8863, 3639, 289, 202, 202, 957, 1011, 14015, 54, 10340, 9902, 13, 1308, 2934, 588, 5265, 620, 1435, 380, 4336, 31, 202, 202, 54, 10340, 950, 394, 950, 273, 394, 19817, 950, 12, 9448, 16, 11312, 797, 10663, 202, 202, 2704, 950, 18, 771, 273, 5542, 18, 588, 1442, 5621, 202, 202, 2704, 950, 18, 771, 18, 542, 950, 12, 2704, 2167, 12, 957, 10019, 202, 202, 2463, 394, 950, 31, 565, 289, 2, -100, -100, -100, -100 ]
private String extractBundleId(String url) {
private Object[] extractBundleId(String url) {
private String extractBundleId(String url) { if (preciseIdExtraction) return extractBundleIdFromManifest(url); else return extractBundleIdFromBundleURL(url); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/a1fd949f8e1a6e1f7229e27d078bc0c15fad3a67/WebStartMain.java/buggy/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/WebStartMain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2608, 3405, 548, 12, 780, 880, 13, 288, 202, 202, 430, 261, 4036, 784, 548, 25757, 13, 1082, 202, 2463, 2608, 3405, 548, 1265, 9121, 12, 718, 1769, 202, 202, 12107, 1875, 202, 2463, 2608, 3405, 548, 1265, 3405, 1785, 12, 718, 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, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 514, 2608, 3405, 548, 12, 780, 880, 13, 288, 202, 202, 430, 261, 4036, 784, 548, 25757, 13, 1082, 202, 2463, 2608, 3405, 548, 1265, 9121, 12, 718, 1769, 202, 202, 12107, 1875, 202, 2463, 2608, 3405, 548, 1265, 3405, 1785, 12, 718, 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, -100, -100, -100, -100 ]
public boolean isMessagePartOfTransaction(SIPMessage messageToTest) { // List of Via headers in the message to test ViaList viaHeaders = messageToTest.getViaHeaders(); // Flags whether the select message is part of this transaction boolean transactionMatches; String messageBranch = ((Via) viaHeaders.getFirst()).getBranch(); boolean rfc3261Compliant = getBranch() != null && messageBranch != null && getBranch().startsWith(SIPConstants.BRANCH_MAGIC_COOKIE) && messageBranch.startsWith(SIPConstants.BRANCH_MAGIC_COOKIE); /** * if (parentStack.logWriter.needsLogging) { * sipStack.logWriter.logMessage("--------- TEST ------------"); * sipStack.logWriter.logMessage(" testing " + this.getOriginalRequest()); * sipStack.logWriter.logMessage("Against " + messageToTest); * sipStack.logWriter.logMessage("isTerminated = " + isTerminated()); * sipStack.logWriter.logMessage("messageBranch = " + messageBranch); * sipStack.logWriter.logMessage("viaList = " + messageToTest.getViaHeaders()); * sipStack.logWriter.logMessage("myBranch = " + getBranch()); * } **/ transactionMatches = false; if (TransactionState.COMPLETED == this.getState()) { if (rfc3261Compliant) { transactionMatches = getBranch().equals( ((Via) viaHeaders.getFirst()).getBranch()); } else { transactionMatches = getBranch().equals(messageToTest.getTransactionId()); } } else if (!isTerminated()) { if (rfc3261Compliant) { if (viaHeaders != null) { // If the branch parameter is the //same as this transaction and the method is the same, if (getBranch() .equals(((Via) viaHeaders.getFirst()).getBranch())) { transactionMatches = getOriginalRequest().getCSeq().getMethod().equals( messageToTest.getCSeq().getMethod()); } } } else { // not RFC 3261 compliant. if (getBranch() != null) { transactionMatches = getBranch().equals(messageToTest.getTransactionId()); } else { transactionMatches = getOriginalRequest().getTransactionId().equals( messageToTest.getTransactionId()); } } } return transactionMatches; }
3364 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3364/d231d2c6c5ca907b5c90d5737c6ae873878b219f/SIPClientTransaction.java/clean/src/gov/nist/javax/sip/stack/SIPClientTransaction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 1079, 1988, 951, 3342, 12, 17739, 1079, 883, 774, 4709, 13, 288, 7734, 368, 987, 434, 776, 1155, 1607, 316, 326, 883, 358, 1842, 3639, 776, 1155, 682, 3970, 3121, 273, 883, 774, 4709, 18, 588, 21246, 3121, 5621, 3639, 368, 10104, 2856, 326, 2027, 883, 353, 1087, 434, 333, 2492, 3639, 1250, 2492, 6869, 31, 3639, 514, 883, 7108, 273, 14015, 21246, 13, 3970, 3121, 18, 588, 3759, 1435, 2934, 588, 7108, 5621, 3639, 1250, 16590, 1578, 9498, 799, 18515, 273, 3639, 29314, 1435, 480, 446, 3639, 597, 883, 7108, 480, 446, 3639, 597, 29314, 7675, 17514, 1190, 12, 17739, 2918, 18, 7192, 20360, 67, 49, 22247, 67, 13584, 13, 3639, 597, 883, 7108, 18, 17514, 1190, 12, 17739, 2918, 18, 7192, 20360, 67, 49, 22247, 67, 13584, 1769, 7734, 1783, 540, 380, 309, 261, 2938, 2624, 18, 1330, 2289, 18, 20600, 7735, 13, 225, 288, 540, 380, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 8567, 22130, 300, 13849, 8863, 540, 380, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 7769, 315, 397, 333, 18, 588, 8176, 691, 10663, 540, 380, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 23530, 334, 315, 397, 883, 774, 4709, 1769, 540, 380, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 291, 21888, 273, 315, 397, 353, 21888, 10663, 540, 380, 10341, 2624, 18, 1330, 2289, 18, 1330, 1079, 2932, 2150, 7108, 273, 315, 397, 883, 7108, 1769, 540, 380, 10341, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 1079, 1988, 951, 3342, 12, 17739, 1079, 883, 774, 4709, 13, 288, 7734, 368, 987, 434, 776, 1155, 1607, 316, 326, 883, 358, 1842, 3639, 776, 1155, 682, 3970, 3121, 273, 883, 774, 4709, 18, 588, 21246, 3121, 5621, 3639, 368, 10104, 2856, 326, 2027, 883, 353, 1087, 434, 333, 2492, 3639, 1250, 2492, 6869, 31, 3639, 514, 883, 7108, 273, 14015, 21246, 13, 3970, 3121, 18, 588, 3759, 1435, 2934, 588, 7108, 5621, 3639, 1250, 16590, 1578, 9498, 799, 18515, 273, 3639, 29314, 1435, 480, 446, 3639, 597, 883, 7108, 480, 446, 3639, 597, 29314, 7675, 17514, 1190, 12, 17739, 2918, 18, 7192, 20360, 67, 49, 22247, 67, 13584, 13, 3639, 597, 883, 7108, 2 ]
gridLayout.marginTop = 15;
protected Control createCustomArea( Composite parent ) { Composite container = new Composite( parent, SWT.NONE ); GridLayout gridLayout = new GridLayout( ); gridLayout.marginWidth = 20; gridLayout.marginTop = 15; container.setLayout( gridLayout ); Button chkbox = new Button( container, SWT.CHECK ); chkbox.setText( REMEMBER_DECISION ); chkbox.addSelectionListener( new SelectionListener( ) { public void widgetSelected( SelectionEvent e ) { saveDecision = !saveDecision; } public void widgetDefaultSelected( SelectionEvent e ) { saveDecision = false; } } ); return super.createCustomArea( parent ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/108b28b1a3b0be7d20205619b6fb0f520ca15cf5/ExportToLibraryAction.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/views/actions/ExportToLibraryAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 25083, 202, 55, 8588, 18, 9826, 11272, 6862, 9506, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 12, 11272, 6862, 9506, 202, 5222, 3744, 18, 10107, 2384, 273, 4200, 31, 6862, 9506, 202, 5222, 3744, 18, 10107, 3401, 273, 4711, 31, 6862, 9506, 202, 3782, 18, 542, 3744, 12, 3068, 3744, 11272, 6862, 9506, 202, 3616, 15000, 2147, 273, 394, 12569, 12, 1478, 16, 6862, 25083, 202, 55, 8588, 18, 10687, 11272, 6862, 9506, 202, 27038, 2147, 18, 542, 1528, 12, 2438, 19630, 67, 1639, 26913, 11272, 6862, 9506, 202, 27038, 2147, 18, 1289, 6233, 2223, 12, 394, 12977, 2223, 12, 262, 288, 6862, 6862, 202, 482, 918, 3604, 7416, 12, 12977, 1133, 425, 262, 6862, 6862, 202, 95, 6862, 25083, 202, 5688, 15861, 273, 401, 5688, 15861, 31, 6862, 6862, 202, 97, 6862, 6862, 202, 482, 918, 3604, 1868, 7416, 12, 6862, 6862, 1082, 202, 6233, 1133, 425, 262, 6862, 6862, 202, 95, 6862, 25083, 202, 5688, 15861, 273, 629, 31, 6862, 6862, 202, 97, 6862, 9506, 202, 97, 11272, 6862, 9506, 202, 2463, 2240, 18, 2640, 3802, 5484, 12, 982, 11272, 6862, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 15106, 202, 1117, 8888, 752, 3802, 5484, 12, 14728, 982, 262, 6862, 1082, 202, 95, 6862, 9506, 202, 9400, 1478, 273, 394, 14728, 12, 982, 16, 6862, 25083, 202, 55, 8588, 18, 9826, 11272, 6862, 9506, 202, 6313, 3744, 3068, 3744, 273, 394, 7145, 3744, 12, 11272, 6862, 9506, 202, 5222, 3744, 18, 10107, 2384, 273, 4200, 31, 6862, 9506, 202, 5222, 3744, 18, 10107, 3401, 273, 4711, 31, 6862, 9506, 202, 3782, 18, 542, 3744, 12, 3068, 3744, 11272, 6862, 9506, 202, 3616, 15000, 2147, 273, 394, 12569, 12, 1478, 16, 6862, 25083, 202, 55, 8588, 18, 10687, 11272, 6862, 9506, 202, 27038, 2147, 18, 542, 1528, 12, 2438, 19630, 67, 1639, 26913, 11272, 6862, 9506, 202, 27038, 2 ]
double time_other = ((RubyNumeric) other).getDoubleValue();
if(other instanceof RubyNumeric) { if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0;
public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; double time_other = ((RubyNumeric) other).getDoubleValue(); if (time > time_other) { return RubyFixnum.one(getRuntime()); } else if (time < time_other) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } long millis_other = RubyNumeric.num2long(other) * 1000; if (millis > millis_other || (millis == millis_other && usec > 0)) { return RubyFixnum.one(getRuntime()); } else if (millis < millis_other || (millis == millis_other && usec < 0)) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); }
45298 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45298/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 3011, 18, 291, 12616, 10756, 288, 540, 202, 2463, 1308, 31, 3639, 289, 7734, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 327, 18814, 7675, 2704, 8585, 2107, 12, 9625, 12443, 54, 10340, 950, 13, 1308, 10019, 3639, 289, 7734, 1525, 14833, 273, 6135, 16620, 5621, 7734, 309, 261, 3011, 1276, 19817, 4723, 747, 1308, 1276, 19817, 38, 724, 379, 13, 288, 5411, 1645, 813, 273, 14833, 342, 4336, 18, 20, 31, 5411, 309, 12, 3011, 1276, 19817, 9902, 13, 288, 309, 261, 3011, 1276, 19817, 4723, 747, 1308, 1276, 19817, 38, 724, 379, 13, 288, 1645, 813, 273, 14833, 342, 4336, 18, 20, 31, 5411, 309, 261, 957, 405, 813, 67, 3011, 13, 288, 7734, 327, 19817, 8585, 2107, 18, 476, 12, 588, 5576, 10663, 5411, 289, 469, 309, 261, 957, 411, 813, 67, 3011, 13, 288, 7734, 327, 19817, 8585, 2107, 18, 19601, 67, 476, 12, 588, 5576, 10663, 5411, 289, 5411, 327, 19817, 8585, 2107, 18, 7124, 12, 588, 5576, 10663, 3639, 289, 540, 202, 202, 5748, 14833, 67, 3011, 273, 19817, 9902, 18, 2107, 22, 5748, 12, 3011, 13, 380, 4336, 31, 3639, 309, 261, 81, 3503, 405, 14833, 67, 3011, 747, 261, 81, 3503, 422, 14833, 67, 3011, 597, 999, 71, 405, 374, 3719, 288, 1082, 565, 327, 19817, 8585, 2107, 18, 476, 12, 588, 5576, 10663, 202, 202, 97, 469, 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, 15908, 10340, 921, 1061, 67, 9625, 12, 7937, 10340, 921, 1308, 13, 288, 3639, 309, 261, 3011, 18, 291, 12616, 10756, 288, 540, 202, 2463, 1308, 31, 3639, 289, 7734, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 327, 18814, 7675, 2704, 8585, 2107, 12, 9625, 12443, 54, 10340, 950, 13, 1308, 10019, 3639, 289, 7734, 1525, 14833, 273, 6135, 16620, 5621, 7734, 309, 261, 3011, 1276, 19817, 4723, 747, 1308, 1276, 19817, 38, 724, 379, 13, 288, 5411, 1645, 813, 273, 14833, 342, 4336, 18, 20, 31, 5411, 309, 12, 3011, 1276, 19817, 9902, 13, 288, 309, 261, 3011, 1276, 19817, 4723, 747, 1308, 1276, 19817, 38, 724, 379, 13, 288, 1645, 813, 273, 14833, 2 ]
public void actionPerformed(final ActionEvent e){ AnActionEvent event=new AnActionEvent( new MouseEvent(ActionMenuItem.this,MouseEvent.MOUSE_PRESSED,0,e.getModifiers(),getWidth()/2,getHeight()/2,1,false), myContext, myPlace, myPresentation, ActionManager.getInstance(), e.getModifiers() );
public void actionPerformed(final ActionEvent e) { AnActionEvent event = new AnActionEvent( new MouseEvent(ActionMenuItem.this, MouseEvent.MOUSE_PRESSED, 0, e.getModifiers(), getWidth() / 2, getHeight() / 2, 1, false), myContext, myPlace, myPresentation, ActionManager.getInstance(), e.getModifiers());
public void actionPerformed(final ActionEvent e){ AnActionEvent event=new AnActionEvent( new MouseEvent(ActionMenuItem.this,MouseEvent.MOUSE_PRESSED,0,e.getModifiers(),getWidth()/2,getHeight()/2,1,false), myContext, myPlace, myPresentation, ActionManager.getInstance(), e.getModifiers() ); myAction.beforeActionPerformedUpdate(event); if(myPresentation.isEnabled()){ ActionManagerEx actionManager = ActionManagerEx.getInstanceEx(); actionManager.fireBeforeActionPerformed(myAction, myContext); Component component = ((Component)event.getDataContext().getData(DataConstantsEx.CONTEXT_COMPONENT)); if (component != null && !isInTree(component)) { return; } myAction.actionPerformed(event); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/f1ef520e896ad18420fde80fe64e28b57c5a9de6/ActionMenuItem.java/buggy/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionMenuItem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6385, 19641, 425, 15329, 1377, 1922, 1803, 1133, 871, 33, 2704, 1922, 1803, 1133, 12, 3639, 394, 17013, 1133, 12, 1803, 12958, 18, 2211, 16, 9186, 1133, 18, 5980, 8001, 67, 27388, 16, 20, 16, 73, 18, 588, 11948, 9334, 588, 2384, 1435, 19, 22, 16, 588, 2686, 1435, 19, 22, 16, 21, 16, 5743, 3631, 3639, 3399, 1042, 16, 3639, 3399, 6029, 16, 3639, 3399, 6351, 367, 16, 3639, 4382, 1318, 18, 588, 1442, 9334, 3639, 425, 18, 588, 11948, 1435, 1377, 11272, 1377, 3399, 1803, 18, 5771, 19449, 1891, 12, 2575, 1769, 1377, 309, 12, 4811, 6351, 367, 18, 291, 1526, 10756, 95, 3639, 4382, 1318, 424, 1301, 1318, 273, 4382, 1318, 424, 18, 588, 1442, 424, 5621, 3639, 1301, 1318, 18, 12179, 4649, 19449, 12, 4811, 1803, 16, 3399, 1042, 1769, 3639, 5435, 1794, 273, 14015, 1841, 13, 2575, 18, 588, 751, 1042, 7675, 588, 751, 12, 751, 2918, 424, 18, 13181, 67, 22922, 10019, 3639, 309, 261, 4652, 480, 446, 597, 401, 291, 382, 2471, 12, 4652, 3719, 288, 1850, 327, 31, 3639, 289, 3639, 3399, 1803, 18, 1128, 13889, 12, 2575, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6385, 19641, 425, 15329, 1377, 1922, 1803, 1133, 871, 33, 2704, 1922, 1803, 1133, 12, 3639, 394, 17013, 1133, 12, 1803, 12958, 18, 2211, 16, 9186, 1133, 18, 5980, 8001, 67, 27388, 16, 20, 16, 73, 18, 588, 11948, 9334, 588, 2384, 1435, 19, 22, 16, 588, 2686, 1435, 19, 22, 16, 21, 16, 5743, 3631, 3639, 3399, 1042, 16, 3639, 3399, 6029, 16, 3639, 3399, 6351, 367, 16, 3639, 4382, 1318, 18, 588, 1442, 9334, 3639, 425, 18, 588, 11948, 1435, 1377, 11272, 1377, 3399, 1803, 18, 5771, 19449, 1891, 12, 2575, 1769, 1377, 309, 12, 4811, 6351, 367, 18, 291, 1526, 10756, 95, 3639, 4382, 1318, 424, 1301, 1318, 273, 4382, 1318, 2 ]
info.setUseDefaultBuildCmd(isDefaultBuildCmd); info.setStopOnError(isStopOnError);
info.setUseDefaultBuildCmd(isDefaultBuildCmd()); info.setStopOnError(isStopOnError());
public void build(IProgressMonitor monitor) throws CoreException { final String builderID = manager.getBuilderID(targetBuilderID); final HashMap infoMap = new HashMap(); IMakeBuilderInfo info = MakeCorePlugin.createBuildInfo(infoMap, builderID); info.setBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND, getBuildAttribute(IMakeCommonBuildInfo.BUILD_COMMAND, "make")); //$NON-NLS-1$ info.setBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, getBuildAttribute(IMakeCommonBuildInfo.BUILD_ARGUMENTS, "")); //$NON-NLS-1$ info.setUseDefaultBuildCmd(isDefaultBuildCmd); info.setStopOnError(isStopOnError); info.setFullBuildEnable(true); info.setBuildAttribute(IMakeBuilderInfo.BUILD_TARGET_FULL, getBuildAttribute(IMakeTarget.BUILD_TARGET, "")); //$NON-NLS-1$ info.setEnvironment(buildEnvironment); info.setAppendEnvironment(appendEnvironment); if (container != null) { info.setBuildAttribute(IMakeCommonBuildInfo.BUILD_LOCATION, container.getFullPath().toString()); } IMakeBuilderInfo projectInfo = MakeCorePlugin.createBuildInfo(getProject(), builderID); info.setErrorParsers(projectInfo.getErrorParsers()); IWorkspaceRunnable op = new IWorkspaceRunnable() { /* * (non-Javadoc) * * @see org.eclipse.core.resources.IWorkspaceRunnable#run(org.eclipse.core.runtime.IProgressMonitor) */ public void run(IProgressMonitor monitor) throws CoreException { if (runAllBuidlers) { ICommand[] commands = project.getDescription().getBuildSpec(); monitor.beginTask("", commands.length); //$NON-NLS-1$ for (int i = 0; i < commands.length; i++) { if (commands[i].getBuilderName().equals(builderID)) { project.build(IncrementalProjectBuilder.FULL_BUILD, builderID, infoMap, new SubProgressMonitor(monitor, 1)); } else { project.build(IncrementalProjectBuilder.FULL_BUILD, commands[i].getBuilderName(), commands[i].getArguments(), new SubProgressMonitor(monitor, 1)); } } monitor.done(); } else { project.build(IncrementalProjectBuilder.FULL_BUILD, builderID, infoMap, monitor); } } }; try { ResourcesPlugin.getWorkspace().run(op, monitor); } finally { monitor.done(); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/aee9835a95500f3b5a2d1e1b31befcd3ea2c2e2f/MakeTarget.java/buggy/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/MakeTarget.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1361, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 6385, 514, 2089, 734, 273, 3301, 18, 588, 1263, 734, 12, 3299, 1263, 734, 1769, 202, 202, 6385, 4317, 1123, 863, 273, 394, 4317, 5621, 202, 202, 3445, 911, 1263, 966, 1123, 273, 4344, 4670, 3773, 18, 2640, 3116, 966, 12, 1376, 863, 16, 2089, 734, 1769, 202, 202, 1376, 18, 542, 3116, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 19104, 16, 21122, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 19104, 16, 315, 6540, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1376, 18, 542, 3116, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 18311, 55, 16, 21122, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 18311, 55, 16, 1408, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1376, 18, 542, 3727, 1868, 3116, 5931, 12, 291, 1868, 3116, 5931, 1769, 202, 202, 1376, 18, 542, 4947, 11427, 12, 291, 4947, 11427, 1769, 202, 202, 1376, 18, 542, 5080, 3116, 8317, 12, 3767, 1769, 202, 202, 1376, 18, 542, 3116, 1499, 12, 3445, 911, 1263, 966, 18, 20215, 67, 16374, 67, 18111, 16, 21122, 1499, 12, 3445, 911, 2326, 18, 20215, 67, 16374, 16, 1408, 10019, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1376, 18, 542, 5494, 12, 3510, 5494, 1769, 202, 202, 1376, 18, 542, 5736, 5494, 12, 6923, 5494, 1769, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1361, 12, 45, 5491, 7187, 6438, 13, 1216, 30015, 288, 202, 202, 6385, 514, 2089, 734, 273, 3301, 18, 588, 1263, 734, 12, 3299, 1263, 734, 1769, 202, 202, 6385, 4317, 1123, 863, 273, 394, 4317, 5621, 202, 202, 3445, 911, 1263, 966, 1123, 273, 4344, 4670, 3773, 18, 2640, 3116, 966, 12, 1376, 863, 16, 2089, 734, 1769, 202, 202, 1376, 18, 542, 3116, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 19104, 16, 21122, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 20215, 67, 19104, 16, 315, 6540, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 1376, 18, 542, 3116, 1499, 12, 3445, 911, 6517, 3116, 966, 18, 2 ]
logger.info("Restarting: " + tid + " (" + tps.getName() + ")");
void restartUnloaded() { logger.info("Restarting unloaded transforms..."); for (TransformPersistentState tps : getUnloaded()) { Tid tid = tps.getTid(); logger.info("Restarting: " + tid + " (" + tps.getName() + ")"); try { instantiate(tps.getName(), tid, null, false); logger.info("Restarted: " + tid); } catch (Exception exn) { logger.warn("Could not restart: " + tid, exn); } } }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/45fd611a7df254fb4d78ae5bcea6cef0e5b88adf/TransformManagerImpl.java/clean/mvvm/main/com/metavize/mvvm/engine/TransformManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 7870, 984, 4230, 1435, 565, 288, 3639, 1194, 18, 1376, 2932, 15057, 310, 640, 4230, 13680, 7070, 1769, 3639, 364, 261, 4059, 11906, 1119, 268, 1121, 294, 10833, 4230, 10756, 288, 5411, 399, 350, 11594, 273, 268, 1121, 18, 588, 56, 350, 5621, 13491, 775, 288, 7734, 10275, 12, 88, 1121, 18, 17994, 9334, 11594, 16, 446, 16, 629, 1769, 7734, 1194, 18, 1376, 2932, 15057, 329, 30, 315, 397, 11594, 1769, 5411, 289, 1044, 261, 503, 431, 82, 13, 288, 7734, 1194, 18, 8935, 2932, 4445, 486, 7870, 30, 315, 397, 11594, 16, 431, 82, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 7870, 984, 4230, 1435, 565, 288, 3639, 1194, 18, 1376, 2932, 15057, 310, 640, 4230, 13680, 7070, 1769, 3639, 364, 261, 4059, 11906, 1119, 268, 1121, 294, 10833, 4230, 10756, 288, 5411, 399, 350, 11594, 273, 268, 1121, 18, 588, 56, 350, 5621, 13491, 775, 288, 7734, 10275, 12, 88, 1121, 18, 17994, 9334, 11594, 16, 446, 16, 629, 1769, 7734, 1194, 18, 1376, 2932, 15057, 329, 30, 315, 397, 11594, 1769, 5411, 289, 1044, 261, 503, 431, 82, 13, 288, 7734, 1194, 18, 8935, 2932, 4445, 486, 7870, 30, 315, 397, 11594, 16, 431, 82, 1769, 5411, 289, 3639, 289, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
protected Region createTempTopicRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory) { return new TempTopicRegion(this,destinationStatistics, memoryManager, taskRunnerFactory);
protected Region createTempTopicRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory, DestinationFactory destinationFactory) { return new TempTopicRegion(this,destinationStatistics, memoryManager, taskRunnerFactory, destinationFactory);
protected Region createTempTopicRegion(UsageManager memoryManager, TaskRunnerFactory taskRunnerFactory) { return new TempTopicRegion(this,destinationStatistics, memoryManager, taskRunnerFactory); }
11783 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11783/bfaff9b37c815c32ec18911bf038d03724c753d4/RegionBroker.java/clean/activemq-core/src/main/java/org/apache/activemq/broker/region/RegionBroker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 9164, 752, 7185, 6657, 5165, 12, 5357, 1318, 3778, 1318, 16, 3837, 9709, 1733, 1562, 9709, 1733, 13, 288, 3639, 327, 394, 16380, 6657, 5165, 12, 2211, 16, 10590, 8569, 16, 3778, 1318, 16, 1562, 9709, 1733, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4750, 9164, 752, 7185, 6657, 5165, 12, 5357, 1318, 3778, 1318, 16, 3837, 9709, 1733, 1562, 9709, 1733, 13, 288, 3639, 327, 394, 16380, 6657, 5165, 12, 2211, 16, 10590, 8569, 16, 3778, 1318, 16, 1562, 9709, 1733, 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 ]
int state = scan.nextToken();
if(doNextScan) state = scan.nextToken(); else doNextScan = true;
private void page() { if (LOG.isDebugEnabled()) LOG.debug("parse: page"); if (finalPass) { out.println(); out.print("class "); out.print(className); out.println(" extends GroovyPage {"); out.println("public Object run() {"); } else { out.println("import org.codehaus.groovy.grails.web.pages.GroovyPage"); out.println("import org.codehaus.groovy.grails.web.taglib.*"); } loop: for (;;) { int state = scan.nextToken(); switch (state) { case EOF: break loop; case HTML: html(); break; case JEXPR: expr(); break; case JSCRIPT: script(false); break; case JDIRECT: direct(); break; case JDECLAR: declare(false); break; case GEXPR: expr(); break; case GSCRIPT: script(true); break; case GDIRECT: direct(); break; case GDECLAR: declare(true); break; case GSTART_TAG: startTag(); break; case GEND_TAG: endTag(); break; } } if (finalPass) { out.println("}"); out.println("}"); } } // page()
46315 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46315/7df22d79d79ce25f8d3ff77e491936cfa7cc90df/Parse.java/clean/grails/src/web/org/codehaus/groovy/grails/web/pages/Parse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1363, 1435, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 2018, 18, 4148, 2932, 2670, 30, 1363, 8863, 3639, 309, 261, 6385, 6433, 13, 288, 5411, 596, 18, 8222, 5621, 5411, 596, 18, 1188, 2932, 1106, 315, 1769, 5411, 596, 18, 1188, 12, 12434, 1769, 5411, 596, 18, 8222, 2932, 3231, 20841, 1964, 288, 8863, 5411, 596, 18, 8222, 2932, 482, 1033, 1086, 1435, 288, 8863, 3639, 289, 469, 288, 5411, 596, 18, 8222, 2932, 5666, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 4875, 18, 7267, 18, 43, 12859, 1964, 8863, 5411, 596, 18, 8222, 2932, 5666, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 4875, 18, 2692, 2941, 4509, 8863, 3639, 289, 3639, 2798, 30, 364, 261, 25708, 13, 288, 5411, 309, 12, 2896, 2134, 7972, 13, 919, 273, 4135, 18, 4285, 1345, 5621, 469, 741, 2134, 7972, 273, 638, 31, 2398, 1620, 261, 2019, 13, 288, 7734, 648, 6431, 30, 898, 2798, 31, 7734, 648, 3982, 30, 1729, 5621, 898, 31, 7734, 648, 804, 2294, 8025, 30, 3065, 5621, 898, 31, 7734, 648, 804, 10885, 30, 2728, 12, 5743, 1769, 898, 31, 7734, 648, 804, 17541, 30, 2657, 5621, 898, 31, 7734, 648, 804, 23956, 985, 30, 14196, 12, 5743, 1769, 898, 31, 7734, 648, 611, 2294, 8025, 30, 3065, 5621, 898, 31, 7734, 648, 611, 10885, 30, 2728, 12, 3767, 1769, 898, 31, 7734, 648, 611, 17541, 30, 2657, 5621, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1363, 1435, 288, 3639, 309, 261, 4842, 18, 291, 2829, 1526, 10756, 2018, 18, 4148, 2932, 2670, 30, 1363, 8863, 3639, 309, 261, 6385, 6433, 13, 288, 5411, 596, 18, 8222, 5621, 5411, 596, 18, 1188, 2932, 1106, 315, 1769, 5411, 596, 18, 1188, 12, 12434, 1769, 5411, 596, 18, 8222, 2932, 3231, 20841, 1964, 288, 8863, 5411, 596, 18, 8222, 2932, 482, 1033, 1086, 1435, 288, 8863, 3639, 289, 469, 288, 5411, 596, 18, 8222, 2932, 5666, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 4875, 18, 7267, 18, 43, 12859, 1964, 8863, 5411, 596, 18, 8222, 2932, 5666, 2358, 18, 710, 3395, 407, 18, 75, 12859, 18, 2752, 14573, 18, 2 ]
try { position++; bCodeStream[classFileOffset++] = OPC_invokespecial; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokespecial);
if (classFileOffset + 2 >= bCodeStream.length) { resizeByteArray();
final public void invokespecial(MethodBinding methodBinding) { if (DEBUG) System.out.println(position + "\t\tinvokespecial:"+methodBinding); //$NON-NLS-1$ // initialized to 1 to take into account this immediately countLabels = 0; int argCount = 1; int id; try { position++; bCodeStream[classFileOffset++] = OPC_invokespecial; } catch (IndexOutOfBoundsException e) { resizeByteArray(OPC_invokespecial); } writeUnsignedShort(constantPool.literalIndex(methodBinding)); if (methodBinding.isConstructor() && methodBinding.declaringClass.isNestedType()) { // enclosing instances TypeBinding[] syntheticArgumentTypes = methodBinding.declaringClass.syntheticEnclosingInstanceTypes(); if (syntheticArgumentTypes != null) { for (int i = 0, max = syntheticArgumentTypes.length; i < max; i++) { if (((id = syntheticArgumentTypes[i].id) == T_double) || (id == T_long)) { argCount += 2; } else { argCount++; } } } // outer local variables SyntheticArgumentBinding[] syntheticArguments = methodBinding.declaringClass.syntheticOuterLocalVariables(); if (syntheticArguments != null) { for (int i = 0, max = syntheticArguments.length; i < max; i++) { if (((id = syntheticArguments[i].type.id) == T_double) || (id == T_long)) { argCount += 2; } else { argCount++; } } } } for (int i = methodBinding.parameters.length - 1; i >= 0; i--) if (((id = methodBinding.parameters[i].id) == T_double) || (id == T_long)) argCount += 2; else argCount++; if (((id = methodBinding.returnType.id) == T_double) || (id == T_long)) stackDepth += (2 - argCount); else if (id == T_void) stackDepth -= argCount; else stackDepth += (1 - argCount); if (stackDepth > stackMax) stackMax = stackDepth;}
10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/3a562aaf09f9f323b583086b80b4683378886606/CodeStream.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 727, 1071, 918, 18058, 705, 649, 12, 1305, 5250, 707, 5250, 13, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 5768, 601, 281, 705, 649, 2773, 15, 2039, 5250, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 759, 6454, 358, 404, 358, 4862, 1368, 2236, 333, 225, 7636, 202, 1883, 5888, 273, 374, 31, 202, 474, 1501, 1380, 273, 404, 31, 202, 474, 612, 31, 202, 698, 288, 202, 202, 3276, 9904, 31, 202, 202, 70, 1085, 1228, 63, 1106, 812, 2335, 9904, 65, 273, 531, 3513, 67, 5768, 601, 281, 705, 649, 31, 202, 97, 1044, 261, 30548, 425, 13, 288, 202, 202, 15169, 8826, 12, 51, 3513, 67, 5768, 601, 281, 705, 649, 1769, 202, 97, 202, 2626, 13290, 4897, 12, 14384, 2864, 18, 13107, 1016, 12, 2039, 5250, 10019, 202, 430, 261, 2039, 5250, 18, 291, 6293, 1435, 597, 707, 5250, 18, 8840, 14682, 18, 291, 8649, 559, 10756, 288, 202, 202, 759, 16307, 3884, 202, 202, 559, 5250, 8526, 25535, 1379, 2016, 273, 707, 5250, 18, 8840, 14682, 18, 11982, 16466, 21594, 1442, 2016, 5621, 202, 202, 430, 261, 11982, 16466, 1379, 2016, 480, 446, 13, 288, 1082, 202, 1884, 261, 474, 277, 273, 374, 16, 943, 273, 25535, 1379, 2016, 18, 2469, 31, 277, 411, 943, 31, 277, 27245, 288, 9506, 202, 430, 261, 12443, 350, 273, 25535, 1379, 2016, 63, 77, 8009, 350, 13, 422, 399, 67, 9056, 13, 747, 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, 727, 1071, 918, 18058, 705, 649, 12, 1305, 5250, 707, 5250, 13, 288, 202, 430, 261, 9394, 13, 2332, 18, 659, 18, 8222, 12, 3276, 397, 1548, 88, 64, 88, 5768, 601, 281, 705, 649, 2773, 15, 2039, 5250, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 202, 759, 6454, 358, 404, 358, 4862, 1368, 2236, 333, 225, 7636, 202, 1883, 5888, 273, 374, 31, 202, 474, 1501, 1380, 273, 404, 31, 202, 474, 612, 31, 202, 698, 288, 202, 202, 3276, 9904, 31, 202, 202, 70, 1085, 1228, 63, 1106, 812, 2335, 9904, 65, 273, 531, 3513, 67, 5768, 601, 281, 705, 649, 31, 202, 97, 1044, 261, 30548, 425, 13, 288, 202, 202, 15169, 8826, 12, 51, 2 ]
return expr.eval( docs, set, null ); ValueSet values = new ValueSet(); NodeProxy current; NodeSet currentSet;
return expr.eval( context, docs, set, null ); values = new ValueSet();
public Value eval( DocumentSet docs, NodeSet context, NodeProxy node ) { if ( docs.getLength() == 0 ) return new ValueNodeSet( new ArraySet( 1 ) ); Value r; if ( context != null ) r = new ValueNodeSet( context ); else r = new ValueNodeSet( new ArraySet( 1 ) ); NodeSet set; Expression expr; for ( Iterator iter = steps.iterator(); iter.hasNext(); ) { set = (NodeSet) r.getNodeList(); expr = (Expression) iter.next(); if ( expr.returnsType() != Constants.TYPE_NODELIST ) { if ( expr instanceof Literal || expr instanceof IntNumber ) return expr.eval( docs, set, null ); ValueSet values = new ValueSet(); NodeProxy current; NodeSet currentSet; for ( Iterator iter2 = set.iterator(); iter2.hasNext(); ) { current = (NodeProxy)iter2.next(); currentSet = new SingleNodeSet(current); values.add( expr.eval( docs, currentSet, current ) ); } return values; } r = expr.eval( docs, set, node ); } return r; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/32e91f543a4cc859a507386b6fc4459018aeb3c6/PathExpr.java/clean/src/org/exist/xpath/PathExpr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1445, 5302, 12, 4319, 694, 3270, 16, 2029, 694, 819, 16, 2029, 3886, 756, 262, 288, 3639, 309, 261, 3270, 18, 588, 1782, 1435, 422, 374, 262, 5411, 327, 394, 1445, 907, 694, 12, 394, 1510, 694, 12, 404, 262, 11272, 3639, 1445, 436, 31, 3639, 309, 261, 819, 480, 446, 262, 5411, 436, 273, 394, 1445, 907, 694, 12, 819, 11272, 3639, 469, 5411, 436, 273, 394, 1445, 907, 694, 12, 394, 1510, 694, 12, 404, 262, 11272, 3639, 2029, 694, 444, 31, 3639, 5371, 3065, 31, 3639, 364, 261, 4498, 1400, 273, 6075, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 225, 262, 288, 5411, 444, 273, 261, 907, 694, 13, 436, 18, 588, 19914, 5621, 5411, 3065, 273, 261, 2300, 13, 1400, 18, 4285, 5621, 5411, 309, 261, 3065, 18, 6154, 559, 1435, 480, 5245, 18, 2399, 67, 8744, 7085, 262, 288, 7734, 309, 261, 3065, 1276, 14392, 747, 3065, 1276, 3094, 1854, 262, 10792, 327, 3065, 18, 8622, 12, 3270, 16, 444, 16, 446, 11272, 7734, 1445, 694, 924, 273, 394, 1445, 694, 5621, 7734, 2029, 3886, 783, 31, 7734, 2029, 694, 783, 694, 31, 7734, 364, 261, 4498, 1400, 22, 273, 444, 18, 9838, 5621, 1400, 22, 18, 5332, 2134, 5621, 225, 262, 288, 1171, 202, 2972, 273, 261, 907, 3886, 13, 2165, 22, 18, 4285, 5621, 1171, 202, 2972, 694, 273, 394, 10326, 907, 694, 12, 2972, 1769, 10792, 924, 18, 1289, 12, 3065, 18, 8622, 12, 3270, 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, 377, 1071, 1445, 5302, 12, 4319, 694, 3270, 16, 2029, 694, 819, 16, 2029, 3886, 756, 262, 288, 3639, 309, 261, 3270, 18, 588, 1782, 1435, 422, 374, 262, 5411, 327, 394, 1445, 907, 694, 12, 394, 1510, 694, 12, 404, 262, 11272, 3639, 1445, 436, 31, 3639, 309, 261, 819, 480, 446, 262, 5411, 436, 273, 394, 1445, 907, 694, 12, 819, 11272, 3639, 469, 5411, 436, 273, 394, 1445, 907, 694, 12, 394, 1510, 694, 12, 404, 262, 11272, 3639, 2029, 694, 444, 31, 3639, 5371, 3065, 31, 3639, 364, 261, 4498, 1400, 273, 6075, 18, 9838, 5621, 1400, 18, 5332, 2134, 5621, 225, 262, 288, 5411, 444, 273, 261, 907, 694, 13, 436, 18, 588, 19914, 2 ]
model1.getCursor().prev(); assertEquals("#0.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#0.1", "*/", model1.getCursor().current().getType());
model1.move(-2);
public void testQuoteBreaksComment() { model1.insertSlash(); model1.insertStar(); model1.insertStar(); model1.insertSlash(); model1.getCursor().prev(); assertEquals("#0.0", "/*", model1.getCursor().prevItem().getType()); assertEquals("#0.1", "*/", model1.getCursor().current().getType()); model1.insertQuote(); model1.getCursor().prev(); // /*#"*/ assertEquals("#1.1", ReducedToken.INSIDE_BLOCK_COMMENT, model1.getStateAtCurrent()); assertEquals("#1.2", ReducedToken.INSIDE_BLOCK_COMMENT, model1.getCursor().current().getState()); assertEquals("#1.1", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#1.2", ReducedToken.FREE, model1.getCursor().nextItem().getState()); model1.getCursor().prev(); // #/*"*/ model1.insertQuote(); assertEquals("#2.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#2.1", ReducedToken.INSIDE_QUOTE, model1.getCursor().current().getState()); assertEquals("#2.2", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#2.3", "/", model1.getCursor().current().getType()); assertEquals("#2.4", "*", model1.getCursor().nextItem().getType()); model1.getCursor().next(); // "/#*"*/ assertEquals("#3.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#3.1", ReducedToken.INSIDE_QUOTE, model1.getCursor().current().getState()); assertEquals("#3.2", ReducedToken.INSIDE_QUOTE, model1.getCursor().prevItem().getState()); assertEquals("#3.3", "*", model1.getCursor().current().getType()); assertEquals("#3.4", "\"", model1.getCursor().nextItem().getType()); model1.getCursor().next(); // "/*#"*/ assertEquals("#4.0", ReducedToken.INSIDE_QUOTE, model1.getStateAtCurrent()); assertEquals("#4.1", ReducedToken.FREE, model1.getCursor().current().getState()); assertEquals("#4.2", ReducedToken.INSIDE_QUOTE, model1.getCursor().prevItem().getState()); assertEquals("#4.3", "\"", model1.getCursor().current().getType()); assertEquals("#4.4", "*", model1.getCursor().nextItem().getType()); assertEquals("#4.5", ReducedToken.FREE, model1.getCursor().nextItem().getState()); assertTrue("#4.6", model1.getCursor().current().isClosed()); model1.getCursor().next(); // "/*"#*/ assertEquals("#5.0", ReducedToken.FREE, model1.getStateAtCurrent()); assertEquals("#5.1", ReducedToken.FREE, model1.getCursor().current().getState()); assertEquals("#5.2", ReducedToken.FREE, model1.getCursor().prevItem().getState()); assertEquals("#5.3", "*", model1.getCursor().current().getType()); assertEquals("#5.4", "/", model1.getCursor().nextItem().getType()); assertEquals("#5.5", ReducedToken.FREE, model1.getCursor().nextItem().getState()); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/28c4be6b04d5867405916840b451c47e4acad060/ReducedModelTest.java/clean/drjava/src/edu/rice/cs/drjava/ReducedModelTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10257, 26806, 4469, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 588, 6688, 7675, 10001, 5621, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 20, 3113, 2206, 14, 3113, 938, 21, 18, 588, 6688, 7675, 10001, 1180, 7675, 588, 559, 10663, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 21, 3113, 315, 5549, 3113, 938, 21, 18, 588, 6688, 7675, 2972, 7675, 588, 559, 10663, 1082, 202, 2284, 21, 18, 6387, 10257, 5621, 25083, 202, 2284, 21, 18, 588, 6688, 7675, 10001, 5621, 1082, 202, 759, 1748, 17133, 5549, 1082, 202, 11231, 8867, 2932, 7, 21, 18, 21, 3113, 4621, 26372, 1345, 18, 706, 26498, 67, 11403, 67, 12200, 16, 6862, 25083, 938, 21, 18, 588, 1119, 861, 3935, 10663, 25083, 202, 11231, 8867, 2932, 7, 21, 18, 22, 3113, 4621, 26372, 1345, 18, 706, 26498, 67, 11403, 67, 12200, 16, 6862, 25083, 938, 21, 18, 588, 6688, 7675, 2972, 7675, 588, 1119, 10663, 1082, 202, 11231, 8867, 2932, 7, 21, 18, 21, 3113, 4621, 26372, 1345, 18, 28104, 16, 6862, 25083, 938, 21, 18, 588, 6688, 7675, 10001, 1180, 7675, 588, 1119, 10663, 25083, 202, 11231, 8867, 2932, 7, 21, 18, 22, 3113, 4621, 26372, 1345, 18, 28104, 16, 6862, 25083, 938, 21, 18, 588, 6688, 7675, 4285, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 10257, 26806, 4469, 1435, 202, 202, 95, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 18379, 5621, 1082, 202, 2284, 21, 18, 6387, 11033, 5621, 1082, 202, 2284, 21, 18, 588, 6688, 7675, 10001, 5621, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 20, 3113, 2206, 14, 3113, 938, 21, 18, 588, 6688, 7675, 10001, 1180, 7675, 588, 559, 10663, 1082, 202, 11231, 8867, 2932, 7, 20, 18, 21, 3113, 315, 5549, 3113, 938, 21, 18, 588, 6688, 7675, 2972, 7675, 588, 559, 10663, 1082, 202, 2284, 21, 18, 6387, 10257, 5621, 25083, 202, 2284, 21, 18, 588, 6688, 7675, 2 ]
pc.fill = pc.BOTH;
pc.fill = GridBagConstraints.BOTH;
public C3DDispatcherFrame() { super("Collaborative 3D Environment - Dispatcher"); setBackground(Color.lightGray); addWindowListener(new MyWindowListener()); setFont(f_standard); MenuBar mb = new MenuBar(); Menu m_file = new Menu("File", false); m_file.setFont(f_standard); mi_exit = new MenuItem("Exit"); mi_clear = new MenuItem("Clear log"); mi_benchmark = new MenuItem("Benchmarks results"); // Font mi_clear.setFont(f_standard); mi_exit.setFont(f_standard); mi_benchmark.setFont(f_standard); // Actions mi_exit.addActionListener(this); mi_clear.addActionListener(this); mi_benchmark.addActionListener(this); m_file.add(mi_clear); m_file.addSeparator(); m_file.add(mi_exit); m_file.addSeparator(); m_file.add(mi_benchmark); mb.add(m_file); setMenuBar(mb); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); setLayout(gridbag); Label l_header = new Label("C3D Dispatcher", Label.CENTER); l_header.setFont( new Font("SansSerif", Font.ITALIC + Font.BOLD, 18)); c.insets = new Insets(12, 10, 0, 10); c.weightx = 1.0; c.gridx = 0; c.gridy = 0; c.weighty = 0.0; c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(l_header, c); add(l_header); String s_localhost = ""; try { s_localhost = InetAddress.getLocalHost().getHostName(); } catch (UnknownHostException e) { s_localhost = "unknown!"; } Label l_machine = new Label( "on machine: " + s_localhost + " (" + System.getProperty("os.name") + " " + System.getProperty("os.version") + ")"); c.insets = new Insets(0, 10, 5, 10); c.gridy = 1; gridbag.setConstraints(l_machine, c); add(l_machine); ta_log = new TextArea(10, 35); ta_log.setEditable(false); c.anchor = GridBagConstraints.CENTER; c.weighty = 1.0; c.gridy++; c.fill = GridBagConstraints.BOTH; gridbag.setConstraints(ta_log, c); add(ta_log); Label l_users = new Label("List of current users:", Label.LEFT); c.gridy++; c.insets = new Insets(5, 10, 0, 10); c.anchor = GridBagConstraints.WEST; gridbag.setConstraints(l_users, c); add(l_users); li_users = new List(5); c.gridy++; gridbag.setConstraints(li_users, c); add(li_users); //----------------------------- // Panel for engines Panel p_eng = new Panel(); GridBagLayout p_gl = new GridBagLayout(); GridBagConstraints pc = new GridBagConstraints(); p_eng.setLayout(p_gl); c.gridy++; c.fill = c.BOTH; c.gridwidth = c.REMAINDER; //c.weightx=1.0; // p_eng.setBackground(Color.blue); gridbag.setConstraints(p_eng, c); add(p_eng); Label l_engines = new Label("Available engines:", Label.CENTER); // pc.anchor=pc.CENTER; // pc.anchor=pc.center; pc.weightx = 1.0; pc.weighty = 1.0; pc.gridx = 0; pc.gridy = 0; pc.insets = new Insets(5, 5, 5, 5); pc.gridwidth = pc.RELATIVE; p_gl.setConstraints(l_engines, pc); p_eng.add(l_engines); Label l_used = new Label("Engines used:", Label.CENTER); pc.gridx = 1; pc.gridwidth = pc.REMAINDER; p_gl.setConstraints(l_used, pc); p_eng.add(l_used); li_enginesAvailable = new List(5); li_enginesAvailable.setMultipleMode(true); pc.fill = pc.BOTH; pc.gridy = 1; pc.gridx = 0; pc.gridwidth = pc.RELATIVE; p_gl.setConstraints(li_enginesAvailable, pc); p_eng.add(li_enginesAvailable); li_enginesUsed = new List(5); li_enginesUsed.setMultipleMode(true); pc.gridx = 1; pc.gridwidth = pc.REMAINDER; p_gl.setConstraints(li_enginesUsed, pc); p_eng.add(li_enginesUsed); b_addEng.addActionListener(this); pc.fill = pc.NONE; pc.gridx = 0; pc.gridy = 2; pc.gridwidth = pc.RELATIVE; p_gl.setConstraints(b_addEng, pc); p_eng.add(b_addEng); b_rmEng.addActionListener(this); pc.gridwidth = pc.REMAINDER; pc.gridx = 1; p_gl.setConstraints(b_rmEng, pc); p_eng.add(b_rmEng); pack(); setVisible(true); toFront(); }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/3300f7890312c39f67f23d650ba78b3f068cd88a/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 385, 23, 40, 6681, 3219, 1435, 202, 202, 95, 1082, 202, 9565, 2932, 22894, 280, 1535, 890, 40, 7518, 300, 16710, 8863, 1082, 202, 542, 8199, 12, 2957, 18, 5099, 23521, 1769, 1082, 202, 1289, 3829, 2223, 12, 2704, 8005, 3829, 2223, 10663, 1082, 202, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 4599, 5190, 4903, 273, 394, 9809, 5190, 5621, 1082, 202, 4599, 312, 67, 768, 273, 394, 9809, 2932, 812, 3113, 629, 1769, 1082, 202, 81, 67, 768, 18, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 9197, 67, 8593, 273, 394, 25085, 2932, 6767, 8863, 1082, 202, 9197, 67, 8507, 273, 394, 25085, 2932, 9094, 613, 8863, 1082, 202, 9197, 67, 70, 9737, 273, 394, 25085, 2932, 30672, 87, 1686, 8863, 1082, 202, 759, 10063, 1082, 202, 9197, 67, 8507, 18, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 9197, 67, 8593, 18, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 9197, 67, 70, 9737, 18, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 759, 18765, 1082, 202, 9197, 67, 8593, 18, 1289, 1803, 2223, 12, 2211, 1769, 1082, 202, 9197, 67, 8507, 18, 1289, 1803, 2223, 12, 2211, 1769, 1082, 202, 9197, 67, 70, 9737, 18, 1289, 1803, 2223, 12, 2211, 1769, 1082, 202, 81, 67, 768, 18, 1289, 12, 9197, 67, 8507, 1769, 1082, 202, 81, 67, 768, 18, 1289, 6581, 5621, 1082, 202, 81, 67, 768, 18, 1289, 12, 9197, 67, 8593, 1769, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 385, 23, 40, 6681, 3219, 1435, 202, 202, 95, 1082, 202, 9565, 2932, 22894, 280, 1535, 890, 40, 7518, 300, 16710, 8863, 1082, 202, 542, 8199, 12, 2957, 18, 5099, 23521, 1769, 1082, 202, 1289, 3829, 2223, 12, 2704, 8005, 3829, 2223, 10663, 1082, 202, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 4599, 5190, 4903, 273, 394, 9809, 5190, 5621, 1082, 202, 4599, 312, 67, 768, 273, 394, 9809, 2932, 812, 3113, 629, 1769, 1082, 202, 81, 67, 768, 18, 542, 5711, 12, 74, 67, 10005, 1769, 1082, 202, 9197, 67, 8593, 273, 394, 25085, 2932, 6767, 8863, 1082, 202, 9197, 67, 8507, 273, 394, 25085, 2932, 9094, 613, 8863, 1082, 202, 9197, 67, 2 ]
+ rsmd.getColumnCount()
+ getRsmd().getColumnCount()
protected void columnCountSanityCheck() throws SQLException, IllegalStateException { if (rsmd.getColumnCount() != givenColCount) { throw new IllegalStateException( "The SQL query returned " + rsmd.getColumnCount() + " columns, but the number of columns originally specified was " + givenColCount + "."); } }
53907 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53907/0dc209bdf2c42ec0489b13de45c6cef8bc167ac6/DelayedWebResultSet.java/buggy/src/ca/sqlpower/sql/DelayedWebResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 22429, 55, 10417, 1564, 1435, 1216, 6483, 16, 5477, 288, 202, 202, 430, 261, 5453, 1264, 18, 588, 1494, 1380, 1435, 480, 864, 914, 1380, 13, 288, 1082, 202, 12849, 394, 5477, 12, 9506, 202, 6, 1986, 3063, 843, 2106, 315, 6862, 202, 15, 3597, 1264, 18, 588, 1494, 1380, 1435, 6862, 202, 15, 315, 2168, 16, 1496, 326, 1300, 434, 2168, 24000, 1269, 1703, 315, 6862, 202, 15, 864, 914, 1380, 6862, 202, 15, 4585, 1769, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 22429, 55, 10417, 1564, 1435, 1216, 6483, 16, 5477, 288, 202, 202, 430, 261, 5453, 1264, 18, 588, 1494, 1380, 1435, 480, 864, 914, 1380, 13, 288, 1082, 202, 12849, 394, 5477, 12, 9506, 202, 6, 1986, 3063, 843, 2106, 315, 6862, 202, 15, 3597, 1264, 18, 588, 1494, 1380, 1435, 6862, 202, 15, 315, 2168, 16, 1496, 326, 1300, 434, 2168, 24000, 1269, 1703, 315, 6862, 202, 15, 864, 914, 1380, 6862, 202, 15, 4585, 1769, 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 ]
if(repositoryVersionCombo.getSelectionIndex() >= 0) {
if (repositoryVersionCombo.getSelectionIndex() >= 0) {
public void widgetSelected(SelectionEvent e) { if(repositoryVersionCombo.getSelectionIndex() >= 0) { setVersion(repositoryVersionCombo.getItem(repositoryVersionCombo.getSelectionIndex())); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ebcf854e71232e41a2557e93c8c36aa8b3c5bcef/BugzillaRepositorySettingsPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositorySettingsPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 430, 12, 9071, 1444, 16156, 18, 588, 6233, 1016, 1435, 1545, 374, 13, 288, 6862, 202, 542, 1444, 12, 9071, 1444, 16156, 18, 588, 1180, 12, 9071, 1444, 16156, 18, 588, 6233, 1016, 1435, 10019, 9506, 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, 0, 0, 0, 0, 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, 1875, 202, 482, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 9506, 202, 430, 12, 9071, 1444, 16156, 18, 588, 6233, 1016, 1435, 1545, 374, 13, 288, 6862, 202, 542, 1444, 12, 9071, 1444, 16156, 18, 588, 1180, 12, 9071, 1444, 16156, 18, 588, 6233, 1016, 1435, 10019, 9506, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
GridHandle gridHandle = newGridItem( name ); GridItem grid = (GridItem) gridHandle.getElement( ); columnNum = columnNum >= 0 ? columnNum : 0; rowNum = rowNum >= 0 ? rowNum : 0; for ( int i = 0; i < columnNum; i++ ) { TableColumn column = new TableColumn( ); grid.getSlot( GridItem.COLUMN_SLOT ).add( column ); column.setContainer( grid, GridItem.COLUMN_SLOT ); } for ( int i = 0; i < rowNum; i++ ) { TableRow row = (TableRow) newTableRow( columnNum ).getElement( ); grid.getSlot( GridItem.ROW_SLOT ).add( row ); row.setContainer( grid, GridItem.ROW_SLOT ); } return gridHandle;
GridItem element = new GridItem( name ); module.makeUniqueName( element ); return element.handle( module );
public GridHandle newGridItem( String name, int columnNum, int rowNum ) { GridHandle gridHandle = newGridItem( name ); GridItem grid = (GridItem) gridHandle.getElement( ); columnNum = columnNum >= 0 ? columnNum : 0; rowNum = rowNum >= 0 ? rowNum : 0; for ( int i = 0; i < columnNum; i++ ) { TableColumn column = new TableColumn( ); grid.getSlot( GridItem.COLUMN_SLOT ).add( column ); column.setContainer( grid, GridItem.COLUMN_SLOT ); } for ( int i = 0; i < rowNum; i++ ) { TableRow row = (TableRow) newTableRow( columnNum ).getElement( ); grid.getSlot( GridItem.ROW_SLOT ).add( row ); row.setContainer( grid, GridItem.ROW_SLOT ); } return gridHandle; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/8e1e14294a2d6b9a97fe8e9e3816b7c726ba3404/ElementFactory.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ElementFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7145, 3259, 394, 6313, 1180, 12, 514, 508, 16, 509, 1057, 2578, 16, 509, 1027, 2578, 262, 202, 95, 202, 202, 6313, 3259, 3068, 3259, 273, 394, 6313, 1180, 12, 508, 11272, 202, 202, 6313, 1180, 3068, 273, 261, 6313, 1180, 13, 3068, 3259, 18, 21336, 12, 11272, 202, 202, 2827, 2578, 273, 1057, 2578, 1545, 374, 692, 1057, 2578, 294, 374, 31, 202, 202, 492, 2578, 273, 1027, 2578, 1545, 374, 692, 1027, 2578, 294, 374, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1057, 2578, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 1388, 1494, 1057, 273, 394, 3555, 1494, 12, 11272, 1082, 202, 5222, 18, 588, 8764, 12, 7145, 1180, 18, 11009, 67, 55, 1502, 56, 262, 18, 1289, 12, 1057, 11272, 1082, 202, 2827, 18, 542, 2170, 12, 3068, 16, 7145, 1180, 18, 11009, 67, 55, 1502, 56, 11272, 202, 202, 97, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1027, 2578, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 30650, 1027, 273, 261, 30650, 13, 394, 30650, 12, 1057, 2578, 262, 18, 21336, 12, 11272, 1082, 202, 5222, 18, 588, 8764, 12, 7145, 1180, 18, 11226, 67, 55, 1502, 56, 262, 18, 1289, 12, 1027, 11272, 1082, 202, 492, 18, 542, 2170, 12, 3068, 16, 7145, 1180, 18, 11226, 67, 55, 1502, 56, 11272, 202, 202, 97, 202, 202, 2463, 3068, 3259, 31, 202, 97, 2, 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, 1, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7145, 3259, 394, 6313, 1180, 12, 514, 508, 16, 509, 1057, 2578, 16, 509, 1027, 2578, 262, 202, 95, 202, 202, 6313, 3259, 3068, 3259, 273, 394, 6313, 1180, 12, 508, 11272, 202, 202, 6313, 1180, 3068, 273, 261, 6313, 1180, 13, 3068, 3259, 18, 21336, 12, 11272, 202, 202, 2827, 2578, 273, 1057, 2578, 1545, 374, 692, 1057, 2578, 294, 374, 31, 202, 202, 492, 2578, 273, 1027, 2578, 1545, 374, 692, 1027, 2578, 294, 374, 31, 202, 202, 1884, 261, 509, 277, 273, 374, 31, 277, 411, 1057, 2578, 31, 277, 9904, 262, 202, 202, 95, 1082, 202, 1388, 1494, 1057, 273, 394, 3555, 1494, 12, 11272, 1082, 202, 5222, 18, 588, 8764, 12, 2 ]
} catch (Exception e) { throw JavaScriptException.wrapException(cx, scope, e);
} catch (Exception ex) { throw ScriptRuntime.throwAsUncheckedException(ex);
public Object call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) throws JavaScriptException { if (parmsLength < 0) { return callVarargs(cx, thisObj, args); } if (!isStatic) { // OPT: cache "clazz"? Class clazz = method != null ? method.getDeclaringClass() : ctor.getDeclaringClass(); while (!clazz.isInstance(thisObj)) { thisObj = thisObj.getPrototype(); if (thisObj == null || !useDynamicScope) { // Couldn't find an object to call this on. throw NativeGlobal.typeError1 ("msg.incompat.call", functionName, scope); } } } Object[] invokeArgs; if (parmsLength == args.length) { // Do not allocate new argument array if java arguments are // the same as the original js ones. invokeArgs = args; for (int i = 0; i != parmsLength; ++i) { Object arg = args[i]; Object converted = convertArg(cx, scope, arg, types[i]); if (arg != converted) { if (invokeArgs == args) { invokeArgs = (Object[])args.clone(); } invokeArgs[i] = converted; } } } else if (parmsLength == 0) { invokeArgs = ScriptRuntime.emptyArgs; } else { invokeArgs = new Object[parmsLength]; for (int i = 0; i != parmsLength; ++i) { Object arg = (i < args.length) ? args[i] : Undefined.instance; invokeArgs[i] = convertArg(cx, scope, arg, types[i]); } } Object result; if (invoker != null) { if (method == null) Context.codeBug(); try { result = invoker.invoke(thisObj, invokeArgs); } catch (Exception e) { throw JavaScriptException.wrapException(cx, scope, e); } } else { try { result = (method == null) ? ctor.newInstance(invokeArgs) : method.invoke(thisObj, invokeArgs); } catch (InvocationTargetException e) { throw JavaScriptException.wrapException(cx, scope, e); } catch (IllegalAccessException e) { throw WrappedException.wrapException(e); } catch (InstantiationException e) { throw WrappedException.wrapException(e); } } return hasVoidReturn ? Undefined.instance : result; }
12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/48b46eb3845fd6cf8fa13cd3def581f9a0ff4339/FunctionObject.java/clean/src/org/mozilla/javascript/FunctionObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 29927, 1782, 411, 374, 13, 288, 5411, 327, 745, 27232, 12, 71, 92, 16, 15261, 16, 833, 1769, 3639, 289, 3639, 309, 16051, 291, 5788, 13, 288, 5411, 368, 16456, 30, 1247, 315, 830, 3638, 6, 35, 5411, 1659, 4003, 273, 707, 480, 446, 692, 707, 18, 588, 3456, 14682, 1435, 29159, 294, 15120, 18, 588, 3456, 14682, 5621, 5411, 1323, 16051, 830, 3638, 18, 291, 1442, 12, 2211, 2675, 3719, 288, 7734, 15261, 273, 15261, 18, 588, 15846, 5621, 7734, 309, 261, 2211, 2675, 422, 446, 747, 401, 1202, 9791, 3876, 13, 288, 10792, 368, 14312, 82, 1404, 1104, 392, 733, 358, 745, 333, 603, 18, 10792, 604, 16717, 5160, 18, 723, 668, 21, 13491, 7566, 3576, 18, 267, 16239, 18, 1991, 3113, 14117, 16, 2146, 1769, 7734, 289, 5411, 289, 3639, 289, 3639, 1033, 8526, 4356, 2615, 31, 3639, 309, 261, 29927, 1782, 422, 833, 18, 2469, 13, 288, 5411, 368, 2256, 486, 10101, 394, 1237, 526, 309, 2252, 1775, 854, 5411, 368, 326, 1967, 487, 326, 2282, 3828, 5945, 18, 5411, 4356, 2615, 273, 833, 31, 5411, 364, 261, 474, 277, 273, 374, 31, 277, 480, 17902, 1782, 31, 965, 77, 13, 288, 7734, 1033, 1501, 273, 833, 63, 77, 15533, 7734, 1033, 5970, 273, 1765, 4117, 12, 71, 92, 16, 2146, 16, 1501, 16, 1953, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 745, 12, 1042, 9494, 16, 22780, 2146, 16, 22780, 15261, 16, 15604, 1033, 8526, 833, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 309, 261, 29927, 1782, 411, 374, 13, 288, 5411, 327, 745, 27232, 12, 71, 92, 16, 15261, 16, 833, 1769, 3639, 289, 3639, 309, 16051, 291, 5788, 13, 288, 5411, 368, 16456, 30, 1247, 315, 830, 3638, 6, 35, 5411, 1659, 4003, 273, 707, 480, 446, 692, 707, 18, 588, 3456, 14682, 1435, 29159, 294, 15120, 18, 588, 3456, 14682, 5621, 5411, 1323, 16051, 830, 3638, 18, 291, 1442, 12, 2211, 2675, 3719, 288, 7734, 15261, 273, 15261, 18, 588, 15846, 5621, 7734, 309, 261, 2211, 2675, 422, 446, 747, 401, 1202, 9791, 2 ]
faultData = createFault(FailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason);
faultData = createFault(OFailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason);
private void requireRecovery() { if (__log.isDebugEnabled()) __log.debug("ActivityRecovery: Invoke activity " + _self.aId + " requires recovery"); sendEvent(new ActivityFailureEvent(_failureReason)); final ActivityRecoveryChannel recoveryChannel = newChannel(ActivityRecoveryChannel.class); getBpelRuntimeContext().registerActivityForRecovery(recoveryChannel, _self.aId, _failureReason, _lastFailure, _failureData, new String[] { "retry", "cancel", "fault" }, _invoked - 1); object(false, new ActivityRecoveryChannelListener(recoveryChannel) { private static final long serialVersionUID = 8397883882810521685L; public void retry() { if (__log.isDebugEnabled()) __log.debug("ActivityRecovery: Retrying invoke activity " + _self.aId + " (user initiated)"); sendEvent(new ActivityRecoveryEvent("retry")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); instance(INVOKE.this); } public void cancel() { if (__log.isDebugEnabled()) __log.debug("ActivityRecovery: Cancelling invoke activity " + _self.aId + " (user initiated)"); sendEvent(new ActivityRecoveryEvent("cancel")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); _self.parent.completed(null, CompensationHandler.emptySet()); } public void fault(FaultData faultData) { if (__log.isDebugEnabled()) __log.debug("ActivityRecovery: Faulting invoke activity " + _self.aId + " (user initiated)"); sendEvent(new ActivityRecoveryEvent("fault")); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); if (faultData == null) faultData = createFault(FailureHandling.FAILURE_FAULT_NAME, _self.o, _failureReason); _self.parent.completed(faultData, CompensationHandler.emptySet()); } }.or(new TerminationChannelListener(_self.self) { private static final long serialVersionUID = 2148587381204858397L; public void terminate() { if (__log.isDebugEnabled()) __log.debug("ActivityRecovery: Cancelling invoke activity " + _self.aId + " (terminated by scope)"); getBpelRuntimeContext().unregisterActivityForRecovery(recoveryChannel); _self.parent.completed(null, CompensationHandler.emptySet()); } })); }
45373 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45373/5a424b5c30fb33ea6a31f42e354ed700333c104e/INVOKE.java/buggy/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/INVOKE.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2583, 11548, 1435, 288, 3639, 309, 261, 972, 1330, 18, 291, 2829, 1526, 10756, 5411, 1001, 1330, 18, 4148, 2932, 6193, 11548, 30, 14373, 5728, 315, 397, 389, 2890, 18, 69, 548, 397, 315, 4991, 11044, 8863, 3639, 1366, 1133, 12, 2704, 9621, 5247, 1133, 24899, 12251, 8385, 10019, 3639, 727, 9621, 11548, 2909, 11044, 2909, 273, 394, 2909, 12, 6193, 11548, 2909, 18, 1106, 1769, 3639, 2882, 84, 292, 5576, 1042, 7675, 4861, 6193, 1290, 11548, 12, 23963, 2909, 16, 389, 2890, 18, 69, 548, 16, 389, 12251, 8385, 16, 389, 2722, 5247, 16, 389, 12251, 751, 16, 5411, 394, 514, 8526, 288, 315, 9620, 3113, 315, 10996, 3113, 315, 643, 6, 19879, 389, 5768, 14276, 300, 404, 1769, 3639, 733, 12, 5743, 16, 394, 9621, 11548, 2909, 2223, 12, 23963, 2909, 13, 288, 5411, 3238, 760, 727, 1525, 30244, 273, 1725, 5520, 27, 5482, 23, 5482, 6030, 2163, 9401, 2313, 7140, 48, 31, 5411, 1071, 918, 3300, 1435, 288, 7734, 309, 261, 972, 1330, 18, 291, 2829, 1526, 10756, 10792, 1001, 1330, 18, 4148, 2932, 6193, 11548, 30, 9954, 310, 4356, 5728, 315, 397, 389, 2890, 18, 69, 548, 397, 315, 261, 1355, 27183, 2225, 1769, 7734, 1366, 1133, 12, 2704, 9621, 11548, 1133, 2932, 9620, 7923, 1769, 7734, 2882, 84, 292, 5576, 1042, 7675, 318, 4861, 6193, 1290, 11548, 12, 23963, 2909, 1769, 7734, 791, 12, 706, 17691, 41, 18, 2211, 1769, 5411, 289, 5411, 1071, 918, 3755, 1435, 288, 7734, 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, 2583, 11548, 1435, 288, 3639, 309, 261, 972, 1330, 18, 291, 2829, 1526, 10756, 5411, 1001, 1330, 18, 4148, 2932, 6193, 11548, 30, 14373, 5728, 315, 397, 389, 2890, 18, 69, 548, 397, 315, 4991, 11044, 8863, 3639, 1366, 1133, 12, 2704, 9621, 5247, 1133, 24899, 12251, 8385, 10019, 3639, 727, 9621, 11548, 2909, 11044, 2909, 273, 394, 2909, 12, 6193, 11548, 2909, 18, 1106, 1769, 3639, 2882, 84, 292, 5576, 1042, 7675, 4861, 6193, 1290, 11548, 12, 23963, 2909, 16, 389, 2890, 18, 69, 548, 16, 389, 12251, 8385, 16, 389, 2722, 5247, 16, 389, 12251, 751, 16, 5411, 394, 514, 8526, 288, 315, 9620, 3113, 315, 10996, 3113, 315, 643, 6, 19879, 389, 5768, 2 ]
int clipRgn= OS.NewRgn(); MacUtil.getVisibleRegion(parent.handle, clipRgn, true); Rect bounds= new Rect(); MacUtil.getControlBounds(parent.handle, bounds); int left = x+bounds.left; int top = y+bounds.top; OS.SetRect(bounds, (short)left, (short)top, (short)(left+nWidth), (short)(top+nHeight)); int caretRgn= OS.NewRgn(); OS.RectRgn(caretRgn, bounds); OS.SectRgn(caretRgn, clipRgn, caretRgn); if (!OS.EmptyRgn(caretRgn)) { int[] port= new int[1]; OS.GetPort(port); OS.SetPortWindowPort(OS.GetControlOwner(handle)); OS.InvertRgn(caretRgn); OS.SetPort(port[0]); } OS.DisposeRgn(clipRgn); OS.DisposeRgn(caretRgn);
GC gc= new GC(parent); gc.setXORMode(true); gc.fillRectangle(x, y, nWidth, nHeight); gc.dispose();
boolean drawCaret () { if (parent == null) return false; if (parent.isDisposed ()) return false; int handle = parent.handle; int nWidth = width, nHeight = height; if (image != null) { Rectangle rect = image.getBounds (); nWidth = rect.width; nHeight = rect.height; } if (nWidth <= 0) nWidth = 2; int clipRgn= OS.NewRgn(); MacUtil.getVisibleRegion(parent.handle, clipRgn, true); Rect bounds= new Rect(); MacUtil.getControlBounds(parent.handle, bounds); int left = x+bounds.left; int top = y+bounds.top; OS.SetRect(bounds, (short)left, (short)top, (short)(left+nWidth), (short)(top+nHeight)); int caretRgn= OS.NewRgn(); OS.RectRgn(caretRgn, bounds); OS.SectRgn(caretRgn, clipRgn, caretRgn); if (!OS.EmptyRgn(caretRgn)) { int[] port= new int[1]; OS.GetPort(port); OS.SetPortWindowPort(OS.GetControlOwner(handle)); OS.InvertRgn(caretRgn); OS.SetPort(port[0]); } OS.DisposeRgn(clipRgn); OS.DisposeRgn(caretRgn); return true;}
12413 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12413/606053bd685bca0d5cb127d4c4280db09c08af31/Caret.java/buggy/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Caret.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1250, 3724, 39, 20731, 1832, 288, 202, 430, 261, 2938, 422, 446, 13, 327, 629, 31, 202, 430, 261, 2938, 18, 291, 1669, 7423, 1832, 13, 327, 629, 31, 202, 474, 1640, 273, 982, 18, 4110, 31, 202, 474, 290, 2384, 273, 1835, 16, 290, 2686, 273, 2072, 31, 202, 430, 261, 2730, 480, 446, 13, 288, 202, 202, 19463, 4917, 273, 1316, 18, 588, 5694, 261, 1769, 202, 202, 82, 2384, 273, 4917, 18, 2819, 31, 202, 202, 82, 2686, 273, 4917, 18, 4210, 31, 202, 97, 202, 430, 261, 82, 2384, 1648, 374, 13, 290, 2384, 273, 576, 31, 202, 202, 474, 6807, 54, 1600, 33, 5932, 18, 1908, 54, 1600, 5621, 202, 9990, 1304, 18, 588, 6207, 5165, 12, 2938, 18, 4110, 16, 6807, 54, 1600, 16, 638, 1769, 202, 6120, 4972, 33, 394, 9315, 5621, 202, 9990, 1304, 18, 588, 3367, 5694, 12, 2938, 18, 4110, 16, 4972, 1769, 202, 474, 2002, 273, 619, 15, 10576, 18, 4482, 31, 202, 474, 1760, 273, 677, 15, 10576, 18, 3669, 31, 202, 4618, 18, 694, 6120, 12, 10576, 16, 261, 6620, 13, 4482, 16, 261, 6620, 13, 3669, 16, 261, 6620, 21433, 4482, 15, 82, 2384, 3631, 261, 6620, 21433, 3669, 15, 82, 2686, 10019, 202, 202, 474, 21683, 54, 1600, 33, 5932, 18, 1908, 54, 1600, 5621, 202, 4618, 18, 6120, 54, 1600, 12, 71, 20731, 54, 1600, 16, 4972, 1769, 202, 4618, 18, 55, 386, 54, 1600, 12, 71, 20731, 54, 1600, 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, 1250, 3724, 39, 20731, 1832, 288, 202, 430, 261, 2938, 422, 446, 13, 327, 629, 31, 202, 430, 261, 2938, 18, 291, 1669, 7423, 1832, 13, 327, 629, 31, 202, 474, 1640, 273, 982, 18, 4110, 31, 202, 474, 290, 2384, 273, 1835, 16, 290, 2686, 273, 2072, 31, 202, 430, 261, 2730, 480, 446, 13, 288, 202, 202, 19463, 4917, 273, 1316, 18, 588, 5694, 261, 1769, 202, 202, 82, 2384, 273, 4917, 18, 2819, 31, 202, 202, 82, 2686, 273, 4917, 18, 4210, 31, 202, 97, 202, 430, 261, 82, 2384, 1648, 374, 13, 290, 2384, 273, 576, 31, 202, 202, 474, 6807, 54, 1600, 33, 5932, 18, 1908, 54, 1600, 5621, 202, 9990, 1304, 18, 588, 2 ]
Assert.assertEquals(2, orFilters.size());
assertEquals(2, orFilters.size());
public void testDecodeSearchRequestPresentNoControls() { Asn1Decoder ldapDecoder = new LdapDecoder(); ByteBuffer stream = ByteBuffer.allocate( 0x7B ); stream.put( new byte[] { 0x30, 0x79, // LDAPMessage ::=SEQUENCE { 0x02, 0x01, 0x01, // messageID MessageID 0x63, 0x74, // CHOICE { ..., searchRequest SearchRequest, ... // SearchRequest ::= APPLICATION[3] SEQUENCE { 0x04, 0x1F, // baseObject LDAPDN, 'u', 'i', 'd', '=', 'a', 'k', 'a', 'r', 'a', 's', 'u', 'l', 'u', ',', 'd', 'c', '=', 'e', 'x', 'a', 'm', 'p', 'l', 'e', ',', 'd', 'c', '=', 'c', 'o', 'm', 0x0A, 0x01, 0x01, // scope ENUMERATED { // baseObject (0), // singleLevel (1), // wholeSubtree (2) }, 0x0A, 0x01, 0x03, // derefAliases ENUMERATED { // neverDerefAliases (0), // derefInSearching (1), // derefFindingBaseObj (2), // derefAlways (3) }, // sizeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, // timeLimit INTEGER (0 .. maxInt), (1000) 0x02, 0x02, 0x03, (byte)0xE8, 0x01, 0x01, (byte)0xFF, // typesOnly BOOLEAN, (TRUE) // filter Filter, (byte)0xA0, 0x29, // Filter ::= CHOICE { // and [0] SET OF Filter, (byte)0xA1, 0x11, // or [1] SET of Filter, (byte)0x87, 0x0B, // present [7] AttributeDescription, // AttributeDescription ::= LDAPString 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', // assertionValue AssertionValue (OCTET STRING) } (byte)0x87, 0x02, 'o', 'u', // present [7] AttributeDescription, // AttributeDescription ::= LDAPString (byte)0xA2, 0x14, // not [2] Filter, (byte)0xA5, 0x12, // greaterOrEqual [5] AttributeValueAssertion, // AttributeValueAssertion ::= SEQUENCE { // attributeDesc AttributeDescription (LDAPString), 0x04, 0x0B, 'o', 'b', 'j', 'e', 'c', 't', 'c', 'l', 'a', 's', 's', // assertionValue AssertionValue (OCTET STRING) } 0x04, 0x03, 't', 't', 't', // attributes AttributeDescriptionList } 0x30, 0x15, // AttributeDescriptionList ::= SEQUENCE OF AttributeDescription 0x04, 0x05, 'a', 't', 't', 'r', '0', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '1', // AttributeDescription ::= LDAPString 0x04, 0x05, 'a', 't', 't', 'r', '2' // AttributeDescription ::= LDAPString } ); String decodedPdu = StringTools.dumpBytes( stream.array() ); stream.flip(); // Allocate a BindRequest Container IAsn1Container ldapMessageContainer = new LdapMessageContainer(); try { ldapDecoder.decode( stream, ldapMessageContainer ); } catch ( DecoderException de ) { de.printStackTrace(); Assert.fail( de.getMessage() ); } LdapMessage message = ( ( LdapMessageContainer ) ldapMessageContainer ).getLdapMessage(); SearchRequest sr = message.getSearchRequest(); Assert.assertEquals( 1, message.getMessageId() ); Assert.assertEquals( "uid=akarasulu,dc=example,dc=com", sr.getBaseObject().toString() ); Assert.assertEquals( LdapConstants.SCOPE_SINGLE_LEVEL, sr.getScope() ); Assert.assertEquals( LdapConstants.DEREF_ALWAYS, sr.getDerefAliases() ); Assert.assertEquals( 1000, sr.getSizeLimit() ); Assert.assertEquals( 1000, sr.getTimeLimit() ); Assert.assertEquals( true, sr.isTypesOnly() ); // (& (... AndFilter andFilter = (AndFilter)sr.getFilter(); Assert.assertNotNull(andFilter); ArrayList andFilters = andFilter.getAndFilter(); // (& (| (... Assert.assertEquals(2, andFilters.size()); OrFilter orFilter = (OrFilter)andFilters.get(0); Assert.assertNotNull(orFilter); // (& (| (objectclass=*) (... ArrayList orFilters = orFilter.getOrFilter(); Assert.assertEquals(2, orFilters.size()); PresentFilter presentFilter = (PresentFilter)orFilters.get(0); Assert.assertNotNull(presentFilter); Assert.assertEquals("objectclass", presentFilter.getAttributeDescription().toString()); // (& (| (objectclass=*) (ou=*) ) (... presentFilter = (PresentFilter)orFilters.get(1); Assert.assertNotNull(presentFilter); Assert.assertEquals("ou", presentFilter.getAttributeDescription().toString()); // (& (| (objectclass=*) (ou=*) ) (! ... NotFilter notFilter = (NotFilter)andFilters.get(1); Assert.assertNotNull(notFilter); // (& (| (objectclass=*) (ou=*) ) (! (objectclass>=ttt) ) ) AttributeValueAssertionFilter greaterOrEqual = (AttributeValueAssertionFilter)notFilter.getNotFilter(); Assert.assertNotNull(greaterOrEqual); AttributeValueAssertion assertion = greaterOrEqual.getAssertion(); Assert.assertNotNull(assertion); Assert.assertEquals("objectclass", assertion.getAttributeDesc().toString()); Assert.assertEquals("ttt", assertion.getAssertionValue().toString()); // The attributes Attributes attributes = sr.getAttributes(); for (int i = 0; i < attributes.size(); i++) { Assert.assertNotNull( attributes.get( "attr" + i ) ); } // Check the length Assert.assertEquals(0x7B, message.computeLength()); // Check the encoding // We won't check the whole PDU, as it may differs because // attributes may have been reordered try { ByteBuffer bb = message.encode( null ); String encodedPdu = StringTools.dumpBytes( bb.array() ); Assert.assertEquals(encodedPdu.substring( 0, 0x6C ), decodedPdu.substring( 0, 0x6C ) ); } catch ( EncoderException ee ) { ee.printStackTrace(); Assert.fail( ee.getMessage() ); } }
54578 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54578/3561f4cdd29c534a78cee8464a6bc4c88d5b1783/SearchRequestTest.java/buggy/ldap/src/test/java/org/apache/ldap/common/codec/search/SearchRequestTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 6615, 2979, 691, 6351, 2279, 16795, 1435, 565, 288, 3639, 31277, 21, 7975, 8079, 7975, 273, 394, 18053, 7975, 5621, 3639, 7400, 225, 1407, 1377, 273, 7400, 18, 16247, 12, 374, 92, 27, 38, 11272, 3639, 1407, 18, 458, 12, 5411, 394, 1160, 8526, 5411, 288, 7734, 374, 92, 5082, 16, 374, 92, 7235, 16, 10402, 368, 11916, 1079, 493, 33, 25330, 288, 9506, 202, 20, 92, 3103, 16, 374, 92, 1611, 16, 374, 92, 1611, 16, 3196, 1850, 368, 3639, 883, 734, 2350, 734, 9506, 202, 20, 92, 4449, 16, 374, 92, 5608, 16, 10402, 368, 202, 1377, 6469, 51, 11774, 288, 1372, 16, 1623, 691, 5167, 691, 16, 1372, 7682, 9506, 1377, 202, 225, 368, 5167, 691, 493, 33, 14148, 63, 23, 65, 27118, 288, 9506, 202, 20, 92, 3028, 16, 374, 92, 21, 42, 16, 1875, 1377, 202, 225, 368, 565, 1026, 921, 11916, 8609, 16, 9506, 202, 11, 89, 2187, 296, 77, 2187, 296, 72, 2187, 15196, 2187, 296, 69, 2187, 296, 79, 2187, 296, 69, 2187, 296, 86, 2187, 296, 69, 2187, 296, 87, 2187, 296, 89, 2187, 296, 80, 2187, 296, 89, 2187, 2265, 2187, 296, 72, 2187, 296, 71, 2187, 15196, 2187, 7734, 296, 73, 2187, 296, 92, 2187, 296, 69, 2187, 296, 81, 2187, 296, 84, 2187, 296, 80, 2187, 296, 73, 2187, 2265, 2187, 296, 72, 2187, 296, 71, 2187, 15196, 2187, 296, 71, 2187, 296, 83, 2187, 296, 81, 2187, 9506, 202, 20, 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, 6615, 2979, 691, 6351, 2279, 16795, 1435, 565, 288, 3639, 31277, 21, 7975, 8079, 7975, 273, 394, 18053, 7975, 5621, 3639, 7400, 225, 1407, 1377, 273, 7400, 18, 16247, 12, 374, 92, 27, 38, 11272, 3639, 1407, 18, 458, 12, 5411, 394, 1160, 8526, 5411, 288, 7734, 374, 92, 5082, 16, 374, 92, 7235, 16, 10402, 368, 11916, 1079, 493, 33, 25330, 288, 9506, 202, 20, 92, 3103, 16, 374, 92, 1611, 16, 374, 92, 1611, 16, 3196, 1850, 368, 3639, 883, 734, 2350, 734, 9506, 202, 20, 92, 4449, 16, 374, 92, 5608, 16, 10402, 368, 202, 1377, 6469, 51, 11774, 288, 1372, 16, 1623, 691, 5167, 691, 16, 1372, 7682, 9506, 1377, 202, 2 ]
public Collection getUsersTopGroupNodesByViewAndOwnerPermissions(User user, IWUserContext iwuc)throws RemoteException{ Collection topNodes = new ArrayList(); //check for the super user case first boolean isSuperUser = iwuc.isSuperAdmin(); if( (isSuperUser && user==null) || (isSuperUser && iwuc.getCurrentUser().equals(user)) ){ try { topNodes = this.getIWApplicationContext().getDomain().getTopLevelGroupsUnderDomain(); } catch (Exception e1) { topNodes = new Vector(); e1.printStackTrace(); } } if( user != null ){ topNodes = (Collection)iwuc.getSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString()); if(topNodes != null && !topNodes.isEmpty()){ return topNodes; } topNodes = getStoredTopNodeGroups(user); if(topNodes != null && !topNodes.isEmpty()){ iwuc.setSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString(),topNodes); return topNodes; }else{ log("[UserBusinessBean]: getUsersTopGroupNodesByViewAndOwnerPermissions(...) begins"); Timer totalTime = new Timer(); totalTime.start(); try { GroupBusiness groupBiz = getGroupBusiness(); if (groupBiz.userGroupTreeImageProcedureTopNodeSearch()){ log("[UserBusinessBean]: using stored procedure topnode search"); Timer time = new Timer(); time.start(); Collection directlyRelatedParents = getGroupBusiness().getParentGroups(user); Iterator iterating = directlyRelatedParents.iterator(); List additionalGroups = new ArrayList(); while (iterating.hasNext()) { Group parent = (Group) iterating.next(); if(parent!=null && parent.getPermissionControllingGroupID()>0){ additionalGroups.add(parent.getPermissionControllingGroup()); } } directlyRelatedParents.addAll(additionalGroups); Collection allPermissions = new ArrayList(); //get all view permissions for direct parent and put in a list Collection viewPermissions = AccessControl.getAllGroupViewPermissions(directlyRelatedParents); allPermissions.addAll(viewPermissions); Collection ownedPermissions = AccessControl.getAllGroupOwnerPermissionsByGroup( user ); allPermissions.addAll(ownedPermissions); time.stop(); log("[UserBusinessBean]: fetching complete " + time.getTimeString()); time.start(); try { topNodes = searchForTopNodes(allPermissions,null,user);// topNodes = searchForTopNodes(viewPermissions,searchForTopNodes(ownedPermissions,null)); for (Iterator iter = topNodes.iterator(); iter.hasNext();) { Group gr = (Group) iter.next(); if(gr.isAlias() && topNodes.contains(gr.getAlias())){ iter.remove(); } } time.stop(); log("[UserBusinessBean]: searchForTopNodesFromTheTop complete " + time.getTimeString()); } catch (RemoteException e1) { throw new EJBException(e1); } catch (FinderException e1) { throw new EJBException(e1); } } else { log("[UserBusinessBean]: not using stored procedure topnode search"); Timer time = new Timer(); time.start(); Map parents = new HashMap(); Map groupMap = new HashMap();//we need it to be synchronized so we can remove items while in a iterator Map aliasMap = new HashMap(); IDOUtil idoUtil = IDOUtil.getInstance(); GroupHome grHome = getGroupHome(); Collection directlyRelatedParents = getGroupBusiness().getParentGroups(user); Iterator iterating = directlyRelatedParents.iterator(); List additionalGroups = new ArrayList(); while (iterating.hasNext()) { Group parent = (Group) iterating.next(); if(parent!=null && parent.getPermissionControllingGroupID()>0){ additionalGroups.add(parent.getPermissionControllingGroup()); } } directlyRelatedParents.addAll(additionalGroups); Collection allViewAndOwnerPermissionGroupPKs = new ArrayList(); //get all view permissions for direct parent and put in a list Collection viewPermissions = AccessControl.getAllGroupViewPermissions(directlyRelatedParents); addGroupPKsToCollectionFromICPermissionCollection(viewPermissions,allViewAndOwnerPermissionGroupPKs); Collection ownedPermissions = AccessControl.getAllGroupOwnerPermissionsByGroup( user ); //allViewAndOwnerPermissions.removeAll(ownedPermissions);//no double entries thank you addGroupPKsToCollectionFromICPermissionCollection(ownedPermissions,allViewAndOwnerPermissionGroupPKs); Collection allViewAndOwnerPermissionGroups = new ArrayList(); try { allViewAndOwnerPermissionGroups = grHome.findByPrimaryKeyCollection(allViewAndOwnerPermissionGroupPKs); } catch (FinderException e) { log("UserBusiness: In getUsersTopGroupNodesByViewAndOwnerPermissions. groups not found"); e.printStackTrace(); } time.stop(); log("[UserBusinessBean]: getting permission groups complete " + time.getTimeString()); time.start(); //searchForTopNodesFromTop=3000; //some suitable value if(allViewAndOwnerPermissionGroups.size() > this.searchForTopNodesFromTop){ log("[UserBusinessBean]: using search from the top"); try { topNodes = searchForTopNodesFromTheTop(allViewAndOwnerPermissionGroups); for (Iterator iter = topNodes.iterator(); iter.hasNext();) { Group gr = (Group) iter.next(); if(gr.isAlias() && topNodes.contains(gr.getAlias())){ iter.remove(); } } time.stop(); log("[UserBusinessBean]: searchForTopNodesFromTheTop complete " + time.getTimeString()); time.start(); } catch (IDORelationshipException e1) { throw new EJBException(e1); } catch (RemoteException e1) { throw new EJBException(e1); } catch (FinderException e1) { throw new EJBException(e1); } } else { log("[UserBusinessBean]: using old topnode search"); //get all (recursively) parents for permission Iterator permissions = allViewAndOwnerPermissionGroups.iterator(); Map cachedParents = new HashMap(); Map cachedGroups = new HashMap(); while (permissions.hasNext()) { Group group = (Group) permissions.next(); Integer primaryKey = (Integer)group.getPrimaryKey(); if( !groupMap.containsKey(primaryKey) ){ Group permissionGroup = group; if( !cachedGroups.containsKey(primaryKey.toString()) ) { cachedGroups.put(primaryKey.toString(),permissionGroup); } Collection recParents = groupBiz.getParentGroupsRecursive(permissionGroup, cachedParents, cachedGroups); Map parentMap = idoUtil.convertIDOEntityCollectionToMapOfPrimaryKeysAndEntityValues(recParents); parents.put(primaryKey,parentMap); groupMap.put(primaryKey,permissionGroup); //if it's an alias we don't need the original group and make a list of those groups to filter out later if(permissionGroup.isAlias()){ Integer originalGroupID = new Integer(permissionGroup.getAliasID()); aliasMap.put(originalGroupID,primaryKey); } } } time.stop(); log("[UserBusinessBean]: getting all parents (recursively) complete " + time.getTimeString()); time.start(); //Filter out the real top nodes! Map skipThese = new HashMap(); Set keys = parents.keySet(); Iterator iter = keys.iterator(); while (iter.hasNext()) { Integer thePermissionGroupsId = (Integer) iter.next(); Iterator iter2 = parents.keySet().iterator(); while (iter2.hasNext()) { Integer groupToCompareTo = (Integer) iter2.next(); //If this group was already checked or is the same as the comparing group, continue (skip this one) if( thePermissionGroupsId.equals(groupToCompareTo) || skipThese.containsKey(thePermissionGroupsId)){ continue;//dont check for self } //Get the parents to see if thePermissionGroupsId is in it. ergo it is a parent of the comparing group and therefor a higher node Map theParents = (Map) (parents.get(groupToCompareTo)); //or the permissiongroup has a shortcut if(theParents!=null && theParents.containsKey(thePermissionGroupsId)){ //it's a parent of the comparing group so we don't have to check the comparing group again skipThese.put(groupToCompareTo,null);//for the check skip check groupMap.remove(groupToCompareTo);//the groups that will be left are the top nodes }//remove if this group is a child group of myGroup }//inner while ends }//outer while ends time.stop(); log("[UserBusinessBean]: filter out the real topnodes complete " + time.getTimeString()); time.start(); //Now we have to check if the remaining top nodes have a shortcut //that is not a top node and if so we need to remove that node //unless there is only one node left or if the alias and the real group are both top nodes if(groupMap!=null && !groupMap.isEmpty()){ List aliasGroupType = new ArrayList(); aliasGroupType.add("alias"); if(!aliasMap.isEmpty()){ Iterator keyIter = groupMap.keySet().iterator(); while (keyIter.hasNext()) { Integer topNodeId = (Integer) keyIter.next(); Integer aliasGroupsId = (Integer)aliasMap.get(topNodeId); if(aliasGroupsId!=null){ if(!groupMap.containsKey(aliasGroupsId)){//only remove if they are not both top nodes// groupMap.remove(topNodeId); System.err.println("Here is the code that once returned concurrentException"); } } } } time.stop(); log("[UserBusinessBean]: some alias complete " + time.getTimeString()); time.start(); //check the children recursively List groupsToRemove = new ArrayList(); Iterator keyIter = groupMap.keySet().iterator(); while (keyIter.hasNext()) { Integer topNodeId = (Integer) keyIter.next(); if(skipThese.containsKey(topNodeId)){ continue;//it's going to be removed later } else{ try { //also we need to check the children of the current top nodes recursively for aliases :s Collection aliasesRecursive = getGroupBusiness().getChildGroupsRecursiveResultFiltered(getGroupBusiness().getGroupByGroupID(topNodeId.intValue()),aliasGroupType,true); if( aliasesRecursive!=null && !aliasesRecursive.isEmpty()){ Iterator aliasIter = aliasesRecursive.iterator(); while (aliasIter.hasNext()) { Group alias = (Group) aliasIter.next(); Integer aliasGroupsId = new Integer(alias.getAliasID()); if(groupMap.containsKey(aliasGroupsId)){//only remove if they are not both top nodes groupsToRemove.add(aliasGroupsId); skipThese.put(aliasGroupsId,null); } } } } catch (FinderException e1) { e1.printStackTrace(); } } } time.stop(); log("[UserBusinessBean]: check children (recursively) complete " + time.getTimeString()); time.start(); //remove the top nodes that have aliases under another top node, or itself to avoid crashing the server in an endless loop? Iterator removeIter = groupsToRemove.iterator(); while (removeIter.hasNext()) { groupMap.remove(removeIter.next()); } time.stop(); log("[UserBusinessBean]: remove the aliases undr another top node complete " + time.getTimeString()); } //finally done! the remaining nodes are the top nodes topNodes = groupMap.values(); } } } catch (EJBException e) { e.printStackTrace(); } totalTime.stop(); log("[UserBusinessBean]: topnode....(...) ends "+ totalTime.getTimeString()); } iwuc.setSessionAttribute(SESSION_KEY_TOP_NODES+user.getPrimaryKey().toString(),topNodes); storeUserTopGroupNodes(user,topNodes,null); } return topNodes; }
52001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52001/21dcc2ab672cd5cc52a7f8a072e86fed3aa20ecc/UserBusinessBean.java/buggy/src/java/com/idega/user/business/UserBusinessBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2200, 27564, 3401, 1114, 3205, 858, 1767, 1876, 5541, 6521, 12, 1299, 729, 16, 467, 59, 1299, 1042, 25522, 5286, 13, 15069, 18361, 95, 9506, 202, 2532, 1760, 3205, 273, 394, 2407, 5621, 202, 202, 759, 1893, 364, 326, 2240, 729, 648, 1122, 202, 202, 6494, 353, 8051, 1299, 273, 25522, 5286, 18, 291, 8051, 4446, 5621, 202, 202, 430, 12, 261, 291, 8051, 1299, 597, 729, 631, 2011, 13, 747, 261, 291, 8051, 1299, 597, 25522, 5286, 18, 588, 3935, 1299, 7675, 14963, 12, 1355, 3719, 262, 95, 1082, 202, 698, 288, 9506, 202, 3669, 3205, 273, 333, 18, 588, 45, 59, 28278, 7675, 588, 3748, 7675, 588, 27046, 3621, 14655, 3748, 5621, 1082, 202, 97, 1082, 202, 14683, 261, 503, 425, 21, 13, 288, 9506, 202, 3669, 3205, 273, 394, 5589, 5621, 9506, 202, 73, 21, 18, 1188, 6332, 5621, 1082, 202, 97, 202, 202, 97, 9506, 202, 430, 12, 729, 480, 446, 262, 95, 1082, 202, 3669, 3205, 273, 261, 2532, 13, 22315, 5286, 18, 588, 2157, 1499, 12, 7042, 67, 3297, 67, 10462, 67, 8744, 55, 15, 1355, 18, 588, 11575, 7675, 10492, 10663, 1082, 202, 430, 12, 3669, 3205, 480, 446, 597, 401, 3669, 3205, 18, 291, 1921, 10756, 95, 4697, 565, 327, 1760, 3205, 31, 1082, 202, 97, 1082, 202, 3669, 3205, 273, 15818, 72, 3401, 907, 3621, 12, 1355, 1769, 1082, 202, 430, 12, 3669, 3205, 480, 446, 597, 401, 3669, 3205, 18, 291, 1921, 10756, 95, 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, 2200, 27564, 3401, 1114, 3205, 858, 1767, 1876, 5541, 6521, 12, 1299, 729, 16, 467, 59, 1299, 1042, 25522, 5286, 13, 15069, 18361, 95, 9506, 202, 2532, 1760, 3205, 273, 394, 2407, 5621, 202, 202, 759, 1893, 364, 326, 2240, 729, 648, 1122, 202, 202, 6494, 353, 8051, 1299, 273, 25522, 5286, 18, 291, 8051, 4446, 5621, 202, 202, 430, 12, 261, 291, 8051, 1299, 597, 729, 631, 2011, 13, 747, 261, 291, 8051, 1299, 597, 25522, 5286, 18, 588, 3935, 1299, 7675, 14963, 12, 1355, 3719, 262, 95, 1082, 202, 698, 288, 9506, 202, 3669, 3205, 273, 333, 18, 588, 45, 59, 28278, 7675, 588, 3748, 7675, 588, 27046, 3621, 14655, 3748, 5621, 1082, 202, 2 ]
IScope scope = binding.getScope(); if (scope == null) return null; if (scope instanceof IIndexBinding) { IIndexBinding parent= ((IIndexBinding) scope).getParentBinding(); if (parent == null) { return this;
try { IScope scope = binding.getScope(); if (scope == null) return null; if (scope instanceof IIndexBinding) { IIndexBinding parent= ((IIndexBinding) scope).getParentBinding(); if (parent == null) { return this; } return adaptBinding(parent);
public PDOMNode getAdaptedParent(IBinding binding) throws CoreException { IScope scope = binding.getScope(); if (scope == null) return null; if (scope instanceof IIndexBinding) { IIndexBinding parent= ((IIndexBinding) scope).getParentBinding(); if (parent == null) { return this; } return adaptBinding(parent); } // the scope is from the ast // mstodo revisit unnamed namespaces IScope testScope= scope; while (testScope instanceof ICPPNamespaceScope) { IName name= testScope.getScopeName(); if (name != null && name.toCharArray().length == 0) { testScope= scope.getParent(); if (testScope != null) { scope= testScope; } } else { testScope= null; } } IASTNode scopeNode = ASTInternal.getPhysicalNodeOfScope(scope); if (scopeNode instanceof IASTCompoundStatement) return null; else if (scopeNode instanceof IASTTranslationUnit) return this; else { IName scopeName = scope.getScopeName(); if (scopeName instanceof IASTName) { IBinding scopeBinding = ((IASTName) scopeName).resolveBinding(); PDOMBinding scopePDOMBinding = adaptBinding(scopeBinding); if (scopePDOMBinding != null) return scopePDOMBinding; } } return null; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/780f7df35ce51b9feda3418e6ab4c95c3ba9bc93/PDOMLinkage.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/dom/PDOMLinkage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 453, 8168, 907, 336, 13716, 329, 3054, 12, 45, 5250, 5085, 13, 1216, 30015, 288, 202, 202, 45, 3876, 2146, 273, 5085, 18, 588, 3876, 5621, 202, 202, 430, 261, 4887, 422, 446, 13, 1082, 202, 2463, 446, 31, 9506, 202, 430, 261, 4887, 1276, 467, 1016, 5250, 13, 288, 1082, 202, 45, 1016, 5250, 982, 33, 14015, 45, 1016, 5250, 13, 2146, 2934, 588, 3054, 5250, 5621, 1082, 202, 430, 261, 2938, 422, 446, 13, 288, 9506, 202, 2463, 333, 31, 1082, 202, 97, 1082, 202, 2463, 5855, 5250, 12, 2938, 1769, 202, 202, 97, 6862, 202, 759, 326, 2146, 353, 628, 326, 3364, 9506, 202, 759, 312, 334, 7370, 283, 11658, 640, 13188, 7728, 202, 202, 45, 3876, 1842, 3876, 33, 2146, 31, 202, 202, 17523, 261, 3813, 3876, 1276, 467, 4258, 52, 3402, 3876, 13, 288, 1082, 202, 45, 461, 508, 33, 1842, 3876, 18, 588, 3876, 461, 5621, 1082, 202, 430, 261, 529, 480, 446, 597, 508, 18, 869, 15936, 7675, 2469, 422, 374, 13, 288, 9506, 202, 3813, 3876, 33, 2146, 18, 588, 3054, 5621, 9506, 202, 430, 261, 3813, 3876, 480, 446, 13, 288, 6862, 202, 4887, 33, 1842, 3876, 31, 9506, 202, 97, 1082, 202, 97, 1082, 202, 12107, 288, 9506, 202, 3813, 3876, 33, 446, 31, 1082, 202, 97, 202, 202, 97, 9506, 202, 45, 9053, 907, 2146, 907, 273, 9183, 3061, 18, 588, 18136, 907, 951, 3876, 12, 4887, 1769, 202, 202, 430, 261, 4887, 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, 453, 8168, 907, 336, 13716, 329, 3054, 12, 45, 5250, 5085, 13, 1216, 30015, 288, 202, 202, 45, 3876, 2146, 273, 5085, 18, 588, 3876, 5621, 202, 202, 430, 261, 4887, 422, 446, 13, 1082, 202, 2463, 446, 31, 9506, 202, 430, 261, 4887, 1276, 467, 1016, 5250, 13, 288, 1082, 202, 45, 1016, 5250, 982, 33, 14015, 45, 1016, 5250, 13, 2146, 2934, 588, 3054, 5250, 5621, 1082, 202, 430, 261, 2938, 422, 446, 13, 288, 9506, 202, 2463, 333, 31, 1082, 202, 97, 1082, 202, 2463, 5855, 5250, 12, 2938, 1769, 202, 202, 97, 6862, 202, 759, 326, 2146, 353, 628, 326, 3364, 9506, 202, 759, 312, 334, 7370, 283, 11658, 640, 13188, 7728, 2 ]
} else {
} else {
private SyntheticCodeBlock createCaseSectionBlock(final ArrayList<Block> localResult, final Alignment childAlignment, final Indent indent, final Wrap childWrap) { final SyntheticCodeBlock result = new SyntheticCodeBlock(localResult, childAlignment, getSettings(), indent, childWrap){ @NotNull public ChildAttributes getChildAttributes(final int newChildIndex) { IElementType prevElementType = null; if (newChildIndex > 0) { final Block previousBlock = getSubBlocks().get(newChildIndex - 1); if (previousBlock instanceof AbstractBlock) { prevElementType = ((AbstractBlock)previousBlock).getNode().getElementType(); } } if (prevElementType == ElementType.BLOCK_STATEMENT || prevElementType == ElementType.BREAK_STATEMENT || prevElementType == ElementType.RETURN_STATEMENT) { return new ChildAttributes(Indent.getNoneIndent(), null); } else { return super.getChildAttributes(newChildIndex); } } }; result.setChildAttributes(new ChildAttributes(Indent.getNormalIndent(), null)); result.setIsIncomplete(true); return result; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/ee3f89bfa64cda89f2846e1f417caa549cf5edc9/CodeBlockBlock.java/clean/source/com/intellij/psi/formatter/java/CodeBlockBlock.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 16091, 16466, 1085, 1768, 752, 2449, 5285, 1768, 12, 6385, 2407, 32, 1768, 34, 1191, 1253, 16, 727, 17804, 1151, 11535, 16, 727, 28653, 3504, 16, 4766, 10402, 727, 4266, 1151, 2964, 13, 288, 565, 727, 16091, 16466, 1085, 1768, 563, 273, 394, 16091, 16466, 1085, 1768, 12, 3729, 1253, 16, 1151, 11535, 16, 18283, 9334, 3504, 16, 1151, 2964, 15329, 1377, 632, 5962, 1377, 1071, 7451, 2498, 8154, 2498, 12, 6385, 509, 19783, 1016, 13, 288, 3639, 467, 17481, 2807, 17481, 273, 446, 31, 3639, 309, 261, 2704, 1763, 1016, 405, 374, 13, 288, 1850, 727, 3914, 2416, 1768, 273, 7040, 6450, 7675, 588, 12, 2704, 1763, 1016, 300, 404, 1769, 1850, 309, 261, 11515, 1768, 1276, 4115, 1768, 13, 288, 5411, 2807, 17481, 273, 14015, 7469, 1768, 13, 11515, 1768, 2934, 588, 907, 7675, 588, 17481, 5621, 1850, 289, 3639, 289, 3639, 309, 261, 10001, 17481, 422, 3010, 559, 18, 11403, 67, 28411, 5411, 747, 2807, 17481, 422, 3010, 559, 18, 27960, 67, 28411, 2398, 747, 2807, 17481, 422, 3010, 559, 18, 14033, 67, 28411, 13, 288, 1850, 327, 394, 7451, 2498, 12, 7790, 18, 588, 7036, 7790, 9334, 446, 1769, 3639, 289, 469, 288, 1850, 327, 2240, 18, 588, 1763, 2498, 12, 2704, 1763, 1016, 1769, 3639, 289, 1377, 289, 565, 289, 31, 565, 563, 18, 542, 1763, 2498, 12, 2704, 7451, 2498, 12, 7790, 18, 588, 5506, 7790, 9334, 446, 10019, 565, 563, 18, 542, 2520, 27531, 12, 3767, 1769, 565, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 16091, 16466, 1085, 1768, 752, 2449, 5285, 1768, 12, 6385, 2407, 32, 1768, 34, 1191, 1253, 16, 727, 17804, 1151, 11535, 16, 727, 28653, 3504, 16, 4766, 10402, 727, 4266, 1151, 2964, 13, 288, 565, 727, 16091, 16466, 1085, 1768, 563, 273, 394, 16091, 16466, 1085, 1768, 12, 3729, 1253, 16, 1151, 11535, 16, 18283, 9334, 3504, 16, 1151, 2964, 15329, 1377, 632, 5962, 1377, 1071, 7451, 2498, 8154, 2498, 12, 6385, 509, 19783, 1016, 13, 288, 3639, 467, 17481, 2807, 17481, 273, 446, 31, 3639, 309, 261, 2704, 1763, 1016, 405, 374, 13, 288, 1850, 727, 3914, 2416, 1768, 273, 7040, 6450, 7675, 588, 12, 2704, 1763, 1016, 300, 404, 1769, 1850, 309, 261, 11515, 1768, 2 ]
packet.getFrom(), StanzaType.set, "1"));
packet.getFrom(), StanzaType.set, "1", proceed.toString()));
public void process(final Packet packet, final XMPPResourceConnection session, final Queue<Packet> results) { if (packet.getElement().getName().equals("starttls")) { session.putSessionData(TLS_STARTED_KEY, "true"); results.offer(packet.swapFromTo(proceed)); results.offer(Command.STARTTLS.getPacket(packet.getTo(), packet.getFrom(), StanzaType.set, "1")); } // end of if (packet.getElement().getName().equals("starttls")) else { log.warning("Unknown TLS element: " + packet.getStringData()); results.offer(packet.swapFromTo(failure)); results.offer(Command.CLOSE.getPacket(packet.getTo(), packet.getFrom(), StanzaType.set, "1")); } // end of if (packet.getElement().getName().equals("starttls")) else }
51933 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51933/27e1ebcad1ef97cc586e26ad972eaad05291f006/StartTLS.java/clean/src/tigase/xmpp/impl/StartTLS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 12, 6385, 11114, 4414, 16, 727, 23216, 1420, 1952, 1339, 16, 202, 202, 6385, 7530, 32, 6667, 34, 1686, 13, 288, 202, 202, 430, 261, 11482, 18, 21336, 7675, 17994, 7675, 14963, 2932, 1937, 17116, 6, 3719, 288, 1082, 202, 3184, 18, 458, 2157, 751, 12, 9905, 67, 20943, 6404, 67, 3297, 16, 315, 3767, 8863, 1082, 202, 4717, 18, 23322, 12, 11482, 18, 22270, 1265, 774, 12, 685, 5288, 10019, 1082, 202, 4717, 18, 23322, 12, 2189, 18, 20943, 1470, 3045, 18, 588, 6667, 12, 11482, 18, 588, 774, 9334, 6862, 202, 11482, 18, 588, 1265, 9334, 934, 15214, 559, 18, 542, 16, 315, 21, 7923, 1769, 202, 202, 97, 368, 679, 434, 309, 261, 11482, 18, 21336, 7675, 17994, 7675, 14963, 2932, 1937, 17116, 6, 3719, 202, 202, 12107, 288, 1377, 613, 18, 8551, 2932, 4874, 8098, 930, 30, 315, 397, 4414, 18, 588, 780, 751, 10663, 1082, 202, 4717, 18, 23322, 12, 11482, 18, 22270, 1265, 774, 12, 12251, 10019, 1082, 202, 4717, 18, 23322, 12, 2189, 18, 13384, 18, 588, 6667, 12, 11482, 18, 588, 774, 9334, 6862, 202, 11482, 18, 588, 1265, 9334, 934, 15214, 559, 18, 542, 16, 315, 21, 7923, 1769, 202, 202, 97, 368, 679, 434, 309, 261, 11482, 18, 21336, 7675, 17994, 7675, 14963, 2932, 1937, 17116, 6, 3719, 469, 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 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1207, 12, 6385, 11114, 4414, 16, 727, 23216, 1420, 1952, 1339, 16, 202, 202, 6385, 7530, 32, 6667, 34, 1686, 13, 288, 202, 202, 430, 261, 11482, 18, 21336, 7675, 17994, 7675, 14963, 2932, 1937, 17116, 6, 3719, 288, 1082, 202, 3184, 18, 458, 2157, 751, 12, 9905, 67, 20943, 6404, 67, 3297, 16, 315, 3767, 8863, 1082, 202, 4717, 18, 23322, 12, 11482, 18, 22270, 1265, 774, 12, 685, 5288, 10019, 1082, 202, 4717, 18, 23322, 12, 2189, 18, 20943, 1470, 3045, 18, 588, 6667, 12, 11482, 18, 588, 774, 9334, 6862, 202, 11482, 18, 588, 1265, 9334, 934, 15214, 559, 18, 542, 16, 315, 21, 7923, 1769, 202, 202, 97, 368, 679, 434, 309, 2 ]
for (i = 0, j = tempInteger; i < outNbElement1.value; i++, j++) { tempReal = outReal[i]; if (!(((-0.00000001) < tempReal) && (tempReal < 0.00000001))) outReal[i] = ((tempBuffer[j] - tempReal) / tempReal) * 100.0; else outReal[i] = 0.0; } } else {
if( retCode == TA_RetCode. TA_SUCCESS ) { tempInteger = outBegIdx1.value - outBegIdx2.value ; if( doPercentageOutput != 0 ) {
TA_RetCode INT_PO(int startIdx, int endIdx, double inReal[], int optInFastPeriod, int optInSlowPeriod, TA_MAType optInMethod_2, MInteger outBegIdx, MInteger outNbElement, double outReal[], double tempBuffer[], int doPercentageOutput) { TA_RetCode retCode; double tempReal; int tempInteger; MInteger outBegIdx1 = new MInteger(); MInteger outNbElement1 = new MInteger(); MInteger outBegIdx2 = new MInteger(); MInteger outNbElement2 = new MInteger(); int i, j; if (optInSlowPeriod < optInFastPeriod) { tempInteger = optInSlowPeriod; optInSlowPeriod = optInFastPeriod; optInFastPeriod = tempInteger; } retCode = MA(startIdx, endIdx, inReal, optInFastPeriod, optInMethod_2, outBegIdx2, outNbElement2, tempBuffer); if (retCode == TA_RetCode.TA_SUCCESS) { retCode = MA(startIdx, endIdx, inReal, optInSlowPeriod, optInMethod_2, outBegIdx1, outNbElement1, outReal); if (retCode == TA_RetCode.TA_SUCCESS) { tempInteger = outBegIdx1.value - outBegIdx2.value; if (doPercentageOutput != 0) { for (i = 0, j = tempInteger; i < outNbElement1.value; i++, j++) { tempReal = outReal[i]; if (!(((-0.00000001) < tempReal) && (tempReal < 0.00000001))) outReal[i] = ((tempBuffer[j] - tempReal) / tempReal) * 100.0; else outReal[i] = 0.0; } } else { for (i = 0, j = tempInteger; i < outNbElement1.value; i++, j++) outReal[i] = tempBuffer[j] - outReal[i]; } outBegIdx.value = outBegIdx1.value; outNbElement.value = outNbElement1.value; } } if (retCode != TA_RetCode.TA_SUCCESS) { outBegIdx.value = 0; outNbElement.value = 0; } return retCode; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 9833, 67, 7055, 1085, 6137, 67, 2419, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 12305, 5027, 16, 509, 2153, 382, 28733, 5027, 16, 399, 37, 67, 5535, 559, 2153, 382, 1305, 67, 22, 16, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1645, 29205, 63, 6487, 1082, 202, 9056, 1906, 1892, 63, 6487, 509, 741, 16397, 1447, 13, 288, 202, 202, 9833, 67, 7055, 1085, 325, 1085, 31, 202, 202, 9056, 31497, 31, 202, 202, 474, 1906, 4522, 31, 202, 202, 49, 4522, 596, 24059, 4223, 21, 273, 394, 490, 4522, 5621, 202, 202, 49, 4522, 596, 22816, 1046, 21, 273, 394, 490, 4522, 5621, 202, 202, 49, 4522, 596, 24059, 4223, 22, 273, 394, 490, 4522, 5621, 202, 202, 49, 4522, 596, 22816, 1046, 22, 273, 394, 490, 4522, 5621, 202, 202, 474, 277, 16, 525, 31, 202, 202, 430, 261, 3838, 382, 28733, 5027, 411, 2153, 382, 12305, 5027, 13, 288, 1082, 202, 5814, 4522, 273, 2153, 382, 28733, 5027, 31, 1082, 202, 3838, 382, 28733, 5027, 273, 2153, 382, 12305, 5027, 31, 1082, 202, 3838, 382, 12305, 5027, 273, 1906, 4522, 31, 202, 202, 97, 202, 202, 1349, 1085, 273, 19316, 12, 1937, 4223, 16, 679, 4223, 16, 316, 6955, 16, 2153, 382, 12305, 5027, 16, 2153, 382, 1305, 67, 22, 16, 9506, 202, 659, 24059, 4223, 22, 16, 596, 22816, 1046, 22, 16, 1906, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 9833, 67, 7055, 1085, 6137, 67, 2419, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 12305, 5027, 16, 509, 2153, 382, 28733, 5027, 16, 399, 37, 67, 5535, 559, 2153, 382, 1305, 67, 22, 16, 1082, 202, 49, 4522, 596, 24059, 4223, 16, 490, 4522, 596, 22816, 1046, 16, 1645, 29205, 63, 6487, 1082, 202, 9056, 1906, 1892, 63, 6487, 509, 741, 16397, 1447, 13, 288, 202, 202, 9833, 67, 7055, 1085, 325, 1085, 31, 202, 202, 9056, 31497, 31, 202, 202, 474, 1906, 4522, 31, 202, 202, 49, 4522, 596, 24059, 4223, 21, 273, 394, 490, 4522, 5621, 202, 202, 49, 4522, 596, 22816, 1046, 21, 2 ]
if( (ae instanceof Protomech) && (2 == ((Protomech)ae).getCritsHit(Protomech.LOC_HEAD)) ) { mods.addModifier ( ToHitData.IMPOSSIBLE, "No extreme range attacks with destroyed head sensors." );
if ((ae instanceof Protomech) && (2 == ((Protomech) ae) .getCritsHit(Protomech.LOC_HEAD))) { mods .addModifier(ToHitData.IMPOSSIBLE, "No extreme range attacks with destroyed head sensors.");
public static ToHitData getRangeMods(IGame game, Entity ae, int weaponId, Targetable target) { Mounted weapon = ae.getEquipment(weaponId); WeaponType wtype = (WeaponType)weapon.getType(); int[] weaponRanges = wtype.getRanges(); boolean isAttackerInfantry = (ae instanceof Infantry); boolean isWeaponInfantry = wtype.hasFlag(WeaponType.F_INFANTRY); boolean isLRMInfantry = isWeaponInfantry && wtype.getAmmoType() == AmmoType.T_LRM; boolean isIndirect = ((wtype.getAmmoType() == AmmoType.T_LRM) || (wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO)) && weapon.curMode().equals("Indirect"); boolean useExtremeRange = game.getOptions().booleanOption("maxtech_range"); ToHitData mods = new ToHitData(); // modify the ranges for ATM missile systems based on the ammo selected // TODO: this is not the right place to hardcode these if (wtype.getAmmoType() == AmmoType.T_ATM) { AmmoType atype = (AmmoType)weapon.getLinked().getType(); if ((atype.getAmmoType() == AmmoType.T_ATM) && atype.getMunitionType() == AmmoType.M_EXTENDED_RANGE) { weaponRanges = new int[] {4, 9, 18, 27, 36}; } else if ((atype.getAmmoType() == AmmoType.T_ATM) && atype.getMunitionType() == AmmoType.M_HIGH_EXPLOSIVE) { weaponRanges = new int[] {0, 3, 6, 9, 12}; } } // // modifiy the ranges for PPCs when field inhibitors are turned off // TODO: See above, it should be coded elsewhere... // if (wtype.getName().equals("Particle Cannon")) { if (game.getOptions().booleanOption("maxtech_ppc_inhibitors")) { if (weapon.curMode().equals("Field Inhibitor OFF")) { weaponRanges[0] = 0; } } } //is water involved? IHex attHex = game.getBoard().getHex(ae.getPosition()); IHex targHex = game.getBoard().getHex(target.getPosition()); int targEl; if (target == null) { targEl = game.getBoard().getHex(target.getPosition()).floor(); } else { targEl = target.absHeight(); } if (ae.getLocationStatus(weapon.getLocation()) == ILocationExposureStatus.WET) { weaponRanges = wtype.getWRanges(); //HACK on ranges: for those without underwater range, // long == medium; iteration in rangeBracket() allows this if (weaponRanges[RangeType.RANGE_SHORT] == 0) { return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon cannot fire underwater."); } if (!(targHex.containsTerrain(Terrains.WATER)) || targHex.surface() <= target.getElevation()) { //target on land or over water return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon underwater, but not target."); } } else if (targHex.containsTerrain(Terrains.WATER) && ((targEl + targHex.terrainLevel(Terrains.WATER)) <= 0)) { return new ToHitData(ToHitData.IMPOSSIBLE, "Target underwater, but not weapon."); } else if (wtype.getAmmoType() == AmmoType.T_LRM_TORPEDO || wtype.getAmmoType() == AmmoType.T_SRM_TORPEDO) { // Torpedos only fire underwater. return new ToHitData(ToHitData.IMPOSSIBLE, "Weapon can only fire underwater."); } // determine base distance & range bracket int distance = effectiveDistance(game, ae, target); int range = RangeType.rangeBracket(distance, weaponRanges, useExtremeRange); // short circuit if at zero range or out of range if (range == RangeType.RANGE_OUT) { return new ToHitData(ToHitData.AUTOMATIC_FAIL, "Target out of range"); } if (distance == 0 && !isAttackerInfantry) { return new ToHitData(ToHitData.AUTOMATIC_FAIL, "Only infantry shoot at zero range"); } // find any c3 spotters that could help Entity c3spotter = findC3Spotter(game, ae, target); if (isIndirect) { c3spotter = ae; // no c3 when using indirect fire } int c3dist = effectiveDistance(game, c3spotter, target); int c3range = RangeType.rangeBracket(c3dist, weaponRanges, useExtremeRange); // determine which range we're using int usingRange = Math.min(range, c3range); String targSysType = ""; // Get the targetting system type string ready, if necessary if ((ae.getTargSysType() == MiscType.T_TARGSYS_LONGRANGE) && (ae.getTargSysType() == MiscType.T_TARGSYS_SHORTRANGE)){ targSysType = " (w/"+MiscType.getTargetSysName(ae.getTargSysType())+")"; } // add range modifier if (usingRange == range) { // no c3 adjustment if ((range == RangeType.RANGE_SHORT) && (ae.getShortRangeModifier() != 0)) { mods.addModifier(ae.getShortRangeModifier(), "short range"+targSysType); } else if (range == RangeType.RANGE_MEDIUM) { // Right now, the range-mod affecting targetting systems DON'T affect medium range, so we won't add that here ever. mods.addModifier(ae.getMediumRangeModifier(), "medium range"); } else if (range == RangeType.RANGE_LONG) { // Protos that loose head sensors can't shoot long range. if( (ae instanceof Protomech) && (2 == ((Protomech)ae).getCritsHit(Protomech.LOC_HEAD)) ) { mods.addModifier ( ToHitData.IMPOSSIBLE, "No long range attacks with destroyed head sensors." ); } else { mods.addModifier(ae.getLongRangeModifier(), "long range"+targSysType); } } else if (range == RangeType.RANGE_EXTREME) { // Protos that loose head sensors can't shoot extreme range. if( (ae instanceof Protomech) && (2 == ((Protomech)ae).getCritsHit(Protomech.LOC_HEAD)) ) { mods.addModifier ( ToHitData.IMPOSSIBLE, "No extreme range attacks with destroyed head sensors." ); } else { mods.addModifier(ae.getExtremeRangeModifier(), "extreme range"+targSysType); } } } else { // report c3 adjustment if (c3range == RangeType.RANGE_SHORT) { mods.addModifier(ae.getShortRangeModifier(), "short range due to C3 spotter"+targSysType); } else if (c3range == RangeType.RANGE_MEDIUM) { mods.addModifier(ae.getMediumRangeModifier(), "medium range due to C3 spotter"+targSysType); } else if (c3range == RangeType.RANGE_LONG) { mods.addModifier(ae.getLongRangeModifier(), "long range due to C3 spotter"+targSysType); } } // add infantry LRM maximum range penalty if (isLRMInfantry && distance == weaponRanges[RangeType.RANGE_LONG]) { mods.addModifier(1, "infantry LRM maximum range"); } // add infantry zero-range modifier // TODO: this is not the right place to hardcode these if (isWeaponInfantry && distance == 0) { // Infantry platoons attacking with infantry weapons can attack // in the same hex with a base of 2, except for flamers and // SRMs, which have a base of 3 and LRMs, which suffer badly. if (wtype.hasFlag(WeaponType.F_FLAMER)) { mods.addModifier(-1, "infantry flamer assault"); } else if (wtype.getAmmoType() == AmmoType.T_SRM ) { mods.addModifier(-1, "infantry SRM assault"); } else if (wtype.getAmmoType() != AmmoType.T_LRM) { mods.addModifier(-2, "infantry assault"); } } // add minimum range modifier int minRange = weaponRanges[RangeType.RANGE_MINIMUM]; if (minRange > 0 && distance <= minRange) { int minPenalty = (minRange - distance) + 1; // Infantry LRMs suffer double minimum range penalties. if (isLRMInfantry) { mods.addModifier(minPenalty * 2, "infantry LRM minimum range"); } else { mods.addModifier(minPenalty, "minimum range"); } } // add any target stealth modifier if ((target instanceof Entity) && ((Entity)target).isStealthActive()) { mods.append(((Entity)target).getStealthModifier(usingRange)); } return mods; }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/9f7045be1eb4cb1b7c1b0e6be8f7c2d9c877cd43/Compute.java/buggy/megamek/src/megamek/common/Compute.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2974, 13616, 751, 22373, 1739, 87, 12, 3047, 339, 7920, 16, 3887, 14221, 16, 509, 732, 28629, 548, 16, 5916, 429, 1018, 13, 288, 3639, 13076, 329, 732, 28629, 273, 14221, 18, 588, 13142, 11568, 12, 1814, 28629, 548, 1769, 3639, 1660, 28629, 559, 341, 723, 273, 261, 3218, 28629, 559, 13, 1814, 28629, 18, 588, 559, 5621, 3639, 509, 8526, 732, 28629, 9932, 273, 341, 723, 18, 588, 9932, 5621, 3639, 1250, 353, 3075, 484, 264, 13149, 304, 698, 273, 261, 8906, 1276, 13648, 304, 698, 1769, 3639, 1250, 353, 3218, 28629, 13149, 304, 698, 273, 341, 723, 18, 5332, 4678, 12, 3218, 28629, 559, 18, 42, 67, 19212, 1258, 17805, 1769, 3639, 1250, 28601, 8717, 13149, 304, 698, 273, 353, 3218, 28629, 13149, 304, 698, 597, 341, 723, 18, 588, 37, 7020, 83, 559, 1435, 422, 3986, 8683, 559, 18, 56, 67, 48, 8717, 31, 3639, 1250, 353, 24943, 273, 14015, 91, 723, 18, 588, 37, 7020, 83, 559, 1435, 422, 3986, 8683, 559, 18, 56, 67, 48, 8717, 13, 747, 261, 91, 723, 18, 588, 37, 7020, 83, 559, 1435, 422, 3986, 8683, 559, 18, 56, 67, 48, 8717, 67, 56, 916, 1423, 3191, 3719, 5411, 597, 732, 28629, 18, 1397, 2309, 7675, 14963, 2932, 24943, 8863, 3639, 1250, 999, 2482, 2764, 73, 2655, 273, 7920, 18, 588, 1320, 7675, 6494, 1895, 2932, 1896, 28012, 67, 3676, 8863, 3639, 2974, 13616, 751, 15546, 273, 394, 2974, 13616, 751, 5621, 3639, 368, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 2974, 13616, 751, 22373, 1739, 87, 12, 3047, 339, 7920, 16, 3887, 14221, 16, 509, 732, 28629, 548, 16, 5916, 429, 1018, 13, 288, 3639, 13076, 329, 732, 28629, 273, 14221, 18, 588, 13142, 11568, 12, 1814, 28629, 548, 1769, 3639, 1660, 28629, 559, 341, 723, 273, 261, 3218, 28629, 559, 13, 1814, 28629, 18, 588, 559, 5621, 3639, 509, 8526, 732, 28629, 9932, 273, 341, 723, 18, 588, 9932, 5621, 3639, 1250, 353, 3075, 484, 264, 13149, 304, 698, 273, 261, 8906, 1276, 13648, 304, 698, 1769, 3639, 1250, 353, 3218, 28629, 13149, 304, 698, 273, 341, 723, 18, 5332, 4678, 12, 3218, 28629, 559, 18, 42, 67, 19212, 1258, 17805, 1769, 3639, 1250, 28601, 2 ]
}
}
public void updateFloat(int columnIndex, float x) throws SQLException { }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/cb88ccf91092199f5dd4fc4fd03d021643a6e0ec/SCR20557.java/clean/testData/refactoring/inheritanceToDelegation/scr20557/after/xxx/SCR20557.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 4723, 12, 474, 14882, 16, 1431, 619, 13, 1216, 6483, 288, 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 ]
[ 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1089, 4723, 12, 474, 14882, 16, 1431, 619, 13, 1216, 6483, 288, 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 ]
w += (int)(view.getScale()*view.getWidth()) - view.getRx() - view.getViewWidth();
w += wX - reachX;
private void redraw(Graphics g) { if (Settings.getInstance().getNavigator()) createNavigatorImage(); ViewState view = ViewState.getInstance(); if ((canvasImage==null) || (canvasSize.width!=width) || (canvasSize.height!=height)) { canvasImage = getWorkspacePanel().createImage(width, height); if (canvasImage==null) return; canvasSize = new Dimension(width, height); canvasGraphics = canvasImage.getGraphics(); // free old image memory System.gc(); } int origX = 0; int origY = 0; int w = width; int h = height; canvasGraphics.setColor(Color.gray); if (view.getRx()<0) { origX = -view.getRx(); canvasGraphics.fillRect(0, 0, origX, height); } if (view.getRy()<0) { origY = -view.getRy(); canvasGraphics.fillRect(origX, 0, width, origY); } if ((view.getRx()+view.getViewWidth())>(int)(view.getScale()*view.getWidth())) { w += (int)(view.getScale()*view.getWidth()) - view.getRx() - view.getViewWidth(); canvasGraphics.fillRect(w, origY, width, height); } if ((view.getRy()+view.getViewHeight())>(int)(view.getScale()*view.getHeight())) { h += (int)(view.getScale()*view.getHeight()) - view.getRy() - view.getViewHeight(); canvasGraphics.fillRect(origX, h, width, height); } canvasGraphics.setColor(Constants.BACKGROUND_COLOR); canvasGraphics.fillRect(origX, origY, w, h); if (Settings.getInstance().getShowGrid()) { canvasGraphics.setColor(Constants.GRID_COLOR); int gridSize = view.getGridSize(); int sx = origX; if (view.getRx()>0) sx += (view.getGridSize() - view.getRx()) % gridSize; int y0 = origY; if (view.getRy()>0) y0 += (view.getGridSize() - view.getRy()) % gridSize; // int xsteps = view.getViewWidth() / gridSize + 1;// int ysteps = view.getViewHeight() / gridSize + 1; int xsteps = (w-origX+1) / gridSize + 1; int ysteps = (h-origY+1) / gridSize + 1; if (gridSize >= 15) // crosses for (int y=0; y < ysteps; y++) { int x0 = sx; for (int x=0; x < xsteps; x++) { canvasGraphics.drawLine(x0-1, y0-1, x0+1, y0+1); canvasGraphics.drawLine(x0-1, y0+1, x0+1, y0-1); x0+=gridSize; } y0+=gridSize; } else // dots for (int y=0; y < ysteps; y++) { int x0 = sx; for (int x=0; x < xsteps; x++) { canvasGraphics.drawLine(x0, y0, x0, y0); x0+=gridSize; } y0+=gridSize; } } viewGroup.paintComponents(canvasGraphics, false, isFlat()); if (canvasGraphics!=null) copyCanvasImage(g); }
8177 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8177/c9d6b5d53e73884676349b5bdbaa931cf765912b/DrawingSurface.java/buggy/src/com/cosylab/vdct/graphics/DrawingSurface.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 16540, 12, 17558, 314, 13, 288, 202, 430, 261, 2628, 18, 588, 1442, 7675, 588, 22817, 10756, 202, 202, 2640, 22817, 2040, 5621, 202, 1767, 1119, 1476, 273, 4441, 1119, 18, 588, 1442, 5621, 1082, 202, 430, 14015, 15424, 2040, 631, 2011, 13, 747, 3196, 202, 12, 15424, 1225, 18, 2819, 5, 33, 2819, 13, 747, 3196, 202, 12, 15424, 1225, 18, 4210, 5, 33, 4210, 3719, 288, 1082, 565, 5953, 2040, 273, 20280, 5537, 7675, 2640, 2040, 12, 2819, 16, 2072, 1769, 202, 565, 309, 261, 15424, 2040, 631, 2011, 13, 327, 31, 202, 565, 5953, 1225, 273, 394, 13037, 12, 2819, 16, 2072, 1769, 202, 565, 5953, 17558, 273, 5953, 2040, 18, 588, 17558, 5621, 202, 202, 759, 4843, 1592, 1316, 3778, 202, 377, 202, 565, 2332, 18, 13241, 5621, 202, 97, 202, 474, 1647, 60, 273, 374, 31, 202, 474, 1647, 61, 273, 374, 31, 202, 474, 341, 273, 1835, 31, 202, 474, 366, 273, 2072, 31, 202, 15424, 17558, 18, 542, 2957, 12, 2957, 18, 22440, 1769, 202, 430, 261, 1945, 18, 588, 27741, 1435, 32, 20, 13, 202, 95, 202, 202, 4949, 60, 273, 300, 1945, 18, 588, 27741, 5621, 202, 202, 15424, 17558, 18, 5935, 6120, 12, 20, 16, 374, 16, 1647, 60, 16, 2072, 1769, 202, 97, 202, 202, 430, 261, 1945, 18, 588, 54, 93, 1435, 32, 20, 13, 202, 95, 202, 202, 4949, 61, 273, 300, 1945, 18, 588, 54, 93, 5621, 202, 202, 15424, 17558, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 16540, 12, 17558, 314, 13, 288, 202, 430, 261, 2628, 18, 588, 1442, 7675, 588, 22817, 10756, 202, 202, 2640, 22817, 2040, 5621, 202, 1767, 1119, 1476, 273, 4441, 1119, 18, 588, 1442, 5621, 1082, 202, 430, 14015, 15424, 2040, 631, 2011, 13, 747, 3196, 202, 12, 15424, 1225, 18, 2819, 5, 33, 2819, 13, 747, 3196, 202, 12, 15424, 1225, 18, 4210, 5, 33, 4210, 3719, 288, 1082, 565, 5953, 2040, 273, 20280, 5537, 7675, 2640, 2040, 12, 2819, 16, 2072, 1769, 202, 565, 309, 261, 15424, 2040, 631, 2011, 13, 327, 31, 202, 565, 5953, 1225, 273, 394, 13037, 12, 2819, 16, 2072, 1769, 202, 565, 5953, 17558, 273, 5953, 2040, 18, 588, 17558, 5621, 2 ]
PreparedStatement st = this.db.getConnection().prepareStatement(query);
final PreparedStatement st = db.getConnection().prepareStatement(query);
public void loadFiles(String columnToSort, boolean asc) { this.fileList = new Vector(); try { String query = "SELECT id, filename, publicKey, mime, size, localPath, category, indexParent FROM files WHERE indexParent = ?"; if(columnToSort != null) { query = query + "ORDER BY " + columnToSort; if(!asc) query = query + " DESC"; } PreparedStatement st = this.db.getConnection().prepareStatement(query); st.setInt(1, this.getId()); if(st.execute()) { ResultSet results = st.getResultSet(); while(results.next()) { thaw.plugins.index.File file = new thaw.plugins.index.File(this.db, results, this); file.setTransfer(this.queueManager); this.addFileToList(file); } } } catch(java.sql.SQLException e) { Logger.error(this, "Unable to get the file list for index: '"+this.toString()+"' because: "+e.toString()); } setChanged(false); /* java.util.Index */ setChanged(); /* java.util.Observer */ notifyObservers(); }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Index.java/buggy/src/thaw/plugins/index/Index.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 2697, 12, 780, 1057, 774, 4416, 16, 1250, 6972, 13, 288, 202, 202, 2211, 18, 768, 682, 273, 394, 5589, 5621, 202, 202, 698, 288, 1082, 202, 780, 843, 273, 315, 4803, 612, 16, 1544, 16, 12085, 16, 4892, 16, 963, 16, 27383, 16, 3150, 16, 770, 3054, 4571, 1390, 4852, 770, 3054, 273, 692, 14432, 1082, 202, 430, 12, 2827, 774, 4416, 480, 446, 13, 288, 9506, 202, 2271, 273, 843, 397, 315, 7954, 6953, 315, 397, 1057, 774, 4416, 31, 9506, 202, 430, 12, 5, 3691, 13, 6862, 202, 2271, 273, 843, 397, 315, 14326, 14432, 1082, 202, 97, 1082, 202, 29325, 384, 273, 333, 18, 1966, 18, 588, 1952, 7675, 9366, 3406, 12, 2271, 1769, 1082, 202, 334, 18, 542, 1702, 12, 21, 16, 333, 18, 26321, 10663, 1082, 202, 430, 12, 334, 18, 8837, 10756, 288, 9506, 202, 13198, 1686, 273, 384, 18, 588, 13198, 5621, 9506, 202, 17523, 12, 4717, 18, 4285, 10756, 288, 6862, 202, 451, 2219, 18, 8057, 18, 1615, 18, 812, 585, 273, 394, 286, 2219, 18, 8057, 18, 1615, 18, 812, 12, 2211, 18, 1966, 16, 1686, 16, 333, 1769, 6862, 202, 768, 18, 542, 5912, 12, 2211, 18, 4000, 1318, 1769, 6862, 202, 2211, 18, 1289, 812, 25772, 12, 768, 1769, 9506, 202, 97, 1082, 202, 97, 202, 202, 97, 1044, 12, 6290, 18, 4669, 18, 23116, 425, 13, 288, 1082, 202, 3328, 18, 1636, 12, 2211, 16, 315, 3370, 358, 336, 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, 1262, 2697, 12, 780, 1057, 774, 4416, 16, 1250, 6972, 13, 288, 202, 202, 2211, 18, 768, 682, 273, 394, 5589, 5621, 202, 202, 698, 288, 1082, 202, 780, 843, 273, 315, 4803, 612, 16, 1544, 16, 12085, 16, 4892, 16, 963, 16, 27383, 16, 3150, 16, 770, 3054, 4571, 1390, 4852, 770, 3054, 273, 692, 14432, 1082, 202, 430, 12, 2827, 774, 4416, 480, 446, 13, 288, 9506, 202, 2271, 273, 843, 397, 315, 7954, 6953, 315, 397, 1057, 774, 4416, 31, 9506, 202, 430, 12, 5, 3691, 13, 6862, 202, 2271, 273, 843, 397, 315, 14326, 14432, 1082, 202, 97, 1082, 202, 29325, 384, 273, 333, 18, 1966, 18, 588, 1952, 7675, 9366, 2 ]
}
}
public void mouseReleased(MouseEvent event) { }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/50df1d979f88c47f6fab2ffb5574f58d891cbc9b/ConfigureGUI.java/buggy/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1875, 202, 482, 918, 7644, 26363, 12, 9186, 1133, 871, 13, 288, 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, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case DOMError.SEVERITY_WARNING :
case DOMError.SEVERITY_WARNING:
public static String formatErrorInfo(ErrorInfo ei) { StringBuffer buf = new StringBuffer(128); buf.append("["); switch (ei.severity) { case DOMError.SEVERITY_WARNING : buf.append(WARNING_STRING); break; case DOMError.SEVERITY_ERROR : buf.append(ERROR_STRING); break; case DOMError.SEVERITY_FATAL_ERROR : buf.append(FATAL_ERROR_STRING); break; } buf.append(']'); String systemId = ei.exception.getSystemId(); if (systemId != null) { int index = systemId.lastIndexOf('/'); if (index != -1) { systemId = systemId.substring(index + 1); } buf.append(systemId); } buf.append(':'); buf.append(ei.exception.getLineNumber()); buf.append(':'); buf.append(ei.exception.getColumnNumber()); buf.append(": "); buf.append(ei.exception.getMessage()); return buf.toString(); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/c3f6363095dc52f521dd8666c0cfc494bedffffd/XmlUtil.java/buggy/src/main/mondrian/tui/XmlUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 760, 514, 740, 668, 966, 12, 668, 966, 13247, 13, 288, 5411, 6674, 1681, 273, 394, 6674, 12, 10392, 1769, 5411, 1681, 18, 6923, 2932, 63, 8863, 5411, 1620, 261, 73, 77, 18, 27341, 13, 288, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 9511, 30, 7734, 1681, 18, 6923, 12, 9511, 67, 5804, 1769, 7734, 898, 31, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 3589, 294, 7734, 1681, 18, 6923, 12, 3589, 67, 5804, 1769, 7734, 898, 31, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 29891, 67, 3589, 294, 7734, 1681, 18, 6923, 12, 29891, 67, 3589, 67, 5804, 1769, 7734, 898, 31, 5411, 289, 5411, 1681, 18, 6923, 2668, 3864, 1769, 5411, 514, 30083, 273, 13247, 18, 4064, 18, 588, 3163, 548, 5621, 5411, 309, 261, 4299, 548, 480, 446, 13, 288, 7734, 509, 770, 273, 30083, 18, 2722, 31985, 2668, 2473, 1769, 7734, 309, 261, 1615, 480, 300, 21, 13, 288, 10792, 30083, 273, 30083, 18, 28023, 12, 1615, 397, 404, 1769, 7734, 289, 7734, 1681, 18, 6923, 12, 4299, 548, 1769, 5411, 289, 5411, 1681, 18, 6923, 2668, 2497, 1769, 5411, 1681, 18, 6923, 12, 73, 77, 18, 4064, 18, 588, 31063, 10663, 5411, 1681, 18, 6923, 2668, 2497, 1769, 5411, 1681, 18, 6923, 12, 73, 77, 18, 4064, 18, 588, 1494, 1854, 10663, 5411, 1681, 18, 6923, 2932, 30, 315, 1769, 5411, 1681, 18, 6923, 12, 73, 77, 18, 4064, 18, 24906, 10663, 5411, 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, 540, 1071, 760, 514, 740, 668, 966, 12, 668, 966, 13247, 13, 288, 5411, 6674, 1681, 273, 394, 6674, 12, 10392, 1769, 5411, 1681, 18, 6923, 2932, 63, 8863, 5411, 1620, 261, 73, 77, 18, 27341, 13, 288, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 9511, 30, 7734, 1681, 18, 6923, 12, 9511, 67, 5804, 1769, 7734, 898, 31, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 3589, 294, 7734, 1681, 18, 6923, 12, 3589, 67, 5804, 1769, 7734, 898, 31, 5411, 648, 4703, 668, 18, 1090, 2204, 4107, 67, 29891, 67, 3589, 294, 7734, 1681, 18, 6923, 12, 29891, 67, 3589, 67, 5804, 1769, 7734, 898, 31, 5411, 289, 5411, 1681, 18, 6923, 2668, 3864, 2 ]